/* 몰입형 페이지: 넵바/푸터 기본 숨김 (eyeverse.css는 이 앱에서만 로드) */
nav, .navbar, header.site-header, .site-header, footer, .footer, .site-footer, #footer {
  display: none !important;
}
body { background: #050510; }

/* 자동광고 위치 제어: 헤더/관측 구간엔 광고 삽입 금지 (갤러리 아래는 허용) */
.ev-head ins.adsbygoogle,
.ev-scope ins.adsbygoogle,
.ev-star-card ins.adsbygoogle {
  display: none !important;
}

/* ── 눈빛 천문대: 심우주 잉크블랙 + 별빛 시안 ─────────────────── */
:root {
  --ev-space: #050510;
  --ev-space2: #0c1024;
  --ev-star: #9fd8ff;      /* 별빛 시안 */
  --ev-star-hi: #e3f3ff;
  --ev-violet: #8b7bd8;
  --ev-ink: #e8ecf5;
  --ev-dim: #8fa3c0;
}

.ev-stage {
  position: relative;
  background: radial-gradient(130% 90% at 50% 0%, var(--ev-space2), var(--ev-space) 70%);
  color: var(--ev-ink);
  border-radius: 18px;
  padding: 3rem 1.25rem 4rem;
  overflow: hidden;
  font-family: "Noto Serif KR", "Nanum Myeongjo", serif;
}
.ev-stars {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1.6px 1.6px at 12% 18%, rgba(227,243,255,.9), transparent 60%),
    radial-gradient(1.2px 1.2px at 82% 12%, rgba(227,243,255,.7), transparent 60%),
    radial-gradient(2px 2px at 68% 62%, rgba(159,216,255,.6), transparent 60%),
    radial-gradient(1.4px 1.4px at 28% 74%, rgba(139,123,216,.6), transparent 60%),
    radial-gradient(1.2px 1.2px at 48% 36%, rgba(227,243,255,.55), transparent 60%),
    radial-gradient(1.8px 1.8px at 90% 82%, rgba(159,216,255,.5), transparent 60%);
  animation: evTwinkle 5s ease-in-out infinite alternate;
}
@keyframes evTwinkle { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ev-stars { animation: none; } }

.ev-dash-link {
  position: absolute; top: 1rem; right: 1.1rem; z-index: 10;
  font-size: 1.3rem; text-decoration: none; opacity: .75;
}
.ev-dash-link:hover { opacity: 1; }

.ev-head { text-align: center; max-width: 640px; margin: 0 auto 2rem; position: relative; }
.ev-eyebrow { font-size: .75rem; letter-spacing: .45em; color: var(--ev-star); margin-bottom: .8rem; }
.ev-title {
  font-size: clamp(2.2rem, 7vw, 3.3rem); font-weight: 800;
  background: linear-gradient(180deg, var(--ev-star-hi), var(--ev-star));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: .8rem;
}
.ev-sub { color: var(--ev-dim); line-height: 1.8; }
.ev-sub b { color: var(--ev-star-hi); }

/* ── 관측 렌즈 ── */
.ev-scope { max-width: 420px; margin: 0 auto; text-align: center; position: relative; }
.ev-lens {
  position: relative; width: min(70vw, 300px); aspect-ratio: 1;
  margin: 0 auto; border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(159,216,255,.5);
  box-shadow: 0 0 50px rgba(159,216,255,.2), inset 0 0 40px rgba(5,5,16,.7);
  background: radial-gradient(60% 60% at 35% 30%, #16204a, #0a0d22 70%);
}
.ev-lens-locked { border-color: var(--ev-star); box-shadow: 0 0 70px rgba(159,216,255,.45); }
.ev-lens img, .ev-lens canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-lens-idle, .ev-lens-hint, .ev-lens-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .6rem; padding: 1.4rem;
  text-align: center; color: var(--ev-dim); line-height: 1.7; font-size: .95rem;
}
.ev-lens-idle { z-index: 2; }
.ev-idle-orb {
  width: 46px; height: 46px; border-radius: 50%;
  margin: 0 auto 1.1rem;
  background: radial-gradient(circle at 35% 30%, var(--ev-star-hi), var(--ev-star) 55%, transparent 78%);
  filter: blur(.5px);
  animation: evOrb 3s ease-in-out infinite;
}
@keyframes evOrb { 0%,100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.16); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ev-idle-orb { animation: none; } }

