/* 디자인 토큰: 모든 페이지의 색상·폭·간격 기준을 이곳에서 함께 관리합니다. */
:root {
  color-scheme: dark;
  --bg: #0b1018; /* 기본 배경. 밝게 조정하면 흰 본문과의 대비가 감소합니다. */
  --surface: #151e2b; /* 보조 배경. 콘텐츠 구획과 카드에 적용합니다. */
  --text: #fff; /* 주요 제목 및 본문 색상입니다. */
  --muted: #aab8c8; /* 설명 색상. 지나치게 어둡게 조정하면 가독성이 떨어집니다. */
  --accent: #59c7ff; /* 강조 링크·버튼·포커스 색상입니다. */
  --line: #ffffff21; /* 구분선. 알파를 높이면 선이 더 강하게 보입니다. */
  --content: 1200px; /* 콘텐츠 최대 폭(px). 너무 크게 하면 문장이 길어집니다. */
  --header: 88px; /* 고정 헤더 높이(px). 앵커 스크롤 여백에도 사용합니다. */
  --space: 8px; /* 디자인의 기본 간격(px). 주요 여백은 이 단위로 구성합니다. */
  --font: "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; /* 로컬 폰트 순서. 외부 네트워크 요청 없이 표시합니다. */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 24px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; line-height: 1.7; word-break: keep-all; }
body.menu-open, body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; object-fit: cover; }
figure, p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3, h4 { line-height: 1.15; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
[hidden] { display: none !important; }
.container { width: min(var(--content), calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 16px; padding: 12px 20px; background: var(--accent); color: var(--bg); z-index: 100; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; height: var(--header); z-index: 30; background: #0b1018eb; border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header-inner { height: 100%; display: flex; justify-content: space-between; align-items: center; }
.wordmark { display: inline-flex; align-items: center; font-size: 23px; font-weight: 850; letter-spacing: -.8px; line-height: 1; }
.brand-dot { color: var(--accent); }
.brand-symbol { width: 18px; height: 19px; display: inline-block; margin-right: 12px; background: linear-gradient(135deg, transparent 0 22%, var(--accent) 22% 46%, transparent 46% 54%, var(--accent) 54% 78%, transparent 78%); }
.primary-nav { display: flex; gap: 40px; align-items: center; }
.primary-nav a { font-size: 11px; font-weight: 650; letter-spacing: 1.4px; padding-block: 20px; color: var(--muted); transition: color .2s; }
.primary-nav a:hover, .primary-nav a[aria-current] { color: var(--text); }
.primary-nav a[aria-current]::after { content: ""; display: block; width: 16px; height: 2px; background: var(--accent); position: absolute; margin-top: 8px; }
.primary-nav a:last-child span { margin-left: 12px; color: var(--accent); }
.menu-toggle { background: transparent; border: 1px solid var(--line); color: white; width: 44px; height: 44px; padding: 11px; }
.menu-toggle span { display: block; width: 20px; height: 1px; background: white; margin: 6px 0; }
.hero { min-height: 760px; height: min(850px, calc(100svh - var(--header))); position: relative; display: flex; align-items: center; isolation: isolate; overflow: hidden; }
.hero-art, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-shade { z-index: -1; background: linear-gradient(90deg, #0b1018ab, transparent 80%), linear-gradient(0deg, var(--bg), transparent 28%); }
.hero-content { padding-block: 80px 140px; }
.eyebrow { font-size: 10px; letter-spacing: 2.3px; font-weight: 650; color: var(--accent); line-height: 1.6; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-right: 8px; box-shadow: 0 0 14px #59c7ff88; }
.hero h1 { font-size: clamp(64px, 9.6vw, 138px); letter-spacing: -.065em; font-weight: 850; margin: 32px 0 16px; line-height: .95; }
.hero h1 span { color: var(--accent); }
.hero-tagline { font-size: clamp(24px, 3vw, 40px); font-weight: 350; letter-spacing: -1px; }
.hero-copy { color: var(--muted); font-size: 15px; margin: 24px 0 40px; line-height: 1.9; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; padding: 16px 24px; font-size: 13px; font-weight: 700; min-height: 56px; transition: background .2s, transform .2s; }
.button-primary { background: var(--accent); color: #0b1018; }
.button-primary:hover { background: #96dcff; transform: translateY(-2px); }
.button span { font-size: 20px; line-height: 1; }
.hero-bottom { position: absolute; bottom: 40px; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.scroll-cue { font-size: 9px; letter-spacing: 1.8px; }
.scroll-cue span { display: inline-block; margin-right: 16px; color: var(--accent); font-size: 20px; }
.visual-note { font-size: 9px; letter-spacing: 1px; color: var(--muted); }
.section { padding-block: 112px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; letter-spacing: -1.7px; margin-top: 24px; }
.section-intro { font-size: 14px; color: var(--muted); line-height: 1.8; }
.game-cover { position: relative; display: block; overflow: hidden; background: var(--surface); }
.game-cover img { width: 100%; height: auto; aspect-ratio: 16 / 8; transition: transform .6s; }
.game-cover:hover img { transform: scale(1.025); }
.cover-label { position: absolute; top: 32px; left: 32px; border: 1px solid #59c7ff66; background: #0b1018b0; color: var(--accent); padding: 6px 12px; letter-spacing: 1.4px; font-size: 9px; }
.cover-caption { position: absolute; bottom: 32px; left: 32px; font-size: 10px; color: var(--muted); letter-spacing: 1px; }
.cover-arrow { position: absolute; bottom: 24px; right: 24px; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); background: #0b101880; font-size: 24px; }
.game-summary { padding: 32px 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; border-bottom: 1px solid var(--line); }
.game-summary h3 { font-size: clamp(28px, 3vw, 40px); margin-top: 12px; letter-spacing: -1px; }
.game-summary p:not(.eyebrow) { font-size: 14px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 32px; margin-top: 24px; font-size: 13px; border-bottom: 1px solid var(--accent); padding-bottom: 8px; }
.text-link:hover, .text-link span { color: var(--accent); }
.media-heading { margin: 56px 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.media-heading h3 { font-size: 22px; font-weight: 500; letter-spacing: -.5px; }
.media-heading > span { font-size: 9px; color: var(--muted); letter-spacing: 1.5px; }
.media-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.video-placeholder { position: relative; min-height: 380px; background: radial-gradient(ellipse at center, #1e3147 0, #111a26 62%); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 64px 24px; }
.media-index { position: absolute; top: 24px; left: 24px; font-size: 9px; letter-spacing: 2px; color: var(--muted); }
.film-mark { font-size: 32px; border: 1px solid #59c7ff55; border-radius: 50%; width: 72px; height: 72px; display: grid; place-items: center; color: var(--accent); margin-bottom: 24px; }
.video-placeholder h4 { font-size: 18px; font-weight: 500; }
.video-placeholder p { font-size: 12px; color: var(--muted); margin-top: 12px; }
.availability { font-size: 8px; letter-spacing: 2px; margin-top: 24px; color: var(--muted); }
.gallery-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: center; }
.gallery-item a { display: block; position: relative; overflow: hidden; }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 3 / 4; transition: filter .2s; }
.gallery-item a:hover img { filter: brightness(1.3); }
.gallery-item a > span { position: absolute; bottom: 12px; right: 16px; font-size: 20px; }
.gallery-item figcaption { font-size: 10px; color: var(--muted); margin-top: 12px; }
.about-section { background: #101823; border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.about-grid h2 { font-size: clamp(36px, 4vw, 56px); line-height: 1.3; }
.studio-signature { display: block; margin-top: 56px; color: #8b9bb0; font-size: 9px; letter-spacing: 3px; }
.about-copy > p { color: var(--muted); font-size: 14px; margin-bottom: 24px; line-height: 1.95; }
.about-copy .lead { color: white; font-size: 22px; line-height: 1.65; margin-bottom: 32px; letter-spacing: -.6px; }
.studio-facts { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 48px; }
.studio-facts span { display: block; font-size: 9px; color: var(--muted); letter-spacing: 1.5px; margin-bottom: 8px; }
.studio-facts strong { font-size: 12px; font-weight: 500; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 80px; margin-top: 24px; }
.contact-grid h2 { margin: 0; font-size: clamp(38px, 4.5vw, 64px); font-weight: 450; line-height: 1.12; letter-spacing: -2.5px; }
.contact-grid h2 span { color: var(--accent); }
.contact-grid > div > p { margin-top: 24px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.contact-panel { padding: 32px; border: 1px solid var(--line); border-top-color: var(--accent); background: linear-gradient(125deg, #151e2b, #0e151f); }
.contact-panel h3 { font-size: 24px; font-weight: 500; margin-top: 24px; }
.contact-panel .contact-email { color: var(--text); font-size: 15px; overflow-wrap: anywhere; }
.contact-email a { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.contact-panel .contact-help { font-size: 11px; margin-top: 8px; }
.contact-company { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.site-footer { padding-block: 40px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner .wordmark { font-size: 20px; }
.footer-inner p, .footer-inner > a { font-size: 10px; color: var(--muted); }
.footer-inner div p { margin-top: 12px; }
.muted { color: var(--muted); }
.lightbox { background: var(--bg); border: 1px solid var(--line); color: white; padding: 56px 24px 24px; width: min(1000px, calc(100% - 32px)); max-height: 90svh; }
.lightbox::backdrop { background: #000d; backdrop-filter: blur(8px); }
.lightbox img { max-height: 65svh; width: 100%; height: auto; object-fit: contain; }
.lightbox p { color: var(--muted); font-size: 12px; margin-top: 16px; }
.dialog-close { position: absolute; right: 16px; top: 8px; min-height: 40px; background: transparent; color: white; border: none; padding: 8px; }
/* 상세 페이지는 공통 색상과 간격을 재사용하고 콘텐츠 배치만 별도로 정의합니다. */
.detail-hero { padding-top: 64px; }
.back-link { color: var(--muted); font-size: 12px; display: inline-block; padding-block: 12px; margin-bottom: 48px; }
.detail-title { font-size: clamp(42px, 7vw, 96px); letter-spacing: -.05em; margin: 16px 0 24px; }
.detail-intro { color: var(--muted); max-width: 680px; margin-bottom: 40px; }
.detail-image { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.detail-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; margin-top: 64px; }
.detail-grid p { color: var(--muted); }
.detail-grid p + p { margin-top: 24px; }
.detail-gallery img { aspect-ratio: 16 / 9; }
.partnership-panel { background: var(--surface); padding-inline: 32px; margin-bottom: 72px; }
.partnership-panel .detail-intro { margin-top: 24px; }
.notice-page { min-height: 70svh; max-width: 800px; }
.notice-page h1 { font-size: clamp(30px, 4vw, 48px); margin: 24px 0 32px; }
.notice-page p { color: var(--muted); margin-block: 24px; }
/* 태블릿에서는 이미지 갤러리를 가로로 두고 콘텐츠 열 사이 간격을 줄입니다. */
@media (max-width: 1000px) {
  .container { width: calc(100% - 64px); }
  .primary-nav { gap: 24px; }
  .hero { min-height: 700px; }
  .media-grid { grid-template-columns: 1fr; }
  .gallery-item img { aspect-ratio: 16 / 9; }
  .about-grid, .contact-grid { gap: 40px; }
  .studio-facts { gap: 24px; }
}
/* 모바일 메뉴 기준 680px. main.js의 matchMedia와 함께 변경해야 합니다. */
@media (max-width: 680px) {
  :root { --header: 72px; }
  .container { width: calc(100% - 40px); }
  .wordmark { font-size: 20px; }
  .brand-symbol { width: 14px; margin-right: 8px; }
  .primary-nav { gap: 12px; }
  .primary-nav a { font-size: 9px; letter-spacing: .5px; }
  .primary-nav a:last-child span { display: none; }
  .js .primary-nav { position: fixed; top: var(--header); left: 0; right: 0; padding: 24px; background: #0b1018; border-bottom: 1px solid var(--line); display: none; }
  .js .primary-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .js .primary-nav a { font-size: 14px; padding: 16px; }
  .hero { min-height: 680px; height: calc(100svh - var(--header)); max-height: 800px; }
  .hero-art { object-position: 64% center; opacity: .8; }
  .hero-shade { background: linear-gradient(0deg, var(--bg), transparent 70%), linear-gradient(90deg, #0b101877, transparent); }
  .hero-content { padding-block: 64px 120px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  .hero h1 { font-size: clamp(36px, 12.5vw, 80px); margin-top: 32px; letter-spacing: -.065em; }
  .hero-tagline { font-size: 25px; letter-spacing: -.7px; }
  .hero-copy { font-size: 13px; margin-block: 24px 32px; }
  .hero-bottom { bottom: 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .visual-note { font-size: 8px; letter-spacing: .3px; }
  .section { padding-block: 72px; }
  .section-heading { margin-bottom: 32px; display: block; }
  .section-intro { margin-top: 24px; font-size: 13px; }
  .section-intro br { display: none; }
  h2 { font-size: 30px; }
  .game-cover img { aspect-ratio: 4 / 3; }
  .cover-label { top: 16px; left: 16px; font-size: 8px; }
  .cover-caption { left: 16px; bottom: 16px; font-size: 8px; }
  .cover-arrow { right: 16px; bottom: 16px; width: 32px; height: 32px; font-size: 18px; }
  .game-summary { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .game-summary h3 { font-size: 30px; }
  .game-summary p:not(.eyebrow) { font-size: 13px; }
  .media-heading { margin-top: 40px; flex-wrap: wrap; }
  .media-heading h3 { font-size: 20px; }
  .media-heading > span { font-size: 8px; }
  .video-placeholder { min-height: 300px; }
  .gallery-stack { gap: 12px; }
  .gallery-item figcaption { font-size: 9px; }
  .about-grid, .contact-grid, .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .studio-signature { margin-top: 24px; }
  .about-copy .lead { font-size: 20px; }
  .about-copy > p { font-size: 13px; }
  .contact-grid h2 { font-size: 44px; }
  .contact-panel { padding: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .detail-hero { padding-top: 32px; }
  .back-link { margin-bottom: 32px; }
  .detail-title { font-size: 42px; }
  .detail-grid { margin-top: 40px; }
  /* 스크립트를 끈 경우에도 접힌 메뉴 없이 링크를 모두 보여줍니다. */
  html:not(.js) .site-header { height: auto; }
  html:not(.js) .header-inner { flex-wrap: wrap; gap: 8px; padding-block: 16px; }
}
/* 움직임 감소 설정은 부드러운 스크롤과 호버 이동을 모두 해제합니다. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .button-primary:hover, .game-cover:hover img { transform: none; }
}
/* 사용자 제공 로고의 형태와 비율을 유지합니다. PC 폭 280px, 모바일 폭 216px이며 높이는 원본 비율로 계산합니다.
   폭을 늘릴 때에는 320px 화면의 메뉴 버튼과 겹치지 않는지 확인해야 합니다. */
/* 색상 회전 -55deg는 보라색을 사이트 포인트와 어울리는 하늘색 계열로 바꿉니다.
   채도 1.15배는 푸른색을 살리고 흰 글자는 유지합니다. 값을 과도하게 올리면 가장자리 색이 강해집니다.
   원본 PNG는 수정하지 않으며 이 필터는 헤더 로고에만 적용됩니다. */
.header-logo { width: 280px; height: auto; object-fit: contain; filter: hue-rotate(-55deg) saturate(1.15); }
@media (max-width: 680px) {
  .header-logo { width: 216px; }
}
/* 방침 본문은 최대 860px로 제한합니다. 폭을 늘리면 한 줄이 길어져 읽기 어려워집니다.
   조항 사이 40px, 문단 사이 16px 여백으로 제목과 본문을 구분합니다. */
.privacy-page { max-width: 860px; overflow-wrap: anywhere; }
.privacy-page h1 { font-size: clamp(30px, 4vw, 48px); margin: 24px 0 32px; }
.privacy-page section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.privacy-page h2 { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.5px; line-height: 1.5; margin: 0 0 20px; }
.privacy-page p, .privacy-page li { color: var(--muted); font-size: 15px; line-height: 1.9; }
.privacy-page p + p { margin-top: 16px; }
.privacy-page ul, .privacy-page ol { padding-left: 24px; margin-block: 16px; }
.privacy-page li + li { margin-top: 8px; }
.privacy-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.privacy-page strong { color: var(--text); }
.policy-review { padding: 20px 24px; margin-bottom: 32px; background: var(--surface); border-left: 2px solid var(--accent); color: var(--accent); font-size: 14px; }
.privacy-page .policy-pending { color: var(--accent); }
