/* 똥피하기 소개 페이지 (oscstudio.com) — 애플 제품 페이지 문법: 큰 글자, 어둡고 밝은 구역이 번갈아, 스크롤에 맞춰 바뀌는 고정 장면.
   색은 게임에서 가져왔다: 밤의 화장실 남색, 깨끗한 타일, 황금, 쫀득이 파랑·주황·초록. 글꼴은 Pretendard(한글·영문 한 가족). */
:root {
  --ink: #0b1020; --ink-2: #141b36; --ink-3: #1d2750;
  --tile: #eef3fb; --tile-2: #dfe8f6;
  --text: #f3f6fc; --text-dim: rgba(243, 246, 252, 0.68); --text-ink: #101830; --text-ink-dim: rgba(16, 24, 48, 0.66);
  --gold: #ffc62e; --gold-2: #f08a00; --gold-deep: #7a3b00;
  --blue: #4f86f0; --fire: #ff7a2a; --grass: #53d36a; --poop: #8a5a34;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --nav-h: 52px; --maxw: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; word-break: keep-all; overflow-wrap: break-word; line-break: strict; } /* 한글이 낱말 가운데서 줄바꿈되지 않게(띄어쓰기에서만) */
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font); line-height: 1.5; font-feature-settings: 'ss05'; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 제목 글자: 큰 글자는 자간을 좁히고 줄 간격을 줄인다 ── */
.h-xl { font-size: clamp(2.6rem, 7.4vw, 6.4rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: 900; margin: 0; text-wrap: balance; }
.h-l { font-size: clamp(2.1rem, 5.4vw, 4.4rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 850; margin: 0; text-wrap: balance; }
.h-m { font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.18; letter-spacing: -0.025em; font-weight: 800; margin: 0; text-wrap: balance; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.4rem); line-height: 1.55; letter-spacing: -0.01em; color: var(--text-dim); margin: 0; max-width: 34em; text-wrap: pretty; }
.light .lead, .light .small { color: var(--text-ink-dim); }
.small { font-size: 0.95rem; color: var(--text-dim); }
.gold-text { background: linear-gradient(180deg, #fff3a8, #ffc62e 55%, #f08a00); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── 구역 ── */
section { position: relative; }
.wrap { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }
.dark { background: var(--ink); color: var(--text); }
.dark-2 { background: linear-gradient(180deg, var(--ink-2), var(--ink)); color: var(--text); }
.light { background: var(--tile); color: var(--text-ink); }
.pad { padding: clamp(80px, 12vw, 160px) 0; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ── 위 막대(반투명 유리) ── */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100; display: flex; align-items: center; background: rgba(11, 16, 32, 0.62); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); transition: background 0.3s; }
.nav .wrap { display: flex; align-items: center; gap: 22px; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -0.02em; text-decoration: none; font-size: 1.05rem; }
.nav .brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0 auto; padding: 0; font-size: 0.86rem; }
.nav ul a { text-decoration: none; opacity: 0.78; transition: opacity 0.2s; display: block; padding: 12px 0; } /* 눌리는 칸을 세로 40px 이상으로 */
.nav ul a:hover, .nav ul a.on { opacity: 1; }
.nav .right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { border: 1px solid rgba(255, 255, 255, 0.28); background: transparent; border-radius: 999px; padding: 4px 12px; min-height: 36px; font-size: 0.78rem; cursor: pointer; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.25s, top 0.25s, opacity 0.2s; }
.menu-btn i:nth-child(1) { top: 17px; } .menu-btn i:nth-child(2) { top: 26px; }
.nav.open .menu-btn i:nth-child(1) { top: 22px; transform: rotate(45deg); } .nav.open .menu-btn i:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0; font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: transform 0.12s, box-shadow 0.12s, filter 0.2s; }
.btn:active { transform: translateY(2px) scale(0.98); }
.btn-gold { background: linear-gradient(180deg, #fff0a0, #ffc52e 55%, #f08a00); color: #4a1e02; box-shadow: 0 4px 0 #a8480c, 0 12px 28px rgba(240, 138, 0, 0.35); }
.btn-gold:active { box-shadow: 0 1px 0 #a8480c; }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.light .btn-ghost { background: rgba(16, 24, 48, 0.06); color: var(--text-ink); border-color: rgba(16, 24, 48, 0.2); }
.btn[aria-disabled='true'] { opacity: 0.72; cursor: default; }
.pill-play { white-space: nowrap; display: inline-flex; align-items: center; min-height: 36px; background: linear-gradient(180deg, #fff0a0, #ffc52e 55%, #f08a00); color: #4a1e02; border-radius: 999px; padding: 6px 15px; font-size: 0.82rem; font-weight: 800; text-decoration: none; box-shadow: 0 2px 0 #a8480c; }

/* ── 히어로 ── */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(var(--nav-h) + 24px) 0 0; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -3; background: #0a0a0f url('a/img/stage-1.webp') center 30% / cover no-repeat; filter: saturate(1.1) brightness(0.55); transform: scale(1.06); }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 50% 38%, rgba(11, 16, 32, 0.2), rgba(11, 16, 32, 0.78) 72%), linear-gradient(180deg, rgba(11, 16, 32, 0.35), var(--ink) 98%); }
#rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-title { width: min(82vw, 600px); height: auto; margin: 0 auto; filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.55)); animation: floaty 5.5s ease-in-out infinite; }
.hero .tag { margin: 22px 0 0; font-size: clamp(1.5rem, 4.2vw, 3rem); font-weight: 850; letter-spacing: -0.035em; text-wrap: balance; }
.hero .lead { margin: 14px auto 0; color: rgba(243, 246, 252, 0.8); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.hero-ground { position: relative; width: 100%; height: clamp(120px, 22vh, 210px); margin-top: auto; }
.hero-ground::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(180deg, transparent, rgba(11, 16, 32, 0.9)); }
.hero-walk { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.hero-ground.walking .hero-walk { display: block; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.scroll-cue { position: absolute; bottom: 14px; left: 50%; width: 22px; height: 36px; margin-left: -11px; border: 2px solid rgba(255, 255, 255, 0.55); border-radius: 12px; z-index: 2; }
.scroll-cue::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 3px; background: #fff; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ── 한 문장 선언(스크롤하면 글자가 하나씩 켜진다) ── */
.statement { padding: clamp(100px, 18vw, 220px) 0; }
.statement p { font-size: clamp(1.9rem, 5.2vw, 4.2rem); line-height: 1.2; letter-spacing: -0.04em; font-weight: 850; margin: 0 auto; max-width: 17em; text-wrap: balance; }
.statement .w { opacity: 0.18; transition: opacity 0.25s linear; }
.statement .w.on { opacity: 1; }

/* ── 고정 폰 이야기 ── */
.story { height: 360vh; }
.story-stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; width: min(var(--maxw), 100% - 40px); margin-inline: auto; padding-top: var(--nav-h); }
.story-steps { position: relative; min-height: 340px; }
.story-step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; opacity: 0; transform: translateY(24px); transition: opacity 0.5s, transform 0.5s; pointer-events: none; }
.story-step.on { opacity: 1; transform: none; pointer-events: auto; }
.story-step .ico { width: 64px; height: 64px; }
.phone { position: relative; width: min(330px, 70vw, 42svh * 0.5); aspect-ratio: 390 / 754; margin-inline: auto; border-radius: 15% / 7.5%; padding: 3.4%; background: linear-gradient(145deg, #2a3358, #10152b); box-shadow: 0 0 0 2px #3a4470 inset, 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 120px rgba(79, 134, 240, 0.18); }
.phone .scr { position: relative; width: 100%; height: 100%; border-radius: 11.5% / 6%; overflow: hidden; background: #000; }
.phone .scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s; }
.phone .scr img.on { opacity: 1; }
.phone::after { content: ''; position: absolute; top: 2.6%; left: 50%; width: 24%; height: 1.6%; margin-left: -12%; border-radius: 99px; background: #05070f; }
.dots { display: flex; gap: 8px; margin-top: 8px; }
.dots i { width: 28px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.22); transition: background 0.3s, width 0.3s; }
.dots i.on { background: var(--gold); width: 44px; }

/* ── 쫀득이 ── */
.chars { --glow: 79, 134, 240; }
.chars[data-c='fire'] { --glow: 255, 122, 42; } .chars[data-c='green'] { --glow: 83, 211, 106; }
.chars::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 38%, rgba(var(--glow), 0.28), transparent 70%); transition: background 0.5s; pointer-events: none; }
.tabs { display: flex; gap: 12px; justify-content: center; margin: 36px 0 8px; flex-wrap: wrap; }
.tab { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.05); border-radius: 999px; padding: 6px 18px 6px 8px; font-weight: 750; cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.12s; }
.tab img { width: 40px; height: 40px; object-fit: contain; }
.tab[aria-selected='true'] { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.55); }
.tab:active { transform: scale(0.97); }
.char-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin-top: 18px; }
.char-wrap { position: relative; width: min(330px, 70vw); margin: 18px auto 0; }
.char-wrap .char-big { width: 100%; margin: 0; }
[hidden] { display: none !important; } /* canvas·img 등에 display를 준 규칙이 hidden 속성을 이겨 안 숨던 문제(풀쫀득이 나뭇잎이 다른 쫀득이에도 보였다)를 막는다 */
.leaf-ring { position: absolute; left: 0; top: -6%; width: 100%; height: 40%; pointer-events: none; }
.char-big { display: block; width: min(330px, 70vw); aspect-ratio: 1; margin-inline: auto; mix-blend-mode: screen; } /* 720px 원본 영상(검정 배경) — 크기를 줄여 선명하게, 그림자는 영상 네모가 비치므로 없앤다 */
.char-copy h3 { margin: 0 0 10px; }
.perks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.perks li { padding-left: 22px; position: relative; color: var(--text-dim); }
.perks li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--glow)); box-shadow: 0 0 12px rgb(var(--glow)); }
.moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 56px; }
.moves figure { margin: 0; text-align: center; }
.moves video { width: 100%; aspect-ratio: 1; object-fit: cover; mix-blend-mode: screen; border-radius: 22px; }
.moves figcaption { font-size: 0.9rem; color: var(--text-dim); margin-top: 4px; }
.spirits { margin-top: 90px; }
.sp-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-width: 520px; margin-inline: auto; margin-top: 28px; }
.sp-row figure { margin: 0; text-align: center; }
.sp-row video, .sp-row img { width: 100%; aspect-ratio: 5 / 6; object-fit: contain; mix-blend-mode: screen; }
.sp-row img { mix-blend-mode: normal; }
.sp-stage { position: relative; aspect-ratio: 5 / 6; }
.sp-stage video { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.sp-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
.sp-row figcaption { font-size: 0.85rem; color: var(--text-dim); }

/* ── 아이템 고르기(애플 색 고르기처럼) ── */
.items-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; margin-top: 46px; }
.item-preview { text-align: center; }
.item-preview .big { width: min(300px, 62vw); height: min(300px, 62vw); margin: 0 auto; object-fit: contain; filter: drop-shadow(0 24px 24px rgba(16, 24, 48, 0.28)); animation: bob 3.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
.item-preview h3 { margin: 18px 0 6px; }
.item-preview p { margin: 0 auto; max-width: 22em; min-height: 3.2em; color: var(--text-ink-dim); }
.item-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.item-picker button { aspect-ratio: 1; border: 2px solid transparent; background: rgba(255, 255, 255, 0.7); border-radius: 22px; padding: 10px; cursor: pointer; transition: transform 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.item-picker button img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.item-picker button:hover { transform: translateY(-3px); }
.item-picker button[aria-pressed='true'] { border-color: var(--blue); background: #fff; box-shadow: 0 10px 24px rgba(79, 134, 240, 0.28); }

/* ── 에너지파 ── */
.energy { overflow: hidden; }
.e-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.e-stage { position: relative; aspect-ratio: 1; width: min(520px, 100%); margin-inline: auto; }
.e-bg { position: absolute; inset: 0; border-radius: 36px; overflow: hidden; background: url('a/img/stage-1.webp') center / cover; filter: brightness(0.6); }
.e-flash { position: absolute; inset: 0; border-radius: 36px; background: #fff7d0; opacity: 0; animation: e-flash 6s infinite; }
.e-ring { position: absolute; left: 50%; top: 68%; width: 24%; aspect-ratio: 1; margin: -12% 0 0 -12%; border-radius: 50%; border: 6px solid rgba(255, 220, 120, 0.95); box-shadow: 0 0 40px rgba(255, 198, 46, 0.7), inset 0 0 40px rgba(255, 198, 46, 0.4); opacity: 0; animation: e-ring 6s infinite; }
.e-ring:nth-of-type(2) { animation-delay: 0.14s; } .e-ring:nth-of-type(3) { animation-delay: 0.28s; }
.e-jelly { position: absolute; left: 50%; top: 68%; width: 24%; transform: translate(-50%, -52%); z-index: 3; }
.e-poop { position: absolute; left: 50%; top: 68%; width: 15%; margin: -7.5% 0 0 -7.5%; opacity: 0; z-index: 2; animation: e-poop 6s infinite; }
.e-bar { position: absolute; left: 6%; right: 6%; bottom: 4%; height: 7%; border-radius: 99px; background: rgba(8, 12, 28, 0.78); border: 2px solid rgba(255, 255, 255, 0.25); overflow: hidden; z-index: 4; }
.e-bar i { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(180deg, #fff3a8, #ffc62e 50%, #f08a00); animation: e-bar 6s infinite; }
.e-btns { position: absolute; left: 6%; right: 6%; bottom: 14%; display: flex; justify-content: space-between; z-index: 4; }
.e-btn { position: relative; width: 17%; aspect-ratio: 1; }
.e-btn .face, .e-btn .ghost { position: absolute; top: 2.4%; width: 112%; height: 101.7%; background: no-repeat center / 100% 100%; }
.e-btn.l .face, .e-btn.l .ghost { left: -14.3%; transform-origin: 57.4% 46.8%; }
.e-btn.r .face, .e-btn.r .ghost { left: 2.3%; transform-origin: 42.6% 46.8%; }
.e-btn.l .face { background-image: url('a/img/btn-left.webp'); --rot: 90deg; } .e-btn.r .face { background-image: url('a/img/btn-right.webp'); --rot: -90deg; }
.e-btn .face { animation: e-turn 6s infinite; }
.e-btn .chev { position: absolute; inset: 0; background: no-repeat center / 100% 100%; animation: e-chev 6s infinite; }
.e-btn.l .chev { background-image: url('a/img/chev-left.webp'); } .e-btn.r .chev { background-image: url('a/img/chev-right.webp'); }
.e-btn.l .ghost { background-image: url('a/img/chev-gold-left.webp'); --rot: 90deg; } .e-btn.r .ghost { background-image: url('a/img/chev-gold-right.webp'); --rot: -90deg; }
.e-btn .ghost { opacity: 0; animation: e-ghost 6s infinite; }
.e-btn .ghost:nth-child(2) { animation-delay: 0.3s; } .e-btn .ghost:nth-child(3) { animation-delay: 0.6s; }
@keyframes e-bar { 0% { transform: scaleX(0); } 36% { transform: scaleX(1); } 62% { transform: scaleX(1); } 66%, 100% { transform: scaleX(0); } }
@keyframes e-turn { 0%, 34% { transform: rotate(0); filter: none; } 40%, 60% { transform: rotate(var(--rot)); filter: drop-shadow(0 0 7px rgba(255, 214, 90, 0.95)); } 64%, 100% { transform: rotate(0); filter: none; } }
@keyframes e-chev { 0%, 38% { opacity: 1; } 40%, 60% { opacity: 0; } 64%, 100% { opacity: 1; } }
@keyframes e-ghost { 0%, 38% { opacity: 0; } 40% { opacity: 0.8; transform: translateY(0) rotate(var(--rot)); } 52% { opacity: 0; transform: translateY(-9vmin) rotate(var(--rot)) scale(0.85); } 53%, 100% { opacity: 0; } }
@keyframes e-ring { 0%, 62% { opacity: 0; transform: scale(0.3); } 63% { opacity: 1; } 78% { opacity: 0; transform: scale(5); } 100% { opacity: 0; transform: scale(5); } }
@keyframes e-flash { 0%, 61% { opacity: 0; } 63% { opacity: 0.75; } 72%, 100% { opacity: 0; } }
@keyframes e-poop { 0%, 40% { opacity: 1; transform: translate(var(--sx), var(--sy)) rotate(0); } 62% { opacity: 1; transform: translate(var(--sx), var(--sy)) rotate(10deg); } 76% { opacity: 1; transform: translate(var(--ex), var(--ey)) rotate(var(--er)); } 84%, 100% { opacity: 0; transform: translate(var(--ex), var(--ey)) rotate(var(--er)); } }

/* ── 황금 여래신장 · 거인 ── */
.galaxy { overflow: hidden; background: #060816; }
.galaxy > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; -webkit-mask-image: radial-gradient(ellipse at 50% 55%, #000 20%, transparent 85%); mask-image: radial-gradient(ellipse at 50% 55%, #000 20%, transparent 85%); }
/* z-index를 주면 .wrap이 독립 쌓임 맥락이 되어 천사 영상의 screen 혼합이 배경과 섞이지 않고 검은 네모로 보인다 */
.galaxy .wrap { position: relative; }
.palm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.palm-hand { width: min(380px, 70vw); margin-inline: auto; animation: bob 4.4s ease-in-out infinite; filter: drop-shadow(0 0 60px rgba(255, 198, 46, 0.6)); }
.angel { width: min(520px, 100%); mix-blend-mode: screen; margin-inline: auto; filter: contrast(1.35) brightness(0.95); -webkit-mask-image: radial-gradient(ellipse at 50% 48%, #000 50%, transparent 78%); mask-image: radial-gradient(ellipse at 50% 48%, #000 50%, transparent 78%); }
.giants { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.giant-video { width: 100%; max-width: 560px; margin-inline: auto; mix-blend-mode: screen; border-radius: 24px; }
.shake { animation: shake 1.1s infinite; }
@keyframes shake { 0%, 60%, 100% { transform: translate(0, 0); } 64% { transform: translate(-3px, 2px); } 68% { transform: translate(3px, -2px); } 72% { transform: translate(-2px, 1px); } 76% { transform: translate(0, 0); } }
.titan-pick { display: flex; gap: 10px; margin-top: 22px; }

/* ── 9단계(스크롤하면 화장실이 깨끗해지다 황금이 된다) ── */
.stages { height: 520vh; background: #000; }
.stages-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.stages-stage .bg { position: absolute; inset: 0; }
.stages-stage .bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; will-change: opacity; }
.stages-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 35%, transparent 55%, rgba(0, 0, 0, 0.6)); pointer-events: none; }
.stages-ui { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(var(--nav-h) + 40px) 20px 56px; text-align: center; }
.stage-num { font-size: clamp(5rem, 22vw, 15rem); font-weight: 900; letter-spacing: -0.06em; line-height: 0.9; color: #fff; text-shadow: 0 8px 50px rgba(0, 0, 0, 0.55); font-variant-numeric: tabular-nums; }
.stage-num small { display: block; font-size: 0.16em; letter-spacing: 0; font-weight: 800; opacity: 0.85; margin-top: 8px; }
.stage-cap { font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 3px 24px rgba(0, 0, 0, 0.7); }
.stage-cap span { display: block; margin-top: 4px; font-size: 0.55em; font-weight: 600; opacity: 0.85; }
.stage-jelly { position: absolute; left: 50%; bottom: 17%; width: clamp(90px, 16vw, 150px); margin-left: calc(clamp(90px, 16vw, 150px) / -2); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); }
.stage-rain i { position: absolute; top: -10%; width: 22px; height: 30px; background: url('a/img/gold-drop.webp') center / contain no-repeat; opacity: 0; }
.stages-stage.gold .stage-rain i { opacity: 0.9; animation: drip linear infinite; }
@keyframes drip { from { transform: translateY(0); } to { transform: translateY(115vh) rotate(25deg); } }
.stage-bar { position: absolute; left: 50%; bottom: 22px; width: min(420px, 70vw); height: 6px; margin-left: calc(min(420px, 70vw) / -2); background: rgba(255, 255, 255, 0.25); border-radius: 6px; overflow: hidden; }
.stage-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #fff3a8, #ffc62e); }

/* ── 소리 ── */
.sound .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 48px; }
.bgm-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bgm { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 0; background: rgba(255, 255, 255, 0.06); border-radius: 18px; padding: 12px 14px; cursor: pointer; position: relative; overflow: hidden; transition: background 0.2s; }
.bgm:hover { background: rgba(255, 255, 255, 0.11); }
.bgm .play { flex: none; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(180deg, #fff0a0, #ffc52e 55%, #f08a00); color: #4a1e02; display: grid; place-items: center; font-size: 0.9rem; }
.bgm b { display: block; font-weight: 750; } .bgm span { font-size: 0.82rem; color: var(--text-dim); }
.bgm .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--gold); }
.bgm.playing { background: rgba(255, 198, 46, 0.16); }
.sfx { display: flex; flex-wrap: wrap; gap: 8px; }
.sfx button { border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); border-radius: 999px; padding: 9px 15px; font-size: 0.9rem; cursor: pointer; transition: transform 0.1s, background 0.2s, border-color 0.2s; }
.sfx button:hover { background: rgba(255, 255, 255, 0.14); }
.sfx button:active, .sfx button.hit { transform: scale(0.94); background: rgba(255, 198, 46, 0.3); border-color: var(--gold); }

/* ── 기록 ── */
.records { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 56px; text-align: center; }
.records img { height: 120px; width: auto; margin: 0 auto 18px; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(16, 24, 48, 0.25)); }
.records h3 { margin: 0 0 8px; font-size: 1.4rem; letter-spacing: -0.02em; }
.records p { margin: 0 auto; max-width: 17em; color: var(--text-ink-dim); }

/* ── 마지막(황금 화장실) ── */
.finale { overflow: hidden; isolation: isolate; text-align: center; color: #3a1a00; background: #c98a00; }
.finale::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('a/img/stage-9.webp') center / cover; }
.finale::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 40%, rgba(255, 244, 190, 0.2), rgba(120, 60, 0, 0.55) 80%); }
.finale .h-xl, .finale .lead { color: #fff; text-shadow: 0 2px 6px rgba(70, 30, 0, 0.7), 0 4px 30px rgba(110, 50, 0, 0.6); }
.finale .lead { max-width: 28em; margin: 18px auto 0; }
.finale .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.finale .btn-dark { background: rgba(11, 16, 32, 0.78); color: #fff; }
.notes { margin-top: 40px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.82); }

footer { background: #070a16; padding: 38px 0 46px; font-size: 0.86rem; color: var(--text-dim); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; } footer a { text-decoration: none; opacity: 0.85; display: inline-block; padding: 10px 0; } footer a:hover { opacity: 1; text-decoration: underline; }

/* ── 처음 나타남(과하지 않게: 제목만 한 번) ── */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rv.on { opacity: 1; transform: none; }

/* ── 작은 화면 ── */
@media (max-width: 860px) {
  .nav ul { display: none; }
  .menu-btn { display: block; }
  .nav.open ul { display: flex; position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(11, 16, 32, 0.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 8px 20px 22px; margin: 0; font-size: 1.15rem; }
  .nav.open ul a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); opacity: 1; }
  .story { height: 330vh; }
  .story-grid { grid-template-columns: 1fr; gap: 14px; align-content: center; padding-top: calc(var(--nav-h) + 8px); }
  .story-steps { min-height: 190px; order: 2; text-align: center; }
  .story-step { align-items: center; }
  .phone { width: min(46svh * 0.52, 62vw); }
  .dots { justify-content: center; }
  .char-stage, .items-grid, .e-grid, .palm-row, .giants, .sound .grid { grid-template-columns: 1fr; }
  .char-copy { text-align: center; } .perks li { text-align: left; }
  .sp-row { grid-template-columns: repeat(2, 1fr); }
  .moves { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .records { grid-template-columns: 1fr; gap: 44px; }
  .item-picker { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
  .stages { height: 480vh; }
  .e-grid .copy { text-align: center; } .e-grid .copy .lead { margin-inline: auto; }
}
@media (hover: none) { .item-picker button:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .rv { opacity: 1; transform: none; }
  .statement .w { opacity: 1; }
  .story, .stages { height: auto; }
  .story-stage, .stages-stage { position: relative; height: auto; min-height: 100svh; }
}
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* 스마트폰(2026-10-27): 아주 좁은 화면에서 윗줄이 줄바꿈되지 않게, 작은 글자와 누르는 칸을 키운다 */
@media (max-width: 860px) {
  .stage-cap span { font-size: 0.72em; }
}
@media (max-width: 380px) {
  .nav .wrap { gap: 8px; }
  .nav .right { gap: 6px; }
  .nav .brand span { display: none; }
  .pill-play { padding: 6px 12px; }
}
/* 가로로 눕힌 폰(높이가 낮은 화면): 고정 화면의 폰 그림이 위로 잘리지 않게 글과 폰을 좌우로 나란히 둔다 */
@media (max-width: 900px) and (max-height: 560px) and (orientation: landscape) {
  .story-grid { grid-template-columns: 1fr 1fr; gap: 20px; padding-top: calc(var(--nav-h) + 4px); }
  .story-steps { order: 0; min-height: 230px; text-align: left; }
  .story-step { align-items: flex-start; }
  .phone { width: calc((100svh - var(--nav-h) - 36px) * 0.5); }
  .dots { justify-content: flex-start; }
}

/* ── 문제 신고: 적은 내용을 메일 앱으로 넘겨 운영자(info@oscstudio.com)에게 보낸다 ── */
.report { background: var(--ink-2); }
.report .narrow { max-width: 640px; }
.rp-form { margin-top: 28px; display: grid; gap: 18px; text-align: left; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 22px; padding: clamp(18px, 4vw, 30px); }
.rp-field { display: grid; gap: 8px; font-weight: 700; }
.rp-field select, .rp-field textarea { width: 100%; font: inherit; font-size: 16px; font-weight: 500; color: var(--text); background: rgba(11, 16, 32, 0.7); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 12px; padding: 12px 14px; }
.rp-field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.rp-field select:focus-visible, .rp-field textarea:focus-visible, .rp-chk input:focus-visible { outline: 3px solid rgba(255, 198, 46, 0.7); outline-offset: 2px; }
.rp-count { justify-self: end; color: var(--text-dim); font-weight: 500; }
.rp-chk { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); font-size: 0.92rem; cursor: pointer; }
.rp-chk input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--gold); }
.rp-note { margin: 0; color: var(--text-dim); font-size: 0.88rem; }
.rp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rp-status { margin: 0; min-height: 1.5em; font-size: 0.92rem; color: #ffe08a; }
.rp-status.err { color: #ff9b8a; }
@media (max-width: 480px) { .rp-actions .btn { flex: 1 1 100%; } }
.rp-field input[type=email] { width: 100%; font: inherit; font-size: 16px; font-weight: 500; color: var(--text); background: rgba(11, 16, 32, 0.7); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 12px; padding: 12px 14px; }
.rp-field input[type=email]:focus-visible { outline: 3px solid rgba(255, 198, 46, 0.7); outline-offset: 2px; }
.rp-shots { display: flex; flex-wrap: wrap; gap: 10px; }
.rp-shots:empty { display: none; }
.rp-thumb { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.25); background: #000; }
.rp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rp-thumb button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.rp-add { justify-self: start; min-height: 44px; }
.rp-add[disabled] { opacity: 0.45; cursor: default; }
.rp-actions .btn[disabled] { opacity: 0.6; cursor: progress; }
