/* 이비터짐(IBIPANG) 공식 사이트 v2 — 게임 공식 사이트 문법 · 젤리 질감 하나로 통일 · 벚꽃 밤 (26.10.10)
   토큰은 :root, 다크는 「벚꽃 밤」. 게시판(site/board)도 이 파일을 같이 쓴다(gnb·foot·wrap·토큰). */
@font-face { font-family: 'Jua'; src: url('jua.woff2?v=61e87708') format('woff2'); font-display: swap; }

:root {
  --bg: #fff7f2; --bg2: #ffeef5; --surface: #ffffff; --surface2: #fff3f8; --ink: #2b2140; --muted: #6c6283; --line: #f2dbe6;
  --pink: #ff4f8b; --pink2: #ff8db1; --teal: #10b5a4; --gold: #ffc93c; --gold2: #ff9f1c; --violet: #6a4bd8; --night: #1a1240; --plum: #3a1a5e;
  --shadow: 0 10px 30px rgba(120, 60, 110, .12); --shadow-lg: 0 24px 60px rgba(120, 60, 110, .2);
  --r: 24px; --gnb-h: 62px; --display: 'Jua', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #100b26; --bg2: #171036; --surface: #1d1644; --surface2: #261d58; --ink: #f6f0ff; --muted: #b8aedb; --line: #352b70;
    --pink: #ff6f9f; --pink2: #ff9fc0; --teal: #2fd3c0; --gold: #ffd35a; --violet: #9a83ff;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #100b26; --bg2: #171036; --surface: #1d1644; --surface2: #261d58; --ink: #f6f0ff; --muted: #b8aedb; --line: #352b70;
  --pink: #ff6f9f; --pink2: #ff9fc0; --teal: #2fd3c0; --gold: #ffd35a; --violet: #9a83ff;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--gnb-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif; line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.disp { font-family: var(--display); font-weight: 400; letter-spacing: -.2px; }
.ic { width: 20px; height: 20px; flex: none; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(40px) scale(.6); } to { opacity: 1; transform: none; } }

/* ───────── 젤리 버튼(사이트 전체 공통) ───────── */
.jbtn { --j1: #ffe07a; --j2: #ffb22e; --jd: #cf7a0b; --jt: #4a2300;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; text-decoration: none; font-family: var(--display); font-size: 20px; line-height: 1;
  color: var(--jt); padding: 15px 28px 14px; border-radius: 20px; background: linear-gradient(180deg, var(--j1) 0%, var(--j2) 100%);
  box-shadow: 0 6px 0 var(--jd), 0 14px 28px color-mix(in srgb, var(--j2) 45%, transparent), inset 0 2px 0 rgba(255, 255, 255, .75), inset 0 -4px 0 rgba(0, 0, 0, .06);
  transition: transform .15s, box-shadow .15s, filter .2s; overflow: hidden; isolation: isolate; white-space: nowrap; }
