/* =============================================================================
   계이득 첫 화면(/) — 역할 선택 랜딩 (2026-11-16, 주인님 목업 기준)
   토큰·글꼴·리셋·헤더·바닥글은 rl-core.css(먼저 불러옴), 여기는 첫 화면의 무대·카드·선택 상자·기능 띠만.
   색·그림자·두께는 모두 --rl-* 토큰(DESIGN.md "첫 화면 랜딩").
   움직임은 transform 부유 한 종류(모션 감소 시 정지, 화면 밖·탭 숨김 시 일시정지).
   1200px 이상은 1440×900 첫 화면에 선택 상자와 기능 띠까지 들어오도록 장면 폭을 화면 높이에 맞춘다.
   ============================================================================= */
/* ---------- 무대 ---------- */
.rl-hero { padding: var(--rl-sp-3) 0 var(--rl-sp-1); }
.rl-stage { position: relative; display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) minmax(250px, 316px); grid-template-areas: "l c r" "d d d"; column-gap: 20px; align-items: start; }
.rl-center { grid-area: c; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.rl-widgets { display: contents; } /* 넓은 화면: 카드 열은 무대 격자에 그대로, 폰: 가로 스크롤 줄 */
.rl-side { display: flex; flex-direction: column; }
.rl-side-l { grid-area: l; gap: 48px; padding-top: 72px; }
.rl-side-r { grid-area: r; gap: 44px; padding-top: 64px; }

.rl-title { position: relative; margin-top: 16px; font-family: var(--rl-display); font-weight: 400; font-size: clamp(34px, 3.9vw, 58px); line-height: 1.16; letter-spacing: -0.015em; text-wrap: balance; -webkit-text-stroke: 0.13em var(--rl-title-stroke); paint-order: stroke fill; text-shadow: 0 6px 14px var(--rl-title-glow); }
.rl-title .rl-t1, .rl-title .rl-t2 { display: block; }
.rl-title .rl-t2 { position: relative; display: inline-block; padding-bottom: 12px; }
.rl-title em { font-style: normal; color: var(--rl-blue); }
.rl-mark { position: relative; display: inline-block; }
.rl-squiggle { position: absolute; left: 2%; right: 8%; bottom: -12px; width: auto; height: 12px; color: var(--rl-yellow); }
.rl-party { display: inline-block; width: 0.7em; height: 0.7em; margin-left: 0.12em; vertical-align: -0.04em; fill: var(--rl-yellow); }
.rl-sub { margin-top: 14px; max-width: 560px; color: var(--rl-ink-2); font-size: 17px; line-height: 1.65; text-wrap: pretty; }

.rl-scene { position: relative; width: min(100%, 600px); margin: var(--rl-sp-4) auto 0; }
.rl-art-hero { aspect-ratio: 1240 / 824; filter: var(--rl-art-shadow); }
.rl-scene .rl-live { left: 11%; top: 17%; }

/* 장식(SVG) */
.rl-spark-1 { right: -34px; top: -22px; }
.rl-spark-2 { right: -6px; top: 36%; width: 14px; height: 14px; }
.rl-burst-l { left: -58px; top: 4px; transform: scaleX(-1) rotate(-20deg); }
.rl-heart-1 { right: -6%; top: 46%; width: 44px; height: 44px; }
.rl-heart-2 { right: -3%; top: 32%; width: 26px; height: 26px; opacity: 0.9; }
.rl-heart-3 { right: 2%; top: 60%; width: 20px; height: 20px; opacity: 0.8; }

/* ---------- 떠 있는 카드: 흰 테두리 + 아랫면 두께(목업의 입체 판) ---------- */
.rl-card { --tilt: 0deg; position: relative; padding: 18px 20px 20px; border: 1.5px solid var(--rl-card-rim); border-radius: var(--rl-radius); background: var(--rl-card); box-shadow: 0 6px 0 var(--rl-slab), var(--rl-shadow); }
.rl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rl-card-t { display: flex; align-items: center; gap: 8px; font-family: var(--rl-display); font-weight: 400; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.rl-card-ic { width: 22px; height: 22px; flex: none; }
.rl-ic-gold { fill: var(--rl-yellow); }
.rl-ic-pink { color: var(--rl-pink); fill: var(--rl-pink); }
.rl-ic-violet { color: var(--rl-violet); fill: var(--rl-violet); }
.rl-chip { display: inline-block; min-width: 0; max-width: 100%; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--rl-violet-face); color: var(--rl-violet-ink); font-size: 13px; font-weight: 600; line-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rl-art-crown { position: absolute; left: 22px; top: -62px; width: 88px; z-index: 2; }
.rl-burst-rank { right: -22px; top: -36px; transform: rotate(16deg); }
.rl-ranks { display: grid; gap: 12px; margin-top: 16px; }
.rl-ranks li { display: grid; grid-template-columns: 26px 28px minmax(0, 1fr) auto; grid-template-areas: "no ava who score" "no ava bar score"; align-items: center; column-gap: 10px; row-gap: 5px; }
.rl-no { grid-area: no; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--rl-blue-face); color: var(--rl-ink); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rl-no-1 { background: var(--rl-medal-1); color: var(--rl-medal-ink); }
.rl-no-2 { background: var(--rl-medal-2); color: var(--rl-medal-ink); }
.rl-no-3 { background: var(--rl-medal-3); color: var(--rl-medal-ink); }
.rl-ava { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rl-rank-1); color: var(--rl-medal-ink); font-size: 13px; font-weight: 700; }
.rl-ranks .rl-ava { grid-area: ava; }
.rl-ranks li:nth-child(2) .rl-ava { background: var(--rl-rank-2); }
.rl-ranks li:nth-child(3) .rl-ava { background: var(--rl-rank-3); }
.rl-ranks li:nth-child(4) .rl-ava { background: var(--rl-rank-4); }
.rl-who { grid-area: who; font-size: 14px; font-weight: 600; line-height: 1.35; }
.rl-bar { grid-area: bar; height: 8px; border-radius: 999px; background: var(--rl-bar-track); overflow: hidden; }
.rl-bar i { display: block; width: var(--v, 50%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rl-violet), var(--rl-violet-2)); }
.rl-score { grid-area: score; display: inline-flex; align-items: center; gap: 4px; color: var(--rl-ink-2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rl-score svg { width: 14px; height: 14px; fill: var(--rl-yellow); }

.rl-goal-name { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 17px; font-weight: 700; }
.rl-goal-name svg { width: 18px; height: 18px; fill: var(--rl-ink-2); color: var(--rl-ink-2); }
.rl-goal-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.rl-progress { flex: 1; height: 12px; border-radius: 999px; background: var(--rl-bar-track); overflow: hidden; }
.rl-progress i { display: block; width: var(--v, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rl-violet-deep), var(--rl-violet)); }
.rl-pct { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rl-goal-num { margin-top: 8px; text-align: center; color: var(--rl-ink-3); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

.rl-sig { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 18px; border-color: var(--rl-on-violet-rim); background: linear-gradient(135deg, var(--rl-sig-1), var(--rl-sig-2)); color: var(--rl-on-violet); box-shadow: 0 6px 0 var(--rl-sig-slab), var(--rl-shadow); }
.rl-ava-lg { width: 44px; height: 44px; border: 1.5px solid var(--rl-on-violet-rim); border-radius: 14px; background: var(--rl-sig-tile); color: var(--rl-on-violet); font-family: var(--rl-display); font-size: 20px; font-weight: 400; }
.rl-sig-text { display: grid; line-height: 1.3; }
.rl-sig-text span { font-size: 13px; font-weight: 600; }
.rl-sig-text b { font-family: var(--rl-display); font-weight: 400; font-size: 17px; }
.rl-check { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rl-on-violet); color: var(--rl-sig-2); box-shadow: var(--rl-shadow-sm); } /* 보라 카드 위 흰 동그라미(두 테마) */
.rl-check svg { width: 16px; height: 16px; }
.rl-art-mascot { position: absolute; right: 28px; top: -94px; width: 118px; z-index: 2; }

.rl-donate { padding: 24px 20px 20px; border-color: var(--rl-on-violet-rim); background: linear-gradient(140deg, var(--rl-donate-1), var(--rl-donate-2)); color: var(--rl-on-violet); text-align: center; box-shadow: 0 6px 0 var(--rl-donate-slab), var(--rl-shadow); }
.rl-donate-t { font-size: 15px; font-weight: 700; line-height: 1.45; text-wrap: balance; }
.rl-donate-t b { color: var(--rl-amount); font-size: 17px; }
.rl-ic-inline { display: inline-block; width: 1em; height: 1em; vertical-align: -0.12em; fill: var(--rl-yellow); }
.rl-ic-blue { fill: var(--rl-heart-blue); }
.rl-bubble { margin: 12px auto 0; max-width: 100%; padding: 8px 14px; border-radius: 999px; background: var(--rl-bubble); color: var(--rl-bubble-ink); font-size: 14px; font-weight: 600; }
.rl-art-coins { position: absolute; right: 24px; top: -58px; width: 96px; z-index: 2; }
.rl-burst-donate { right: -14px; top: 30%; transform: rotate(10deg); }

.rl-game-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.rl-wheel { position: relative; flex: none; width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(var(--rl-violet) 0 60deg, var(--rl-yellow) 60deg 120deg, var(--rl-pink) 120deg 180deg, var(--rl-blue) 180deg 240deg, var(--rl-wheel-5) 240deg 300deg, var(--rl-wheel-6) 300deg 360deg); box-shadow: inset 0 0 0 3px var(--rl-card-solid), var(--rl-shadow-sm); }
.rl-wheel::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--rl-card-solid); }
.rl-wheel i { position: absolute; left: 50%; top: -5px; width: 0; height: 0; margin-left: -6px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--rl-ink); }
.rl-game-text { font-size: 14px; line-height: 1.45; }
.rl-game-text b { font-weight: 700; }
.rl-prize { display: flex; width: fit-content; align-items: center; gap: 5px; margin-top: 6px; color: var(--rl-violet-ink); font-size: 13px; font-weight: 700; }
.rl-prize svg { width: 15px; height: 15px; fill: currentColor; color: currentColor; }

