/* 스케일(인터랙티브 체험) 전용 스타일 — main.css·saju.css 와 분리 (CLAUDE.md §6). 브랜드 토큰만 값 복사 */
:root {
  --sc-primary: #007aff;
  --sc-primary-soft: #e5f1ff;
  --sc-primary-text: #0062cc;
  --sc-bg: #f5f5f7;
  --sc-card: #ffffff;
  --sc-text: #1d1d1f;
  --sc-sub: #6e6e73;
  --sc-border: #d2d2d7;
  --sc-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --sc-radius: 18px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: auto; }
body { background: var(--sc-bg); color: var(--sc-text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; line-height: 1.55; overflow-x: hidden; }
a { color: var(--sc-primary-text); }
.sc-wrap { max-width: 560px; margin: 0 auto; padding: 16px; position: relative; z-index: 2; }

/* 브랜드바 (계산기·사주와 같은 모양) */
.sc-nav { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--sc-border); }
.sc-nav-home { font-size: 14px; font-weight: 800; color: var(--sc-text); text-decoration: none; letter-spacing: .5px; text-transform: uppercase; }
.sc-nav-right { display: flex; gap: 8px; }
.sc-pill { text-decoration: none; color: var(--sc-sub); border: 1px solid var(--sc-border); padding: 7px 12px; border-radius: 50px; font-size: 12px; font-weight: 700; white-space: nowrap; background: transparent; cursor: pointer; font-family: inherit; }
.sc-pill-primary { background: var(--sc-primary-soft); color: var(--sc-primary-text); border-color: transparent; }

/* 첫 화면 */
/* 첫 화면 — 뒤에 체험 장면(하늘·지폐)이 깔리고, 제목은 위쪽 유리 카드에 */
.sc-intro { min-height: 92vh; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; text-align: center; padding: 7vh 0 20px; }
.sc-intro-card { background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .8); border-radius: 24px; box-shadow: 0 20px 50px rgba(20, 40, 80, .16); padding: 26px 22px 24px; width: 100%; }
.sc-kicker { font-size: 13px; font-weight: 700; color: var(--sc-primary-text); letter-spacing: .3px; }
.sc-intro h1 { font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1.25; margin: 10px 0 12px; }
.sc-lead { color: #48484d; font-size: 15px; }
.sc-hint { align-self: center; margin-top: 36px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--sc-primary); color: #fff; font-size: 16px; font-weight: 800; letter-spacing: -.2px;
  padding: 13px 24px; border-radius: 999px; box-shadow: 0 10px 28px rgba(0, 122, 255, .35), 0 0 0 0 rgba(0, 122, 255, .45);
  animation: sc-bob 1.6s ease-in-out infinite, sc-pulse 2.2s ease-out infinite; }
.sc-hint:focus-visible { outline: 3px solid var(--sc-primary-soft); outline-offset: 3px; }
@keyframes sc-pulse { 0% { box-shadow: 0 10px 28px rgba(0, 122, 255, .35), 0 0 0 0 rgba(0, 122, 255, .45); } 70%, 100% { box-shadow: 0 10px 28px rgba(0, 122, 255, .35), 0 0 0 16px rgba(0, 122, 255, 0); } }
@keyframes sc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .sc-hint { animation: none; } }

/* 체험 구간 */
.sc-stage { position: fixed; inset: 0; z-index: 0; opacity: 0; transition: opacity .25s; pointer-events: none; }
.sc-stage.on { opacity: 1; }
.sc-stage canvas { display: block; width: 100%; height: 100%; }
.sc-hud { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 3; width: min(528px, calc(100% - 24px));
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 16px; box-shadow: var(--sc-shadow); padding: 10px 14px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2px 12px;
  opacity: 0; transition: opacity .25s; pointer-events: none; }