/* hidden 속성이 display:flex에 덮이지 않게 (오버레이 토글 안전장치) */
.ev-lens [hidden] { display: none !important; }
.ev-idle-main { margin: 0 0 .9rem; line-height: 1.9; color: var(--ev-ink); }
.ev-idle-small { margin: 0; font-size: .78rem; line-height: 1.7; opacity: .8; }
.ev-lens-idle b, .ev-lens-hint b { color: var(--ev-star-hi); }
.ev-lens-hint { background: rgba(5,5,16,.55); z-index: 3; pointer-events: none; }
.ev-lens-loading { background: rgba(5,5,16,.6); z-index: 4; color: var(--ev-star-hi); }

.ev-controls { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }
.ev-btn {
  display: inline-block; border: 0; cursor: pointer;
  padding: .75rem 1.5rem; border-radius: 999px;
  font-size: .95rem; font-weight: 700; font-family: inherit;
  transition: transform .15s ease;
}
.ev-btn:focus-visible { outline: 3px solid var(--ev-star-hi); outline-offset: 2px; }
.ev-btn-star {
  background: linear-gradient(180deg, var(--ev-star-hi), var(--ev-star));
  color: #0a1526; box-shadow: 0 4px 18px rgba(159,216,255,.3);
}
.ev-btn-star:hover { transform: translateY(-2px); }
.ev-btn-ghost { background: transparent; color: var(--ev-dim); border: 1px solid rgba(143,163,192,.4); }
.ev-btn-ghost:hover { color: var(--ev-ink); }