/* 독립 장식 아트 */
.rl-art-play { position: absolute; right: -4px; top: -4px; width: 56px; }
.rl-art-cube, .rl-art-music { display: none; }

/* 부유: transform 하나, 카드 기울기(--t는 1200px 이상에서만) */
@keyframes rl-float { from { transform: rotate(var(--tilt, 0deg)) translateY(0); } to { transform: rotate(var(--tilt, 0deg)) translateY(-10px); } }
/* 위젯 카드·3D 장식은 통통 튀게(2026-11-16 주인님 "더 통통튀게"): 올라갔다 떨어지며 한 번 더 작게 튀고 쉰다.
   이동 12px 이하, 기울기 ±1.5도, 한 바퀴 3.2~4.5초(--d ÷ 2.2), --o로 서로 어긋남, transform만. 장면은 느린 부유 그대로 */
@keyframes rl-bob {
  0% { transform: rotate(var(--tilt, 0deg)) translateY(0); animation-timing-function: cubic-bezier(0.2, 0.75, 0.3, 1); }
  26% { transform: rotate(calc(var(--tilt, 0deg) - 1.5deg)) translateY(-12px); animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.35); }
  44% { transform: rotate(calc(var(--tilt, 0deg) + 0.6deg)) translateY(0); animation-timing-function: cubic-bezier(0.2, 0.75, 0.3, 1); }
  56% { transform: rotate(var(--tilt, 0deg)) translateY(-4px); animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.35); }
  68%, 100% { transform: rotate(var(--tilt, 0deg)) translateY(0); }
}
.rl-float { animation: rl-float var(--d, 8s) ease-in-out infinite alternate; will-change: transform; }
.rl-card.rl-float, .rl-art.rl-float { animation: rl-bob calc(var(--d, 8s) / 2.2) var(--o, 0s) infinite; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .rl-card { transition: scale 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); } /* 마우스를 올리면 살짝 튀어 커진다(scale은 부유 transform과 따로 겹침) */
  .rl-card:hover { scale: 1.035; }
}
[data-rl-float].is-paused .rl-float { animation-play-state: paused; }

