/* SUPERBOX 리뉴얼 시안 — 디자인 토큰 · 공통 부품
 * 원칙: 화면 틀은 조용하게, 게임은 크게. 색은 로고 먹색(#231815) · 빨강(#C30D23) + 놀이용 노랑 하나.
 * 테마: 기본은 시스템 설정, html[data-theme=light|dark] 로 고정. 휴대폰(390px)부터 넓혀 간다. */

:root {
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --font-display: 'Unbounded', 'Pretendard Variable', Pretendard, sans-serif;

  --bg: #f4f2ee;
  --surface: #ffffff;
  --surface-2: #ebe7e1;
  --surface-3: #e2ddd5;
  --ink: #231815;
  --ink-2: #5b524e;
  /* 흐린 글 — 바탕(--bg) 뿐 아니라 --surface-2 · --soft 위에서도 4.5:1 (예전 #776d68 은 그 둘 위에서 4.09 · 4.08, 지금 4.60 · 4.59) */
  --muted: #6f6560;
  /* 빨간 칸 · 노란 칸 위의 작은 꼬리표 글 — 4.5:1 이 되는 가장 옅은 값 (빨강 위 흰 글: 라이트 4.8 · 다크 4.7, 노랑 위 먹 글 4.9 · 4.7) */
  --on-red-muted: rgba(255, 255, 255, 0.86);
  --on-yellow-muted: rgba(35, 24, 21, 0.7);
  --line: rgba(35, 24, 21, 0.1);
  --line-strong: rgba(35, 24, 21, 0.18);
  --red: #c30d23;
  --red-press: #a50b1d;
  --red-text: #c30d23;
  --red-soft: rgba(195, 13, 35, 0.08);
  --yellow: #ffcf3f;
  --yellow-ink: #231815;
  --block-ink: #231815;
  --block-ink-text: #fbf7f2;
  --footer-bg: #1b1412;
  --focus: #2f6bff;
  --shadow-1: 0 1px 0 rgba(35, 24, 21, 0.04), 0 10px 30px -18px rgba(35, 24, 21, 0.28);
  --shadow-2: 0 2px 0 rgba(35, 24, 21, 0.04), 0 22px 50px -24px rgba(35, 24, 21, 0.38);
  --tile-bg: #e6e1da;
  --soft: #f7e3e0;
  --logo-light: block;
  --logo-dark: none;
  color-scheme: light;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1360px;
  --gap: clamp(10px, 1.4vw, 16px);
  --header-h: 60px;
  --control-h: 44px; /* 칩 · 검색 · 정렬처럼 한 줄에 나란히 놓이는 입력의 높이 */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 220ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0f0d0c;
    --surface: #1a1716;
    --surface-2: #24201e;
    --surface-3: #2e2926;
    --ink: #f5f1ec;
    --ink-2: #c3b9b3;
    --muted: #9a908a;
    --on-red-muted: rgba(255, 255, 255, 0.94); /* 다크의 빨강(#d8142d)은 더 밝아 흰 글이 더 진해야 4.5:1 */
    --line: rgba(245, 241, 236, 0.1);
    --line-strong: rgba(245, 241, 236, 0.2);
    --red: #d8142d;
    --red-press: #b80f25;
    --red-text: #ff5a6e;
    --red-soft: rgba(255, 90, 110, 0.12);
    --yellow: #f6c43a;
    --block-ink: #24201e;
    --block-ink-text: #f5f1ec;
    --footer-bg: #090807;
    --focus: #7aa2ff;
    --shadow-1: 0 0 0 1px rgba(245, 241, 236, 0.06);
    --shadow-2: 0 0 0 1px rgba(245, 241, 236, 0.08), 0 24px 60px -28px rgba(0, 0, 0, 0.9);
    --tile-bg: #24201e;
    --soft: #2b1c1c;
    --logo-light: none;
    --logo-dark: block;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #0f0d0c;
  --surface: #1a1716;
  --surface-2: #24201e;
  --surface-3: #2e2926;
  --ink: #f5f1ec;
  --ink-2: #c3b9b3;
  --muted: #9a908a;
  --on-red-muted: rgba(255, 255, 255, 0.94);
  --line: rgba(245, 241, 236, 0.1);
  --line-strong: rgba(245, 241, 236, 0.2);
  --red: #d8142d;
  --red-press: #b80f25;
  --red-text: #ff5a6e;
  --red-soft: rgba(255, 90, 110, 0.12);
  --yellow: #f6c43a;
  --block-ink: #24201e;
  --block-ink-text: #f5f1ec;
  --footer-bg: #090807;
  --focus: #7aa2ff;
  --shadow-1: 0 0 0 1px rgba(245, 241, 236, 0.06);
  --shadow-2: 0 0 0 1px rgba(245, 241, 236, 0.08), 0 24px 60px -28px rgba(0, 0, 0, 0.9);
  --tile-bg: #24201e;
  --soft: #2b1c1c;
  --logo-light: none;
  --logo-dark: block;
  color-scheme: dark;
}

@media (min-width: 900px) {
  :root {
    --header-h: 72px;
  }
}
/* 마우스로 쓰는 넓은 화면에서만 40px — 손가락으로 누르는 화면은 44px 그대로 */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  :root {
    --control-h: 40px;
  }
}

/* ---------- 바탕 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* 일본어는 띄어쓰기가 없어 keep-all 이면 문장이 통째로 한 덩어리가 된다 — 글자 사이에서 나누고 금칙(strict)만 지킨다 */
body:lang(ja) {
  word-break: normal;
  line-break: strict;
}
/* SB.watchStuck 의 기준점 — 붙는 줄 바로 위, 머리 높이만큼 올려 둔다 */
.stick-sentinel {
  position: relative;
  top: calc(-1px - var(--header-h));
  height: 1px;
  margin-bottom: -1px;
  visibility: hidden;
  pointer-events: none;
}
img,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 3px;
  border-radius: 10px;
}
::selection {
  background: var(--red);
  color: #fff;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(56px, 8vw, 112px);
}
.section--tight {
  padding-block: clamp(36px, 5vw, 64px);
}

