/* 빛결누리 공통 확장 — site.css 뒤에 불러온다(site.css 는 원본 그대로 · 여기서만 덧붙임).
   세계 띠(worldbar) · 첫 화면 게임 고르기(choose/gate) · 세계관 구역(world) · 폰몬 마스터즈 페이지 */

/* 모든 페이지 맨 위: 한 세계, 두 게임 */
.worldbar { background: #0f0a2a; border-bottom: 1px solid var(--line); font-size: .86rem; }
.worldbar .wrap { display: flex; align-items: center; gap: 2px; min-height: 44px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.worldbar .wrap::-webkit-scrollbar { display: none; }
.worldbar a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; color: var(--muted); text-decoration: none; font-weight: 700; border-bottom: 2px solid transparent; }
.worldbar a:hover { color: var(--text); }
.worldbar a[aria-current="page"] { color: var(--text); border-bottom-color: var(--dawn); }
.worldbar .wb-home { color: var(--glow); padding-left: 0; }
.worldbar .wb-sep { color: rgba(255, 255, 255, .25); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; line-height: 1.5; white-space: nowrap;
  background: rgba(255, 179, 92, .16); color: var(--dawn); border: 1px solid rgba(255, 179, 92, .45); }
.pill.now { background: rgba(127, 211, 138, .14); color: var(--leaf); border-color: rgba(127, 211, 138, .45); }

/* 머리말 보조: 글자 상표(마스터즈) · 메뉴 없는 언어 전환(첫 화면) */
.brand-text { font-weight: 900; letter-spacing: .06em; font-size: 1rem; line-height: 1.15; text-decoration: none; color: var(--text); }
.brand-text span { display: block; font-size: .68rem; letter-spacing: .2em; color: var(--dawn); }
.lang.lang-solo { margin-left: auto; }

/* 첫 화면: 게임 고르기 */
.gateway .hero { text-align: center; padding: 36px 0 64px; }
.gateway .hero .lead { margin: 0 auto; }
.gateway .hero-bg img { object-position: center 20%; }
.choose-h { margin: 30px 0 0; font-size: 1rem; font-weight: 800; color: var(--glow); letter-spacing: 0; }
.choose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 14px; text-align: left; }
.gate { display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; text-decoration: none; color: var(--text);
  background: rgba(23, 17, 58, .9); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s ease; }