/* ---------- 히어로가 살아 움직이게(2026-11-16 주인님 "캐릭터 움직이게"): 그림 한 장(LCP)은 그대로 두고, 그 그림에서 픽셀 그대로 오려 낸
   캐릭터·말풍선·하트 층을 같은 자리에 겹쳐 그 층만 움직인다. 층은 위로 커지는 쪽(scale ≥ 1, 아래·꼬리·가운데 기준)으로만 움직여
   아래 원본이 비치지 않는다. 떠오르는 하트·반짝이는 SVG. transform·opacity만, 화면 밖·숨긴 탭 멈춤, 모션 감소면 모두 없음 ---------- */
.rl-hl { position: absolute; left: 0; top: 0; z-index: 1; width: 100%; aspect-ratio: 1240 / 824; pointer-events: none; }
.rl-hl > * { position: absolute; display: block; max-width: none; height: auto; }
/* 층 = 바탕 그림과 같은 파일(landing.js가 고른 그림 주소를 --hero로 줌) + 작은 알파 마스크. 멈추면 원본과 같은 픽셀이다 */
.rl-hl-part { inset: 0; width: 100%; height: 100%; background: var(--hero, none) 0 0 / 100% 100% no-repeat; -webkit-mask: var(--m) 0 0 / 100% 100% no-repeat; mask: var(--m) 0 0 / 100% 100% no-repeat; }
.rl-hl-girl { --m: url("/assets/role-landing/hero-mask-girl.webp"); transform-origin: 48.27% 79.85%; animation: rl-breathe 3.4s ease-in-out infinite; } /* 숨쉬기: 아래(손·키보드) 기준으로 위쪽이 2~3px 부풀었다 돌아온다 */
.rl-hl-bubble { --m: url("/assets/role-landing/hero-mask-bubble.webp"); transform-origin: 27.96% 44.05%; animation: rl-bubble 3.8s ease-out 0.6s infinite; } /* 말풍선: 꼬리 기준으로 통 튄다 */
.rl-hl-heart { animation: rl-beat 2.8s ease-out infinite; } /* 그림 속 하트: 두근 */
.rl-hl-heart-big { --m: url("/assets/role-landing/hero-mask-heart-big.webp"); transform-origin: 86.13% 12.35%; animation-delay: -0.4s; }
.rl-hl-heart-small { --m: url("/assets/role-landing/hero-mask-heart-small.webp"); transform-origin: 72.66% 5.92%; animation-delay: -1.3s; }
.rl-hl-heart-left { --m: url("/assets/role-landing/hero-mask-heart-left.webp"); transform-origin: 5.04% 55.47%; animation-delay: -2.1s; }
.rl-hl-pop { --rise-x: -42px; --rise-y: -34px; left: 45.5%; top: 58%; width: 3.2%; aspect-ratio: 1; fill: var(--rl-pink); filter: var(--rl-heart-shadow); opacity: 0; animation: rl-rise 3.6s ease-out 0.4s infinite; } /* 손 하트 양옆에서 하트가 퐁 하고 떠올라 옆으로 퍼진다(얼굴 위는 지나지 않음) */
.rl-hl-pop-2 { --rise-x: 42px; left: 55.5%; top: 58.5%; width: 2.6%; animation-delay: 2.2s; }
.rl-hl-tw { width: 3%; aspect-ratio: 1; fill: var(--rl-yellow); opacity: 0; animation: rl-twinkle 2.6s ease-in-out infinite; }
.rl-hl-tw-1 { left: 40%; top: 1%; }
.rl-hl-tw-2 { left: 91%; top: 43%; width: 2.4%; animation-delay: -1.1s; }
.rl-hl-tw-3 { left: 4%; top: 31%; width: 2.6%; animation-delay: -1.9s; }
.rl-scene .rl-live { animation: rl-live 2.4s ease-in-out infinite; }
.rl-scene .rl-live i { animation: rl-live-dot 1.2s ease-in-out infinite; }
@keyframes rl-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.006, 1.012); } }
@keyframes rl-bubble { 0%, 50%, 100% { transform: scale(1); } 58% { transform: scale(1.12); } 66% { transform: scale(1.03); } 74% { transform: scale(1.08); } 84% { transform: scale(1); } }
@keyframes rl-beat { 0%, 46%, 100% { transform: scale(1); } 54% { transform: scale(1.16); } 62% { transform: scale(1.04); } 70% { transform: scale(1.12); } 80% { transform: scale(1); } }
@keyframes rl-rise { 0% { opacity: 0; transform: translate(0, 0) scale(0.3); } 12% { opacity: 1; transform: translate(0, -6px) scale(1.12); } 22% { transform: translate(calc(var(--rise-x) * 0.15), -12px) scale(0.96); } 70% { opacity: 0.9; } 100% { opacity: 0; transform: translate(var(--rise-x), var(--rise-y)) scale(0.85) rotate(-10deg); } }
@keyframes rl-twinkle { 0%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 60% { opacity: 1; transform: scale(0.85) rotate(60deg); } }
@keyframes rl-live { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes rl-live-dot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.6); opacity: 0.5; } }
[data-rl-float].is-paused :is(.rl-hl > *, .rl-scene .rl-live, .rl-scene .rl-live i) { animation-play-state: paused; }