/* ---------- 글자 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--red);
  transform: rotate(45deg);
}
.eyebrow--plain::before {
  display: none;
}
.h-display {
  font-size: clamp(34px, 6.2vw, 84px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.h-section {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.h-card {
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--ink-2);
}
.muted {
  color: var(--muted);
}
.num {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.section-head__title {
  display: grid;
  gap: 12px;
}

/* ---------- 버튼 ---------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -14px rgba(195, 13, 35, 0.7);
}
.btn:active {
  transform: translateY(0) scale(0.98);
  background: var(--red-press);
}
.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
.btn--ink {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
}
.btn--ink:hover,
.btn--ghost:hover,
.btn--light:hover,
.btn--line-light:hover {
  box-shadow: none;
}
.btn--ink:active {
  background: var(--ink);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}
.btn--ghost:hover {
  --btn-bd: var(--ink);
}
.btn--ghost:active {
  background: var(--surface-2);
}
.btn--light {
  --btn-bg: #fff;
  --btn-fg: #231815;
}
.btn--light:active {
  background: #f1ece6;
}
.btn--line-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.55);
}
.btn--line-light:active {
  background: rgba(255, 255, 255, 0.12);
}
.btn > svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn .arrow {
  transition: transform var(--dur) var(--ease);
}
.btn:hover .arrow {
  transform: translate(2px, -2px);
}
.ibtn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.ibtn:hover {
  background: var(--surface-2);
}
.ibtn svg {
  width: 22px;
  height: 22px;
}
.ibtn--glass {
  width: 40px;
  height: 40px;
  color: #fff;
  background: rgba(20, 14, 12, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.ibtn--glass:hover {
  background: rgba(20, 14, 12, 0.62);
}
.ibtn--glass svg {
  width: 18px;
  height: 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex: none;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform var(--dur) var(--ease);
}
.pill svg {
  width: 14px;
  height: 14px;
}
.pill--on-dark {
  background: #fff;
  color: #231815;
  box-shadow: none;
}
.pill--on-color {
  background: rgba(255, 255, 255, 0.95);
  color: #231815;
  box-shadow: none;
}
/* 320px 두 칸 카드(안쪽 99px) — 영어 'Open roles ↗' 알약이 카드 여백으로 14px 삐져나왔다. 그렇게 좁은 카드 안에서만 조금 작게 */
@container (max-width: 110px) {
  .pill {
    gap: 4px;
    padding: 0 10px;
    font-size: 12px;
  }
}

/* 스토어 단추 */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* 스토어 단추 — 애플 · 구글의 공식 배지처럼: 검정 바탕 · 회색 테두리 · 흰 글자, 구글 플레이 로고는 제 색.
   테마와 상관없이 같은 모양 (공식 배지가 늘 검정이라 어두운 화면에서는 테두리로 구분) */
.store {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px 0 13px;
  border-radius: 11px;
  border: 1px solid #a6a6a6;
  background: #000;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.store:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.store svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.store small {
  display: block;
  margin-bottom: 1px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.store--glass {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.store--sm {
  min-height: 38px;
  padding: 0 13px 0 10px;
  border-radius: 9px;
  font-size: 14px;
}
.store--sm svg {
  width: 19px;
  height: 19px;
}
.store--sm small {
  font-size: 8.5px;
}

/* 칩 · 검색 */
/* 가로로 넘기는 줄 — 키보드 초점 테두리(2.5px + 3px 떨어짐)가 잘리지 않게 안쪽 여백을 두고 같은 만큼 바깥으로 뺀다 */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px;
  margin: -6px;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--control-h);
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.chip[aria-pressed='true'],
.chip[aria-current='true'],
.chip[aria-current='page'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
/* 손가락으로 누르는 화면에서는 작은 단추도 44px (칩 · 검색 · 정렬은 --control-h 가 이미 44px) */
@media (pointer: coarse) {
  .btn--sm {
    min-height: 44px;
  }
  .search__clear,
  .seg button {
    min-width: 44px;
    height: 44px;
  }
  /* 알약 링크('전체 보기', 32px)는 모양은 그대로 두고 누르는 영역만 위아래로 44px */
  a.pill {
    position: relative;
  }
  a.pill::after {
    content: '';
    position: absolute;
    inset: -6px 0;
  }
  /* 홈 '채널' 칸의 SNS 단추는 좁은 휴대폰에서 26 ~ 36px — 단추 사이 틈(10px)까지 누르는 영역으로 */
  .social {
    position: relative;
  }
  .social::after {
    content: '';
    position: absolute;
    inset: -5px;
  }
}
.chip .count {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.6;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 340px);
}
/* 돋보기 — 입력 칸 높이 전체에 걸쳐 세로 가운데 */
.search__icon {
  position: absolute;
  inset-block: 0;
  left: 16px;
  display: flex;
  align-items: center;
  color: var(--muted);
  pointer-events: none;
}
.search__icon svg {
  width: 18px;
  height: 18px;
}
.search input {
  width: 100%;
  height: var(--control-h);
  padding: 0 44px 0 44px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px 미만이면 iOS 가 누를 때 화면을 확대한다 */
  appearance: none; /* 사파리의 검색 칸 모양(높이 · 안쪽 여백)을 끈다 */
  text-overflow: ellipsis; /* 320px 에서 안내문('게임 이름 · 초성으로 찾기')이 글자 중간에서 끊기지 않고 … 으로 */
  transition: border-color var(--dur) var(--ease);
}
/* 브라우저 자체 지우기 단추는 숨긴다 — 우리 지우기 단추(.search__clear)가 있다 */
.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration {
  display: none;
}
.search input::placeholder {
  color: var(--muted);
}
.search input:focus {
  outline: none;
  border-color: var(--ink);
}
.search input:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 2px;
}
.search__clear {
  position: absolute;
  right: 6px;
  width: 36px;
  height: 36px;
}
/* 손가락으로 누르는 화면 — 지우기 단추도 44×44 (위 칸 높이 규칙보다 뒤에 둬야 이긴다) */
@media (pointer: coarse) {
  .search__clear {
    right: 0;
    width: 44px;
    height: 44px;
  }
}
/* 비어 있을 때는 지우기 단추가 없으니 안내문이 끝까지 보이게 */
.search input:placeholder-shown {
  padding-right: 14px;
}
.search__clear svg {
  width: 16px;
  height: 16px;
}
.select {
  height: var(--control-h);
  padding: 0 36px 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23776d68' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  appearance: none;
  cursor: pointer;
}

