/* 처음 오신 분 안내 (/welcome) — 2026-10-10 Jake: "처음 접속할 때 보여주는 페이지 · 애니메이션 영상 · 바로 시작도"
   왼쪽은 설명, 오른쪽은 짧은 "영상"(CSS 애니메이션 장면). 장면 안의 크기는 화면 너비 기준(cqw)이라 영상처럼 통째로 줄고 는다. */

.wl-body { background:
  radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
  radial-gradient(900px 500px at -10% 110%, color-mix(in srgb, var(--tp-clinic) 8%, transparent), transparent 70%), var(--paper); min-height: 100vh; }
.wl-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.wl-top .wrap { display: flex; align-items: center; gap: 14px; height: 58px; }
.wl-top .nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.wl-skip { gap: 6px; font-weight: 700; }

.wl { padding: 8px 0 48px; }
.wl-prog { list-style: none; margin: 10px 0 18px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.wl-prog button { display: block; width: 100%; padding: 10px 0; border: 0; background: none; cursor: pointer; }
.wl-prog .bar { display: block; height: 4px; border-radius: 3px; background: var(--line); overflow: hidden; }
.wl-prog .bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; }
.wl-prog li.done .bar i { width: 100%; }
.wl-prog button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wl-stage { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.45fr); gap: clamp(24px, 4vw, 56px); align-items: center; min-height: min(640px, calc(100vh - 150px)); }
.wl-kick { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 700; color: var(--accent); }
.wl-kick span { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--accent-2); color: var(--accent); font-variant-numeric: tabular-nums; }
.wl-text h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.22; letter-spacing: -.025em; margin: 12px 0 14px; word-break: keep-all; }
.wl-p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.wl-b { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.wl-b li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.wl-b li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--accent-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a64d6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
html[data-theme="dark"] .wl-b li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a95f5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.wl-b li.warn { color: var(--warn); font-weight: 600; }
.wl-b li.warn::before { background: color-mix(in srgb, var(--warn) 16%, var(--paper)); content: "!"; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: var(--warn); }
.wl-nav { display: flex; gap: 8px; margin-top: 28px; }
.wl-nav .btn { min-width: 96px; justify-content: center; }
.wl-keys { margin: 14px 0 0; color: var(--ink-3); }
.wl-cta { display: grid; gap: 8px; margin-top: 24px; max-width: 360px; }
.wl-cta .sso-g { margin: 0; }
.wl-note { margin: 4px 0 0; color: var(--ink-3); }
.wl-text.swap > * { animation: wlUp .5s cubic-bezier(.2, .7, .2, 1) both; }
.wl-text.swap > :nth-child(2) { animation-delay: .05s; } .wl-text.swap > :nth-child(3) { animation-delay: .1s; } .wl-text.swap > :nth-child(4) { animation-delay: .15s; } .wl-text.swap > :nth-child(5) { animation-delay: .2s; }
@keyframes wlUp { from { opacity: 0; transform: translateY(10px); } }

/* ── 영상 틀 ── */
.wl-video { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); box-shadow: 0 30px 70px -30px rgba(16, 40, 90, .35), 0 2px 6px rgba(16, 24, 40, .06); }
html[data-theme="dark"] .wl-video { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); }
.wl-chrome { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.wl-chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.wl-url { margin: 0 auto; padding: 2px 14px; border-radius: 6px; background: var(--paper); color: var(--ink-3); font-size: 11.5px; transform: translateX(-20px); }
.wl-screen { position: relative; aspect-ratio: 16 / 10; container-type: inline-size; overflow: hidden; background: var(--paper); cursor: pointer; }
.wl-ctrl { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-top: 1px solid var(--line); background: var(--paper-2); }
.wl-pp { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; flex: none; }
.wl-pp svg { width: 14px; height: 14px; fill: currentColor; }
.wl-pp .i-replay { fill: none; }
.wl-pp .i-play, .wl-pp .i-replay { display: none; }
.wl-video.paused .wl-pp .i-pause { display: none; } .wl-video.paused .wl-pp .i-play { display: block; }
.wl-video.ended .wl-pp .i-pause, .wl-video.ended .wl-pp .i-play { display: none; } .wl-video.ended .wl-pp .i-replay { display: block; }
.wl-time { flex: 1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.wl-time i { display: block; height: 100%; width: 0; background: var(--accent); }
.wl-clock { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }

/* ── 장면 공통 ── */
.sc { position: absolute; inset: 0; visibility: hidden; font-size: max(9px, 1.7cqw); color: var(--ink); }
.sc.on { visibility: visible; animation: scIn .45s ease both; }
@keyframes scIn { from { opacity: 0; } }
.sc:not(.play) *, .sc:not(.play)::before, .sc:not(.play)::after { animation: none !important; }
.wl-video.paused .sc *, .wl-video.paused .sc::before, .wl-video.paused .sc::after { animation-play-state: paused !important; }
.sc svg { display: block; }
.cur { position: absolute; z-index: 9; width: 3.4cqw; height: 3.4cqw; fill: #0d1726; stroke: #fff; stroke-width: 1.4; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); pointer-events: none; }
html[data-theme="dark"] .cur { fill: #fff; stroke: #0d1726; }
.av { display: inline-grid; place-items: center; width: 3.6cqw; height: 3.6cqw; border-radius: 50%; font-weight: 800; font-size: .95em; background: color-mix(in srgb, var(--accent) 16%, var(--paper)); color: var(--accent); flex: none; }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(2.4cqw); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes click { 0%, 100% { transform: scale(1); } 50% { transform: scale(.82); } }

/* 1 — 환영 */
.s1 { background: radial-gradient(60% 70% at 50% 46%, color-mix(in srgb, var(--accent) 14%, var(--paper)), var(--paper) 72%); }
.s1 .h3d { position: absolute; inset: 7% 14% 12%; }
.s1 .h3d .h3d-canvas { opacity: 0; transition: opacity .7s ease; }   /* 정지 그림 없이 — 3D 가 준비되면 서서히 (2026-10-10 Jake) */
.s1 .h3d.live .h3d-canvas { opacity: 1; }
.s1 .h3d .h3d-poster { object-fit: contain; border-radius: 2cqw; }   /* WebGL 이 없을 때만 넣는 그림 */
.s1-scan { position: absolute; left: 3cqw; top: 3cqw; display: inline-flex; align-items: center; gap: .8cqw; padding: .6cqw 1.4cqw; border-radius: 99px; background: color-mix(in srgb, var(--paper) 80%, transparent); border: 1px solid var(--line); font-size: max(8px, 1.3cqw); font-weight: 800; letter-spacing: .14em; color: var(--accent); }
.s1-scan i { width: 1cqw; height: 1cqw; border-radius: 50%; background: var(--accent); animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.s1-chips span { position: absolute; display: inline-flex; align-items: center; gap: .7cqw; padding: .8cqw 1.6cqw; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 1cqw 2.4cqw -1cqw rgba(16, 40, 90, .35); font-weight: 700; white-space: nowrap; color: var(--tp, var(--ink)); opacity: 0; animation: pop .6s cubic-bezier(.2, .8, .2, 1.2) both, bob 4s ease-in-out infinite; }
.s1-chips span .ti { width: 1.8cqw; height: 1.8cqw; }
.s1-chips span:nth-child(1) { left: 6%; top: 22%; animation-delay: 1.2s, 1.8s; }
.s1-chips span:nth-child(2) { right: 6%; top: 18%; animation-delay: 1.6s, 2.2s; }
.s1-chips span:nth-child(3) { left: 3%; top: 56%; animation-delay: 2s, 2.6s; }
.s1-chips span:nth-child(4) { right: 3%; top: 50%; animation-delay: 2.4s, 3s; }
.s1-chips span:nth-child(5) { left: 16%; bottom: 10%; animation-delay: 2.8s, 3.4s; }
.s1-chips span:nth-child(6) { right: 15%; bottom: 13%; animation-delay: 3.2s, 3.8s; }
@keyframes bob { 50% { transform: translateY(-.8cqw); } }
.s1-logo { position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; font-size: max(9px, 1.5cqw); font-weight: 700; letter-spacing: .3em; color: var(--ink-2); animation: fadeIn 1s 4s both; }
.s1-logo b { color: var(--accent); letter-spacing: .12em; }
.s1-credit { position: absolute; right: 1.6cqw; top: 1.4cqw; font-size: max(8px, 1.05cqw); color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; z-index: 3; }

/* 2 — 둘러보기 */
.s2 { background: var(--paper-2); }
.m-bar { position: absolute; left: 0; right: 0; top: 0; height: 6.4cqw; display: flex; align-items: center; gap: 1.6cqw; padding: 0 4cqw; background: var(--paper); border-bottom: 1px solid var(--line); }
.m-bar b { color: var(--accent); font-size: 1.05em; letter-spacing: .02em; margin-right: auto; }
.m-bar span { width: 7cqw; height: 1.4cqw; border-radius: 1cqw; background: var(--line); }
.m-bar .m-write { width: 9cqw; height: 3.2cqw; border-radius: 2cqw; background: var(--ink); }
.s2-chips { position: absolute; left: 4cqw; top: 9.6cqw; display: grid; grid-template-columns: repeat(6, 13cqw); gap: 1.2cqw; }
.s2-chips span { height: 4.4cqw; display: flex; align-items: center; justify-content: center; gap: .6cqw; border-radius: 99px; border: 1px solid var(--line-2); background: var(--paper); font-size: max(8px, 1.35cqw); font-weight: 700; white-space: nowrap; overflow: hidden; color: var(--ink); animation: rise .45s both; }
.s2-chips span .ti { width: 1.6cqw; height: 1.6cqw; color: var(--tp); flex: none; }
.s2-chips span:nth-child(2) { animation: rise .45s both, chipOn .3s 1.7s both; }
@keyframes chipOn { to { border-color: var(--tp); background: color-mix(in srgb, var(--tp) 14%, var(--paper)); color: var(--tp); } }
.s2-chips span:nth-child(n) { animation-delay: calc(var(--i) * .06s); }
.s2-chips span:nth-child(2) { animation-delay: .06s, 1.7s; }
.s2-grid { position: absolute; left: 4cqw; right: 4cqw; top: 17.4cqw; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.s2-card { background: var(--paper); border: 1px solid var(--line); border-radius: 1.4cqw; overflow: hidden; animation: pop .5s cubic-bezier(.2, .8, .2, 1.1) both; animation-delay: calc(.35s + var(--i) * .14s); }
.s2-card .th { height: 12.4cqw; background: color-mix(in srgb, var(--tp, var(--accent)) 18%, var(--paper-2)); position: relative; }
.s2-card .th img { width: 100%; height: 100%; object-fit: cover; }
.s2-card .th .tp { position: absolute; left: .8cqw; top: .8cqw; height: auto; padding: .3cqw .9cqw; font-size: max(7px, 1.05cqw); }
.s2-card .bd { padding: 1cqw 1.2cqw 1.1cqw; }
.s2-card .tt { font-size: max(8px, 1.3cqw); font-weight: 700; line-height: 1.3; height: 3.4cqw; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.s2-card .mt { display: flex; align-items: center; justify-content: space-between; margin-top: .6cqw; font-size: max(7px, 1.15cqw); color: var(--ink-3); }
.s2-card .mt .hrt { display: inline-flex; align-items: center; gap: .4cqw; }
.s2-card .mt .hrt svg { width: 1.4cqw; height: 1.4cqw; fill: currentColor; }
.s2-card:nth-child(2) { animation: pop .5s cubic-bezier(.2, .8, .2, 1.1) both, lift .5s 5.2s both; animation-delay: .49s, 5.2s; }
.s2-card:nth-child(2) .hrt { animation: likeOn .2s 4.2s both; }
@keyframes likeOn { to { color: #e5484d; } }
@keyframes lift { to { transform: translateY(-1.2cqw) scale(1.03); box-shadow: 0 2.4cqw 4cqw -2cqw rgba(16, 40, 90, .45); border-color: var(--accent); } }
.s2-heart { position: absolute; left: 57.4cqw; top: 31.6cqw; display: flex; align-items: center; gap: .3cqw; color: #e5484d; font-weight: 900; opacity: 0; animation: heart 1.2s 4.2s both; }
.s2-heart svg { width: 3cqw; height: 3cqw; fill: currentColor; }
@keyframes heart { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1.25); } 70% { opacity: 1; transform: translateY(-2.4cqw) scale(1); } 100% { opacity: 0; transform: translateY(-4cqw); } }
.s2-cur { left: 86cqw; top: 54cqw; animation: s2cur 6.2s .4s both; }
@keyframes s2cur {
  0% { left: 86cqw; top: 54cqw; }
  18% { left: 23.6cqw; top: 11.2cqw; transform: none; }
  21% { transform: scale(.82); } 24% { transform: none; }
  52% { left: 58.6cqw; top: 35.4cqw; transform: none; }
  57% { transform: scale(.82); } 60% { transform: none; }
  100% { left: 62cqw; top: 40cqw; }
}

/* 3 — 3D 로 보기 */
.s3 { background: radial-gradient(70% 80% at 50% 50%, #f4f7fd, #dfe8f6); color: #15202b; }
.s3-tools { position: absolute; z-index: 3; left: 2.4cqw; top: 50%; transform: translateY(-50%); display: grid; gap: .8cqw; padding: 1cqw; border-radius: 1.6cqw; background: rgba(255, 255, 255, .92); box-shadow: 0 1cqw 3cqw -1cqw rgba(16, 40, 90, .35); }
.s3-tools span { display: grid; justify-items: center; gap: .3cqw; width: 7cqw; padding: .9cqw 0 .7cqw; border-radius: 1cqw; color: #4a5868; font-size: max(7px, 1.1cqw); font-weight: 700; }
.s3-tools svg { width: 2.6cqw; height: 2.6cqw; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s3-tools .t1 { animation: toolOn 2.6s .1s both; } .s3-tools .t2 { animation: toolOn 2.6s 2.9s both; } .s3-tools .t3 { animation: toolOn 2.8s 5.5s both; }
@keyframes toolOn { 0%, 100% { background: transparent; color: #4a5868; } 6%, 94% { background: #1a64d6; color: #fff; } }
.s3-gl { position: absolute; inset: 0; }
.s3-gl .s3-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.s3-gl img { width: 100%; height: 100%; object-fit: cover; }   /* WebGL 이 없을 때만 */
.s3 { --ax: 38cqw; --ay: 34cqw; --bx: 60cqw; --by: 34cqw; --len: 22cqw; --ang: 0deg; --mx: 78cqw; --my: 24cqw; }
.s3.nogl .s3-line, .s3.nogl .s3-dot, .s3.nogl .s3-len { display: none; }
.s3-line { position: absolute; z-index: 2; left: var(--ax); top: var(--ay); width: var(--len); height: 2px; margin-top: -1px; background: #e5484d; box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); transform-origin: 0 50%; transform: rotate(var(--ang)) scaleX(0); animation: s3draw .9s 3.3s ease-out forwards; border-radius: 2px; }
@keyframes s3draw { to { transform: rotate(var(--ang)) scaleX(1); } }
.s3-dot { position: absolute; z-index: 3; width: 1.6cqw; height: 1.6cqw; min-width: 9px; min-height: 9px; border-radius: 50%; background: #fff; border: 2px solid #e5484d; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px rgba(229, 72, 77, .18); opacity: 0; animation: pop .25s both; }
.s3-dot.a { left: var(--ax); top: var(--ay); animation-delay: 3.2s; } .s3-dot.b { left: var(--bx); top: var(--by); animation-delay: 4.1s; }
.s3-len { position: absolute; z-index: 4; left: calc((var(--ax) + var(--bx)) / 2); top: calc((var(--ay) + var(--by)) / 2 - 2.2cqw); padding: .4cqw 1.2cqw; border-radius: .8cqw; background: #e5484d; color: #fff; font-weight: 800; font-size: max(8px, 1.4cqw); white-space: nowrap; transform: translate(-50%, -100%); animation: pop .4s 4.2s both; }
.s3-pin { position: absolute; z-index: 3; left: calc(var(--mx) - 1.2cqw); top: calc(var(--my) - 3cqw); display: flex; align-items: flex-start; gap: .6cqw; animation: pin .5s 5.9s cubic-bezier(.2, .8, .2, 1.3) both; }
.s3-pin i { width: 2.4cqw; height: 2.4cqw; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #f5a524; box-shadow: 0 .4cqw .8cqw rgba(0, 0, 0, .25); flex: none; }
.s3-pin b { padding: .6cqw 1.2cqw; border-radius: 1cqw; background: #fff; box-shadow: 0 1cqw 2cqw -1cqw rgba(0, 0, 0, .35); font-size: max(8px, 1.3cqw); white-space: nowrap; animation: fadeIn .3s 6.4s both; }
@keyframes pin { from { opacity: 0; transform: translateY(-4cqw); } to { opacity: 1; transform: none; } }
.s3-cur { left: 60cqw; top: 46cqw; fill: #0d1726 !important; stroke: #fff !important; animation: s3cur 7.6s .2s both; }
@keyframes s3cur {
  0% { left: 60cqw; top: 46cqw; } 12% { left: 42cqw; top: 44cqw; } 26% { left: 66cqw; top: 42cqw; } 34% { left: 50cqw; top: 46cqw; }
  40% { left: var(--ax); top: var(--ay); transform: none; } 42% { transform: scale(.82); } 44% { transform: none; }
  52% { left: var(--bx); top: var(--by); transform: none; } 54% { transform: scale(.82); } 56% { transform: none; }
  74% { left: var(--mx); top: var(--my); transform: none; } 77% { transform: scale(.82); } 80% { transform: none; }
  100% { left: calc(var(--mx) + 6cqw); top: calc(var(--my) + 14cqw); }
}


/* 4 — 올리기 */
.s4 { background: var(--paper-2); }
.s4-form { position: absolute; left: 4cqw; top: 4cqw; width: 54cqw; bottom: 4cqw; display: flex; flex-direction: column; gap: 1.6cqw; padding: 2.4cqw; border-radius: 1.8cqw; background: var(--paper); border: 1px solid var(--line); }
.s4-drop { display: flex; align-items: center; justify-content: center; gap: 1cqw; height: 9cqw; border: .25cqw dashed var(--line-2); border-radius: 1.4cqw; color: var(--ink-2); font-weight: 600; animation: dropOn 1s .3s both; }
.s4-drop svg { width: 2.8cqw; height: 2.8cqw; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes dropOn { 30%, 70% { border-color: var(--accent); background: var(--accent-2); color: var(--accent); } }
.s4-files { display: grid; gap: .8cqw; }
.s4-files span { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1cqw; align-items: center; padding: .8cqw 1.2cqw; border-radius: 1cqw; background: var(--paper-2); font-weight: 600; font-size: max(8px, 1.3cqw); animation: rise .4s both; }
.s4-files i { grid-row: span 2; font-style: normal; font-size: max(7px, 1cqw); font-weight: 900; padding: .5cqw .7cqw; border-radius: .6cqw; background: var(--accent); color: var(--accent-ink); }
.s4-files u { display: block; height: .6cqw; margin-top: .5cqw; border-radius: 1cqw; background: var(--line); overflow: hidden; }
.s4-files em { display: block; height: 100%; width: 0; background: var(--ok); animation: fill 1.4s ease-out both; }
.s4-files .f1 { animation-delay: .9s; } .s4-files .f1 em { animation-delay: 1.1s; }
.s4-files .f2 { animation-delay: 1.2s; } .s4-files .f2 em { animation-delay: 1.5s; }
@keyframes fill { to { width: 100%; } }
.s4-title { height: 4.6cqw; display: flex; align-items: center; padding: 0 1.4cqw; border: 1px solid var(--line-2); border-radius: 1cqw; font-weight: 700; overflow: hidden; white-space: nowrap; }
.s4-title span { clip-path: inset(0 100% 0 0); animation: type 1.3s 3.6s steps(18) both; }
@keyframes type { to { clip-path: inset(0 0 0 0); } }
.s4-vis { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: .5cqw; border-radius: 1.2cqw; background: var(--paper-2); }
.s4-vis span { position: relative; z-index: 1; text-align: center; padding: .7cqw 0; font-weight: 700; font-size: max(8px, 1.25cqw); color: var(--ink-2); }
.s4-vis span.on { animation: visOn .3s 5.3s both; }
@keyframes visOn { to { color: var(--accent); } }
.s4-vis i { position: absolute; top: .5cqw; bottom: .5cqw; left: .5cqw; width: calc((100% - 1cqw) / 3); border-radius: .9cqw; background: var(--paper); box-shadow: 0 .3cqw .8cqw rgba(16, 24, 40, .12); animation: visMove .45s 5.2s cubic-bezier(.3, .8, .3, 1) both; }
@keyframes visMove { to { left: calc(.5cqw + (100% - 1cqw) / 3); } }
.s4-btn { margin-top: auto; align-self: flex-end; padding: 1cqw 3.4cqw; border-radius: 1cqw; background: var(--accent); color: var(--accent-ink); font-weight: 800; animation: click .3s 6.2s both; }
.s4-thumb { position: absolute; right: 4cqw; top: 4cqw; width: 30cqw; height: 24cqw; border-radius: 1.6cqw; overflow: hidden; background: var(--paper); border: 1px solid var(--line); animation: pop .5s 3s both; }
.s4-thumb img { width: 100%; height: 100%; object-fit: cover; }
.s4-thumb .flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: flash .6s 3.2s both; }
@keyframes flash { 20% { opacity: .9; } 100% { opacity: 0; } }
.s4-thumb b { position: absolute; left: 1cqw; bottom: 1cqw; padding: .4cqw 1cqw; border-radius: .8cqw; background: rgba(13, 23, 38, .75); color: #fff; font-size: max(7px, 1.1cqw); }
.s4-toast { position: absolute; left: 81cqw; top: 31cqw; display: flex; align-items: center; gap: .8cqw; padding: 1.2cqw 2.4cqw; border-radius: 99px; background: var(--ink); color: var(--paper); font-weight: 800; white-space: nowrap; transform: translateX(-50%); animation: toast .5s 6.6s cubic-bezier(.2, .8, .2, 1.2) both; }
.s4-toast svg { width: 2cqw; height: 2cqw; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 3cqw); } to { opacity: 1; transform: translate(-50%, 0); } }
.s4-cur { left: 80cqw; top: 50cqw; animation: s4cur 6.6s .1s both; }
@keyframes s4cur {
  0% { left: 80cqw; top: 50cqw; } 10% { left: 31cqw; top: 9cqw; } 18% { left: 31cqw; top: 9cqw; }
  50% { left: 30cqw; top: 26cqw; } 74% { left: 31cqw; top: 41cqw; transform: none; } 77% { transform: scale(.82); } 80% { transform: none; }
  92% { left: 50cqw; top: 54cqw; transform: none; } 95% { transform: scale(.82); } 100% { left: 50cqw; top: 54cqw; transform: none; }
}

/* 5 — 묻고 답하기 */
.s5 { background: var(--paper-2); padding: 3.4cqw 5cqw; display: flex; flex-direction: column; gap: 1.4cqw; }
.s5-q { display: flex; flex-wrap: wrap; align-items: center; gap: 1cqw; padding: 2cqw 2.4cqw; border-radius: 1.6cqw; background: var(--paper); border: 1px solid var(--line); animation: rise .45s .1s both; }
.s5-q b { flex: 1 1 100%; font-size: max(10px, 2cqw); line-height: 1.3; order: 2; }
.s5-q .tp { height: auto; padding: .4cqw 1.1cqw; font-size: max(7px, 1.15cqw); order: 1; }
.s5-q .tp .ti { width: 1.4cqw; height: 1.4cqw; }
.s5-solved { order: 1; padding: .4cqw 1.1cqw; border-radius: .7cqw; background: color-mix(in srgb, var(--ok) 14%, var(--paper)); color: var(--ok); font-weight: 800; font-size: max(7px, 1.15cqw); animation: pop .45s 5.4s both; }
.s5-a { display: flex; gap: 1.2cqw; align-items: flex-start; padding: 1.4cqw 1.8cqw; border-radius: 1.4cqw; background: var(--paper); border: 1px solid var(--line); animation: rise .45s both; }
.s5-a .av { width: 3.8cqw; height: 3.8cqw; }
.s5-a .who { margin: 0 0 .3cqw; display: flex; align-items: center; gap: .8cqw; font-weight: 800; font-size: max(8px, 1.3cqw); }
.s5-a .who .lv { height: auto; padding: .1cqw .6cqw; font-size: max(7px, 1cqw); font-style: normal; }
.s5-a p { margin: 0; line-height: 1.45; font-size: max(8px, 1.4cqw); }
.s5-a.a1 { animation-delay: 1s; } .s5-a.a2 { animation-delay: 2.1s; } .s5-a.a3 { animation-delay: 3.2s; }
.s5-a.a3 { animation: rise .45s 3.2s both, accBorder .3s 4.8s both; }
@keyframes accBorder { to { border-color: var(--ok); box-shadow: 0 0 0 .3cqw color-mix(in srgb, var(--ok) 18%, transparent); } }
.s5-acc { display: inline-flex; align-items: center; gap: .4cqw; padding: .2cqw .9cqw; border-radius: .7cqw; background: var(--ok); color: #fff; font-size: max(7px, 1.05cqw); animation: pop .4s 4.8s both; }
html[data-theme="dark"] .s5-acc { color: #06200f; }
.s5-acc svg { width: 1.3cqw; height: 1.3cqw; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.s5-pts { position: absolute; right: 7cqw; bottom: 9cqw; font-weight: 900; font-size: max(11px, 2.6cqw); color: var(--ok); animation: ptsUp 1.6s 5.6s both; }
@keyframes ptsUp { 0% { opacity: 0; transform: translateY(2cqw) scale(.7); } 25% { opacity: 1; transform: scale(1.1); } 80% { opacity: 1; transform: translateY(-1.6cqw); } 100% { opacity: 0; transform: translateY(-3cqw); } }

/* 6 — 명예의 전당 */
@property --n { syntax: '<integer>'; inherits: false; initial-value: 0; }
.s6 { background: radial-gradient(70% 90% at 70% 30%, color-mix(in srgb, var(--gold-line, #f0d48a) 40%, var(--paper)), var(--paper-2) 70%); }
.s6-me { position: absolute; left: 4cqw; top: 5cqw; width: 30cqw; padding: 2.4cqw; border-radius: 1.8cqw; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 1.2cqw; justify-items: start; animation: rise .45s both; }
.s6-av { width: 6.4cqw; height: 6.4cqw; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: max(11px, 2.6cqw); background: color-mix(in srgb, var(--accent) 16%, var(--paper)); color: var(--accent); }
.s6-pts { display: flex; align-items: baseline; gap: .6cqw; }
.s6-n { font-size: max(16px, 4.6cqw); font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; --n: 120; counter-reset: n var(--n); animation: count 2.8s .6s cubic-bezier(.2, .7, .2, 1) both; }
.s6-n::after { content: counter(n); }
@keyframes count { from { --n: 0; } to { --n: 120; } }
.s6-pts span { font-weight: 800; color: var(--ink-2); }
.s6-lv { position: relative; height: 2.6cqw; }
.s6-lv .lv { position: absolute; left: 0; top: 0; height: 2.6cqw; padding: 0 1cqw; font-size: max(8px, 1.3cqw); font-style: normal; white-space: nowrap; }
.s6-lv .l1 { animation: lvOut .3s 3.4s both; } .s6-lv .l2 { animation: pop .5s 3.5s both; }
@keyframes lvOut { to { opacity: 0; transform: scale(.6); } }
.s6-bar { width: 100%; height: 1cqw; border-radius: 1cqw; background: var(--line); overflow: hidden; }
.s6-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lv1, #2b7d35), var(--lv2, #a8561c)); animation: fill 2.8s .6s cubic-bezier(.2, .7, .2, 1) both; }
.s6-card { position: absolute; left: 38cqw; top: 5cqw; width: 28cqw; border-radius: 1.8cqw; overflow: hidden; background: var(--paper); border: 1px solid var(--line); animation: rise .45s .3s both, goldRing .5s 4.4s both; }
@keyframes goldRing { to { box-shadow: 0 0 0 .3cqw var(--gold-line, #f0d48a), 0 2.4cqw 5cqw -2cqw rgba(160, 110, 0, .45); } }
.s6-th { position: relative; height: 18cqw; }
.s6-th img { width: 100%; height: 100%; object-fit: cover; }
.s6-rib { position: absolute; top: 1cqw; right: 1cqw; display: inline-flex; align-items: center; gap: .3cqw; height: 3.4cqw; padding: 0 1.1cqw; border-radius: 99px; font-weight: 900; color: #4a3200; background: linear-gradient(135deg, #ffe08a, #f5b72e); box-shadow: 0 .6cqw 1.6cqw rgba(0, 0, 0, .25); animation: drop .6s 4.2s cubic-bezier(.2, .8, .2, 1.3) both; }
.s6-rib svg { width: 1.8cqw; height: 1.8cqw; fill: currentColor; }
@keyframes drop { from { opacity: 0; transform: translateY(-5cqw) rotate(-12deg); } to { opacity: 1; transform: none; } }
.s6-badges { display: flex; flex-wrap: wrap; gap: .8cqw; padding: 1.4cqw; }
.s6-badges .hon, .s6-badges .mile { height: auto; padding: .4cqw 1cqw; font-size: max(7px, 1.15cqw); }
.s6-badges .hon { animation: pop .45s 4.8s both; }
.s6-badges .mile { position: relative; overflow: hidden; animation: pop .45s 5.3s both; }
.s6-badges .mile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); transform: translateX(-120%); animation: shine 1.2s 5.9s both; }
@keyframes shine { to { transform: translateX(120%); } }
.s6-rank { position: absolute; right: 4cqw; top: 5cqw; width: 26cqw; list-style: none; margin: 0; padding: 1.4cqw; border-radius: 1.8cqw; background: var(--paper); border: 1px solid var(--line); display: grid; gap: .6cqw; font-size: max(8px, 1.3cqw); }
.s6-rank li { display: flex; align-items: center; gap: 1cqw; padding: .8cqw; border-radius: 1cqw; font-weight: 700; animation: rise .4s both; }
.s6-rank li:nth-child(1) { animation-delay: 1s; background: color-mix(in srgb, #f5b72e 14%, var(--paper)); } .s6-rank li:nth-child(2) { animation-delay: 1.25s; } .s6-rank li:nth-child(3) { animation-delay: 1.5s; }
.s6-rank li > b { width: 2.6cqw; font-variant-numeric: tabular-nums; }
.s6-rank li:nth-child(1) > b { color: var(--gold, #805800); } .s6-rank li:nth-child(2) > b { color: var(--ink-2); } .s6-rank li:nth-child(3) > b { color: #9a5a22; }
html[data-theme="dark"] .s6-rank li:nth-child(3) > b { color: #e09a5c; }
.s6-rank li em { margin-left: auto; font-style: normal; color: var(--ink-2); font-size: .9em; }
.s6-rank .av { width: 3cqw; height: 3cqw; }

/* 7 — 시작 */
.s7 { background: radial-gradient(55% 70% at 50% 50%, color-mix(in srgb, var(--accent) 16%, var(--paper)), var(--paper) 75%); }
.s7-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22cqw; height: 22cqw; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: .4cqw; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 0 0 1.6cqw color-mix(in srgb, var(--accent) 10%, transparent), 0 2cqw 5cqw -2cqw rgba(16, 40, 90, .4); animation: corePop .7s .1s cubic-bezier(.2, .8, .2, 1.2) both, pulse 3s 1s ease-in-out infinite; }
.s7-core b { color: var(--accent); font-size: max(13px, 3cqw); letter-spacing: .04em; }
.s7-core span { font-size: max(7px, 1.1cqw); font-weight: 700; letter-spacing: .26em; color: var(--ink-2); }
@keyframes corePop { from { opacity: 0; transform: translate(-50%, -50%) scale(.5); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 2.8cqw color-mix(in srgb, var(--accent) 6%, transparent), 0 2cqw 5cqw -2cqw rgba(16, 40, 90, .4); } }
.s7-orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: spin 26s linear infinite; }
.s7-orbit span { position: absolute; left: 0; top: 0; width: 7.6cqw; height: 7.6cqw; margin: -3.8cqw 0 0 -3.8cqw; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--tp); box-shadow: 0 1cqw 2.4cqw -1cqw rgba(16, 40, 90, .35);
  transform: rotate(calc(var(--i) * 60deg)) translateX(20cqw) rotate(calc(var(--i) * -60deg)); animation: orbIn .6s both; animation-delay: calc(.4s + var(--i) * .12s); }
.s7-orbit span .ti { width: 3cqw; height: 3cqw; animation: spin 26s linear infinite reverse; }
@keyframes orbIn { from { opacity: 0; transform: rotate(calc(var(--i) * 60deg)) translateX(4cqw) rotate(calc(var(--i) * -60deg)) scale(.4); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* 폰 — 영상이 위, 설명이 아래 */
@media (max-width: 900px) {
  .wl-stage { grid-template-columns: 1fr; gap: 18px; min-height: 0; align-items: start; }
  .wl-video { order: -1; border-radius: 14px; }
  .wl-chrome { display: none; }
  .wl-text h1 { margin: 8px 0 10px; }
  .wl-p { font-size: 15px; }
  .wl-keys { display: none; }
  .wl-nav { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); margin-top: 18px; background: linear-gradient(to top, var(--paper) 70%, transparent); }
  .wl-nav .btn { flex: 1; }
}
@media (max-width: 520px) {
  .wl-top .brand span, .wl-top .brand .beta { display: none; }
  .wl-prog { margin: 4px 0 10px; }
  .wl { padding-top: 4px; }
}

/* 움직임 줄이기 — 장면은 끝 모습으로, 자동 넘김 없음 */
@media (prefers-reduced-motion: reduce) {
  .sc *, .sc::before, .sc::after { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .wl-text.swap > * { animation: none; }
}

/* Jake Lee — 기획·개발한 사람이 살짝 보이게 (2026-10-10 Jake) */
.s5-a .who .badge.team { height: auto; padding: .1cqw .7cqw; font-size: max(7px, 1cqw); border-radius: .6cqw; }
.s6-who { display: flex; align-items: center; gap: 1.2cqw; }
.s6-who b { font-size: max(10px, 1.8cqw); letter-spacing: -.01em; }
@media (pointer: coarse) { .wl-prog button { padding: 16px 0; } .wl-prog { margin-top: 2px; margin-bottom: 8px; } .wl-pp { width: 38px; height: 38px; } }
@media (max-width: 900px) and (max-height: 700px) { .wl-nav { position: static; background: none; padding-bottom: 8px; } }   /* 키 작은 폰(SE): 아래 버튼이 설명을 가리지 않게 */