/* ---------- 두 갈래 ---------- */
.rl-start { position: relative; z-index: 2; padding: var(--rl-sp-1) 0 var(--rl-sp-5); }
.rl-stage > .rl-start { grid-area: d; } /* DOM은 장면 바로 뒤(폰 초점 순서), 넓은 화면은 격자 칸으로 같은 자리 */
.rl-stage .rl-doors { width: 100%; }
.rl-doors { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1000px; }
.rl-door { position: relative; display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 16px; padding: 22px 24px; border-radius: 28px; text-decoration: none; box-shadow: 0 6px 0 var(--rl-slab), var(--rl-shadow); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.rl-door:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--rl-slab), var(--rl-shadow-hover); }
.rl-door:active { transform: translateY(0); }
.rl-art-door { width: 100px; filter: var(--rl-icon-shadow); }
.rl-door-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.rl-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.rl-door-title { font-family: var(--rl-display); font-weight: 400; font-size: 24px; line-height: 1.3; letter-spacing: -0.01em; }
.rl-door-desc { font-size: 15px; line-height: 1.5; }
.rl-door-btn { display: inline-flex; align-items: center; gap: 8px; min-height: var(--rl-hit); margin-top: 6px; padding: 0 22px; border-radius: 999px; font-size: 16px; font-weight: 700; transition: background-color 0.16s ease, color 0.16s ease; }
.rl-door-btn svg { width: 18px; height: 18px; }
.rl-door-streamer { background: linear-gradient(135deg, var(--rl-door-1), var(--rl-door-2)); color: var(--rl-on-door); box-shadow: 0 6px 0 var(--rl-door-slab), var(--rl-shadow); }
.rl-door-streamer:hover { box-shadow: 0 6px 0 var(--rl-door-slab), var(--rl-shadow-hover); }
.rl-door-streamer .rl-tag { background: var(--rl-door-tag); color: var(--rl-on-door); }
.rl-door-streamer .rl-door-desc { color: var(--rl-on-door-2); }
.rl-door-streamer .rl-door-btn { background: var(--rl-on-door); color: var(--rl-door-2); }
.rl-door-streamer:hover .rl-door-btn { background: var(--rl-door-btn-hover); }
.rl-door-viewer { border: 1.5px solid var(--rl-card-rim); background: var(--rl-card-solid); color: var(--rl-ink); }
.rl-door-viewer .rl-tag { background: var(--rl-blue-face); color: var(--rl-blue-ink); }
.rl-door-viewer .rl-door-desc { color: var(--rl-ink-2); }
.rl-door-viewer .rl-door-btn { border: 1.5px solid var(--rl-blue-ink); color: var(--rl-blue-ink); }
.rl-door-viewer:hover .rl-door-btn { background: var(--rl-blue-face); }
.rl-doors .rl-art-cube { position: absolute; left: -160px; top: 8px; width: 150px; }
.rl-doors .rl-art-music { position: absolute; right: -132px; top: 40px; width: 80px; }