/* ---------- 머리 ---------- */
.hd {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.hd.is-scrolled {
  border-bottom-color: var(--line);
}
.hd__in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  height: 44px;
  flex: none;
}
/* 머리 로고 — 사용자 2026-11-30 "슈퍼박스로고좀 살짝 키워줘": 22 → 25px, 넓은 화면 26 → 30px (채용 머리도 같은 규칙) */
.logo img {
  height: 25px;
  width: auto;
}
.logo .logo--light {
  display: var(--logo-light);
}
.logo .logo--dark {
  display: var(--logo-dark);
}
.nav {
  display: none;
  margin-inline: auto;
  gap: 4px;
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}
.nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}
/* 지금 보고 있는 메뉴 — 글자를 빨갛게 + 글자 아래 밑줄 (빨간 점보다 잘 보이게, 휴대폰 메뉴도 같은 빨간 글자) */
.nav a[aria-current='page'] {
  color: var(--red-text);
}
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--red-text);
}
.nav .ext {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}
.hd__right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.hd__cta,
.hd .seg,
.hd .lang {
  display: none;
}
@media (min-width: 1080px) {
  /* 메뉴를 페이지 한가운데에 — 왼쪽 로고와 오른쪽 묶음(테마 · 언어)의 폭이 달라도 가운데 칸은 정가운데 */
  .hd__in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .hd__in > .logo {
    justify-self: start;
  }
  .nav {
    display: flex;
    margin-inline: 0;
  }
  .hd__right {
    justify-self: end;
    margin-left: 0;
  }
  .hd__cta,
  .hd .seg,
  .hd .lang {
    display: inline-flex;
  }
  .hd .burger {
    display: none;
  }
}
@media (min-width: 900px) {
  .logo img {
    height: 30px;
  }
}

/* 테마 3단 전환 */
.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: var(--surface-2);
}
.seg button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.seg button svg {
  width: 17px;
  height: 17px;
}
.seg button:hover {
  color: var(--ink);
}
.seg button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.seg--wide {
  display: flex;
  width: 100%;
}
.seg--wide button {
  flex: 1;
  height: 44px;
}
.lang {
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--ink-2);
  cursor: pointer;
}
.lang:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.lang svg {
  width: 18px;
  height: 18px;
}
/* 언어 고르기 — 머리의 KO 를 누르면 작은 목록 (고르면 레거시 Home/language 로 보내고 새로고침) */
.lang-menu {
  position: relative;
}
/* 좁은 화면은 휴대폰 메뉴 안의 언어 칩을 쓴다 — 머리의 언어 상자는 넓은 화면만 (.hd .lang 과 같은 기준) */
.hd .lang-menu {
  display: none;
}
@media (min-width: 1080px) {
  .hd .lang-menu {
    display: block;
  }
}
.lang-menu > summary.lang {
  list-style: none;
}
.lang-menu > summary::-webkit-details-marker {
  display: none;
}
.lang-menu[open] > summary {
  background: var(--surface-2);
  color: var(--ink);
}
.lang-menu__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  min-width: 148px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.lang-menu__list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.lang-menu__list button:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.lang-menu__list button[aria-pressed='true'] {
  color: var(--ink);
}
.lang-menu__list button[aria-pressed='true']::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--red);
}
.lang-menu__list button[aria-busy='true'] {
  opacity: 0.6;
}