.gate:hover { color: var(--text); transform: translateY(-4px); border-color: var(--dawn); }
.gate[aria-current="page"] { border-color: rgba(127, 211, 138, .5); }
.gate-art { display: flex; justify-content: center; align-items: flex-end; gap: 10px; height: 210px; padding: 16px 16px 0; overflow: hidden; }
.gate-pm .gate-art { background: linear-gradient(180deg, #ffe2b3, #ffb98a); align-items: center; padding-bottom: 16px; }
.gate-ms .gate-art { background: radial-gradient(ellipse at 50% 100%, #7a2f6f, #1c1040 72%); }
.gate-art .mon { width: 27%; max-width: 116px; border-radius: 14px; border: 3px solid #fff; box-shadow: 0 10px 24px rgba(60, 20, 10, .3); }
.gate-art .mon:first-child { transform: rotate(-7deg); }
.gate-art .mon:last-child { transform: rotate(7deg); }
.gate-art .gate-logo { width: 34%; max-width: 170px; filter: drop-shadow(0 6px 14px rgba(60, 20, 10, .35)); }
.gate-art .av { height: 100%; width: auto; margin: 0 -6px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); }
.gate-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gate-kind { margin: 0; font-size: .76rem; font-weight: 800; letter-spacing: .16em; color: var(--dawn); }
.gate-name { margin: 0; font-size: clamp(1.5rem, 5vw, 1.9rem); font-weight: 900; line-height: 1.2; letter-spacing: -.02em; }
.gate-tag { margin: 0; color: var(--muted); }
.gate-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.gate-go { font-weight: 800; color: #2a1300; background: linear-gradient(135deg, var(--dawn), var(--dawn-2)); padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.gate[aria-current="page"] .gate-go { background: none; color: var(--muted); padding: 10px 0; }
.choose.compact .gate-art { height: 150px; }
.choose.compact .gate-name { font-size: 1.35rem; }
@media (max-width: 760px) {
  .gateway .hero { padding: 24px 0 48px; }
  .choose { grid-template-columns: 1fr; gap: 16px; }
  .gate-art { height: 170px; }
  .choose.compact .gate-art { height: 130px; }
}

/* 세계관 구역(세 영역 공통) */
.world { background: radial-gradient(ellipse at 50% 0%, #3d2a6e, var(--night) 70%); }
.world .badges { margin: 0 0 6px; }
.world .fine { font-size: .85rem; color: var(--muted); margin: 18px 0 0; }
.world .g3 { margin-top: 8px; }
.cls.plain img { height: 190px; }
@media (max-width: 960px) { .cls.plain img { height: 150px; } }

/* 폰몬 마스터즈 */
.masters .hero-bg img { object-position: center 40%; }
.masters .hero::after { background: radial-gradient(ellipse at 70% 45%, rgba(190, 90, 200, .22), transparent 55%), linear-gradient(180deg, rgba(23, 17, 58, .55) 0%, rgba(23, 17, 58, .72) 55%, var(--night) 100%); }
.wordmark { margin: 0; font-size: clamp(1.9rem, 8vw, 3.2rem); font-weight: 900; line-height: 1; letter-spacing: .02em; color: var(--glow); text-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
.wordmark span { display: block; font-size: .42em; letter-spacing: .3em; color: var(--dawn); margin-top: 8px; }
.lineup { display: flex; justify-content: center; align-items: flex-end; }
.lineup img { height: clamp(210px, 44vw, 360px); width: auto; margin: 0 -14px; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .55)); }
.lineup img:nth-child(2) { height: clamp(240px, 50vw, 410px); z-index: 1; }
.points.cols { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px 28px; }
.band.light .note { color: var(--ink-2); background: rgba(224, 104, 47, .08); border-left-color: #e0682f; }
.status-box { text-align: center; }
.status-box .cta { justify-content: center; }

@media (prefers-reduced-motion: reduce) { .gate, .gate:hover { transition: none; transform: none; } }


/* ───────── 첫 화면: 화면 전체를 둘로 나눈 게임 고르기 (2026-11-22) ───────── */
body.gateway .splitgate { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100svh; }
.sg-half { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; overflow: hidden; isolation: isolate; padding: 0 20px 7vh; color: #fff; text-decoration: none; text-align: center; min-height: 50vh; }
.sg-bg { position: absolute; inset: 0; z-index: -2; }
.sg-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.sg-half::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 14, 50, .35) 0%, rgba(20, 14, 50, .15) 35%, rgba(12, 8, 32, .9) 100%); transition: opacity .3s; }
.sg-ms::after { background: linear-gradient(180deg, rgba(40, 12, 10, .4) 0%, rgba(40, 12, 10, .2) 35%, rgba(18, 6, 6, .92) 100%); }
.sg-pm { border-right: 2px solid rgba(255, 255, 255, .28); }
.sg-art { display: flex; justify-content: center; align-items: flex-end; width: 100%; max-width: 520px; height: min(46vh, 420px); margin-bottom: 14px; }
.sg-art img { height: 100%; width: auto; max-width: 48%; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .55)); transition: transform .3s; }
.sg-ms .sg-art img { max-width: 34%; }
.sg-body { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 440px; }
.sg-kind { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.sg-name { font-size: clamp(1.8rem, 4.6vw, 3.2rem); font-weight: 900; line-height: 1.1; text-shadow: 0 4px 22px rgba(0, 0, 0, .6); }
.sg-name .pill { font-size: .8rem; vertical-align: middle; }
.sg-tag { font-size: 1.02rem; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.sg-go { margin-top: 10px; padding: 13px 30px; border-radius: 999px; background: #fff; color: #1b1440; font-weight: 800; font-size: 1.05rem; box-shadow: 0 8px 26px rgba(0, 0, 0, .35); }
.sg-ms .sg-go { background: #ff8a3c; color: #1a0d06; }
.sg-half:hover .sg-bg img, .sg-half:focus-visible .sg-bg img { transform: scale(1.05); }
.sg-half:hover .sg-art img, .sg-half:focus-visible .sg-art img { transform: translateY(-6px); }
.sg-half:hover::after, .sg-half:focus-visible::after { opacity: .8; }
.sg-half:focus-visible { outline: 4px solid #ffd35a; outline-offset: -4px; }
.sg-title { position: absolute; z-index: 3; top: 18px; left: 50%; transform: translateX(-50%); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; text-align: center; }
.sg-title img { width: min(150px, 30vw); height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55)); }
.sg-title span { padding: 7px 18px; border-radius: 999px; background: rgba(12, 8, 32, .78); color: #fff; font-size: clamp(.95rem, 2.4vw, 1.2rem); font-weight: 800; white-space: nowrap; }
.sg-lang { position: absolute; z-index: 4; top: 16px; right: 16px; }
.worldbar .wb-home { font-weight: 700; }
@media (max-width: 760px) {
  body.gateway .splitgate { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .sg-pm { border-right: 0; border-bottom: 2px solid rgba(255, 255, 255, .28); padding-top: 120px; }
  .sg-half { padding-left: 16px; padding-right: 16px; padding-bottom: 22px; min-height: 50svh; }
  .sg-art { height: min(20vh, 170px); margin-bottom: 8px; }
  .sg-tag { font-size: .92rem; }
  .sg-go { padding: 10px 24px; margin-top: 4px; }
  .sg-title { top: 10px; }
  .sg-title img { width: 96px; }
  .sg-lang { top: 10px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) { .sg-bg img, .sg-art img { transition: none; } }

.sg-pm .sg-art { gap: 10px; }
.sg-pm .sg-art img { border-radius: 18px; }


/* ───────── 마스터즈: 인게임 캡처와 전투 자세 그림 (2026-11-22) ───────── */
.ms-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.ms-shot { margin: 0; border-radius: 16px; overflow: hidden; background: #14102c; box-shadow: 0 10px 28px rgba(20, 14, 50, .22); }
.ms-shot img { display: block; width: 100%; height: auto; }
.ms-shot figcaption { padding: 10px 14px; color: #fff; font-weight: 700; font-size: .95rem; }
.ms-shot:first-child { grid-column: 1 / -1; }
.ms-lineup img { width: 34%; height: auto; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .55)); }
.ms-classes .cls img { width: 100%; height: auto; object-fit: contain; }
@media (max-width: 760px) { .ms-shots { grid-template-columns: 1fr; } }