/* ---------- 기능 띠(바닥 물결은 아래 '걸어온 길' 구역으로 옮겼다) ---------- */
.rl-feats { position: relative; padding: var(--rl-sp-4) 0 0; }
.rl-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 1080px; padding: 8px 10px; border: 1.5px solid var(--rl-card-rim); border-radius: 999px; background: var(--rl-card); box-shadow: 0 4px 0 var(--rl-slab), var(--rl-shadow-sm); }
.rl-strip li { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 4px 12px; border-left: 1px solid var(--rl-line); }
.rl-strip li:first-child { border-left: 0; }
.rl-strip img { width: 36px; height: 36px; flex: none; }
.rl-strip span { display: grid; line-height: 1.3; }
.rl-strip b { font-size: 15px; font-weight: 700; }
.rl-strip small { color: var(--rl-ink-3); font-size: 13px; font-weight: 500; }

/* ---------- 계이득이 걸어온 길(2026-11-16 주인님 "어떻게 우리가 발전했는지"): 앱 업데이트 기록으로 만든 타임라인 + 무료로 시작하기.
   넓은 화면은 가운데 세로 줄 + 좌우로 반 칸씩 엇갈린 카드, 899px 이하는 왼쪽 세로 줄 한 열. 아래 물결은 바닥글 땅색으로 이어진다.
   제목 글자 중 첫 화면 서브셋에 없는 것만 jua-story.woff2(Jua Story)에 담는다(글자마다 앞 글꼴부터 찾음). ---------- */