/* 휴대폰 메뉴 */
.sheet {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
}
.sheet::backdrop {
  background: rgba(0, 0, 0, 0.4);
}
.sheet[open] {
  animation: sheet-in 320ms var(--ease-out);
}
@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.sheet__in {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom));
}
.sheet__top {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet__nav {
  display: grid;
  margin-top: 12px;
}
.sheet__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.sheet__nav a svg {
  width: 22px;
  height: 22px;
  color: var(--muted);
}
.sheet__nav a[aria-current='page'] {
  color: var(--red-text);
}
.sheet__group {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.sheet__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.sheet__langs {
  display: flex;
  gap: 8px;
}
.sheet__bottom {
  margin-top: auto;
  padding-top: 28px;
  display: grid;
  gap: 16px;
}

/* ---------- 메인 영상 (시네마) ---------- */
.hero {
  position: relative;
  padding-top: 8px;
}
.cinema {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #14100e;
  color: #fff;
  height: min(76svh, 640px);
  min-height: 460px;
  isolation: isolate;
}
.cinema__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cinema__media img,
.cinema__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 500ms var(--ease);
}
.cinema__media video {
  opacity: 0;
}
.cinema__media video.is-on {
  opacity: 1;
}
.cinema::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(12, 8, 7, 0.88) 0%, rgba(12, 8, 7, 0.45) 38%, rgba(12, 8, 7, 0) 62%),
    linear-gradient(to right, rgba(12, 8, 7, 0.45) 0%, rgba(12, 8, 7, 0) 50%);
}
.cinema__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(20px, 3.4vw, 48px);
  display: grid;
  gap: 14px;
  max-width: 760px;
  transition:
    opacity 360ms var(--ease),
    transform 360ms var(--ease);
}
.cinema.is-switching .cinema__body {
  opacity: 0;
  transform: translateY(8px);
}
.cinema__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.cinema__eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff3b4f;
  box-shadow: 0 0 0 4px rgba(255, 59, 79, 0.25);
  animation: live 1.6s ease-in-out infinite;
}
@keyframes live {
  50% {
    box-shadow: 0 0 0 7px rgba(255, 59, 79, 0);
  }
}
.cinema__title {
  font-size: clamp(34px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.cinema__sub {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
}
.cinema__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
@media (max-width: 599px) {
  .cinema__actions .store {
    width: 48px;
    min-height: 48px;
    padding: 0;
    justify-content: center;
  }
  .cinema__actions .store > span {
    display: none;
  }
}
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 2px 2px;
  margin: 0 -2px;
  scroll-snap-type: x mandatory;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  position: relative;
  flex: none;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  height: 60px;
  padding: 0 14px 0 10px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}
.tab img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: none;
  object-fit: cover;
}
.tab span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tab[aria-selected='true'] {
  border-color: var(--ink);
  color: var(--ink);
}
.tab__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--red);
  transform-origin: left;
  transform: scaleX(0);
}
.tab[aria-selected='true'] .tab__bar {
  animation: tabbar var(--tab-dur, 9s) linear forwards;
}
/* 멈춤 단추 대신 — 마우스를 올려 두거나 키보드로 들어오면(탭 고르기) 자동 넘김이 멈춘다. 움직임 줄이기는 is-paused */
.hero.is-paused .tab__bar,
.hero.is-offscreen .tab__bar,
.hero:hover .tab__bar,
.hero:focus-within .tab__bar {
  animation-play-state: paused;
}
@keyframes tabbar {
  to {
    transform: scaleX(1);
  }
}
@media (min-width: 900px) {
  .cinema {
    height: min(80vh, 760px);
    border-radius: var(--r-xl);
  }
  .cinema__body {
    padding-bottom: 120px;
  }
  .hero .tabs {
    position: absolute;
    left: calc(var(--gutter) + clamp(20px, 3.4vw, 48px));
    right: calc(var(--gutter) + clamp(20px, 3.4vw, 48px));
    bottom: clamp(20px, 2.4vw, 32px);
    margin: 0;
    padding: 0;
  }
  .hero .tab {
    flex: 1;
    min-width: 0;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(20, 14, 12, 0.5);
    color: rgba(255, 255, 255, 0.86);
  }
  /* 넓은 화면의 첫 화면 탭은 한 줄 — 좁아지면 두 줄로 꺾여 한 단어만 남던 것을 말줄임으로 */
  .hero .tab span {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .hero .tab:hover {
    background: rgba(20, 14, 12, 0.7);
  }
  .hero .tab[aria-selected='true'] {
    background: rgba(255, 255, 255, 0.95);
    border-color: transparent;
    color: #231815;
  }
}

/* ---------- 벤토 ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: var(--gap);
}
.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 200px;
  padding: clamp(20px, 2.2vw, 30px);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  isolation: isolate;
  transition:
    transform 360ms var(--ease-out),
    box-shadow 360ms var(--ease-out);
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
a.card:hover .pill {
  transform: translateX(3px);
}
.card--span2 {
  grid-column: span 2;
}
.card--ink {
  background: var(--block-ink);
  color: var(--block-ink-text);
}
.card--red {
  background: var(--red);
  color: #fff;
}
.card--yellow {
  background: var(--yellow);
  color: var(--yellow-ink);
}
.card--media {
  color: #fff;
  background: #14100e;
  min-height: 300px;
}
.card--media > img,
.card--media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 900ms var(--ease-out);
}
.card--media > video {
  opacity: 0;
  transition:
    transform 900ms var(--ease-out),
    opacity 500ms var(--ease);
}
.card--media.is-playing > video {
  opacity: 1;
}
/* 카드 영상이 없는 유튜브 게임의 자리 (.yt-box — 아래 '유튜브 카드 영상') — 그림 위 · 어둡게 깔기 아래 */
.card--media > .yt-box {
  z-index: -2;
  transition: transform 900ms var(--ease-out);
}
a.card--media:hover > img,
a.card--media:hover > video,
a.card--media:hover > .yt-box {
  transform: scale(1.04);
}
.card--soft {
  background: var(--soft);
}
.card__foot--wrap {
  flex-wrap: wrap;
  align-items: center;
}
.card--marquee {
  min-height: 300px;
  justify-content: flex-start;
}
.card--marquee .marquee {
  position: relative;
  inset: auto;
  z-index: 0;
  margin: auto calc(-1 * clamp(20px, 2.2vw, 30px)) 0;
}
.tile.tile--more {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  transition: background-color var(--dur) var(--ease);
}
/* '게임 모두 보기' 칸 — 개수 대신 큰 화살표 */
.tile__more-icon {
  display: grid;
  place-items: center;
  width: clamp(52px, 5vw, 68px);
  height: clamp(52px, 5vw, 68px);
  border-radius: 999px;
  border: 2px solid currentColor;
  transition: transform var(--dur) var(--ease);
}
.tile__more-icon svg {
  width: 45%;
  height: 45%;
}
.tile.tile--more:hover .tile__more-icon {
  transform: translateX(4px);
}
.tile--more .num {
  font-size: clamp(30px, 3.4vw, 44px);
}
.tile.tile--more:hover {
  background: var(--red);
  color: #fff;
}
/* 영상 · 그림 속 글자(로고 · 'PLAY NOW')와 겹쳐도 카드 글이 읽히게 아래를 진하게 (격자 영상 카드와 같은 세기) */
.card--media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(12, 8, 7, 0.9), rgba(12, 8, 7, 0.62) 38%, rgba(12, 8, 7, 0) 72%);
}
.card--media p,
.card--media .h-card,
.card--media .h-section {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  text-wrap: balance;
}
.card__tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(20, 14, 12, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.card__stat {
  display: grid;
  gap: 10px;
}
.card {
  container-type: inline-size;
}
/* 카드 폭에 맞춘다 — 휴대폰 2칸에서도 '1.3억+' 가 넘치지 않게 */
.card__stat .num {
  font-size: clamp(30px, 29cqw, 84px);
  white-space: nowrap;
}
/* 영어 숫자('310M+')는 글자 폭이 4em 이라 29cqw 면 어느 폭에서나 카드 밖으로 잘린다 (한국어 · 일본어 '3.1억+' 는 3.3em) */
:where(:lang(en)) .card__stat .num {
  font-size: clamp(22px, 24cqw, 84px);
}
/* 320px 두 칸 카드(안쪽 99px)에서 'DOWNLOADS' 가 'DOWNLOA / DS' 로 끊기지 않게 — 그보다 넓은 카드는 12px 그대로 */
.card > .eyebrow {
  font-size: min(12px, 10cqw);
}
.card__stat p {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.card__note {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.92;
}
.card__statement {
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.card__statement em {
  font-style: normal;
  color: var(--red-text);
}
.card--ink .card__statement em {
  color: #ff5a6e;
}
.marquee {
  position: absolute;
  inset: auto 0 18px 0;
  display: grid;
  gap: 10px;
  z-index: -1;
  opacity: 0.95;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee__row {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee__row:nth-child(2) {
  animation-direction: reverse;
  animation-duration: 72s;
}
.marquee img {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.5);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.social {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--ink);
  transition:
    transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.social:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: var(--bg);
}
.social svg {
  width: 24px;
  height: 24px;
}
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.proof__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 16px;
  background: var(--surface-2);
}
.proof__item img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.proof__item b {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.1;
}
.proof__text {
  display: block;
  min-width: 0;
}
/* 홈 벤토 영상 카드의 요약 한두 줄 */
.card__sum {
  margin: 6px 0 16px;
  font-size: 14px;
  opacity: 0.85;
}
.card__foot .card__sum {
  margin-bottom: 0;
}
/* 게임 이름 한 줄 — 감싼 span 까지 잡지 않게 클래스로만 고른다 */
.proof__name {
  display: block;
  font-size: 12px;
  color: var(--muted);
  max-width: 13ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .card--tall {
    grid-row: span 2;
  }
  .card--span2 {
    grid-column: span 2;
  }
  .card--span4 {
    grid-column: span 4;
  }
  .card {
    min-height: 260px;
  }
}
@media (max-width: 639px) {
  .card--m-span2 {
    grid-column: span 2;
  }
  .card--tall {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
  .card--marquee {
    min-height: 200px;
  }
  .card--marquee .marquee {
    display: none;
  }
  .card__note {
    font-size: 11px;
  }
}

/* ---------- 게임 격자 (영상 · 썸네일 교차) ---------- */
.lib {
  container-type: inline-size;
}
.lib-grid {
  --cols: 2;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols));
  grid-auto-flow: dense;
  gap: var(--gap);
}
@container (min-width: 560px) {
  .lib-grid {
    --cols: 3;
  }
}
@container (min-width: 820px) {
  .lib-grid {
    --cols: 4;
  }
}
@container (min-width: 1100px) {
  .lib-grid {
    --cols: 6;
  }
}
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--tile-bg);
  color: #fff;
  isolation: isolate;
  transform: translateZ(0);
}
.tile--wide {
  grid-column: span 2;
}
.tile--tall {
  grid-row: span 2;
}
.tile > img,
.tile > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 700ms var(--ease-out),
    opacity 400ms var(--ease);
}
.tile > video {
  opacity: 0;
}
.tile.is-playing > video {
  opacity: 1;
}
.tile > .yt-box {
  transition: transform 700ms var(--ease-out);
}
.tile:hover > img,
.tile:hover > video,
.tile:hover > .yt-box {
  transform: scale(1.05);
}
.tile__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(to top, rgba(12, 8, 7, 0.82), rgba(12, 8, 7, 0));
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); /* 밝은 그림 · 영상 위에서도 글자가 묻히지 않게 */
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.tile__label b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 이름 아래 한 줄(장르 · 요약). 이름표 안의 다른 span(화살표 단추)까지 건드리지 않게 클래스로만 고른다 */
.tile__sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.8;
}
@media (hover: hover) and (min-width: 900px) {
  .tile:not(.tile--wide) .tile__label {
    opacity: 0;
    transform: translateY(6px);
  }
  .tile:hover .tile__label,
  .tile:focus-visible .tile__label {
    opacity: 1;
    transform: none;
  }
}
.tile--wide .tile__label {
  /* 영상 안의 자막 · 그림과 겹쳐도 이름 · 요약이 읽히게 아래쪽을 더 어둡게 */
  background: linear-gradient(to top, rgba(12, 8, 7, 0.9) 0%, rgba(12, 8, 7, 0.6) 55%, rgba(12, 8, 7, 0) 100%);
  padding: 56px clamp(14px, 1.8vw, 22px) clamp(12px, 1.6vw, 18px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.tile__text {
  display: block;
  min-width: 0;
}
.tile--wide .tile__label b {
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tile--wide .tile__sub {
  margin-top: 2px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fff;
  color: #231815;
  text-shadow: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform var(--dur) var(--ease);
}
.tile__arrow svg {
  width: 16px;
  height: 16px;
}
.tile:hover .tile__arrow {
  transform: rotate(-45deg);
}

/* ---------- 이미지 카드 미리보기 (site.js hoverPreview) ----------
 * 정사각 · 세로 카드 · 대표 게임 카드에 마우스를 잠깐 올리면 카드 위로 16:9 패널이 커지며 뜬다 — 영상을 자르지 않고 다 보인다
 * (사용자 2026-11-30). 화면 위에 떠 있어(position: fixed) 격자는 움직이지 않고, 커지는 움직임은 transform · opacity 만 쓴다.
 * 위치 · 크기 · 커지기 시작하는 점(--hc-s, transform-origin)은 site.js 가 카드에 맞춰 넣는다. */
.hover-card {
  --hc-s: 0.6;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 45; /* 머리(50) · 언어 상자(60) 아래, 도구 줄(20) 위 */
  width: 360px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-2), 0 0 0 1px var(--line);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(var(--hc-s));
  /* 닫힘 — 제 카드로 줄어들며 사라진다 (site.js CLOSE_MS 와 같게). 다른 카드로 가면 새 카드의 패널이 동시에 커져 나온다 */
  transition:
    opacity 140ms var(--ease),
    transform 140ms var(--ease),
    visibility 0s linear 140ms;
}
.hover-card.is-open {
  z-index: 46; /* 나오는 패널이 사라지는 패널 위 */
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    opacity 200ms var(--ease),
    transform 200ms var(--ease),
    visibility 0s;
}
/* 16:9 화면 — 그림 · 영상은 자르지 않고(contain) 다 보인다. 16:9 가 아닌 그림이면 흐린 같은 그림이 빈자리를 채운다 */
.hover-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #14100e;
}
.hover-card__bg {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  filter: blur(20px) saturate(1.2);
  opacity: 0.6;
}
.hover-card__poster,
.hover-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hover-card__video {
  opacity: 0;
  transition: opacity 320ms var(--ease);
}
.hover-card.is-playing .hover-card__video {
  opacity: 1;
}
.hover-card__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 16px;
}
.hover-card__text {
  display: grid;
  min-width: 0;
}
.hover-card__text b {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hover-card__text span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.hover-card .btn {
  flex: none;
}

/* ---------- 유튜브 카드 영상 (카드 영상 mp4 가 없는 유튜브 게임, site.js — 사용자 2026-12-01) ----------
 * 영상 카드의 자리 .yt-box 는 카드를 덮는 빈 틀이고, 프레임(.yt-frame)은 site.js 가 틀 때만 넣고 멈추면 지운다. 프레임은 유튜브가 재생 중을
 * 알릴 때까지 투명해서(카드 그림이 그대로 보인다) 그때 서서히 나타난다 (opacity 만 움직인다). 누르기는 카드 링크가 받는다 (pointer-events 없음).
 * 영상 카드 = 16:9 프레임을 칸에 꽉 채워 가운데를 자른다 (object-fit: cover 처럼 — 가로 · 16:10 · 정사각 어느 칸이든, 칸 크기는 컨테이너 단위로).
 * 미리보기 패널(.hover-card__media) = 16:9 화면에 프레임을 그대로 — 유튜브가 영상을 자르지 않고 다 보인다 (contain). */
.yt-box {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: size;
  pointer-events: none;
}
.yt-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.yt-frame.is-on {
  opacity: 1;
}
.yt-box > .yt-frame {
  inset: auto;
  left: 50%;
  top: 50%;
  width: max(100cqw, 100cqh * 16 / 9);
  height: max(100cqh, 100cqw * 9 / 16);
  transform: translate(-50%, -50%);
}

.lib-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 3vw, 40px);
}
.empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 64px 16px;
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--line-strong);
  text-align: center;
  color: var(--ink-2);
}
.empty b {
  font-size: 20px;
  color: var(--ink);
}

