/* World Pop Crossword 홈페이지 (2026-10-23) — 게임의 지구 스킨(css/skin-earth.css)과 같은 색.
   시작 화면 = 우주에서 본 지구 + 해돋이(게임 타이틀 그림) · 아래는 엽서 종이 바탕. 문구는 tools/make_homepage.py
   10/24 다듬기: 같은 카드 네 장 · 대문자 눈썹 글 · 한 낱말 색칠을 뺐다. 움직임은 시작 화면과 단서 체험(누를 때만)에만 */
:root {
  --navy: #0b1a33; --ink: #132238; --ocean: #1f6fb2; --sky: #4fb3e8; --shallow: #9fe3f5;
  --land: #4ea35a; --sun: #ffb53c; --sun-dark: #d99a1f; --coral: #ff6b5a; --paper: #fbf6ea; --sand: #efe2c2;
  --soft: #3b4d66; --mute: #6b7a90; --night-text: #c7dcef;
  --display: 'Fredoka', 'Nunito', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans Thai', 'Noto Sans', system-ui, sans-serif;
  --body: 'Nunito', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans Thai', 'Noto Sans', system-ui, sans-serif;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(28px, 4.4vw, 42px); color: var(--ink); }
h2 em, h1 em { font-style: normal; }
.eyebrow { margin: 0 0 10px; color: var(--sun); font: 800 16px/1.3 var(--body); }
.eyebrow-dark { color: var(--ocean); }
/* 키보드로 옮겨 다닐 때 보이는 테두리 */
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 10px; }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 12px 22px; font: 800 15px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-sun { background: linear-gradient(180deg, #ffc65e, var(--sun)); color: #3a2400; box-shadow: 0 4px 0 var(--sun-dark), 0 10px 24px rgba(255, 181, 60, .35); }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn-sm { padding: 9px 16px; font-size: 14px; box-shadow: 0 3px 0 var(--sun-dark); }
.btn-store { background: rgba(255, 255, 255, .1); color: #fff; border: 1.5px solid rgba(159, 227, 245, .45); backdrop-filter: blur(6px); }
.btn-store span { display: flex; flex-direction: column; align-items: flex-start; }
.btn-store small { font-size: 11px; font-weight: 700; opacity: .8; }
.btn-store b { font-size: 15px; }
.btn-ghost { display: flex; margin: 18px auto 0; background: #fff; color: var(--ocean); border: 1.5px solid var(--sand); }

/* ── 위 메뉴 ── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, box-shadow .25s; }
.nav.is-solid, .nav.is-open { background: rgba(11, 26, 51, .92); backdrop-filter: blur(10px); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 15px/1.05 var(--display); }
.nav-logo img { width: 44px; height: 44px; border-radius: 12px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; opacity: .88; }
.nav-links a:hover { opacity: 1; color: var(--shallow); }
.nav-side { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid rgba(159, 227, 245, .4); border-radius: 999px; padding: 7px 12px; background: rgba(255, 255, 255, .08); color: #fff; font: 800 13px var(--body); cursor: pointer; }
.lang-ic { width: 17px; height: 17px; }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.menu-btn i { width: 18px; height: 2px; border-radius: 2px; background: #fff; }

/* ── 시작 화면 ── */
[hidden] { display: none !important; }
/* 넓은 화면 = 가로 그림(지평선이 아래 35%) · 폰 = 세로 그림(아래 900px 묶음) */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: #fff;
  background: var(--navy) url(/img/ui2/bg_lobby_earth_pc.webp) center bottom / cover no-repeat; padding: 100px 0 120px; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 26, 51, .55) 0%, rgba(11, 26, 51, 0) 60%), linear-gradient(180deg, rgba(11, 26, 51, 0) 85%, var(--paper) 100%); pointer-events: none; }
.stars { position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 72% 12%, #fff, transparent), radial-gradient(1.5px 1.5px at 88% 30%, #cfe8ff, transparent), radial-gradient(1px 1px at 34% 8%, #fff, transparent), radial-gradient(1px 1px at 52% 26%, #fff, transparent); animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .5; } to { opacity: 1; } }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 30px; }
.hero-mark { width: min(340px, 78%); margin: 0 0 18px -6px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; text-shadow: 0 4px 24px rgba(0, 0, 0, .45); }
.hero-sub { max-width: 560px; margin: 18px 0 26px; color: #e3eefa; font-size: 18px; font-weight: 600; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 28px 0 0; }
.hero-facts li { display: flex; flex-direction: column; padding-left: 14px; border-left: 3px solid var(--sun); }
.hero-facts b { font: 700 22px/1.2 var(--display); }
.hero-facts span { color: var(--night-text); font-size: 13px; font-weight: 700; }

.hero-art { position: relative; height: min(560px, 62vh); }
.globe { position: absolute; right: 4%; top: 2%; width: min(430px, 82%); aspect-ratio: 1; animation: float 7s ease-in-out infinite; }
.globe-img { width: 100%; filter: drop-shadow(0 0 40px rgba(79, 179, 232, .55)); }
.pin { position: absolute; width: 13%; animation: pinbob 2.6s ease-in-out infinite; }
.p1 { left: 26%; top: 18%; } .p2 { left: 62%; top: 14%; animation-delay: .5s; } .p3 { left: 52%; top: 46%; animation-delay: 1s; }
.hero-riley { position: absolute; left: 4%; bottom: 0; width: min(270px, 44%); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); animation: float 5s ease-in-out infinite reverse; }
.tile { position: absolute; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; font: 700 30px var(--display); color: var(--ink);
  background: linear-gradient(160deg, #fff, #ffe7b0); box-shadow: 0 5px 0 #c9a25a, 0 14px 26px rgba(0, 0, 0, .35); transform: rotate(var(--r, 0deg)); animation: float 6s ease-in-out infinite; }
.t1 { right: 6%; bottom: 20%; --r: -8deg; } .t2 { right: 22%; bottom: 8%; --r: 6deg; animation-delay: .8s; background: linear-gradient(160deg, #fff, #c8ecfb); box-shadow: 0 5px 0 #6aa9c9, 0 14px 26px rgba(0, 0, 0, .35); } .t3 { right: 38%; bottom: 16%; --r: -4deg; animation-delay: 1.6s; }
@keyframes float { 50% { translate: 0 -12px; } }
@keyframes pinbob { 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .globe, .pin, .hero-riley, .tile, .stars, .is-demo .hint { animation: none; transition: none; } }

/* ── 섹션 ── */
.sec { padding: 84px 0; }
.sec-tint { background: linear-gradient(180deg, #eef7fd, #daeefb); }
.sec-night { background: var(--navy) url(/img/ui2/bg_lobby_earth.webp) center / cover; color: #fff; }
.sec-night h2 { color: #fff; }
.sec > .wrap > h2 { max-width: 24ch; text-wrap: balance; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) p { word-break: keep-all; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 56px; margin-top: 48px; }
.feat { display: flex; flex-direction: column; gap: 24px; }
.feat-wide { grid-column: span 2; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 56px; padding-top: 56px; border-top: 2px dashed var(--sand); }
.feat-txt { max-width: 34em; }
.feat h3 { margin: 12px 0 8px; font-size: 26px; color: var(--ink); }
.feat p { margin: 0; color: var(--soft); font-size: 17px; font-weight: 600; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: .02em; }
.c-sun { background: #fff1d1; color: #9a5e00; } .c-sky { background: #def1fb; color: #0e4a80; } .c-land { background: #dcf1de; color: #276b33; } .c-coral { background: #ffe4df; color: #b33a2c; }
.feat-art { margin: auto 0 0; }
/* 미니 퍼즐판 */
.art-board { display: grid; place-items: center; padding: 18px; border-radius: 18px; background: #a07a4c url(/themes/new-orleans-french-quarter/floor.webp) center / 220px; }
.mini { display: grid; grid-template-columns: repeat(5, 46px); gap: 6px; padding: 10px; border-radius: 12px; background: rgba(40, 24, 10, .55); }
.mini i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 9px; font: 700 24px var(--display); font-style: normal; }
.mini .on { background: linear-gradient(160deg, #fff, #ffe7b0); color: var(--ink); box-shadow: 0 3px 0 #c9a25a; }
.mini .off { background: rgba(0, 0, 0, .25); }
/* 단서 3단계 */
.art-hints { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.art-hints.is-demo { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.is-demo .hint { transition: opacity .35s, transform .35s cubic-bezier(.2, .9, .3, 1.3); }
.is-demo .hint.is-shut { opacity: .22; transform: scale(.97); }
.is-demo .hint.is-shut span { filter: blur(5px); }
.is-demo .hint.is-next { outline: 2px dashed var(--sun); outline-offset: 3px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { outline-color: transparent; } }
.hint { display: flex; gap: 12px; align-items: baseline; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 6px 14px rgba(19, 34, 56, .2); }
.hint b { flex: none; min-width: 64px; padding: 2px 8px; border-radius: 8px; font-size: 12px; text-align: center; }
.h1 b { background: var(--coral); } .h2 { margin-left: 18px; } .h2 b { background: var(--ocean); } .h3 { margin-left: 36px; } .h3 b { background: var(--sun); color: #3a2400; }
/* 명소 · 크루 */
.art-places { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0; padding: 8px; }
.pc { margin: 0; padding: 8px 8px 0; background: #fff; border-radius: 4px; box-shadow: 0 1px 0 var(--sand), 0 12px 24px rgba(19, 34, 56, .16); rotate: -1.5deg; }
.pc:nth-child(2) { rotate: 1.2deg; translate: 0 10px; } .pc:nth-child(3) { rotate: .8deg; } .pc:nth-child(4) { rotate: -1deg; translate: 0 8px; }
.pc img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.pc figcaption { padding: 6px 2px 8px; font: 600 15px/1.2 var(--display); color: var(--soft); }
.art-crew { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 0; }
.art-crew img { width: 100%; aspect-ratio: 1; border-radius: 50%; background: #dcf0fb; border: 3px solid #fff; box-shadow: 0 1px 0 var(--sand); }

/* ── 소식 ── */
.news-wrap { max-width: 860px; }
.news-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: #fff; border: 1.5px solid var(--sand); }
.tab { border: 0; border-radius: 999px; padding: 8px 16px; background: transparent; color: var(--soft); font: 800 14px var(--body); cursor: pointer; }
.tab.is-on { background: var(--ocean); color: #fff; }
.news-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.news-item { border-radius: 16px; background: #fff; border: 1.5px solid #d6e9f6; }
.news-item summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; }
.news-item summary::-webkit-details-marker { display: none; }
.news-tag { flex: none; padding: 3px 9px; border-radius: 8px; background: #def1fb; color: #0e4a80; font-size: 12px; font-weight: 900; }
.news-tag.is-pin { background: #ffe4df; color: #b33a2c; } .news-tag.is-ver { background: #dcf1de; color: #276b33; }
.news-title { flex: 1; min-width: 0; font-weight: 800; }
.news-date { flex: none; color: var(--mute); font-size: 13px; }
.news-body { margin: 0; padding: 0 18px 18px; color: var(--soft); white-space: pre-line; }
.news-empty { padding: 20px; text-align: center; color: var(--mute); }

/* ── 다운로드 ── */
.dl { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 30px; }
.dl-txt p { color: var(--night-text); font-size: 17px; font-weight: 600; margin: 14px 0 24px; }
.dl-art { justify-self: center; width: min(300px, 100%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: end center;
  background: radial-gradient(circle at 50% 38%, #3d8fd0, #12305a 72%); box-shadow: 0 0 0 8px rgba(159, 227, 245, .12), 0 24px 50px rgba(0, 0, 0, .45); }
.dl-riley { width: 94%; }

/* ── 아래 ── */
.foot { padding: 46px 0 56px; background: #081327; color: #9fb3cc; }
.foot-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.foot-mark { width: 150px; opacity: .95; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.foot-links a { color: #dbe7f5; text-decoration: none; font-weight: 800; font-size: 14px; }
.foot-note { max-width: 760px; margin: 0; font-size: 13px; }
.foot-copy { margin: 0; font-size: 12px; opacity: .7; }

/* ── 언어 고르기 창 ── */
.lang-ov { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(8, 19, 39, .7); backdrop-filter: blur(6px); }
.lang-box { width: min(520px, 100%); padding: 26px; border-radius: 26px; background: linear-gradient(180deg, #fffdf7, var(--paper)); box-shadow: 0 0 0 4px rgba(159, 227, 245, .35), 0 30px 60px rgba(0, 0, 0, .4); }
.lang-box h2 { font-size: 24px; margin-bottom: 16px; }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lang-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--sand); background: #fff; color: var(--ink); font: 800 15px var(--body); cursor: pointer; text-align: left; }
.lang-opt.is-on { border-color: var(--ocean); background: #eef7fd; }
.lang-opt-flag { font-size: 20px; }

/* ── 좁은 화면 ── */
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: rgba(11, 26, 51, .96); }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid rgba(159, 227, 245, .15); }
  .menu-btn { display: flex; }
  .nav-side { margin-left: auto; }
  .hero { align-items: flex-start; padding: 92px 0 90px; background-image: url(/img/ui2/bg_title_earth.webp); background-position: center 80%; }
  .hero::after { background: linear-gradient(180deg, rgba(11, 26, 51, .1) 0%, rgba(11, 26, 51, .05) 38%, rgba(11, 26, 51, .55) 58%, rgba(11, 26, 51, .7) 90%, var(--paper) 100%); }
  .hero-in { grid-template-columns: 1fr; gap: 0; }
  .hero-art { height: 340px; order: -1; margin-bottom: -10px; }
  .globe { width: min(250px, 62%); right: 6%; top: 0; }
  .hero-riley { width: min(170px, 40%); left: 6%; }
  .tile { width: 44px; height: 44px; font-size: 23px; border-radius: 11px; }
  .hero-mark { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-grid { gap: 48px; }
  .feat-wide { grid-column: auto; grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .dl { grid-template-columns: 1fr; text-align: center; }
  .dl .hero-cta { justify-content: center; }
  .dl-art { width: 210px; }
}
@media (max-width: 520px) {
  .nav-logo span { display: none; }
  .lang #lang-name { display: none; }
  .hero-sub { font-size: 16px; }
  .btn-lg { padding: 13px 22px; font-size: 16px; }
  .mini { grid-template-columns: repeat(5, 40px); gap: 5px; }
  .mini i { width: 40px; height: 40px; font-size: 21px; }
  .art-crew { grid-template-columns: repeat(4, 1fr); }
  .hint { font-size: 14px; } .h2 { margin-left: 10px; } .h3 { margin-left: 20px; }
  .lang-box { padding: 22px 16px; }
  .lang-opt { padding: 11px 10px; font-size: 13px; }
}