.ev-confirm { margin-top: 1.3rem; }
.ev-confirm-title { color: var(--ev-star-hi); margin-bottom: .8rem; font-size: 1rem; }
.ev-consent {
  display: flex; gap: .6rem; text-align: left; align-items: flex-start;
  background: rgba(255,255,255,.04); border: 1px solid rgba(159,216,255,.3);
  border-radius: 12px; padding: .9rem; font-size: .85rem; line-height: 1.7;
  color: var(--ev-dim); cursor: pointer; margin-bottom: 1rem;
}
.ev-consent b { color: var(--ev-star-hi); }
.ev-consent input { margin-top: .25rem; accent-color: var(--ev-star); }
.ev-privacy { color: var(--ev-dim); font-size: .83rem; margin-top: 1.3rem; line-height: 1.7; }
.ev-privacy b { color: var(--ev-star-hi); }
.ev-error { color: #f0b9b9; margin-top: .9rem; font-size: .9rem; }

/* ── 밤하늘 갤러리 ── */
.ev-sky { margin-top: 3.5rem; position: relative; }
.ev-sky-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .6rem; max-width: 860px; margin: 0 auto 1rem; }
.ev-sky-head h2 { font-size: 1.25rem; color: var(--ev-star-hi); }
.ev-sky-head small { color: var(--ev-dim); font-size: .85rem; }
.ev-tabs a {
  color: var(--ev-dim); text-decoration: none; font-size: .9rem;
  padding: .35rem .9rem; border-radius: 999px; border: 1px solid transparent;
}
.ev-tabs a.on { color: var(--ev-star-hi); border-color: rgba(159,216,255,.5); }
.ev-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: .8rem; max-width: 860px; margin: 0 auto;
}
.ev-star {
  position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(159,216,255,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ev-star:hover { transform: scale(1.08); box-shadow: 0 0 24px rgba(159,216,255,.5); z-index: 2; }
.ev-star img { width: 100%; height: 100%; object-fit: cover; }
.ev-star-badge { position: absolute; top: 2px; right: 2px; font-size: .85rem; filter: drop-shadow(0 0 4px #000); }
.ev-star-sparkle {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(5,5,16,.85));
  color: var(--ev-star-hi); font-size: .68rem; text-align: center; padding: .5rem 0 .2rem;
}
.ev-empty { grid-column: 1 / -1; text-align: center; color: var(--ev-dim); padding: 2rem 0; }
.ev-more { text-align: center; margin-top: 1.4rem; }

/* ── 천체 목록 ── */
.ev-celestials { margin-top: 3rem; position: relative; }
.ev-celestials h2 { text-align: center; font-size: 1.15rem; color: var(--ev-star-hi); margin-bottom: 1.2rem; }
.ev-cel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: .7rem; max-width: 860px; margin: 0 auto; }
.ev-cel-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(159,216,255,.2);
  border-radius: 12px; padding: .9rem .8rem; text-align: center;
}
.ev-cel-card span { font-size: 1.5rem; display: block; margin-bottom: .3rem; }
.ev-cel-card b { display: block; font-size: .92rem; }
.ev-cel-card small { color: var(--ev-dim); font-size: .74rem; line-height: 1.5; display: block; margin-top: .25rem; }

/* ── 별 상세 카드 ── */
.ev-star-card {
  position: relative; max-width: 520px; margin: 0 auto; text-align: center;
  border: 1px solid rgba(159,216,255,.4); border-radius: 18px;
  padding: 2.2rem 1.3rem 2.2rem; background: rgba(255,255,255,.02);
  box-shadow: inset 0 0 0 4px var(--ev-space), inset 0 0 0 5px rgba(159,216,255,.25);
}
.ev-star-photo {
  width: min(60vw, 220px); aspect-ratio: 1; margin: 1rem auto 1.2rem;
  border-radius: 50%; overflow: hidden;
  border: 3px solid var(--iris, var(--ev-star));
  box-shadow: 0 0 44px rgba(159,216,255,.35);
}
.ev-star-photo img { width: 100%; height: 100%; object-fit: cover; }
.ev-star-title { font-size: clamp(1.5rem, 6vw, 2.1rem); color: var(--ev-star-hi); margin-bottom: .3rem; }
.ev-star-tagline { color: var(--ev-dim); font-size: .92rem; line-height: 1.7; }

.ev-obs {
  position: relative; border-radius: 14px; margin: 1.6rem 0; padding: 1.6rem 1.3rem 1.4rem;
  background: linear-gradient(160deg, rgba(159,216,255,.14), rgba(139,123,216,.1));
  border: 1px solid rgba(159,216,255,.35);
}
.ev-obs-label { font-size: .7rem; letter-spacing: .5em; color: var(--ev-star); margin-bottom: .7rem; }
.ev-obs-text { font-size: 1.03rem; line-height: 1.9; }

.ev-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }
.ev-sparkle-btn.done { background: rgba(159,216,255,.2); color: var(--ev-star-hi); box-shadow: none; }
.ev-sparkle-btn.pop { animation: evPop .5s ease; }
@keyframes evPop { 40% { transform: scale(1.18); } }
.ev-cta-line { color: var(--ev-dim); font-size: .9rem; margin-top: 1.5rem; }
.ev-cta-line a { color: var(--ev-star-hi); }
.ev-foot-actions { margin-top: 1.6rem; display: flex; gap: 1.2rem; justify-content: center; }
.ev-tiny-link {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  color: var(--ev-dim); font-size: .78rem; text-decoration: underline; opacity: .8;
}


/* ── 간직 문구 ── */
.ev-keep-line {
  color: var(--ev-dim); font-size: .9rem; line-height: 1.8;
  margin-top: 1.5rem; font-style: italic;
}

/* ── 성도(星圖) 섹션 ── */
.ev-atlas-eyebrow {
  text-align: center; font-size: .72rem; letter-spacing: .5em;
  color: var(--ev-violet); margin-bottom: .5rem;
}
.ev-celestials h2 { font-size: 1.5rem; letter-spacing: .05em; }
.ev-hanja {
  font-size: .55em; color: var(--ev-dim); margin-left: .45em;
  vertical-align: .15em; letter-spacing: .2em;
}
.ev-atlas-sub {
  text-align: center; color: var(--ev-dim); font-size: .92rem;
  line-height: 1.8; margin: .3rem 0 1.5rem;
}
