/* /chatgpt/ 에서 찾기를 누르면 /find/ 가 불러오는 동안 보이는 차분한 시간 여행 연출(2026-11-29).
   별빛 터널과 흔들림, 흰 섬광 없이 시대별 그림이 천천히 겹쳐 바뀌고 연도가 부드럽게 내려간다. */
html.tw-pending { background: #0b0806; }
html.tw-pending body { visibility: hidden; }
.tw-lock, .tw-lock body { overflow: hidden !important; }
.tw { position: fixed; inset: 0; z-index: 10000; overflow: hidden; background: #0b0806; color: #f4ead8; opacity: 1; transition: opacity .9s ease; font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", sans-serif; }
.tw.is-in { opacity: 0; }
.tw.is-bridge { transition: opacity .35s ease; }
.tw.is-out { opacity: 0; pointer-events: none; }
.tw-bgs { position: absolute; inset: 0; }
.tw-bg { position: absolute; inset: -4%; opacity: 0; transition: opacity 1.4s ease; background-size: cover; background-position: center; will-change: opacity, transform; filter: brightness(.5) saturate(.9); }
.tw-bg.is-on { opacity: 1; animation: tw-drift 16s ease-out forwards; }
.tw-bg--now { background-color: #2b1d17; background-image: var(--img-now, linear-gradient(160deg, #3a2a22 0%, #1b120e 60%, #5a3a24 100%)); }
.tw-bg--modern { background-color: #3a2e22; background-image: var(--img-modern, linear-gradient(160deg, #4a3a2a 0%, #20170f 60%, #6b5233 100%)); }
.tw-bg--joseon { background-color: #3a2c1c; background-image: var(--img-joseon, linear-gradient(160deg, #5a4426 0%, #231a10 60%, #7a5a2c 100%)); }
.tw-bg--goryeo { background-color: #1c2e29; background-image: var(--img-goryeo, linear-gradient(160deg, #2f4a42 0%, #101c18 60%, #3f6a5c 100%)); }
.tw-bg--arrive { background-color: #3a2a1e; background-image: var(--img-arrive, linear-gradient(160deg, #5a3f2a 0%, #1e140d 60%, #8a6038 100%)); }
@keyframes tw-drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.2%, -0.8%, 0); } }
.tw-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(8,5,3,.55) 0%, rgba(8,5,3,.35) 45%, rgba(8,5,3,.75) 100%); }
.tw-cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tw-ui { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; padding: 0 20px; }
.tw-title { position: absolute; top: 12vh; margin: 0; font-size: clamp(15px, 1.6vw, 20px); font-weight: 500; letter-spacing: .28em; color: rgba(244,234,216,.85); text-shadow: 0 1px 12px rgba(0,0,0,.6); transition: opacity .6s ease; }
.tw-dots i { font-style: normal; animation: tw-dot 2.4s infinite; opacity: .25; }
.tw-dots i:nth-child(2) { animation-delay: .4s; }
.tw-dots i:nth-child(3) { animation-delay: .8s; }
@keyframes tw-dot { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }
.tw-year { display: flex; justify-content: center; height: 1.05em; margin: 0; font-family: "Nanum Myeongjo", "Noto Serif KR", "Batang", "Songti SC", serif; font-size: clamp(56px, 10vw, 132px); font-weight: 500; line-height: 1.05; letter-spacing: .02em; color: #f8efdc; text-shadow: 0 2px 24px rgba(0,0,0,.65); transition: opacity .6s ease; }
.tw-col { display: block; height: 1.05em; overflow: hidden; font-variant-numeric: tabular-nums; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); }
.tw-strip { display: block; will-change: transform; }
.tw-strip span { display: block; height: 1.05em; text-align: center; }
.tw-name { position: absolute; margin: 0; font-family: "Nanum Myeongjo", "Noto Serif KR", "Batang", serif; font-size: clamp(30px, 5vw, 64px); font-weight: 500; color: #f8efdc; text-shadow: 0 2px 24px rgba(0,0,0,.65); opacity: 0; transition: opacity .7s ease; }
.tw-name.is-on { opacity: 1; }
.tw-sub { position: absolute; margin: 0; top: calc(50% + clamp(36px, 4.4vw, 58px)); max-width: 86vw; font-size: clamp(15px, 1.8vw, 21px); line-height: 1.5; color: rgba(244,234,216,.85); text-shadow: 0 1px 12px rgba(0,0,0,.6); opacity: 0; transition: opacity .7s ease .15s; }
.tw-sub.is-on { opacity: 1; }
.tw-name { max-width: 90vw; text-align: center; word-break: keep-all; }
.tw-date { margin: 8px 0 0; min-height: 1.5em; font-size: clamp(14px, 1.7vw, 20px); letter-spacing: .12em; font-variant-numeric: tabular-nums; color: rgba(244,234,216,.8); text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.tw-era { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 14px 0 0; transition: opacity .5s ease; }
.tw-era-han { font-family: "Nanum Myeongjo", "Noto Serif KR", "Batang", serif; font-size: clamp(20px, 2.6vw, 34px); color: #e8cf9c; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.tw-era-ko { font-size: clamp(15px, 1.8vw, 22px); font-weight: 500; letter-spacing: .08em; color: rgba(244,234,216,.9); }
.tw-who { transition: opacity .6s ease; position: absolute; bottom: 9vh; margin: 0; font-size: clamp(14px, 1.6vw, 18px); color: rgba(244,234,216,.8); text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.tw-skip { position: absolute; top: 20px; right: 20px; padding: 7px 14px; border: 1px solid rgba(244,234,216,.35); border-radius: 999px; background: rgba(0,0,0,.25); color: rgba(244,234,216,.85); font: inherit; font-size: 14px; cursor: pointer; }
.tw-skip:hover { background: rgba(244,234,216,.14); }
.tw-skip:focus-visible { outline: 2px solid #f4ead8; outline-offset: 3px; }
.tw-fade { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .tw, .tw-bg { transition: none; } .tw-bg.is-on { animation: none; } }
