@charset "utf-8";
/* -----------------------------------------------
	* 인트로(enter.php) — 화면 가득 별자리 하늘 + 스르륵 나타나는 문구 + click
--------------------------------------------------
	2026-11-19 손질: 틀 · 로고는 빼고(사용자 요청) 화면 전체를 하늘로. 큰 별자리 넷 · 유성 · 반짝임은 캔버스(enter.php),
	위쪽 가운데의 은은한 빛은 .enter::before. 바탕은 홈과 같은 모눈 + 종이 결(노이즈).
	다크·라이트는 사이트와 같은 값(localStorage rc-theme)을 따른다.
--------------------------------------------------*/

:root {
  --e-win: #1c1c1c;
  --e-ink: #ece6d6;
  --e-sub: #c1ae84;
  --e-grid: rgba(236, 230, 214, .045);
  --e-glow: rgba(232, 210, 158, .26);
  --e-grain-win: url("../img/chronicle/grain-dark.png?v=2");
}
html[data-theme="light"] {
  --e-win: #f8f5ee;
  --e-ink: #232323;
  --e-sub: #7a6640;
  --e-grid: rgba(122, 102, 64, .08);
  --e-glow: rgba(214, 176, 92, .3);
  --e-grain-win: url("../img/chronicle/grain-light.png?v=2");
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--e-win);
}
.sound_only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 화면 전체 = 누르면 들어가는 곳 */
.enter {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;   /* 오래된 브라우저용 */
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--e-win);
  background-image:
    var(--e-grain-win),
    linear-gradient(var(--e-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--e-grid) 1px, transparent 1px);
  background-size: 128px 128px, 24px 24px, 24px 24px;
  color: var(--e-ink);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* 위쪽 가운데의 은은한 빛(새벽빛처럼 아주 옅게 번진다) */
.enter::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1400px, 130vw);
  height: 70vh;
  transform: translate(-50%, -38%);
  background: radial-gradient(closest-side, var(--e-glow), transparent);
  pointer-events: none;
  opacity: .9;   /* 움직이지 않는다: 화면 반만 한 빛을 계속 바꾸면 그래픽이 약한 PC 가 버거워한다 */
}
.enter:focus {
  outline: none;
}
.enter:focus-visible .enter-click {
  outline: 2px solid var(--e-sub);
  outline-offset: 6px;
}

.enter-sky {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;   /* 오래된 브라우저용 */
  inset: 0;
  width: 100%;
  height: 100%;
}

.enter-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  text-align: center;
}

/* 문구: 고운바탕(사이트 메인 제목과 같은 글꼴), 줄마다 한 줄 */
.enter-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3em;
  font-family: "Gowun Batang", "Noto Serif KR", serif;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.8;
  color: var(--e-ink);
  word-break: keep-all;
}
.enter-line {
  display: block;
}
/* 글씨부터: 문구 + click 이 한 덩어리로 들어오자마자 아래에서 삭 올라온다(한 번, 1.1초).
   글자마다가 아니라 덩어리 하나만 움직여서 느린 PC 에도 부담이 없다(한 글자씩 쓰는 효과는 뺐다) */
.enter-copy {
  animation: enter-rise 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes enter-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.ch {
  display: inline-block;
  white-space: pre;
}
.ch.sp {
  width: .3em;
}
.w {
  display: inline-block;
  white-space: nowrap;
}

.enter-click {
  font-family: "Gowun Batang", "Noto Serif KR", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--e-sub);
}
/* 깜빡임은 이 PC 가 움직임을 감당한다고 확인된 뒤에만(enter.php 가 .enter-live 를 붙인다) */
.enter-live .enter-click {
  animation: enter-blink 2.4s ease-in-out infinite;
}
.enter:hover .enter-click {
  color: var(--e-ink);
}

@keyframes enter-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
  .enter-copy,
  .enter-click { animation: none !important; }
}

/* 느린 PC 의 웨일: 인트로를 건너뛰는 중에는 아무것도 그리지 않는다(enter.php) */
html.enter-skip .enter { visibility: hidden; }