.sc-hud.on { opacity: 1; }
.sc-hud .sc-big { grid-column: 1 / -1; font-size: 22px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.sc-hud .sc-row { font-size: 12px; color: var(--sc-sub); font-variant-numeric: tabular-nums; }
.sc-hud .sc-row b { color: var(--sc-text); font-weight: 700; }
.sc-track { position: relative; z-index: 1; }
.sc-step { position: absolute; left: 50%; transform: translate(-50%, -50%); width: min(400px, calc(100% - 32px)); }
.sc-step .sc-card { background: rgba(255, 255, 255, .95); border-radius: 16px; box-shadow: var(--sc-shadow); padding: 14px 16px; }
.sc-step h2 { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.sc-step p { font-size: 14px; color: var(--sc-sub); margin-top: 4px; }
.sc-step.right { left: auto; right: 16px; transform: translate(0, -50%); width: min(300px, calc(100% - 32px)); }

/* 끝 화면 */
.sc-end { position: relative; z-index: 2; background: var(--sc-bg); padding-top: 24px; }
.sc-panel { background: var(--sc-card); border-radius: var(--sc-radius); box-shadow: var(--sc-shadow); padding: 20px; margin-bottom: 16px; }
.sc-panel h2 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 10px; }
.sc-panel p { font-size: 14px; color: var(--sc-sub); }
.sc-field { display: flex; gap: 8px; margin-top: 10px; }
.sc-field input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--sc-border); border-radius: 12px; background: #fff; color: var(--sc-text); }
.sc-field span { align-self: center; font-weight: 700; }
.sc-out { margin-top: 12px; font-size: 15px; color: var(--sc-text); min-height: 1.5em; }
.sc-out b { font-size: 20px; }
.sc-err { color: #c0392b; font-size: 13px; margin-top: 8px; }
.sc-links { display: grid; gap: 8px; margin-top: 6px; }
.sc-links a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sc-text); background: var(--sc-bg); border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.sc-links a span { font-size: 20px; }
.sc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.sc-btn { font: inherit; font-size: 14px; font-weight: 700; border: 0; border-radius: 12px; padding: 12px 16px; cursor: pointer; background: var(--sc-primary); color: #fff; }
.sc-btn.ghost { background: var(--sc-primary-soft); color: var(--sc-primary-text); }
.sc-src { font-size: 12px; color: var(--sc-sub); }
.sc-src li { margin: 4px 0 4px 16px; }
footer { margin-top: 28px; text-align: center; font-size: 11px; color: var(--sc-sub); padding-bottom: 60px; }
.sc-foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0; }
.sc-foot-links a { color: var(--sc-sub); text-decoration: none; font-weight: 600; }

/* 목록(모음) 페이지 */
.sc-hub-head { text-align: center; padding: 32px 0 20px; }
.sc-hub-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.sc-hub-head p { color: var(--sc-sub); font-size: 14px; margin-top: 6px; }
.sc-cards { display: grid; gap: 14px; }
.sc-tile { display: block; text-decoration: none; color: var(--sc-text); background: var(--sc-card); border-radius: var(--sc-radius); box-shadow: var(--sc-shadow); overflow: hidden; }
.sc-tile img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: #dde7f5; }
.sc-tile div { padding: 14px 16px 16px; }
.sc-tile h2 { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.sc-tile p { font-size: 13px; color: var(--sc-sub); margin-top: 2px; }
.sc-tile em { display: inline-block; margin-top: 10px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--sc-primary-text); }

/* 폰: 주인공(화면 왼쪽 30%)을 가리지 않게 카드를 오른쪽으로 */
@media (max-width: 600px) {
  .sc-step, .sc-step.right { left: auto; right: 12px; transform: translate(0, -50%); width: calc(100% - 30% - 40px); }
  .sc-step .sc-card { padding: 12px 14px; }
  .sc-step h2 { font-size: 16px; }
  .sc-step p { font-size: 13px; }
}
@media (max-width: 380px) {
  .sc-intro h1 { font-size: 26px; }
  .sc-hud .sc-big { font-size: 19px; }
  .sc-nav-home { font-size: 12px; }
  .sc-pill { padding: 6px 9px; font-size: 11px; }
}

