/* K-Pop Crossword 홈페이지 시안 — 색은 게임 타이틀 화면(무대 조명)과 로비(연보라)에서 가져왔다 */
:root {
  --night: #120a33; --night-2: #2b1766; --purple: #7c3aed; --purple-2: #8a3ff0;
  --pink: #ff7fc4; --pink-deep: #c94f9a; --gold: #ffc23d; --gold-light: #ffe27a; --gold-deep: #d08a12;
  --sky: #58c8f5; --sky-deep: #2b8fc4;
  --ink: #1b1340; --ink-soft: #5d5680; --bg: #f3effa; --card: #ffffff; --line: #e4dcf5;
  --display: 'Jua', 'Noto Sans KR', system-ui, sans-serif;
  --body: 'Noto Sans KR', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px / 1.6 var(--body); -webkit-font-smoothing: antialiased; word-break: keep-all; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
/* Jua has only Hangul and basic Latin: other languages would mix two typefaces inside one word */
html:not([lang="ko"]):not([lang="en"]) { --display: var(--body); }
html:not([lang="ko"]):not([lang="en"]) :is(h1, h2, h3) { font-weight: 900; }
html:is([lang="ja"], [lang="th"]) body { word-break: normal; overflow-wrap: anywhere; line-break: strict; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: 700 16px / 1 var(--body); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .2s; white-space: nowrap; }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--ink); box-shadow: 0 5px 0 var(--gold-deep), 0 12px 22px rgba(10, 4, 40, .3); font-weight: 900; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--gold-deep), 0 16px 26px rgba(10, 4, 40, .34); }
.btn-gold:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--gold-deep), 0 6px 12px rgba(10, 4, 40, .3); }
.btn-lg { min-height: 62px; padding: 0 30px; font-size: 19px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; box-shadow: 0 3px 0 var(--gold-deep); }
.btn-sm:hover { box-shadow: 0 5px 0 var(--gold-deep); }
.btn-store { min-height: 62px; padding: 0 24px 0 20px; gap: 12px; background: rgba(255, 255, 255, .12); color: #fff; border: 2px solid rgba(255, 255, 255, .5); backdrop-filter: blur(6px); text-align: left; }
.btn-store svg { width: 28px; height: 28px; }
.btn-store span { display: grid; gap: 4px; }
.btn-store small { font: 500 11px / 1 var(--body); opacity: .8; }
.btn-store b { font: 700 16px / 1 var(--body); }
.btn-store:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--purple); border: 2px solid var(--line); margin: 20px auto 0; display: flex; }
.btn-ghost[hidden] { display: none; }
.btn-ghost:hover { border-color: var(--purple); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* ── 상단 메뉴 ── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, box-shadow .25s; }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav-logo img { height: 46px; width: auto; filter: drop-shadow(0 2px 6px rgba(10, 4, 40, .4)); }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 10px 14px; border-radius: 999px; color: #fff; font-weight: 500; font-size: 15px; opacity: .88; transition: background .2s, opacity .2s; }
.nav-links a:hover { background: rgba(255, 255, 255, .14); opacity: 1; }
.nav-side { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; gap: 6px; min-width: 44px; height: 40px; padding: 0 12px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; font: 700 13px var(--body); cursor: pointer; white-space: nowrap; }
.lang i { font-style: normal; font-size: 10px; opacity: .8; }
.lang-ic { width: 18px; height: 18px; flex: none; }
.nb { white-space: nowrap; }
/* 언어 고르기 창 (2026-10-09 — 게임의 언어 창처럼 여덟 언어를 눌러서 고른다) */
.lang-ov { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(27, 19, 64, .6); backdrop-filter: blur(3px); }
.lang-box { width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px 18px 18px; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(20, 10, 60, .4); }
.lang-box h2 { margin: 0 0 14px; text-align: center; font: 900 19px/1.3 var(--body); }
.lang-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lang-opt { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 16px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 700 15px var(--body); text-align: left; cursor: pointer; }
.lang-opt:hover { border-color: #b9a2f2; }
.lang-opt.is-on { border-color: #7b45f0; background: #f3ecff; color: #5a2bb8; }
.lang-opt-flag { font-size: 22px; line-height: 1; }
.lang:hover { background: rgba(255, 255, 255, .14); }
.menu-btn { display: none; width: 44px; height: 40px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; padding: 0; place-content: center; gap: 5px; }
.menu-btn i { display: block; width: 22px; height: 3px; border-radius: 3px; background: #fff; transition: transform .2s, opacity .2s; }
.nav.is-solid .menu-btn i, .nav.is-open .menu-btn i { background: var(--ink); }
.nav.is-open .menu-btn i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.is-open .menu-btn i:nth-child(2) { opacity: 0; }
.nav.is-open .menu-btn i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav.is-solid { background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(27, 19, 64, .08); }
.nav.is-solid .nav-links a { color: var(--ink); }
.nav.is-solid .nav-links a:hover { background: var(--bg); }
.nav.is-solid .lang { color: var(--ink); border-color: var(--line); }
.nav.is-solid .nav-logo img { filter: none; }

/* ── 히어로 ── */
.hero { position: relative; overflow: hidden; color: #fff; padding: 120px 0 130px;
  background: radial-gradient(120% 70% at 50% 108%, #ff5fb0 0%, #8a3ff0 26%, #2b1766 58%, #120a33 100%); }
.hero-bokeh { position: absolute; inset: 0; background: url(../img/bg_stage.webp) center / cover; opacity: .26; mix-blend-mode: screen; }
.beam { position: absolute; top: -12%; left: 50%; width: 38vmin; height: 135%; transform-origin: 50% 0; mix-blend-mode: screen; filter: blur(8px); opacity: .45; transform: rotate(var(--c)); }
.beam-a { --c: -30deg; background: linear-gradient(180deg, rgba(120, 220, 255, .9), rgba(120, 220, 255, 0) 82%); animation: sway 5.2s ease-in-out infinite alternate; }
.beam-b { --c: 2deg; background: linear-gradient(180deg, rgba(255, 150, 220, .9), rgba(255, 150, 220, 0) 82%); animation: sway 6.4s ease-in-out -2s infinite alternate-reverse; }
.beam-c { --c: 32deg; background: linear-gradient(180deg, rgba(255, 226, 120, .85), rgba(255, 226, 120, 0) 82%); animation: sway 4.6s ease-in-out -1s infinite alternate; }
@keyframes sway { from { transform: rotate(calc(var(--c) - 5deg)); } to { transform: rotate(calc(var(--c) + 5deg)); } }
.dots i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: 0; animation: twinkle 2.4s ease-in-out infinite; }
.dots i:nth-child(1) { left: 6%; top: 18%; } .dots i:nth-child(2) { left: 90%; top: 14%; animation-delay: .5s; } .dots i:nth-child(3) { left: 14%; top: 52%; animation-delay: 1s; background: var(--gold-light); }
.dots i:nth-child(4) { left: 84%; top: 46%; animation-delay: 1.4s; } .dots i:nth-child(5) { left: 4%; top: 76%; animation-delay: .8s; background: #8fe3ff; } .dots i:nth-child(6) { left: 95%; top: 70%; animation-delay: .2s; background: var(--pink); }
.dots i:nth-child(7) { left: 34%; top: 12%; animation-delay: 1.8s; } .dots i:nth-child(8) { left: 62%; top: 22%; animation-delay: 1.1s; background: var(--gold-light); } .dots i:nth-child(9) { left: 46%; top: 82%; animation-delay: .4s; } .dots i:nth-child(10) { left: 72%; top: 88%; animation-delay: 1.6s; background: #8fe3ff; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: .9; transform: scale(1); } }

.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero-logo { width: min(100%, 400px); margin: 0 0 6px -14px; filter: drop-shadow(0 10px 22px rgba(10, 4, 40, .55)); animation: float 3.6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.hero h1 { font-size: clamp(34px, 5vw, 58px); text-shadow: 0 4px 18px rgba(10, 4, 40, .5); }
.hero-sub { margin: 18px 0 30px; font-size: clamp(16px, 1.6vw, 19px); opacity: .92; text-shadow: 0 2px 8px rgba(10, 4, 40, .5); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 38px 0 0; padding: 0; }
.hero-facts li { display: grid; gap: 2px; }
.hero-facts b { font: 400 24px / 1.1 var(--display); color: var(--gold-light); }
.hero-facts span { font-size: 13px; opacity: .85; }

.hero-art { position: relative; height: 560px; }
.phone { position: relative; width: 250px; aspect-ratio: 1 / 2; border-radius: 34px; padding: 8px; background: #1b1340; box-shadow: 0 0 0 2px rgba(255, 255, 255, .18), 0 30px 60px rgba(10, 4, 40, .5); overflow: hidden; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 27px; }
.phone-hero { position: absolute; left: 50%; top: 0; width: 280px; transform: translateX(-56%) rotate(-5deg); }
.hero-kobi { position: absolute; right: -30px; bottom: -34px; width: 300px; filter: drop-shadow(0 16px 26px rgba(10, 4, 40, .5)); animation: float 4.2s ease-in-out -1s infinite; }
.tile { position: absolute; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 15px; background: linear-gradient(180deg, #fff, #f1ecff); color: var(--ink); font: 900 34px / 1 var(--body); border: 5px solid var(--pink); box-shadow: 0 7px 0 var(--pink-deep), 0 16px 22px rgba(10, 4, 40, .45); transform: rotate(var(--r)); animation: bob 3.4s ease-in-out infinite; }
.t-pink { left: 2%; top: 14%; }
.t-sky { left: 10%; top: 44%; border-color: var(--sky); box-shadow: 0 7px 0 var(--sky-deep), 0 16px 22px rgba(10, 4, 40, .45); animation-delay: -1.2s; }
.t-gold { right: 4%; top: 6%; border-color: var(--gold); box-shadow: 0 7px 0 var(--gold-deep), 0 16px 22px rgba(10, 4, 40, .45); background: linear-gradient(180deg, #fff6c9, var(--gold-light)); animation-delay: -2.1s; }
@keyframes bob { 0%, 100% { transform: rotate(var(--r)) translateY(0); } 50% { transform: rotate(var(--r)) translateY(-10px); } }
.hero-curve { position: absolute; left: -5%; right: -5%; bottom: -1px; height: 70px; background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }

/* ── 공통 섹션 ── */
.sec { padding: 90px 0; }
.sec-tint { background: linear-gradient(180deg, #ebe3fb, #f3effa); }
.eyebrow { margin: 0 0 8px; color: var(--purple); font: 700 14px / 1 var(--body); letter-spacing: .08em; }
.sec h2 { font-size: clamp(28px, 3.6vw, 42px); }
.sec h2 em { font-style: normal; background: linear-gradient(90deg, #e0409a, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── 게임 소개 ── */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 40px; }
.feat { position: relative; display: flex; flex-direction: column; gap: 24px; padding: 34px 34px 0; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(86, 60, 160, .08); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.feat:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(86, 60, 160, .14); }
.feat h3 { font-size: 26px; margin: 14px 0 8px; }
.feat p { margin: 0; color: var(--ink-soft); }
.feat .phone { margin: 0 auto -150px; width: 230px; }
.feat-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding: 0 60px 0 50px; min-height: 340px; background: linear-gradient(120deg, #fff 40%, #f6effe); }
.feat-wide .feat-txt { max-width: 440px; padding: 40px 0; }
.feat-wide h3 { font-size: 32px; }
.feat-wide .phone { margin: 40px 0 -190px; width: 250px; flex: none; transform: rotate(4deg); }
.feat-flip { flex-direction: row-reverse; background: linear-gradient(240deg, #fff 40%, #fff3fa); }
.feat-flip .phone { transform: rotate(-4deg); }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; font: 700 13px / 1 var(--body); }
.c-pink { background: #ffe6f3; color: #c2337f; } .c-sky { background: #e0f4fd; color: #1a7bab; }
.c-gold { background: #fff3cf; color: #9a6400; } .c-purple { background: #ede4ff; color: var(--purple); }

/* ── 소식 ── */
.news-wrap { max-width: 860px; }
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.tab { min-height: 42px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font: 700 15px var(--body); cursor: pointer; transition: background .2s, color .2s; }
.tab.is-on { background: linear-gradient(90deg, var(--purple), #c24bc9); color: #fff; box-shadow: 0 4px 12px rgba(124, 58, 237, .3); }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.news-item { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.news-item:hover, .news-item[open] { border-color: #c9b6f3; box-shadow: 0 8px 22px rgba(86, 60, 160, .1); }
.news-item summary { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; list-style: none; }
.news-item summary::-webkit-details-marker { display: none; }
.news-tag { padding: 6px 11px; border-radius: 8px; font: 700 12px / 1 var(--body); background: #ede4ff; color: var(--purple); white-space: nowrap; }
.news-tag.is-ver { background: #e0f4fd; color: #1a7bab; font-variant-numeric: tabular-nums; }
.news-tag.is-pin { background: #ffe6f3; color: #c2337f; }
.news-title { font-weight: 700; font-size: 16px; }
.news-date { color: var(--ink-soft); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.news-item summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); transition: transform .2s; margin: -4px 4px 0; }
.news-item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.news-body { padding: 0 22px 22px; color: var(--ink-soft); white-space: pre-line; border-top: 1px dashed var(--line); padding-top: 16px; margin: 0 0 0; }
.news-empty { padding: 40px; text-align: center; color: var(--ink-soft); }

/* ── 다운로드 ── */
.dl { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 56px 60px; border-radius: 36px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 120% at 90% 110%, #ff5fb0 0%, #8a3ff0 38%, #2b1766 78%, #120a33 100%); box-shadow: 0 24px 50px rgba(60, 30, 140, .3); }
.dl h2 { font-size: clamp(28px, 3.4vw, 40px); }
.dl p { margin: 12px 0 28px; max-width: 480px; opacity: .92; }
.dl-kobi { width: 260px; flex: none; margin: -20px -10px -80px 0; filter: drop-shadow(0 14px 24px rgba(10, 4, 40, .5)); }

/* ── 푸터 ── */
.foot { background: var(--night); color: #cfc6ee; padding: 46px 0 40px; font-size: 14px; }
.foot-in { display: grid; gap: 16px; justify-items: center; text-align: center; }
.foot img { width: 150px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.foot-links a { color: #fff; font-weight: 500; }
.foot-links a:hover { text-decoration: underline; }
.foot-note { margin: 0; max-width: 620px; font-size: 12.5px; opacity: .7; }
.foot-copy { margin: 0; font-size: 12px; opacity: .5; }

/* ── 좁은 화면 ── */
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav-links { display: none; position: absolute; top: 100%; left: 12px; right: 12px; margin: 6px 0 0; padding: 8px; flex-direction: column; gap: 0; background: #fff; border-radius: 20px; box-shadow: 0 16px 40px rgba(27, 19, 64, .25); }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a, .nav.is-solid .nav-links a { color: var(--ink); padding: 14px 16px; font-size: 16px; opacity: 1; }
  .nav.is-open { background: rgba(255, 255, 255, .96); }
  .nav.is-open .lang { color: var(--ink); border-color: var(--line); }
  .hero { padding: 96px 0 90px; }
  .hero-in { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero-logo { margin: 0 auto 6px; width: min(78%, 340px); }
  .hero-cta, .hero-facts { justify-content: center; }
  .hero-art { height: 430px; max-width: 420px; width: 100%; margin: 0 auto; }
  .phone-hero { width: 220px; }
  .hero-kobi { width: 210px; right: -6px; bottom: -20px; }
  .tile { width: 54px; height: 54px; font-size: 27px; border-width: 4px; }
  .sec { padding: 64px 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-grid { gap: 14px; margin-top: 28px; }
  .feat, .feat-wide, .feat-flip { flex-direction: row; align-items: flex-start; gap: 14px; padding: 22px 0 0 22px; min-height: 0; background: #fff; }
  .feat .feat-txt, .feat-wide .feat-txt { flex: 1; min-width: 0; padding: 0 0 22px; max-width: none; }
  .feat h3, .feat-wide h3 { font-size: 21px; margin: 12px 0 6px; }
  .feat p { font-size: 14.5px; }
  .feat .phone, .feat-wide .phone { flex: none; width: 124px; margin: 0 16px -96px 0; padding: 5px; border-radius: 22px; transform: none; }
  .feat .phone img { border-radius: 17px; }
  .dl { flex-direction: column; text-align: center; padding: 44px 24px 0; }
  .dl p { margin-inline: auto; }
  .dl-kobi { width: 200px; margin: 0 0 -50px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .nav-in { gap: 10px; height: 60px; }
  .nav-logo img { height: 38px; }
  .lang { padding: 0 10px; }
  .lang-name { display: none; }
  .btn-lg, .btn-store { width: 100%; }
  .hero-facts { gap: 12px 18px; flex-wrap: nowrap; }
  .hero-facts b { font-size: 19px; white-space: nowrap; }
  .hero-facts span { font-size: 12px; }
  .news-item summary { grid-template-columns: auto 1fr auto; gap: 6px 10px; padding: 16px; }
  .news-title { grid-column: 1 / -1; grid-row: 2; }
  .news-date { grid-column: 2; grid-row: 1; }
  .news-item summary::after { grid-column: 3; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam, .hero-logo, .hero-kobi, .tile, .dots i { animation: none; }
  .dots i { opacity: .6; }
}