/* ---------- 히트작 줄 ---------- */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 78%);
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px var(--gutter) 12px;
  margin-inline: calc(var(--gutter) * -1);
  scroll-padding-inline: var(--gutter);
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail > * {
  scroll-snap-align: start;
}
@media (min-width: 640px) {
  .rail {
    grid-auto-columns: minmax(260px, 42%);
  }
}
@media (min-width: 1000px) {
  .rail {
    grid-auto-columns: calc((100% - var(--gutter) * 2 - var(--gap) * 3) / 4);
  }
}
.hit {
  display: grid;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition:
    transform 360ms var(--ease-out),
    box-shadow 360ms var(--ease-out);
}
.hit:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.hit__art {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--tile-bg);
  overflow: hidden;
}
/* 그림 카드 — 마우스를 올리면 카드 위로 16:9 미리보기 패널 (.hover-card, site.js hoverPreview) */
.hit__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hit__tier {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--yellow);
  color: #231815;
}
.hit__tier b {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}
.hit__tier span {
  font-size: 11px;
  font-weight: 800;
}
.hit__body {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px;
}
.hit__body > div {
  min-width: 0;
}
.hit__body img {
  width: 48px;
  height: 48px;
  border-radius: 13px;
}
.hit__body b {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hit__body span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 제안 띠 ---------- */
.band {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  padding: clamp(28px, 5vw, 72px);
  border-radius: var(--r-xl);
  background: var(--red);
  color: #fff;
  isolation: isolate;
}
.band__x {
  position: absolute;
  right: -40px;
  top: 50%;
  width: clamp(220px, 34vw, 460px);
  aspect-ratio: 1;
  transform: translateY(-50%) rotate(8deg);
  z-index: -1;
  opacity: 0.16;
}
.band__x::before,
.band__x::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118%;
  height: 22%;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}