@font-face { font-family: "Jua Story"; font-weight: 400; font-display: swap; src: url("/assets/role-landing/fonts/jua-story.woff2") format("woff2"); }
.rl-story { --rl-display: "Jua Landing", "Jua Story", "Pretendard", "Segoe UI", system-ui, sans-serif; position: relative; isolation: isolate; padding: clamp(56px, 7vw, 96px) 0 clamp(120px, 12vw, 180px); }
.rl-story-head { max-width: 680px; margin: 0 auto; text-align: center; }
.rl-story-title { font-family: var(--rl-display); font-weight: 400; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.2; letter-spacing: -0.01em; }
.rl-story-title em { font-style: normal; color: var(--rl-blue); }
.rl-story-lead { margin-top: 12px; color: var(--rl-ink-2); font-size: 17px; line-height: 1.6; text-wrap: balance; }
.rl-story-list { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; max-width: 980px; margin: 40px auto 0; }
.rl-story-list::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 30px; width: 3px; margin-left: -1.5px; border-radius: 3px; background: color-mix(in srgb, var(--rl-blue) 35%, transparent); } /* 가운데 세로 줄(하늘 배경 위에서도 보이게) */
.rl-story-item { position: relative; margin-bottom: 20px; padding: 18px 22px 20px; border: 1.5px solid var(--rl-card-rim); border-radius: var(--rl-radius); background: var(--rl-card); box-shadow: 0 5px 0 var(--rl-slab), var(--rl-shadow-sm); }
.rl-story-item:nth-child(odd) { grid-column: 1; }
.rl-story-item:nth-child(even) { grid-column: 2; }
.rl-story-item:nth-child(1) { grid-row: 1 / span 2; }
.rl-story-item:nth-child(2) { grid-row: 2 / span 2; }
.rl-story-item:nth-child(3) { grid-row: 3 / span 2; }
.rl-story-item:nth-child(4) { grid-row: 4 / span 2; }
.rl-story-item:nth-child(5) { grid-row: 5 / span 2; }
.rl-story-item:nth-child(6) { grid-row: 6 / span 2; }
.rl-story-item:nth-child(7) { grid-row: 7 / span 2; }
.rl-story-item:nth-child(8) { grid-row: 8 / span 2; }
.rl-story-item:nth-child(9) { grid-row: 9 / span 2; }
.rl-story-item::before { content: ""; position: absolute; top: 22px; width: 16px; height: 16px; border: 3px solid var(--rl-card-solid); border-radius: 50%; background: var(--rl-blue); box-shadow: 0 0 0 3px var(--rl-blue-face); } /* 세로 줄 위 점: 카드 바깥 36px(열 사이의 가운데) */
.rl-story-item:nth-child(odd)::before { right: -45.5px; }
.rl-story-item:nth-child(even)::before { left: -45.5px; }
.rl-story-date { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--rl-blue-face); color: var(--rl-blue-ink); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rl-story-item h3 { margin: 10px 0 0; font-family: var(--rl-display); font-weight: 400; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
.rl-story-item p { margin-top: 6px; color: var(--rl-ink-2); font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.rl-story-cta { margin-top: 36px; text-align: center; }
.rl-story-cta .rl-btn { min-height: 52px; padding: 0 28px; font-size: 16px; }

/* ---------- 모션 감소: 부유·상자 들림을 모두 멈춘다(그림자·버튼 색 변화는 남김) ---------- */
@media (prefers-reduced-motion: reduce) {
  .rl-float, .rl-card.rl-float, .rl-art.rl-float { animation: none; transform: rotate(var(--tilt, 0deg)); }
  .rl-hl > *, .rl-scene .rl-live, .rl-scene .rl-live i { animation: none; } /* 층은 원본과 같은 픽셀이라 멈추면 보이지 않고, 떠오르는 하트·반짝이는 숨는다 */
  .rl-door { transition: none; }
  .rl-door:hover, .rl-door:active { transform: none; }
}

/* ---------- 반응형 ---------- */
@media (min-width: 1200px) {
  .rl-card { --tilt: var(--t, 0deg); }
  /* 1440×900 첫 화면: 제목 묶음을 조이고, 장면 폭을 화면 높이에 맞추고(380~560), 장면 아래 여백을 -26px로 둬 선택 상자가 책상 받침에만 겹친다(카드 열이 더 길면 겹치지 않음) */
  .rl-hero { padding: 10px 0 0; }
  .rl-side-l { gap: 36px; padding: 48px 0 16px; } /* 낮은 화면에서 기운 목표 카드 모서리가 선택 상자에 닿지 않게 */
  .rl-side-r { gap: 38px; padding-top: 44px; }
  .rl-pill { min-height: 34px; padding: 5px 16px; font-size: 13.5px; }
  .rl-title { margin-top: 10px; font-size: clamp(44px, 3.6vw, 56px); line-height: 1.12; }
  .rl-title .rl-t2 { padding-bottom: 10px; }
  .rl-sub { margin-top: 8px; font-size: 16px; line-height: 1.55; }
  .rl-scene { margin: 4px auto -26px; width: min(100%, 560px, max(380px, calc((100vh - 536px) * 1.505))); }
  .rl-start { padding: 0; }
  .rl-doors { max-width: 904px; }
  .rl-door { grid-template-columns: 92px minmax(0, 1fr); padding: 16px 20px; }
  .rl-art-door { width: 92px; }
  .rl-door-body { gap: 4px; }
  .rl-tag { min-height: 24px; padding: 2px 10px; font-size: 12.5px; }
  .rl-door-title { font-size: 22px; line-height: 1.25; }
  .rl-door-desc { font-size: 14px; line-height: 1.45; }
  .rl-door-btn { margin-top: 4px; }
  .rl-feats { padding-top: calc(14px + var(--rl-sp-5)); } /* 선택 상자와 기능 띠 사이 숨 쉴 틈(주인님 2026-11-16 "선택창에 너무 가까움"): 상자 아랫면에서 띠까지 40px */
  .rl-strip { max-width: 1000px; padding: 6px 10px; }
  .rl-strip li { padding: 3px 12px; }
  .rl-strip img { width: 32px; height: 32px; }
  .rl-strip b { font-size: 14.5px; }
  .rl-strip small { font-size: 12.5px; }
}
@supports (height: 100svh) {
  @media (min-width: 1200px) {
    .rl-scene { width: min(100%, 560px, max(380px, calc((100svh - 536px) * 1.505))); }
  }
}
@media (min-width: 1320px) {
  .rl-art-cube, .rl-art-music { display: block; }
}
@media (max-width: 1199px) {
  /* 카드 6칸 격자: [순위 3 | 목표 3] / [시그니처 2 | 후원 2 | 룰렛 2] */
  .rl-stage { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-areas: none; gap: 24px; }
  .rl-hero { padding-bottom: 0; }
  .rl-stage > .rl-start { grid-area: auto; grid-column: 1 / -1; grid-row: 4; margin-top: -16px; } /* 카드 두 줄 뒤, 예전과 같은 간격 */
  .rl-center { grid-area: auto; grid-column: 1 / -1; }
  .rl-side { display: contents; }
  .rl-rank, .rl-goal { grid-column: span 3; }
  .rl-sig, .rl-donate, .rl-game { grid-column: span 2; }
  .rl-rank, .rl-goal { margin-top: 36px; }
  .rl-donate { padding-inline: 16px; }
  .rl-art-play { display: none; }
  .rl-art-mascot { right: 10px; top: -44px; width: 64px; } /* 위 카드 모서리를 덮지 않게 */
  .rl-burst-donate { display: none; }
  .rl-art-crown { top: -54px; width: 76px; }
  .rl-art-coins { top: -50px; width: 84px; }
  .rl-burst-l { left: -48px; }
  .rl-spark-1 { right: -26px; }
}
@media (max-width: 899px) {
  /* 카드 2칸: [순위 | 목표] / [시그니처 전폭] / [후원 | 룰렛] */
  .rl-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .rl-stage > .rl-start { grid-row: 5; margin-top: -12px; }
  .rl-rank, .rl-goal, .rl-donate, .rl-game { grid-column: span 1; }
  .rl-sig { grid-column: 1 / -1; }
  .rl-doors { grid-template-columns: 1fr; max-width: 640px; }
  .rl-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 0; max-width: 640px; border-radius: 28px; } /* 둘째 줄도 첫 줄 칸에 맞춘다 */
  .rl-strip li { justify-content: flex-start; border-left: 0; }
  .rl-story-list { grid-template-columns: minmax(0, 1fr); max-width: 640px; padding-left: 28px; }
  .rl-story-list::before { left: 8px; margin-left: 0; }
  .rl-story-item:nth-child(n) { grid-column: 1; grid-row: auto; }
  .rl-story-item:nth-child(n)::before { left: -28px; right: auto; } /* 왼쪽 세로 줄 위 점 */
}
@media (max-width: 759px) {
  .rl-hl-pop { --rise-x: -26px; --rise-y: -22px; }
  .rl-hl-pop-2 { --rise-x: 26px; }
  .rl-story { padding: 44px 0 124px; }
  .rl-story-title { font-size: 28px; }
  .rl-story-lead { font-size: 16px; }
  .rl-story-list { margin-top: 28px; padding-left: 26px; }
  .rl-story-list::before { left: 7px; }
  .rl-story-item { margin-bottom: 14px; padding: 16px 16px 18px; border-radius: 18px; }
  .rl-story-item:nth-child(n)::before { left: -27px; }
  .rl-story-item h3 { font-size: 19px; }
  .rl-story-item p { font-size: 16px; }
  .rl-story-cta { margin-top: 28px; }
  .rl-story-cta .rl-btn { width: 100%; }
  /* 폰(주인님 2026-11-16 "모바일만 최적화"): 제목 → 장면(높이 약 220px) → 선택 상자 둘 → 위젯 카드 가로 한 줄 → 기능 아이콘 격자 → 바닥글.
     DOM 순서가 곧 화면·초점 순서다(넓은 화면은 격자 칸으로 같은 자리에 둔다). */
  .rl-hero { padding: 0; }
  .rl-stage { display: block; }

  .rl-center { padding-top: 14px; }
  .rl-pill { min-height: 34px; padding: 6px 14px; font-size: 13px; }
  .rl-title { margin-top: 12px; font-size: clamp(27px, 8.9vw, 34px); } /* 320px에서도 둘째 줄이 한 줄 */
  .rl-title .rl-t2 { padding-bottom: 10px; }
  .rl-squiggle { height: 9px; bottom: -9px; }
  .rl-burst-l, .rl-spark-1 { display: none; } /* 화면 가장자리에 잘리는 장식은 뺀다 */
  .rl-sub { margin-top: 10px; font-size: 16px; line-height: 1.6; } /* 폰 본문 16px */
  .rl-scene { margin-top: 14px; width: min(100%, 331px); } /* 높이 약 220px */
  .rl-live { min-height: 22px; padding: 0 8px; gap: 5px; font-size: 12px; }
  .rl-heart-1 { width: 26px; height: 26px; right: -4%; }
  .rl-heart-2 { width: 16px; height: 16px; }
  .rl-heart-3 { width: 12px; height: 12px; }

  /* 선택 상자: 아이콘 왼쪽 + 제목·버튼, 첫 화면(393×852)에 둘 다 */
  .rl-stage > .rl-start { grid-row: auto; margin-top: 0; padding: 16px 0 0; }
  .rl-doors { grid-template-columns: 1fr; gap: 12px; }
  .rl-door { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; padding: 14px 16px; border-radius: 20px; }
  .rl-art-door { width: 60px; }
  .rl-door-body { gap: 8px; }
  .rl-tag, .rl-door-desc { display: none; }
  .rl-door-title { font-size: 19px; line-height: 1.3; }
  .rl-door-btn { width: 100%; justify-content: center; margin-top: 0; padding: 0 14px; font-size: 16px; }

  /* 위젯 카드: 가로 한 줄(스크롤 스냅), 다음 카드가 보이고 스크롤바는 없음. 키보드는 줄에 초점을 두고 화살표로 넘긴다 */
  .rl-widgets { display: flex; align-items: center; gap: 12px; margin: 4px -16px 0; padding: 40px 16px 30px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
  .rl-widgets::-webkit-scrollbar { display: none; }
  .rl-widgets:focus-visible { outline-offset: -4px; border-radius: 16px; }
  .rl-widgets .rl-card { flex: 0 0 260px; margin: 0; padding: 14px 14px 16px; border-radius: 18px; scroll-snap-align: start; box-shadow: 0 6px 0 var(--rl-slab), var(--rl-shadow-sm); }
  .rl-widgets .rl-sig { box-shadow: 0 6px 0 var(--rl-sig-slab), var(--rl-shadow-sm); }
  .rl-widgets .rl-donate { box-shadow: 0 6px 0 var(--rl-donate-slab), var(--rl-shadow-sm); }
  .rl-widgets .rl-float, .rl-widgets .rl-card.rl-float { animation: none; }
  .rl-card-t { font-size: 18px; }
  .rl-art-crown { left: 12px; top: -32px; width: 50px; }
  .rl-art-coins { right: 10px; top: -32px; width: 54px; }
  .rl-art-mascot { right: 4px; top: -34px; width: 50px; }
  .rl-burst-rank, .rl-burst-donate { display: none; }
  .rl-sig { grid-template-columns: 38px minmax(0, 1fr) 24px; gap: 10px; }
  .rl-ava-lg { width: 38px; height: 38px; border-radius: 12px; font-size: 18px; }
  .rl-sig-text b { font-size: 15px; }
  .rl-check { width: 24px; height: 24px; }
  .rl-check svg { width: 14px; height: 14px; }

  /* 기능 띠: 아이콘 위·이름 아래 3칸 격자(둘째 줄 두 개는 가운데), 설명은 넓은 화면에서만 */
  .rl-feats { padding: 8px 0 44px; }
  .rl-wave { height: 64px; }
  .rl-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px 0; padding: 12px 6px; border-radius: 22px; }
  .rl-strip li { grid-column: span 2; flex-direction: column; justify-content: flex-start; gap: 6px; padding: 6px 4px; border-left: 0; text-align: center; }
  .rl-strip li:nth-child(4) { grid-column: 2 / span 2; }
  .rl-strip img { width: 34px; height: 34px; }
  .rl-strip span { justify-items: center; }
  .rl-strip b { font-size: 15px; }
  .rl-strip small { display: none; }
}
@media (max-width: 359px) {
  .rl-pill { font-size: 12px; padding: 6px 12px; }
  .rl-door { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
  .rl-art-door { width: 52px; }
  .rl-door-title { font-size: 18px; }
  .rl-door-btn { padding: 0 10px; font-size: 15px; }
  .rl-widgets .rl-card { flex-basis: 248px; }
  .rl-strip { padding: 10px 4px; }
  .rl-strip b { font-size: 14px; }
}