.jbtn::before { content: ''; position: absolute; left: 10px; right: 10px; top: 4px; height: 38%; border-radius: 99px; background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); z-index: -1; }
.jbtn::after { content: ''; position: absolute; top: 0; bottom: 0; width: 34%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent); transform: skewX(-20deg); animation: shine 3.4s 1.4s infinite; }
@keyframes shine { 0%, 62% { left: -60%; } 100% { left: 130%; } }
.jbtn:hover { transform: translateY(-2px); filter: saturate(1.1); }
.jbtn:active { transform: translateY(4px) scale(.98); box-shadow: 0 2px 0 var(--jd), 0 5px 12px color-mix(in srgb, var(--j2) 40%, transparent), inset 0 2px 0 rgba(255, 255, 255, .75); }
.jbtn.pink { --j1: #ffa3c4; --j2: #ff4f8b; --jd: #c2306a; --jt: #fff; }
.jbtn.xl { font-size: 23px; padding: 17px 34px 16px; min-width: min(320px, 84vw); border-radius: 24px; }
.jbtn.sm { font-size: 15.5px; padding: 10px 16px 9px; border-radius: 15px; box-shadow: 0 4px 0 var(--jd), inset 0 2px 0 rgba(255, 255, 255, .75); }
.jbtn .ic { width: 22px; height: 22px; }

/* ───────── 로딩 ───────── */
.loader { animation: lgone .3s .9s forwards; position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 14px; background: radial-gradient(70% 60% at 50% 45%, #3a2380, #140c30); color: #fff;
  transition: opacity .45s, visibility .45s; }
.loader img { width: 110px; animation: lpop .9s cubic-bezier(.3, 1.6, .5, 1) infinite alternate; }
@keyframes lgone { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes lpop { from { transform: translateY(6px) scale(.96, 1.04); } to { transform: translateY(-14px) scale(1.04, .96); } }
.lbar { width: 160px; height: 14px; border-radius: 99px; background: rgba(255, 255, 255, .15); padding: 3px; }
.lbar i { display: block; height: 100%; width: 10%; border-radius: 99px; background: linear-gradient(180deg, #ffd3e2, #ff4f8b); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6); animation: lfill .8s ease-out forwards; }
@keyframes lfill { to { width: 100%; } }
.loader span { font-family: var(--display); font-size: 17px; opacity: .9; }
.loader.done, .seen .loader { opacity: 0; visibility: hidden; pointer-events: none; }

/* 커서·탭 반짝이 */
.spark { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.spark i { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: url('img/petal.webp?v=fc319e4c') center / contain no-repeat; animation: sp .9s ease-out forwards; }
.spark i.st { background: none; }
.spark i.st::before { content: ''; position: absolute; inset: 0; background: #ffd65c; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes sp { to { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 30px)) rotate(var(--r, 120deg)) scale(.4); } }

/* ───────── GNB ───────── */
.gnb { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--gnb-h); display: flex; align-items: center; gap: 8px; padding: 0 10px 0 14px; transition: background .3s, box-shadow .3s; color: #fff; }
.gnb.solid { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.gnb-logo { display: flex; align-items: center; height: 100%; flex: none; }
.gnb-logo img { height: 30px; width: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.gnb-logo:hover img { transform: scale(1.08) rotate(-3deg); }
.gnb nav { display: none; gap: 2px; margin-left: 14px; }
.gnb nav a { text-decoration: none; font-family: var(--display); font-size: 17px; padding: 8px 12px; border-radius: 99px; position: relative; opacity: .92; transition: background .2s, opacity .2s, transform .2s; }
.gnb nav a:hover { background: rgba(255, 255, 255, .16); opacity: 1; transform: translateY(-1px); }
.gnb.solid nav a:hover { background: var(--surface2); }
.gnb nav a.on { opacity: 1; }
.gnb nav a.on::after { content: ''; position: absolute; left: 50%; bottom: 1px; width: 18px; height: 4px; margin-left: -9px; border-radius: 99px; background: var(--pink); }
.gnb .sp { flex: 1; }
.gnb-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); display: grid; place-items: center; transition: background .2s, transform .2s; flex: none; }
.gnb.solid .gnb-btn { background: var(--surface2); }
.gnb-btn:hover { transform: scale(1.06); }
.gnb-cta { display: none; }
.gnb-menu { display: grid; }
@media (min-width: 1100px) { .gnb nav { display: flex; } .gnb-menu { display: none; } .gnb-cta { display: inline-flex; } .gnb { padding: 0 24px; } }

.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(16, 11, 38, .97); backdrop-filter: blur(10px); color: #fff; display: flex; flex-direction: column; padding: 18px 20px 28px; opacity: 0; pointer-events: none; transition: opacity .25s; overflow-y: auto; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer .top { display: flex; justify-content: space-between; align-items: center; }
.drawer nav { display: grid; gap: 2px; margin: 18px 0 20px; }
.drawer nav a { text-decoration: none; font-family: var(--display); font-size: 26px; padding: 9px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; align-items: center; transform: translateX(-12px); opacity: 0; transition: transform .35s, opacity .35s; }
.drawer.open nav a { transform: none; opacity: 1; }
.drawer nav a small { font-family: system-ui; font-size: 11px; letter-spacing: 2px; opacity: .55; }
.drawer .cta-row { margin-top: auto; }

/* 배경음악 미니 플레이어 */
.mp { position: relative; flex: none; }
.mp-btn { height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px 0 11px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .16); font-weight: 800; font-size: 13px; transition: background .2s; }
.gnb.solid .mp-btn { background: var(--surface2); }
.mp-btn[aria-pressed="true"] { background: linear-gradient(180deg, #ff9fc0, #ff4f8b) !important; color: #fff; box-shadow: 0 0 0 3px rgba(255, 79, 139, .25); }
.mp-lbl { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 359px) { .mp-lbl { display: none; } .mp-btn { padding: 0 11px; } }
/* 음악 켜기 유도(26.10.11): 자동재생이 막혔을 때만 */
.mp-btn.nudge { background: #ff5f97; color: #fff; animation: mpNudge 1.6s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(255, 95, 151, .6); }
@keyframes mpNudge { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 95, 151, .55); } 50% { transform: scale(1.07); box-shadow: 0 0 0 9px rgba(255, 95, 151, 0); } }
@media (prefers-reduced-motion: reduce) { .mp-btn.nudge { animation: none; } }
@media (max-width: 359px) { .mp-btn.nudge .mp-lbl { display: inline; } }
/* 음악 켜기 유도 끝 */
.eq { display: flex; gap: 2px; align-items: flex-end; height: 15px; }
.eq i { width: 3px; background: currentColor; border-radius: 2px; height: 7px; }
.eq i:nth-child(2) { height: 12px; } .eq i:nth-child(3) { height: 5px; } .eq i:nth-child(4) { height: 9px; }
[aria-pressed="true"] .eq i { animation: eq .9s ease-in-out infinite; }
[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; } [aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.6s; } [aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -.45s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 15px; } }
.mp-panel { position: absolute; top: calc(100% + 10px); right: 0; width: min(270px, calc(100vw - 24px)); padding: 14px; border-radius: 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; gap: 10px; z-index: 55; }
@media (max-width: 1099px) { .mp-panel { position: fixed; top: calc(var(--gnb-h) + 6px); right: 12px; } }
.mp-now small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--pink); }
.mp-now b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.2; }
.mp-now span { font-size: 12.5px; color: var(--muted); }
.mp-row { display: flex; gap: 8px; }
.mp-act { flex: 1; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); font-weight: 800; font-size: 14px; }
.mp-act.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.mp-auto { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.mp-auto input { accent-color: var(--pink); }
.mp-toast { position: fixed; z-index: 45; top: calc(var(--gnb-h) + 8px); right: 12px; padding: 7px 14px 7px 12px; border-radius: 99px; background: rgba(26, 18, 64, .82); color: #fff; font-size: 13px; font-weight: 700; backdrop-filter: blur(8px); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s, transform .3s; white-space: nowrap; }
.mp-toast.on { opacity: 1; transform: none; }
.mp-toast b { color: #ffd65c; }
@media (max-width: 759px) { .mp-toast { display: none; } }

/* ───────── 키 비주얼 ───────── */
.kv { position: relative; height: 100vh; height: 100svh; min-height: 580px; overflow: hidden; color: #fff; isolation: isolate; background: #1a1240; }
.kv-bg { position: absolute; inset: -5% 0 0 0; z-index: -3; will-change: transform; }
.kv-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; animation: kvzoom 24s ease-in-out infinite alternate; }
@keyframes kvzoom { from { transform: scale(1.02); } to { transform: scale(1.08); } }
.kv::before { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 10, 44, .62) 0%, rgba(16, 10, 44, .12) 30%, rgba(16, 10, 44, 0) 52%, rgba(16, 10, 44, .55) 82%, rgba(16, 10, 44, .85) 100%); }
.kv-glow { position: absolute; inset: 0; z-index: -2; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(16% 12% at 20% 32%, rgba(255, 190, 120, .32), transparent 70%), radial-gradient(14% 11% at 80% 26%, rgba(255, 170, 210, .32), transparent 70%); animation: glow 4.5s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .4; } to { opacity: 1; } }
#petals { position: absolute; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }
.kv-copy { position: absolute; inset: 0 0 auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(var(--gnb-h) + 3.5vh) 16px 0; }
.kv-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); animation: fade .6s .2s both; }
.kv-badge i { width: 8px; height: 8px; border-radius: 50%; background: #ff6f9c; box-shadow: 0 0 0 0 rgba(255, 111, 156, .7); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(255, 111, 156, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 111, 156, 0); } }
.kv-logo { width: min(72vw, 440px); margin-top: 10px; filter: drop-shadow(0 8px 0 rgba(40, 14, 70, .35)) drop-shadow(0 18px 30px rgba(20, 8, 50, .5)); animation: logo .8s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes logo { from { opacity: .15; transform: scale(.5) rotate(-6deg); } to { opacity: 1; transform: none; } }
.kv-h1 { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(27px, 7.4vw, 50px); line-height: 1.18; color: #fff; -webkit-text-stroke: 7px var(--plum); paint-order: stroke fill; text-shadow: 0 5px 0 var(--plum), 0 12px 24px rgba(20, 8, 50, .5); animation: fade .7s .55s both; }
.kv-h1 em { font-style: normal; color: #ffd65c; }
.kv-sub { margin: 8px 0 0; font-weight: 700; font-size: clamp(13.5px, 3.5vw, 17px); text-shadow: 0 2px 8px rgba(20, 8, 50, .8); animation: fade .7s .7s both; }
.kv-sub b { color: #ffe9a8; }
.kv-hello { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 12px; padding: 7px 16px; border-radius: 18px 18px 18px 4px; background: #fff; color: #2b2140; box-shadow: 0 8px 20px rgba(20, 8, 50, .35); animation: fade .7s .85s both; }
.kv-hello .flag { font-size: 17px; }
.kv-hello .w { font-size: 15px; color: #6c6283; }
.kv-hello .h { font-family: var(--display); font-size: 21px; color: #e63e78; }
.kv-hello.swap { animation: hswap .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hswap { 0% { transform: scale(.85); opacity: .3; } 100% { transform: none; opacity: 1; } }
.kv-cta { position: absolute; left: 0; right: 0; bottom: max(30px, 5vh); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 16px; animation: fade .7s 1s both; z-index: 2; }
.kv-counter { font-size: 13.5px; font-weight: 700; background: rgba(20, 10, 50, .5); padding: 5px 12px; border-radius: 99px; backdrop-filter: blur(6px); }
.kv-counter b { color: #ffd65c; font-variant-numeric: tabular-nums; }
.scroll-cue { position: absolute; left: 50%; bottom: 10px; width: 24px; height: 38px; margin-left: -12px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px; display: none; }
.scroll-cue::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (min-width: 761px) {
  .kv-copy { padding-top: calc(var(--gnb-h) + 4vh); }
  .kv-bg img { object-position: 50% 60%; }
  .scroll-cue { display: block; }
  .kv-cta { bottom: max(56px, 7vh); }
}
/* 모바일 히어로(26.10.11): 버튼 묶음을 낮고 납작하게 — 가운데 팡이(차장 모자)가 가려지지 않게. 스토어 두 개는 한 줄로 */
@media (max-width: 760px) {
  .kv-cta { gap: 8px; bottom: max(18px, 2.6vh); }
  .kv-cta .jbtn.xl { font-size: 20px; padding: 13px 26px 12px; min-width: min(300px, 80vw); border-radius: 20px; }
  .kv-cta .stores { flex-wrap: nowrap; width: min(420px, 100%); gap: 8px; }
  .kv-cta .store { flex: 1 1 0; min-width: 0; gap: 7px; padding: 6px 8px 6px 9px; border-radius: 13px; position: relative; }
  .kv-cta .store svg { width: 20px; height: 20px; flex: none; }
  .kv-cta .store small { font-size: 10.5px; }
  .kv-cta .store b { font-size: 14.5px; white-space: nowrap; }
  .kv-cta .store .soon { position: absolute; top: -8px; right: -4px; font-size: 10px; padding: 2px 6px; }
}
@media (max-height: 700px) and (max-width: 760px) { .kv-logo { width: min(58vw, 320px); margin-top: 6px; } .kv-copy { padding-top: calc(var(--gnb-h) + 1.5vh); } .kv-hello { margin-top: 8px; } }

/* 스토어 버튼 */
.stores { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border: 1px solid rgba(255, 255, 255, .45); background: rgba(10, 6, 30, .74); color: #fff; padding: 8px 14px 8px 12px; border-radius: 15px; min-width: 156px; backdrop-filter: blur(6px); transition: transform .2s, background .2s, box-shadow .2s; }
.store:hover { transform: translateY(-2px); background: rgba(10, 6, 30, .92); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; line-height: 1.15; text-align: left; }
.store small { font-size: 10.5px; opacity: .8; }
.store b { font-size: 16.5px; letter-spacing: -.2px; }
.store .soon { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 800; background: #d42a64; color: #fff; padding: 2px 7px; border-radius: 99px; }
.store.me { box-shadow: 0 0 0 3px #ffd65c, 0 8px 24px rgba(255, 200, 60, .35); }

/* ───────── 섹션 공통 ───────── */
section.sec { position: relative; padding: 90px 0; overflow: hidden; }
.alt { background: var(--bg2); }
.sh { text-align: center; margin-bottom: 36px; position: relative; }
.sh-en { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 900; letter-spacing: 3.5px; color: var(--pink); }
.sh-en::before, .sh-en::after { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .5; }
.sh-t { margin: 8px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(31px, 7.6vw, 52px); line-height: 1.16; letter-spacing: -.5px; }
.sh-t em { font-style: normal; background: linear-gradient(180deg, #ff8db1 0%, #ff4f8b 60%, #e0346f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sh p { margin: 12px auto 0; color: var(--muted); max-width: 580px; font-size: 15.5px; }
.sh p b { color: var(--ink); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.branch { position: absolute; top: -6px; width: min(46vw, 380px); height: 90px; pointer-events: none; z-index: 1; opacity: .95; }
.branch.b-l { left: -30px; } .branch.b-r { right: -30px; transform: scaleX(-1); }
@media (max-width: 600px) { .branch { width: 56vw; height: 60px; } }
[data-rv] { opacity: 0; transform: translateY(30px); transition: opacity .75s cubic-bezier(.2, .8, .2, 1), transform .75s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
[data-rv="pop"] { transform: scale(.84) translateY(20px); }
[data-rv].in { opacity: 1; transform: none; }

/* 소식 */
.tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: var(--surface); padding: 8px 16px; border-radius: 99px; font-weight: 800; font-size: 14.5px; transition: background .2s, color .2s, transform .15s; }
.tab:hover { transform: translateY(-1px); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.news { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; padding: 0; list-style: none; }
.news a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.news a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.news .tag { flex: none; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--pink) 16%, transparent); color: var(--pink); }
.news .tag.up { background: color-mix(in srgb, var(--teal) 18%, transparent); color: var(--teal); }
.news .tag.ev { background: color-mix(in srgb, var(--gold2) 20%, transparent); color: #d07b0c; }
.news .t { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news time { flex: none; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.news .empty { text-align: center; padding: 30px 16px; color: var(--muted); }
.more { display: flex; justify-content: center; margin-top: 18px; }
.more a { text-decoration: none; font-weight: 800; color: var(--pink); padding: 8px 14px; border-radius: 99px; }
.more a:hover { background: var(--surface2); }

/* 게임 소개 */
.feats { display: grid; gap: 28px; }
.feat { display: grid; gap: 18px; align-items: center; padding: 24px 22px; overflow: hidden; position: relative; }
.feat .num { display: inline-block; font-family: var(--display); font-size: 15px; color: #fff; background: var(--c); padding: 3px 12px; border-radius: 99px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45); }
.feat h3 { margin: 10px 0 8px; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 6vw, 33px); line-height: 1.2; }
.feat p { margin: 0; color: var(--muted); }
.demo { margin-top: 14px; display: inline-flex; flex-direction: column; min-width: min(280px, 100%); padding: 12px 16px; border-radius: 18px; background: var(--surface2); border: 2px dashed color-mix(in srgb, var(--pink) 35%, transparent); }
.demo small { font-size: 12px; font-weight: 800; color: var(--muted); }
.demo .jp { font-size: 14.5px; color: var(--muted); }
.demo .hg { font-family: var(--display); font-size: 26px; color: var(--pink); line-height: 1.2; }
.demo .ko { font-size: 13.5px; }
.demo.swap > * { animation: fade .45s both; }
.phone { position: relative; width: min(230px, 62vw); margin: 0 auto; aspect-ratio: 1320 / 2868; border-radius: 34px; padding: 8px; background: linear-gradient(145deg, #2b2140, #4a3a78); box-shadow: var(--shadow-lg), inset 0 2px 0 rgba(255, 255, 255, .2); transform: rotate(var(--rot, -3deg)); transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }
.feat:hover .phone { transform: rotate(0) translateY(-6px); }
.feat .blob { position: absolute; width: 280px; height: 280px; border-radius: 50%; filter: blur(55px); opacity: .35; z-index: 0; right: -70px; top: -70px; background: var(--c, var(--pink)); pointer-events: none; }
.feat > * { position: relative; z-index: 1; }
@media (min-width: 820px) { .feat { grid-template-columns: 1.2fr 1fr; padding: 40px 48px; } .feat.flip { grid-template-columns: 1fr 1.2fr; } .feat.flip .txt { order: 2; } }
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 16px 26px; margin: 0 -16px; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots figure { margin: 0; flex: none; width: min(210px, 56vw); scroll-snap-align: center; }
.shots .phone { width: 100%; transform: none; }
.shots .phone:hover { transform: translateY(-6px); }
.shots-nav { display: flex; justify-content: center; gap: 10px; }
.round { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .15s; }
.round:hover { transform: scale(1.08); }
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .games { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.game { position: relative; padding: 12px 12px 14px; text-align: center; transition: transform .25s, box-shadow .25s; overflow: hidden; }
.game::before { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--c) 32%, transparent), transparent 70%); }
.game:hover { box-shadow: var(--shadow-lg); }
.game img { position: relative; width: 82%; aspect-ratio: 1; object-fit: contain; margin: 0 auto; transition: transform .35s cubic-bezier(.2, 1.6, .4, 1); }
.game:hover img { transform: scale(1.08) rotate(-3deg); }
.game b { position: relative; display: block; font-family: var(--display); font-weight: 400; font-size: 19px; margin-top: 6px; }
.game span { position: relative; display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.game .lv { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--c); color: #fff; z-index: 1; }

/* ───────── 배울 언어 ───────── */
.langs { background: linear-gradient(180deg, #dff2ff 0%, #f1e8ff 100%); }
:root[data-theme="dark"] .langs { background: linear-gradient(180deg, #121a44 0%, #1d1248 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .langs { background: linear-gradient(180deg, #121a44 0%, #1d1248 100%); } }
.langs-bg { position: absolute; inset: 0; pointer-events: none; }
.langs-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
:root[data-theme="dark"] .langs-bg img { opacity: .35; }
.lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .lang-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .lang-grid { grid-template-columns: repeat(5, 1fr); } }
.lc { position: relative; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 14px 14px 12px; border-radius: 20px; border: 2px solid transparent; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.lc::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--lc); }
.lc:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: var(--shadow-lg); }
.lc .fl { font-size: 26px; line-height: 1; }
.lc .nm { font-family: var(--display); font-size: 19px; margin-top: 4px; }
.lc .w { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc .h { font-family: var(--display); font-size: 18px; color: var(--lc); line-height: 1.2; }
.lc .st { position: absolute; top: 12px; right: 10px; font-size: 10.5px; font-weight: 900; padding: 2px 8px; border-radius: 99px; background: var(--surface2); color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.lc .st svg { width: 11px; height: 11px; }
.lc.ready { grid-column: 1 / -1; border-color: var(--lc); background: linear-gradient(135deg, color-mix(in srgb, var(--lc) 14%, var(--surface)), var(--surface) 60%); padding: 18px; }
.lc.ready .st { background: var(--lc); color: #fff; }
.lc.ready .nm { font-size: 26px; }
.lc.ready .h { font-size: 26px; }
.lc.ready .play { position: absolute; right: 16px; bottom: 16px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--lc) 70%, #fff), var(--lc)); box-shadow: 0 4px 0 color-mix(in srgb, var(--lc) 70%, #000); }
@media (min-width: 1000px) { .lc.ready { grid-column: span 2; grid-row: span 2; justify-content: flex-end; } }
.lc:not(.ready) { filter: saturate(.85); }
.lc:not(.ready) .h { opacity: .9; }

/* ───────── 세계 친구들 ───────── */
.chars { position: relative; display: grid; gap: 16px; }
.stage { position: relative; min-height: 480px; padding: 22px 20px; overflow: hidden; border-radius: 32px; color: #fff; isolation: isolate;
  background: radial-gradient(80% 70% at 50% 35%, color-mix(in srgb, var(--cc, #ff8db1) 70%, #fff) 0%, var(--cc, #ff8db1) 45%, color-mix(in srgb, var(--cc, #ff8db1) 50%, #1a1240) 100%); transition: background .5s; box-shadow: var(--shadow-lg); }
.stage-bg { position: absolute; inset: 0; z-index: -1; mix-blend-mode: soft-light; }
.stage-bg img { width: 100%; height: 100%; object-fit: cover; }
.stage .big { position: relative; width: min(290px, 70vw); aspect-ratio: 1; margin: 0 auto; }
.stage .big img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(30, 10, 60, .4)); }
.stage .big img.enter { animation: charIn .6s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes charIn { from { opacity: 0; transform: translateX(60px) scale(.75) rotate(8deg); } to { opacity: 1; transform: none; } }
.stage .floor { position: absolute; left: 50%; bottom: -4%; width: 70%; height: 14%; margin-left: -35%; border-radius: 50%; background: rgba(30, 10, 60, .28); filter: blur(6px); }
.stage .info { position: relative; text-align: center; }
.stage .from { display: inline-block; font-size: 12.5px; font-weight: 800; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .28); }
.stage .nm { margin: 8px 0 0; font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1; -webkit-text-stroke: 7px rgba(40, 14, 70, .55); paint-order: stroke fill; }
.stage .mean { margin: 6px 0 0; font-size: 13.5px; opacity: .95; }
.stage .duty { margin: 8px 0 0; font-size: 14px; font-weight: 800; line-height: 1.4; word-break: keep-all; }
.stage .meet { margin: 4px 0 0; font-size: 12px; line-height: 1.4; opacity: .85; word-break: keep-all; }
.bubble { position: relative; display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px 12px 18px; border-radius: 22px; background: #fff; color: #2b2140; text-align: left; box-shadow: 0 10px 24px rgba(30, 10, 60, .25); max-width: 100%; }
.bubble::before { content: ''; position: absolute; top: -9px; left: 50%; margin-left: -9px; border: 9px solid transparent; border-top: 0; border-bottom-color: #fff; }
.bubble .jp { font-size: 13.5px; color: #6c6283; }
.bubble .hg { font-family: var(--display); font-size: 23px; line-height: 1.15; color: #e63e78; }
.bubble .ko { font-size: 13px; }
.voice { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 0; background: linear-gradient(180deg, #ff9fc0, #ff4f8b); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 0 #c73468, inset 0 2px 0 rgba(255, 255, 255, .5); transition: transform .15s; }
.voice:active { transform: translateY(3px); box-shadow: 0 1px 0 #c73468; }
.voice:disabled { filter: grayscale(1); opacity: .5; cursor: default; }
.voice.playing { animation: pulse .6s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.1); } }
.vnote { margin: 8px 0 0; font-size: 12px; opacity: .85; min-height: 18px; }
.picker { display: flex; gap: 10px; overflow-x: auto; padding: 6px 4px 14px; scroll-snap-type: x proximity; scrollbar-width: none; }
.picker::-webkit-scrollbar { display: none; }
.pick { flex: none; width: 76px; height: 86px; border-radius: 22px; border: 3px solid transparent; background: var(--surface); box-shadow: var(--shadow); padding: 4px 4px 2px; scroll-snap-align: center; transition: transform .2s, border-color .2s; position: relative; display: grid; grid-template-rows: 1fr auto; }
.pick img { width: 100%; height: 56px; object-fit: contain; }
.pick span { font-size: 11.5px; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.pick[aria-selected="true"] { border-color: var(--pink); transform: translateY(-4px) scale(1.06); }
.friends { margin-top: 26px; text-align: center; }
.friends .row { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.friends .row img { width: 52px; height: 52px; object-fit: contain; animation: bob 3s ease-in-out infinite; }
.friends .row img:nth-child(odd) { animation-delay: -1.5s; }
.friends p { color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .stage { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; min-height: 540px; padding: 40px 64px; }
  .stage .big { width: 430px; }
  .stage .info { text-align: left; }
  .stage .nm { font-size: 68px; }
  .bubble::before { left: -9px; top: 50%; margin: -9px 0 0; border: 9px solid transparent; border-left: 0; border-right-color: #fff; }
  .picker { justify-content: center; }
  .pick { width: 92px; height: 104px; } .pick img { height: 70px; }
}

/* ───────── 쉿쉿단 ───────── */
.gang { color: #fff; background: radial-gradient(90% 60% at 50% 0%, #4b2b8f 0%, #23154f 55%, #140c30 100%); }
.gang-bg { position: absolute; inset: 0; pointer-events: none; }
.gang-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.gang::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 14px, transparent 14px 28px); pointer-events: none; }
.gang .sh p { color: #d6ccf7; }
.gang .sh-en { color: #ffb3cc; }
.gang .sh-t em { background: linear-gradient(180deg, #fff1a8, #ffd65c 55%, #ff9f1c); -webkit-background-clip: text; background-clip: text; }
.gang-hero { position: relative; max-width: 860px; margin: 0 auto 30px; }
.gang-hero img { width: 100%; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
/* 쉿~! 말풍선(26.10.11): 그림 위가 아니라 그림 바로 위 여백에 — 모바일에서 오른쪽 위 멤버(손) 얼굴을 가리지 않게 */
.gang-hero { margin-top: 34px; }
.gang-hero .zip { top: auto !important; bottom: 100%; right: 4% !important; margin-bottom: -4px; }
/* 쉿 말풍선 끝 */
.gang-hero .zip { position: absolute; right: 2%; top: 4%; font-family: var(--display); font-size: clamp(18px, 4.6vw, 26px); background: #ffd65c; color: var(--plum); padding: 6px 14px; border-radius: 14px; transform: rotate(6deg); box-shadow: 0 4px 0 #b88a12; animation: wob 2.6s ease-in-out infinite; }
@keyframes wob { 50% { transform: rotate(-4deg) scale(1.06); } }
.flips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .flips { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1040px) { .flips { grid-template-columns: repeat(4, 1fr); } }
.flip { position: relative; display: block; width: 100%; perspective: 1000px; border: 0; padding: 0; background: none; aspect-ratio: 3 / 5.4; text-align: center; }
.flip .fl { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.3, 1.3, .5, 1); transform-style: preserve-3d; }
.flip[aria-pressed="true"] .fl { transform: rotateY(180deg); }
.flip:not([aria-pressed="true"]):hover .fl { transform: rotateY(-8deg) translateY(-4px); }
.flip .f, .flip .b { position: absolute; inset: 0; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 12px 10px; }
.flip .f { background: linear-gradient(180deg, color-mix(in srgb, var(--vc) 80%, #fff) 0%, var(--vc) 60%, color-mix(in srgb, var(--vc) 60%, #000) 100%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2), inset 0 3px 0 rgba(255, 255, 255, .35), 0 12px 24px rgba(0, 0, 0, .35); }
.flip .f::after { content: ''; position: absolute; inset: 6px; border-radius: 17px; border: 2px dashed rgba(255, 255, 255, .25); pointer-events: none; }
.flip .f img { width: 80%; aspect-ratio: 1; object-fit: contain; margin-top: 4px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); transition: transform .3s; }
.flip .f b { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; margin-top: auto; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.flip .f small { font-size: 12px; opacity: .88; }
.flip .f .tap { position: absolute; top: 10px; right: 10px; font-size: 10.5px; font-weight: 800; background: rgba(0, 0, 0, .3); padding: 2px 8px; border-radius: 99px; z-index: 1; }
.flip .b { transform: rotateY(180deg); background: #fffaf0; color: #2b2140; text-align: left; align-items: stretch; gap: 5px; font-size: 12.5px; line-height: 1.45; box-shadow: 0 12px 24px rgba(0, 0, 0, .35); }
.flip .b .say { font-family: var(--display); font-size: 18px; color: var(--vc); text-align: center; line-height: 1.15; }
.flip .b .say small { display: block; font-family: system-ui; font-size: 11.5px; color: #6c6283; }
.flip .b .stamp { position: absolute; right: 8px; top: 10px; font-family: var(--display); font-size: 13px; color: #e0346f; border: 2px solid #e0346f; border-radius: 8px; padding: 1px 6px; transform: rotate(10deg); opacity: .85; }
.flip .f .job { font-size: 12px; font-weight: 800; opacity: 1; padding: 2px 10px; margin-top: 3px; border-radius: 99px; background: rgba(0, 0, 0, .22); word-break: keep-all; line-height: 1.35; }
.flip .f .why { margin-top: 6px; font-size: 11.5px; line-height: 1.4; opacity: .92; word-break: keep-all; }
.flip .b .chain { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 9px; }
.flip .b .chain li { position: relative; padding: 6px 8px; border-radius: 12px; background: color-mix(in srgb, var(--vc) 10%, #fff); word-break: keep-all; line-height: 1.4; }
.flip .b .chain li + li::before { content: '↓'; position: absolute; left: 50%; top: -11px; transform: translateX(-50%); font-size: 12px; font-weight: 900; color: var(--vc); }
.flip .b .chain i { display: block; font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--vc); }
.flip .b .chain .oops { background: #ffe6ef; }
.flip .b .chain .oops i { color: #e0346f; display: table; font-family: var(--display); font-weight: 400; font-size: 12px; border: 2px solid #e0346f; border-radius: 7px; padding: 0 5px; margin: 1px 0 3px; transform: rotate(-4deg); }
.flip .b .cry { display: block; flex: 1 1 0; min-height: 0; width: 100%; max-height: 150px; margin-top: 2px; object-fit: contain; }
.flip .b .where { margin-top: auto; font-size: 11px; line-height: 1.4; color: #6c6283; text-align: center; word-break: keep-all; }
@media (max-width: 420px) { .flip { aspect-ratio: 3 / 5.9; } .flip .f img { width: 64%; } .flip .f b { font-size: 21px; } .flip .f .why { font-size: 11px; } .flip .b { font-size: 11.5px; padding: 10px 8px; gap: 4px; } .flip .b .say { font-size: 15px; } .flip .b .say small { font-size: 10.5px; } .flip .b .where { font-size: 10.5px; } }
@media (min-width: 700px) { .flip { aspect-ratio: 3 / 4.5; } .flip .b { font-size: 13px; gap: 8px; padding: 14px 12px; } .flip .b .chain { gap: 12px; } .flip .b .chain li { padding: 8px 10px; } .flip .f .why { font-size: 12px; } }
@media (min-width: 1040px) { .flip { aspect-ratio: 3 / 4; } }
.gang-law { list-style: none; margin: 0 auto 26px; padding: 0; max-width: 860px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gang-law li { position: relative; padding: 14px 10px 12px; border-radius: 18px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14); text-align: center; }
.gang-law li + li::before { content: '→'; position: absolute; left: -7px; top: 50%; transform: translate(-50%, -50%); color: #ffd65c; font-weight: 900; font-size: 14px; }
.gang-law b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; color: #ffd65c; line-height: 1.1; }
.gang-law li:nth-child(2) b { color: #ffb3cc; }
.gang-law li:nth-child(3) b { color: #9ff0d8; }
.gang-law span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: #e5dcff; word-break: keep-all; }
@media (max-width: 420px) { .gang-law { gap: 10px; } .gang-law li { padding: 10px 5px 9px; border-radius: 14px; } .gang-law b { font-size: 19px; } .gang-law span { font-size: 11px; } .gang-law span br { display: none; } .gang-law li + li::before { left: -5px; font-size: 12px; } }
.gang-note { text-align: center; margin-top: 22px; color: #d6ccf7; font-size: 14px; }

/* ───────── 월드 ───────── */
.cities { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.city { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 800; font-size: 14.5px; box-shadow: var(--shadow); transition: transform .15s; }
.city:hover { transform: translateY(-2px); }
.city[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.city svg { width: 13px; height: 13px; opacity: .6; }
.world { position: relative; border-radius: 32px; overflow: hidden; color: #fff; min-height: 520px; background: #1a1240; box-shadow: var(--shadow-lg); }
.world > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) brightness(.6); transform: scale(1.06); transition: filter .5s; }
.world.locked > img { filter: saturate(.4) brightness(.35) blur(3px); }
.world .ribbon { position: absolute; top: 18px; left: -6px; z-index: 2; font-family: var(--display); font-size: 17px; padding: 6px 18px 6px 20px; background: #ff4f8b; border-radius: 0 12px 12px 0; box-shadow: 0 4px 0 #b52a5a; }
.world .map { position: relative; z-index: 1; width: 100%; max-width: 760px; margin: 0 auto; display: block; padding: 70px 8px 0; }
.world svg text { font-family: var(--display); }
.world .stn { cursor: pointer; }
.world .stn circle.dot { fill: #fff; stroke: #ff4f8b; stroke-width: 5; transition: r .2s; }
.world .stn:hover circle.dot, .world .stn.on circle.dot { r: 13; fill: #ffd65c; }
.world .stn .halo { fill: #ff4f8b; opacity: .35; transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-out infinite; }
@keyframes halo { from { transform: scale(.6); opacity: .5; } to { transform: scale(2.2); opacity: 0; } }
.world .route { stroke-dasharray: 1600; stroke-dashoffset: 1600; transition: stroke-dashoffset 2.4s ease-out; }
.world.in .route, .world .route.drawn { stroke-dashoffset: 0; }
.world .later { position: relative; z-index: 1; min-height: 380px; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 70px 20px 20px; }
.world .later .sil { font-family: var(--display); font-size: clamp(40px, 12vw, 80px); color: rgba(255, 255, 255, .9); text-shadow: 0 6px 0 rgba(0, 0, 0, .35); }
.world .later p { margin: 0; opacity: .9; max-width: 360px; }
.world .later .lock { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; background: rgba(255, 255, 255, .15); padding: 6px 14px; border-radius: 99px; }
.world .pop { position: relative; z-index: 2; margin: 0 16px 18px; padding: 14px 16px; border-radius: 18px; background: rgba(20, 12, 50, .8); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .18); min-height: 84px; }
.world .pop b { font-family: var(--display); font-weight: 400; font-size: 22px; }
.world .pop b small { font-family: system-ui; font-size: 13px; opacity: .75; margin-left: 6px; }
.world .pop p { margin: 2px 0 0; font-size: 14px; opacity: .92; }
.world .pop .lock { display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 99px; background: #ffd65c; color: var(--plum); }
@media (min-width: 900px) { .world .pop { position: absolute; right: 24px; bottom: 24px; width: 300px; margin: 0; } }
.shops { display: flex; gap: 14px; overflow-x: auto; padding: 22px 4px 8px; scrollbar-width: none; }
.shops::-webkit-scrollbar { display: none; }
.shop { flex: none; width: 150px; text-align: center; }
.shop img { width: 100%; aspect-ratio: 1.07; object-fit: contain; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.shop:hover img { transform: translateY(-6px) scale(1.04); }
.shop b { display: block; font-family: var(--display); font-weight: 400; font-size: 18px; }
.shop span { font-size: 12.5px; color: var(--muted); }
@media (min-width: 900px) { .shops { justify-content: center; } }

/* 커뮤니티 */
.comm { display: grid; gap: 14px; }
@media (min-width: 760px) { .comm { grid-template-columns: repeat(3, 1fr); } }
.comm .card { padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; transition: transform .2s, box-shadow .2s; }
.comm a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.comm .ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--ic) 70%, #fff), var(--ic)); box-shadow: 0 4px 0 color-mix(in srgb, var(--ic) 70%, #000), inset 0 2px 0 rgba(255, 255, 255, .5); }
.comm .ico .ic { width: 28px; height: 28px; }
.comm b { font-family: var(--display); font-weight: 400; font-size: 23px; }
.comm p { margin: 0; color: var(--muted); font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); text-decoration: none; }
.chip.off { opacity: .65; }
.chip.off::after { content: ' · 준비 중'; font-weight: 500; }

/* 다운로드 */
.dl { color: #fff; background: linear-gradient(180deg, #2a1a66 0%, #5b2d8f 55%, #ff6f9c 135%); }
.dl .sh p { color: #eadfff; }
.dl .sh-en { color: #ffd65c; }
.dl .sh-t { color: #fff; -webkit-text-stroke: 6px var(--plum); paint-order: stroke fill; text-shadow: 0 5px 0 var(--plum); }
.dl-box { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; text-align: center; }
.dl-box .pangi { width: 150px; margin: -10px auto 8px; animation: bob 2.6s ease-in-out infinite; }
.notify { margin-top: 22px; text-align: left; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); border-radius: 26px; padding: 18px; backdrop-filter: blur(8px); }
.notify h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 25px; }
.notify .nsub { font-size: 13.5px; color: #eadfff; }
.notify .row { display: flex; gap: 8px; margin-top: 12px; }
.notify input[type="email"] { flex: 1; min-width: 0; height: 54px; padding: 0 16px; border-radius: 16px; border: 2px solid transparent; font-size: 16px; background: #fff; color: #2b2140; outline: none; }
.notify input[type="email"]:focus { border-color: #ffd65c; }
.notify .seg { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.notify .seg label { flex: 1; min-width: 88px; }
.notify .seg input { position: absolute; opacity: 0; }
.notify .seg span { display: block; text-align: center; padding: 9px 6px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .35); font-weight: 800; font-size: 14px; cursor: pointer; transition: background .2s; }
.notify .seg input:checked + span { background: #fff; color: var(--plum); }
.notify .seg input:focus-visible + span { outline: 3px solid #ffd65c; }
.notify .agree { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13.5px; }
.notify .agree input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #ff4f8b; flex: none; }
.notify details { margin-top: 8px; font-size: 12.5px; color: #eadfff; }
.notify details summary { cursor: pointer; font-weight: 700; }
.notify details table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.notify details th, .notify details td { border: 1px solid rgba(255, 255, 255, .25); padding: 6px 8px; text-align: left; vertical-align: top; }
.notify details th { width: 30%; white-space: nowrap; }
.notify .go { width: 100%; margin-top: 14px; }
.notify .msg { min-height: 22px; margin: 10px 0 0; font-weight: 700; font-size: 14px; text-align: center; }
.notify .msg.ok { color: #ffd65c; } .notify .msg.err { color: #ffd0de; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q'; font-family: var(--display); color: var(--pink); margin-right: 10px; font-size: 19px; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 20px 18px 48px; color: var(--muted); }

/* ───────── 푸터 ───────── */
.foot { position: relative; padding: 54px 0 40px; background: #120c2c; color: #b8aedb; font-size: 13.5px; overflow: hidden; }
.foot .branch { top: -4px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.foot .logos { display: flex; align-items: center; gap: 14px; }
.foot .logos img { height: 34px; width: auto; }
.foot-sns { display: flex; gap: 8px; }
.foot-sns a, .foot-sns span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.foot-sns span { opacity: .45; }
/* 공식 SNS 아이콘(26.10.11): 평소 흰색, 누르거나 올리면 각 서비스 색 */
.foot-sns a { transition: background .2s, transform .2s; }
.foot-sns a:hover, .foot-sns a:focus-visible { transform: translateY(-2px); }
.foot-sns a[data-sns="youtube"]:hover { background: #ff0033; }
.foot-sns a[data-sns="instagram"]:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.foot-sns a[data-sns="tiktok"]:hover, .foot-sns a[data-sns="x"]:hover, .foot-sns a[data-sns="threads"]:hover { background: #000; }
.foot-sns a[data-sns="tiktok"]:hover svg { filter: drop-shadow(1.5px 1px 0 #ff0050) drop-shadow(-1.5px -1px 0 #00f2ea); }
.sns-chip { display: inline-flex; align-items: center; gap: 6px; }
.sns-chip .ic { width: 16px; height: 16px; }
/* SNS 끝 */
.foot .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.foot .links a { text-decoration: none; font-weight: 700; color: #f6f0ff; }
.foot .links a:hover { color: var(--pink2); }
.foot-meta { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; }
/* 전체 이용가 배지(26.10.11) */
.rating { flex: none; width: 58px; height: 58px; border-radius: 12px; background: #1fa65a; border: 2px solid #fff; box-shadow: 0 0 0 2px #1fa65a; display: grid; place-content: center; text-align: center; line-height: 1.1; color: #fff; }
.rating b { font-size: 19px; letter-spacing: .5px; color: #fff; } .rating span { font-size: 9.5px; font-weight: 800; color: #fff; }
.foot p { margin: 2px 0; }
.foot a { color: inherit; }
@media (max-width: 1099px) { body:not(.bd) .foot { padding-bottom: 96px; } }

/* 아래 고정 출시 알림(모바일·태블릿) — 내려 읽을 땐 숨고 올릴 때만 */
.fab { position: fixed; z-index: 40; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; justify-content: center; transform: translateY(160%); transition: transform .35s cubic-bezier(.2, 1.3, .4, 1); pointer-events: none; }
.fab.show { transform: none; }
.fab a { pointer-events: auto; font-size: 17px; padding: 12px 22px; }
@media (min-width: 1100px) { .fab { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  [data-rv] { opacity: 1; transform: none; }
  .spark { display: none; }
  .world .route { stroke-dashoffset: 0; }
}
/* 데스크톱 첫 화면: 글 묶음을 위쪽 40% 안에 모아 캐릭터 얼굴을 가리지 않게 */
@media (min-width: 761px) {
  .kv-copy { padding-top: calc(var(--gnb-h) + 2.5vh); }
  .kv-logo { width: min(30vw, 360px); margin-top: 6px; }
  .kv-h1 { font-size: clamp(30px, 3.4vw, 46px); }
  .kv-hello { margin-top: 8px; }
}
.langs-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg2) 0%, transparent 28%, transparent 80%, var(--bg2) 100%); }
.langs-bg img { opacity: .38; }

/* ───── 홍보 영상(26.10.11) — 데스크톱 16:9 · 좁은 화면 9:16 ───── */
.pv { padding: 70px 0 40px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }
.pv-frame { position: relative; margin: 0 auto; width: 100%; max-width: 1040px; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #1a1240;
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 8px var(--line), var(--shadow-lg); }
.pv-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #1a1240; }
.pv-play { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border: 0; border-radius: 50%; color: #4a2300; padding-left: 8px;
  background: radial-gradient(circle at 50% 35%, #fff2b0, #ffc93c 55%, #ff9f1c); box-shadow: 0 6px 0 #cf7a0b, 0 14px 30px rgba(0, 0, 0, .35); display: grid; place-items: center; transition: transform .15s; }
.pv-play svg { width: 44px; height: 44px; }
.pv-play:hover { transform: scale(1.07); }
.pv.playing .pv-play { opacity: 0; pointer-events: none; }
.pv-snd { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px 8px 12px; border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 999px; background: rgba(26, 18, 64, .72); color: #fff; font-family: var(--display); font-size: 16px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pv-snd[aria-pressed="true"] { background: #ff4f8b; border-color: #fff; }
.pv-snd:focus-visible, .pv-play:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 760px) {
  .pv { padding: 56px 0 24px; }
  .pv-frame { aspect-ratio: 9 / 16; width: min(100%, calc((100svh - var(--gnb-h) - 200px) * 9 / 16)); min-width: min(100%, 260px); border-radius: 24px; }
  .pv-play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
  .pv-play svg { width: 36px; height: 36px; }
}