/* 3D 엔진(scale3d.js) — 눈금자·이름표·가장자리 어둡게 */
.sc-stage .sc-ruler { position: absolute; inset: 0; width: 100%; height: 100%; }
.sc-stage.is3d::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 55%, rgba(10, 20, 40, 0) 55%, rgba(10, 20, 40, .18) 100%); }
.sc-labs { position: absolute; inset: 0; overflow: hidden; }
.sc-lab { position: absolute; left: 0; top: 0; display: none; white-space: nowrap; font: 600 12px/22px -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  padding: 0 8px; border-radius: 11px; background: rgba(24, 28, 38, .82); color: #fff; will-change: transform; }
.sc-labs.dark .sc-lab { background: rgba(255, 255, 255, .92); color: #14161c; }

/* 스크롤을 멈추면 아래에 뜨는 안내 */
.sc-nudge { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 4; transform: translate(-50%, 10px); opacity: 0; pointer-events: none;
  background: rgba(24, 28, 38, .8); color: #fff; font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 20px; white-space: nowrap;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .5s ease, transform .5s ease; }
.sc-nudge.on { opacity: 1; transform: translate(-50%, 0); animation: sc-nudge-bob 1.6s ease-in-out .5s infinite; }
@keyframes sc-nudge-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }
@media (prefers-reduced-motion: reduce) { .sc-nudge.on { animation: none; } }

/* 3D 가 안 되는 기기에서 장면 없이 설명 카드만 차례로 */
.sc-track.sc-static { height: auto !important; max-width: 560px; margin: 0 auto; padding: 0 16px; display: grid; gap: 12px; }
.sc-track.sc-static .sc-step { position: static; transform: none; width: auto; }

/* 괴담: 마지막 층에서 화면이 덜컹 */
.sc-stage.jolt canvas { animation: sc-jolt .12s linear infinite; }
@keyframes sc-jolt { 0% { transform: translate(0, 0); } 25% { transform: translate(3px, -2px); } 50% { transform: translate(-3px, 2px); } 75% { transform: translate(2px, 3px); } 100% { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { .sc-stage.jolt canvas { animation: none; } }

/* 맨 위로 가기 버튼 */
.sc-top { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 6;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); padding: 0; cursor: pointer;
  background: rgba(24, 28, 38, .82); color: #fff; font-size: 20px; font-weight: 800; line-height: 1; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s ease, transform .3s ease, background .2s ease; }
.sc-top.on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sc-top:hover { background: rgba(24, 28, 38, .95); }
.sc-top:focus-visible { outline: 3px solid #4f8cff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .sc-top { transition: none; } }

/* ══ 영화 같은 연출 — 상자 대신 큰 자막, 흰 카드 대신 오프닝 제목. 작품마다 강조색·글꼴만 다르게 ══ */
body { --acc: #ffd36b; --acc-glow: rgba(255, 200, 90, .55); --cap-font: inherit; --cap-w: 900; }
.sc-t-money { --acc: #ffd36b; --acc-glow: rgba(255, 196, 60, .6); }
.sc-t-salary { --acc: #8dffb2; --acc-glow: rgba(60, 230, 130, .5); }
.sc-t-deep-sea { --acc: #6fe9ff; --acc-glow: rgba(60, 220, 255, .6); }
.sc-t-haunted { --acc: #ff3a2a; --acc-glow: rgba(255, 30, 20, .7); --cap-font: "Nanum Myeongjo", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif; --cap-w: 800; }
.sc-t-pandemic { --acc: #ff2a3a; --acc-glow: rgba(255, 20, 40, .65); }
.sc-t-elevator { --acc: #9cc6ff; --acc-glow: rgba(120, 170, 255, .6); }
.sc-t-underground { --acc: #ffb35c; --acc-glow: rgba(255, 140, 40, .6); }
.sc-t-everest { --acc: #ffe27a; --acc-glow: rgba(255, 210, 90, .55); }
.sc-t-earth-history { --acc: #ffe2a8; --acc-glow: rgba(255, 190, 110, .55); --cap-font: Georgia, "Hiragino Mincho ProN", "Nanum Myeongjo", serif; --cap-w: 700; }
.sc-t-micro { --acc: #5ff0dc; --acc-glow: rgba(60, 240, 210, .55); }
.sc-t-santa { --acc: #ffcf5a; --acc-glow: rgba(255, 190, 60, .6); }
.sc-t-universe { --acc: #c9d6ff; --acc-glow: rgba(140, 160, 255, .7); --cap-w: 300; }

/* 오프닝: 장면 위에 어두운 그라데이션 + 큰 흰 제목 */
.sc-intro { position: relative; justify-content: center; padding: 10vh 0 6vh; }
.sc-intro::before { content: ""; position: absolute; left: calc(50% - 50vw); right: calc(50% - 50vw); top: -120px; bottom: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(4, 6, 12, .72) 0%, rgba(4, 6, 12, .4) 55%, rgba(4, 6, 12, 0) 100%); }
.sc-intro-card { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; padding: 0 6px; }
.sc-kicker { color: var(--acc); text-transform: uppercase; letter-spacing: .32em; font-size: 12px; font-weight: 800; text-shadow: 0 0 18px var(--acc-glow); }
.sc-intro h1 { word-break: keep-all; font-size: clamp(36px, 10vw, 66px); font-weight: 900; letter-spacing: -.035em; line-height: 1.08; margin: 16px 0 18px; text-wrap: balance;
  font-family: var(--cap-font); text-shadow: 0 4px 40px rgba(0, 0, 0, .55); }
.sc-lead { color: rgba(255, 255, 255, .82); font-size: 16px; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.sc-intro .sc-lead[style] { color: #ffb0a8 !important; }
.sc-hint { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 30px var(--acc-glow); letter-spacing: .04em; animation: sc-bob 1.8s ease-in-out infinite; }
.sc-intro + * , .sc-nav { position: relative; }
.sc-nav { border-bottom-color: rgba(255, 255, 255, .18); }
body:has(.sc-intro) .sc-nav-home { color: #fff; }
body:has(.sc-intro) .sc-nav .sc-pill { color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .15); }

/* 숫자판: 상자 없이 화면 위쪽에 큰 숫자 하나 */
.sc-hud { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; padding: 4px 6px; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.sc-hud .sc-big { font-size: 30px; font-weight: 900; letter-spacing: -.03em; color: #fff; text-shadow: 0 0 22px var(--acc-glow), 0 2px 10px rgba(0, 0, 0, .6); }
.sc-hud .sc-row { color: rgba(255, 255, 255, .62); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.sc-hud .sc-row b { color: var(--acc); font-weight: 800; letter-spacing: 0; text-transform: none; font-size: 12px; }
.sc-stage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 160px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); }
.sc-stage .sc-ruler { opacity: .35; }
.sc-stage .sc-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
/* 이름표: 알약 상자 대신 가는 글씨 */
.sc-lab { background: none !important; color: #fff !important; text-shadow: 0 1px 8px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .9); font-weight: 700; letter-spacing: .02em; box-shadow: none !important; }
.sc-lab::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px var(--acc-glow); margin-right: 6px; vertical-align: 1px; }

/* 자막: 상자 없이 큰 글씨가 떠오른다 */
.sc-step .sc-card { background: none !important; border: 0 !important; box-shadow: none !important; outline: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; clip-path: none !important;
  padding: 18px 4px; color: #fff; position: relative; border-radius: 0 !important; }

.sc-step h2 { font-family: var(--cap-font); font-weight: var(--cap-w); font-size: clamp(27px, 7.6vw, 48px); line-height: 1.12; letter-spacing: -.03em; color: #fff; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere;
  text-shadow: 0 0 30px var(--acc-glow), 0 2px 4px rgba(0, 0, 0, .55), 0 4px 22px rgba(0, 0, 0, .65); }
.sc-step p { word-break: keep-all; color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.6; margin-top: 10px; max-width: 340px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 2px 14px rgba(0, 0, 0, .8); }
.sc-step .sc-card h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--acc); box-shadow: 0 0 14px var(--acc-glow); margin-top: 12px; }
.sc-step.right .sc-card { text-align: right; } .sc-step.right p { margin-left: auto; } .sc-step.right .sc-card h2::after { margin-left: auto; }
.sc-step .sc-card { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .8s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.sc-step.in .sc-card { opacity: 1; transform: none; }
.sc-step.in h2 { animation: sc-cap-in 1.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes sc-cap-in { from { letter-spacing: .12em; } to { letter-spacing: -.03em; } }
.sc-track.sc-static .sc-step .sc-card { opacity: 1; transform: none; background: rgba(10, 12, 20, .85) !important; padding: 18px; }
@media (prefers-reduced-motion: reduce) { .sc-step .sc-card { transition: none; transform: none; } .sc-step.in h2 { animation: none; } }

/* 괴담·좀비는 숫자판 특색 유지(LED 표시판·뉴스 속보) */
.sc-t-haunted .sc-hud { left: 50%; text-align: center; font-family: "Courier New", ui-monospace, monospace; width: min(320px, calc(100% - 24px)); }
.sc-t-haunted .sc-hud .sc-big { color: #ff3a1e; letter-spacing: 3px; text-shadow: 0 0 16px rgba(255, 40, 20, .9); }
.sc-t-pandemic .sc-hud .sc-big { padding-left: 74px; position: relative; }
.sc-t-pandemic .sc-hud .sc-big::before { content: "속보"; position: absolute; left: 0; top: 4px; padding: 3px 8px; background: #d40d1f; color: #fff; font-size: 13px; letter-spacing: 2px; text-shadow: none; box-shadow: 0 0 16px rgba(255, 20, 40, .6); }
html[lang="en"] .sc-t-pandemic .sc-hud .sc-big::before { content: "BREAKING"; font-size: 10px; letter-spacing: 1px; top: 8px; }
html[lang="en"] .sc-t-pandemic .sc-hud .sc-big { padding-left: 82px; }
html[lang="ja"] .sc-t-pandemic .sc-hud .sc-big::before { content: "速報"; }
.sc-t-universe .sc-hud { text-align: center; } .sc-t-universe .sc-hud .sc-big { font-weight: 200; letter-spacing: .04em; }
@media (max-width: 600px) { .sc-hud .sc-big { font-size: 25px; } }

/* ══ 3D 장면 준비 표시 ══ */
.sc-stage.is3d canvas { opacity: 0; transition: opacity .7s ease; }
.sc-stage.is3d.ready canvas { opacity: 1; }
body.sc-loading::before { content: ""; position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 40%, var(--sc-load-a, rgba(0, 122, 255, .16)), transparent 45%), radial-gradient(circle at 70% 65%, var(--sc-load-b, rgba(120, 90, 255, .12)), transparent 45%);
  animation: sc-load-drift 4s ease-in-out infinite alternate; }
@keyframes sc-load-drift { from { transform: translate(-4%, -2%) scale(1); } to { transform: translate(4%, 3%) scale(1.08); } }
body.sc-loading .sc-hint { animation: none; cursor: progress; flex-direction: column; gap: 8px; opacity: .92; }
.sc-load-bar { display: block; width: 140px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.sc-load-bar::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: 2px; background: #fff; animation: sc-load-bar 1.2s ease-in-out infinite; }
@keyframes sc-load-bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { body.sc-loading::before, .sc-load-bar::after { animation: none; } }
.sc-t-deep-sea { --sc-load-a: rgba(40, 160, 230, .3); --sc-load-b: rgba(10, 60, 140, .3); }
.sc-t-haunted, .sc-t-pandemic { --sc-load-a: rgba(140, 10, 10, .22); --sc-load-b: rgba(30, 30, 40, .3); }
.sc-t-universe, .sc-t-elevator, .sc-t-santa { --sc-load-a: rgba(80, 110, 255, .2); --sc-load-b: rgba(160, 80, 255, .16); }
.sc-t-underground { --sc-load-a: rgba(255, 140, 40, .2); --sc-load-b: rgba(120, 60, 20, .25); }
body.sc-loading .sc-step { visibility: hidden; }

/* 최하단 광고 1개(global-scale.js initAd) — 안 채워지면 접는다 */
.sc-ad { margin: 8px 0 20px; min-height: 100px; }
.sc-ad:has(ins[data-ad-status="unfilled"]) { display: none; }

/* 목록(허브) — 모든 화면 2열(2026-11-22 사용자 결정). 폰은 글씨를 줄이고 긴 설명을 숨긴다 */
.sc-wrap.sc-hub { max-width: 960px; }
.sc-hub .sc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sc-hub .sc-tile { display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.sc-hub .sc-tile:hover { transform: translateY(-3px); }
.sc-hub .sc-tile > div { flex: 1; display: flex; flex-direction: column; }
.sc-hub .sc-tile h2 { font-size: 18px; }
.sc-hub .sc-tile .sc-q { color: var(--sc-text); font-weight: 600; font-size: 14px; margin-top: 4px; }
.sc-hub .sc-tile em { margin-top: auto; padding-top: 10px; }
@media (max-width: 600px) {
  .sc-hub .sc-cards { gap: 10px; }
  .sc-hub .sc-tile > div { padding: 10px 11px 12px; }
  .sc-hub .sc-tile h2 { font-size: 14px; letter-spacing: -.4px; }
  .sc-hub .sc-tile .sc-q { font-size: 12px; line-height: 1.4; }
  .sc-hub .sc-tile p:not(.sc-q) { display: none; }
  .sc-hub .sc-tile em { font-size: 12px; padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .sc-hub .sc-tile { transition: none; } .sc-hub .sc-tile:hover { transform: none; } }

/* 크롬 검수 반영(2026-11-22) — 밝은 장면(에베레스트 눈·미시 세계·돈/월급 하늘)에서도 자막이 읽히게 그림자를 두껍게 */
.sc-step h2 { text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 2px 18px rgba(0, 0, 0, .75), 0 0 40px rgba(0, 0, 0, .45); }
.sc-step p { text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 1px 8px rgba(0, 0, 0, .85), 0 2px 22px rgba(0, 0, 0, .7); }
.sc-t-everest .sc-step .sc-card, .sc-t-micro .sc-step .sc-card, .sc-t-salary .sc-step .sc-card, .sc-t-money .sc-step .sc-card { background: radial-gradient(closest-side, rgba(4, 8, 18, .5), rgba(4, 8, 18, 0)) !important; padding: 18px 0; margin: -18px 0; }   /* 좌우로 넓히면 폰에서 화면 밖으로 8px 넘쳤다 */
/* 일본어: 띄어쓰기가 없어 keep-all + anywhere 조합이면 "200m" 같은 숫자 한가운데서 줄이 바뀐다 → 일본어는 보통 줄바꿈 규칙으로 */
html[lang="ja"] .sc-step h2, html[lang="ja"] .sc-step p { word-break: normal; overflow-wrap: normal; line-break: strict; }

/* 푸터 언어 전환(한·영·일) — 2026-11-22 */
.sc-lang { margin: 4px 0 14px; font-size: 12px; font-weight: 700; color: var(--sc-sub); }
.sc-lang a { color: var(--sc-sub); text-decoration: none; padding: 4px 6px; }
.sc-lang a[aria-current="page"] { color: var(--sc-text); text-decoration: underline; text-underline-offset: 3px; }
.sc-lang span { opacity: .5; }

/* 크롬 재검수(2026-11-22): 폰 숫자판 값이 "약 4×10의 / 12제곱 배"처럼 쪼개지지 않게 */
.sc-hud .sc-row b { white-space: nowrap; }
/* 일본어: 띄어쓰기가 없어 keep-all 이 걸린 곳(첫 화면 제목·설명·패널)은 줄이 안 바뀌고 폰 화면 밖으로 넘쳤다 → 일본어는 전부 보통 줄바꿈 */
html[lang="ja"] body, html[lang="ja"] body * { word-break: normal !important; line-break: strict; }