.band__x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.band h2 {
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.band p {
  max-width: 52ch;
  color: var(--on-red-muted);
  font-size: clamp(15px, 1.4vw, 18px);
}
.band__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.band__tags span {
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 700;
}
.band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* 줄바꿈 없는 긴 단추가 띠의 칸(grid)을 밀어 넓히면 제목 · 글이 오른쪽 여백 없이 띠 밖으로 잘린다 (320px 일본어 'パブリッシング＆パートナーシップ')
 * — 칸은 띠 안쪽 폭을 넘지 않고, 들어가지 않는 단추만 두 줄로 */
.band > * {
  min-width: 0;
}
.band__actions .btn {
  max-width: 100%;
  padding-block: 8px;
  white-space: normal;
  text-align: center;
  text-wrap: balance;
}

/* ---------- 고객지원 · 소식 ---------- */
.duo {
  display: grid;
  gap: var(--gap);
}
@media (min-width: 900px) {
  .duo {
    grid-template-columns: 1.25fr 1fr;
  }
}
.panel {
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  display: grid;
  align-content: start;
  gap: 18px;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.list {
  display: grid;
}
.list a,
.list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.list a:hover {
  color: var(--red-text);
}
.list svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--muted);
}
.list time {
  flex: none;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.releases {
  display: grid;
  gap: 8px;
}
.release {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: var(--surface-2);
  transition: background-color var(--dur) var(--ease);
}
.release:hover {
  background: var(--surface-3);
}
.release img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.release b {
  display: block;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.release small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.release time {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.contact {
  display: grid;
  gap: 10px;
}
.contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-2);
  font-weight: 700;
}
.contact a small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.contact svg {
  width: 22px;
  height: 22px;
  flex: none;
}

/* ---------- 바닥 ---------- */
/* 슈퍼센트처럼 최소한: 약관 줄 → 로고 · 저작권 · SNS 한 줄. 배경은 페이지와 이어진다 */
.ft {
  margin-top: clamp(64px, 9vw, 128px);
  padding-block: 0 calc(28px + env(safe-area-inset-bottom));
  color: var(--ink-2);
}
.ft__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}
.ft__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.ft__legal a + a::before {
  content: '';
  width: 1px;
  height: 14px;
  margin-inline: 16px;
  background: var(--line-strong);
}
.ft__legal a:hover {
  color: var(--ink);
}
.ft__legal a.strong {
  color: var(--ink);
  font-weight: 800;
}
/* 아주 좁은 화면(영어 · 일본어 ~360px, 한국어 320px)에서 줄이 바뀌면 새 줄 머리에 구분선이 남는다 — 구분선 대신 칸으로 띄운다 */
@media (max-width: 400px) {
  .ft__legal {
    column-gap: 20px;
  }
  .ft__legal a + a::before {
    content: none;
  }
}
/* 사업자 정보 (한국어 화면만) — 상호 · 대표 · 번호 한 줄, 주소 한 줄.
   항목 사이를 칸으로 띄워 좁은 화면에서 줄이 바뀌어도 줄 머리에 구분선이 남지 않는다 */
