/* 홈 시즌 테마의 '밤하늘' 공통 모양 (templates/shop/themes/<이름>_night.html, 움직임은 static/js/themes/night.js).
   푸터 바로 위에 화면 전체 너비로 짙은 밤색 구역을 두고, 가운데에 금빛 선 그림이 그려진다. 푸터도 같은 밤색으로 이어진다.
   색은 테마 CSS 가 body 에 정한다: --tn-bg (밤색), --tn-msg (문구 색) */
.tn { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 44px 16px 30px; background: var(--tn-bg, #151B2D); }
.tn-art { position: relative; z-index: 1; display: block; width: 489px; height: 440px; max-width: 100%; cursor: pointer; overflow: visible; -webkit-tap-highlight-color: transparent; }
.tn-msg { position: relative; z-index: 1; margin-top: 8px; color: var(--tn-msg, #E9BD73); font-size: 13px; font-weight: 700; letter-spacing: 0.34em; text-indent: 0.34em; transition: opacity 1.2s; }
.tn.is-waiting .tn-msg { opacity: 0; }
/* 밤하늘의 작은 별 (스크립트가 흩뿌린다). 천천히 깜빡인다 */
.tn-sky { position: absolute; inset: 0; pointer-events: none; }
.tn-sky i { position: absolute; border-radius: 50%; background: #fff; opacity: .5; animation: tn-twinkle 4.2s ease-in-out infinite; }
@keyframes tn-twinkle { 0%, 100% { opacity: .55; } 50% { opacity: .15; } }
/* 촛불처럼 일렁이는 것 (할로윈 호박 얼굴). 불규칙하게 조금씩 어두워졌다 밝아진다 */
.tn-candle { opacity: 0; }
.tn-candle.is-lit { opacity: 1; animation: tn-candle 2.6s linear infinite; }
@keyframes tn-candle { 0%, 100% { opacity: 1; } 12% { opacity: .82; } 20% { opacity: .95; } 34% { opacity: .78; } 47% { opacity: 1; } 61% { opacity: .86; } 74% { opacity: .97; } 86% { opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .tn-sky i, .tn-candle.is-lit { animation: none; } }
/* 푸터도 같은 밤색으로 이어진다. 글자는 흰색 */
body:has(#theme-night) .foot { background: var(--tn-bg, #151B2D); border-top-color: var(--tn-bg, #151B2D); color: #fff; }
body:has(#theme-night) .foot-top { border-bottom-color: rgba(255, 255, 255, .16); }
body:has(#theme-night) .foot-info, body:has(#theme-night) .foot-copy, body:has(#theme-night) .foot-credit { color: #fff; }

@media (max-width: 640px) {
  .tn { padding: 34px 16px 24px; }
  .tn-art { width: 333px; height: 300px; }
  .tn-msg { font-size: 12px; }
}
