@font-face {
  font-family: 'GH Display';
  src: url('../fonts/gh-display-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
/* Lenis 가 켜지면(html.lenis) 브라우저 자체 부드러운 스크롤을 끈다 — 둘이 겹치면 튄다 */
html:not(.lenis) { scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  background-color: var(--c-bg);
  background-image: radial-gradient(var(--c-dot) 1.5px, transparent 1.6px);
  background-size: 13px 13px;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* 페이지 바탕: 게임 새 로비의 몽환적인 빛 물결(1–3층 배경)을 어둡게 깔고 그 위에 점무늬. 화면에 고정.
   빛 물결 그림은 페이지 로드가 끝난 뒤(html.is-loaded, main.js·page.js)에 받는다 — 첫 화면 그림과 대역폭을 다투지 않게 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(var(--c-dot) 1.5px, transparent 1.6px) 0 0 / 13px 13px,
    linear-gradient(180deg, rgba(21, 8, 48, .7), rgba(21, 8, 48, .82)) var(--c-bg);
  pointer-events: none;
}
.is-loaded body::before {
  background:
    radial-gradient(var(--c-dot) 1.5px, transparent 1.6px) 0 0 / 13px 13px,
    linear-gradient(180deg, rgba(21, 8, 48, .7), rgba(21, 8, 48, .82)),
    url("../img/bg/aurora-1-1920.webp") center / cover no-repeat var(--c-bg);
}
@media (max-width: 767px) {
  .is-loaded body::before {
    background:
      radial-gradient(var(--c-dot) 1.5px, transparent 1.6px) 0 0 / 13px 13px,
      linear-gradient(180deg, rgba(21, 8, 48, .7), rgba(21, 8, 48, .82)),
      url("../img/bg/aurora-1-960.webp") center / cover no-repeat var(--c-bg);
  }
}

img, picture, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { --container: 820px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: calc(var(--z-nav) + 10);
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--c-text); color: var(--c-bg); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--c-gold-light); outline-offset: 3px; border-radius: 6px; }
::selection { background: #7c4ee6; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