.ft__biz {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.ft__biz dl {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 22px;
  margin: 0;
}
.ft__biz div {
  display: flex;
  gap: 7px;
  min-width: 0;
}
.ft__biz dt {
  flex: none;
  font-weight: 700;
  color: var(--ink-2);
}
.ft__biz dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ft__biz a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
.ft__biz a:hover {
  color: var(--ink);
}
/* 아직 받지 못한 값 — 시안의 '문구 예시' 표시와 같은 점선 꼬리표 */
.ft__todo {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px dashed var(--line-strong);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  vertical-align: 1px;
}
.ft__bar {
  display: grid;
  justify-items: start;
  gap: 18px;
  margin-top: clamp(36px, 6vw, 80px);
}
.ft__logo {
  height: auto;
}
.ft__logo img {
  height: clamp(26px, 2.6vw, 34px);
  width: auto;
}
.ft__copy {
  font-size: 14px;
  color: var(--muted);
}
.ft__social {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: -8px;
}
.ft__social a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--ink);
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.ft__social a:hover {
  color: var(--red-text);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.ft__social svg {
  width: 30px;
  height: 30px;
}
@media (min-width: 900px) {
  .ft__bar {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .ft__social {
    justify-self: end;
    margin-left: 0;
    margin-right: -8px;
  }
}
@media (max-width: 899px) {
  .ft__copy {
    order: 3;
  }
}

/* ---------- 게임 목록 ---------- */
/* 페이지 첫 덩어리는 모든 화면이 머리 아래 같은 높이(8px)에서 시작한다 — 퍼블리싱 · 채용 첫 화면 카드(padding-top: 8px)와 같게
   (사용자 2026-11-30 "퍼블리싱은 조금더 위에 붙어잇고 나머지는 조금더 아래 … 퍼블리싱쪽에 맞추는게") */
.page-head {
  display: grid;
  gap: 14px;
  padding-block: 8px clamp(20px, 3vw, 36px);
}
.spot {
  display: grid;
  gap: var(--gap);
}
.spot__item {
  min-height: 0;
  aspect-ratio: 16 / 10;
}
.spot__sum {
  margin-top: 8px;
  max-width: 48ch;
  opacity: 0.85;
}
/* 휴대폰 — 첫 카드의 큰 제목 + 요약이 그림 속 로고 위로 몰리지 않게 제목은 작게, 요약은 숨긴다 (점검 #2) */
@media (max-width: 899px) {
  .spot__lead {
    font-size: clamp(20px, 5.6vw, 26px);
  }
  .spot__sum {
    display: none;
  }
}
/* 스크립트 없이 여는 브라우저 · 검색 로봇용 게임 목록 */
.noscript-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .spot {
    grid-template-columns: 1.7fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: clamp(440px, 40vw, 580px);
  }
  .spot__item {
    aspect-ratio: auto;
  }
  .spot__item:first-child {
    grid-row: span 2;
  }
}
.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  display: grid;
  gap: 10px;
  padding: 12px 0;
  margin-bottom: 4px;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.toolbar.is-stuck {
  border-bottom-color: var(--line);
}
/* 게임 목록 — 키보드로 거슬러 올라갈 때(Shift+Tab) 초점 잡힌 카드가 머리 밑에 붙은 도구 줄에 가려지지 않게, 그 줄 높이만큼 더 띄워 멈춘다.
 * 붙는 줄 높이 = 칸 + 위아래 24px 안팎 + 밑줄 1px (좁은 화면은 칩 줄만 붙는다 — 아래). 회사 화면의 연도 줄은 제 scroll-margin 이 맡는다 */
html:has(.lib > .toolbar) {
  scroll-padding-top: calc(var(--header-h) + var(--control-h) + 25px + 12px);
}
/* 게임 목록, 좁은 화면 — 장르 칩 줄만 머리 밑에 붙고 검색 · 정렬 줄은 화면과 함께 올라간다. 두 줄이 다 붙으면 머리와 합쳐 183px,
 * 작은 휴대폰 화면의 3분의 1 을 가렸다 (사용자 2026-11-30 사용성 점검). 도구 줄의 상자를 풀어(display: contents) 칩 줄이 목록 구역(.lib)
 * 끝까지 붙어 있게 한다 — 붙는 순간 표시(is-stuck)는 그대로 도구 줄에 붙는다 (site.js watchStuck 의 기준점은 도구 줄 바로 앞) */
@media (max-width: 999.98px) {
  .lib > .toolbar {
    display: contents;
  }
  .lib > .toolbar > .chips {
    position: sticky;
    top: var(--header-h);
    z-index: 20;
    margin: 0 -6px;
    padding: 12px 6px 10px;
    background: var(--bg);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur) var(--ease);
  }
  .lib > .toolbar.is-stuck > .chips {
    border-bottom-color: var(--line);
  }
  .lib > .toolbar > .toolbar__right {
    margin-bottom: 16px;
  }
}
.toolbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toolbar__right .search {
  flex: 1;
  width: auto;
}
@media (min-width: 1000px) {
  .toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .toolbar__right .search {
    width: 300px;
  }
  /* 칩이 검색 칸 앞에서 잘릴 때 — 끝을 흐리게 해 옆으로 넘길 수 있다는 걸 보인다 (넉넉하면 표시 없음) */
  .toolbar .chips {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
    padding-right: 36px;
  }
}
.toolbar__count {
  margin: 8px 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- 게임 상세 ---------- */
.gd-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(16px, 2.4vw, 32px) clamp(28px, 4vw, 56px);
}
.gd-hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% 10%;
  z-index: -2;
  background: var(--art) center / cover;
  filter: blur(90px) saturate(1.5);
  opacity: 0.34;
  transform: translateZ(0);
}
.gd-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, transparent 30%, var(--bg) 96%);
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: clamp(16px, 2.4vw, 28px);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}
.crumbs svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.crumbs a:hover {
  color: var(--ink);
}
/* 손가락 화면 — 줄 높이는 그대로 두고 누르는 영역만 44px 로 ('게임' 은 24×32 였다. 앞쪽 pointer: coarse 묶음의
 * min-height: 44px 는 위 기본 높이(32px)에 덮여 듣지 않았다). 옆 링크와는 26px 떨어져 있어 겹치지 않는다 */
@media (pointer: coarse) {
  .crumbs a {
    position: relative;
  }
  .crumbs a::after {
    content: '';
    position: absolute;
    inset: -6px -10px;
  }
}
.gd-hero__grid {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
@media (min-width: 1000px) {
  .gd-hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}
.gd-info {
  display: grid;
  justify-items: start;
  gap: 16px;
}
.gd-icon {
  width: clamp(84px, 9vw, 112px);
  height: clamp(84px, 9vw, 112px);
  border-radius: 26%;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.5);
}
.gd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 700;
}
.badge--yellow {
  background: var(--yellow);
  color: #231815;
  box-shadow: none;
}
.badge .num {
  font-size: 13px;
  line-height: 1;
}
.gd-title {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.gd-en {
  margin-top: -8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #14100e;
  box-shadow: var(--shadow-2);
}
.player > img,
.player > video,
.player > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.player > video {
  opacity: 0;
  transition: opacity 500ms var(--ease);
}
.player.is-playing > video {
  opacity: 1;
}
/* 유튜브 없는 게임의 상세 영상 (조작 단추 있음) — 처음부터 포스터가 보인다 */
.player > video.player__clip {
  opacity: 1;
}
/* 스크린샷 — 예전 사이트처럼 옆으로 끝없이 이어지는 한 줄. 흐림 · 넘김 단추 · 스크롤 막대 없이 휠 · 끌기 · 손가락으로 넘긴다 (game.js) */
.shots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 14px;
  cursor: grab;
}
.shots::-webkit-scrollbar {
  display: none;
}
.shots.is-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}
.shot {
  flex: none;
  height: clamp(240px, 28vw, 420px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--tile-bg);
  box-shadow: var(--shadow-1);
  cursor: zoom-in;
}
.shots.is-dragging .shot {
  cursor: grabbing;
}
.shot img {
  width: auto;
  max-width: none;
  height: 100%;
  -webkit-user-drag: none;
}
.shots:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 2px;
}
.gd-body {
  display: grid;
  gap: var(--gap);
  align-items: start;
}
@media (min-width: 1000px) {
  .gd-body {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
  .gd-facts {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}
.gd-desc h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.gd-desc__text {
  display: grid;
  gap: 10px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.75;
}
.gd-desc__text.is-clamped:not(.is-open) {
  max-height: 15em;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.gd-desc .btn {
  justify-self: start;
}
.gd-facts dl {
  margin: 0;
  display: grid;
}
.gd-facts dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.gd-facts dt {
  color: var(--muted);
  font-weight: 600;
}
.gd-facts dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}
.gd-facts dd small {
  color: var(--muted);
  font-weight: 600;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-2);
  font-weight: 700;
}
.contact-line > span {
  flex: 1;
}
.contact-line small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.contact-line svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.rail--tiles {
  grid-auto-columns: clamp(150px, 40vw, 200px);
}
.tile.tile--card {
  aspect-ratio: 1;
}
.tile--card .tile__label {
  opacity: 1 !important;
  transform: none !important;
}
.dlbar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 10px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-2), 0 0 0 1px var(--line);
  transform: translateY(160%);
  transition: transform 360ms var(--ease-out);
}
.dlbar.is-on {
  transform: none;
}
.dlbar img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.dlbar b {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dlbar .stores {
  flex: none;
  flex-wrap: nowrap;
}
.store--icon {
  width: 44px;
  padding: 0;
  justify-content: center;
}
.store--icon > span {
  display: none;
}
/* 받기 막대의 스토어 단추도 손가락 크기 (44×38 이었다 — 막대 높이는 아이콘이 이미 44px 라 그대로) */
.dlbar .store--icon {
  min-height: 44px;
}
@media (min-width: 1000px) {
  .dlbar {
    display: none;
  }
}
/* 화면 맨 아래에서 받기 막대(아래 10px + 높이 60px)가 바닥의 저작권 줄을 덮지 않게 — 막대가 있는 화면만 바닥을 그만큼 늘린다 */
@media (max-width: 999.98px) {
  body:has(.dlbar) .ft {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
}
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 8, 7, 0.94);
  color: #fff;
}
.lightbox[open] {
  display: grid;
  place-items: center;
}
.lightbox::backdrop {
  background: transparent;
}
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 84vh;
  border-radius: 18px;
  object-fit: contain;
  touch-action: pan-y;
  user-select: none;
}
.lightbox .ibtn {
  position: absolute;
  width: 48px;
  height: 48px;
}
.lightbox__close {
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
}
.lightbox__prev {
  left: 14px;
  top: 50%;
  margin-top: -24px;
}
.lightbox__next {
  right: 14px;
  top: 50%;
  margin-top: -24px;
}
.lightbox__count {
  position: absolute;
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  opacity: 0.8;
}

/* ---------- 선택 상자 (site.js enhanceSelect) — 원래 <select data-select> 는 눈에서만 숨기고 그 위에 단추 + 목록 ----------
   기본은 도구 줄의 알약 모양(정렬), data-select="field" 는 폼 칸 모양(채용 지원서). 색 · 그림자는 테마 토큰이라 다크도 같이 */
.sel {
  position: relative;
  display: inline-block;
}
.sel--field {
  display: block;
}
.sel__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  opacity: 0;
  pointer-events: none;
}
.sel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: var(--control-h);
  padding: 0 12px 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}
.sel__btn:hover {
  border-color: var(--muted);
}
.sel.is-open .sel__btn {
  border-color: var(--ink);
}
.sel__btn:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 2px;
}
.sel__btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted);
  transition: transform var(--dur) var(--ease);
}
.sel.is-open .sel__btn svg {
  transform: rotate(180deg);
}
.sel__btn.is-placeholder .sel__value {
  color: var(--muted);
  font-weight: 500;
}
.sel__btn[aria-invalid='true'] {
  border-color: var(--red-text);
}
.sel--field .sel__btn {
  width: 100%;
  height: auto;
  min-height: 52px;
  padding: 0 14px 0 16px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
}
.sel__list {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-height: min(320px, 60vh);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-2);
}
.sel__list:focus {
  outline: none;
}
.sel--up .sel__list {
  top: auto;
  bottom: calc(100% + 6px);
}
.sel--end .sel__list {
  left: auto;
  right: 0;
}
.sel__list [role='option'] {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px 8px 10px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.sel--field .sel__list [role='option'] {
  min-height: 44px;
  font-size: 15px;
  white-space: normal;
}
.sel__list [role='option'] svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--red-text);
  visibility: hidden;
}
.sel__list [role='option'][aria-selected='true'] {
  color: var(--ink);
  font-weight: 800;
}
.sel__list [role='option'][aria-selected='true'] svg {
  visibility: visible;
}
.sel__list [role='option'].is-active {
  background: var(--surface-2);
}
.sel__list:focus-visible [role='option'].is-active {
  box-shadow: inset 0 0 0 2px var(--focus);
}
.sel__list [role='option'][aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (pointer: coarse) {
  .sel__list [role='option'] {
    min-height: 44px;
  }
}

/* ---------- 등장 움직임 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .marquee__row {
    animation: none;
  }
}

/* 시안 안내 띠 */
.proto-note {
  position: fixed;
  left: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  transition: opacity var(--dur) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(35, 24, 21, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.proto-note.is-hidden {
  opacity: 0;
}
@media (max-width: 599px) {
  .proto-note {
    right: 12px;
    border-radius: 16px;
    white-space: normal;
  }
}

/* 폼을 보낸 뒤의 완료 화면 — 1:1 문의 · 퍼블리싱 제안 (site/redesign/form-done.ts, 채용 지원 완료 화면과 같은 꼴 —
   docs/parity.md form-result-inline). 폼을 숨기면 같은 그리드 칸에 들어온다 */
.form-done {
  justify-items: center;
  gap: 14px;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 44px);
  text-align: center;
}
.form-done:focus {
  outline: none;
}
.form-done__mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
}
.form-done__mark svg {
  width: 30px;
  height: 30px;
}
.form-done__title {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.form-done__lead {
  max-width: 46ch;
  line-height: 1.7;
  color: var(--ink-2);
  white-space: pre-line;
}
.form-done__lead:empty {
  display: none;
}
.form-done__facts {
  display: grid;
  width: 100%;
  margin: 6px 0 0;
  text-align: left;
  border-top: 1px solid var(--line);
}
.form-done__facts > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.form-done__facts dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.form-done__facts dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.form-done__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}
/* 좁은 화면 — 이름을 값 위로 (보낸 시각이 두 줄로 꺾이지 않게) */
@media (max-width: 479px) {
  .form-done__facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}
