/* Word Solitaire Journey — 랜딩·법적 고지 페이지 공용 스타일 (JS 없음, CSP 'self') */
:root {
  --bg: #120b26;
  --bg-2: #1d1240;
  --card: #241a4d;
  --card-2: #2e2160;
  --line: rgba(255, 255, 255, 0.12);
  --ink: #f6f1ff;
  --muted: #b9addb;
  --gold: #ffc93c;
  --gold-2: #f59e0b;
  --green: #2fb344;
  --pink: #ff5d8f;
  --violet: #8b5cf6;
  --radius: 22px;
  --max: 1120px;
  --font: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Hiragino Sans', 'PingFang SC', 'Noto Sans', sans-serif;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(139, 92, 246, 0.35), transparent 60%), radial-gradient(900px 500px at 0% 20%, rgba(255, 93, 143, 0.18), transparent 60%), var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #000;
  padding: 8px 14px;
  z-index: 100;
}
.skip:focus {
  left: 12px;
}

/* ── 헤더 ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 11, 38, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.site-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 700;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
}
.site-nav a:hover {
  color: var(--ink);
}
.lang-menu {
  position: relative;
}
.lang-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}
.lang-menu summary::-webkit-details-marker {
  display: none;
}
.lang-menu[open] ul {
  display: grid;
}
.lang-menu ul {
  display: none;
  position: absolute;
  right: 0;
  top: 40px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 180px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.lang-menu li a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
}
.lang-menu li a:hover,
.lang-menu li a[aria-current='true'] {
  background: var(--card-2);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 18px;
  font-weight: 900;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(180deg, #7ee26b, #2fb344);
  color: #fff;
  box-shadow: 0 6px 0 #1d7f30, 0 16px 30px rgba(47, 179, 68, 0.35);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}
.btn-ghost {
  border: 2px solid var(--line);
  color: var(--ink);
}
.btn-sm {
  padding: 9px 18px;
  font-size: 15px;
  border-radius: 14px;
  box-shadow: 0 4px 0 #1d7f30;
}

/* ── 히어로 ─────────────────────────────── */
.hero {
  padding: 64px 0 40px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 201, 60, 0.14);
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
  border: 1px solid rgba(255, 201, 60, 0.35);
}
.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -1px;
  word-break: keep-all;
}
.hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--gold), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  word-break: keep-all;
}
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 12px;
}
.hint {
  font-size: 14px;
  color: var(--muted);
}
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
}
.hero-art .stage {
  position: absolute;
  inset: 6% 0 0 6%;
  width: 94%;
  height: 94%;
  object-fit: cover;
  border-radius: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--line);
}
.hero-art .lumi {
  position: absolute;
  left: -4%;
  bottom: -2%;
  width: 62%;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.55));
  animation: bob 3.2s ease-in-out infinite;
}
.hero-art .chip {
  position: absolute;
  padding: 10px 16px;
  border-radius: 16px;
  background: #fffaf0;
  color: #2b1b4d;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.hero-art .chip.c1 {
  right: 6%;
  top: 14%;
  transform: rotate(6deg);
}
.hero-art .chip.c2 {
  right: 14%;
  top: 36%;
  background: linear-gradient(170deg, #fff3c4, #ffc93c);
  transform: rotate(-4deg);
}
@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

/* ── 수치 ─────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 10px 0 0;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 34px;
  line-height: 1.1;
  color: var(--gold);
}
.stat span {
  color: var(--muted);
  font-size: 14px;
}

/* ── 섹션 ─────────────────────────────── */
section.block {
  padding: 72px 0 0;
  scroll-margin-top: 70px;
}
.eyebrow {
  color: var(--pink);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
}
h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 6px 0 10px;
  word-break: keep-all;
}
.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 720px;
  margin: 0 0 28px;
  word-break: keep-all;
}
.grid {
  display: grid;
  gap: 16px;
}
.g3 {
  grid-template-columns: repeat(3, 1fr);
}
.g4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: linear-gradient(170deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.card h3 {
  margin: 8px 0 6px;
  font-size: 20px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  word-break: keep-all;
}
.mode img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}
.step .num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--gold);
  color: #2b1b4d;
  font-weight: 900;
  font-size: 20px;
}

/* ── 루미 ─────────────────────────────── */
.lumi-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: center;
}
.lumi-wrap .big {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}
.outfits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.outfits figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
}
.outfits img {
  aspect-ratio: 1;
  object-fit: contain;
  width: 100%;
}

/* ── 챕터 ─────────────────────────────── */
.chapters {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.chapter {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 2 / 3;
}
.chapter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chapter span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 10px 10px;
  font-weight: 800;
  font-size: 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  word-break: keep-all;
}
.chapter small {
  display: block;
  color: var(--gold);
  font-size: 11px;
}

/* ── FAQ ─────────────────────────────── */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 17px;
}
.faq p {
  color: var(--muted);
  margin: 10px 0 0;
}

/* ── 최종 CTA ─────────────────────────── */
.final {
  margin: 80px auto 0;
  text-align: center;
  padding: 48px 20px;
  border-radius: 32px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(255, 201, 60, 0.25), transparent 70%), var(--card);
  border: 1px solid var(--line);
  max-width: var(--max);
}
.final img {
  width: 140px;
  margin: 0 auto 8px;
}

/* ── 푸터 ─────────────────────────────── */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
}
.site-footer h3 {
  color: var(--ink);
  margin: 0 0 8px;
}
.site-footer address {
  font-style: normal;
  line-height: 1.8;
}
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.langs a {
  text-decoration: none;
}
.langs a[aria-current='true'] {
  color: var(--gold);
  font-weight: 800;
}
.legal-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 700;
}

/* ── 법적 고지 페이지 ─────────────────── */
.legal {
  max-width: 820px;
  margin: 40px auto;
  padding: 0 20px;
}
.legal h1 {
  font-size: 34px;
}
.legal h2 {
  font-size: 22px;
  margin-top: 30px;
}
.legal p,
.legal li {
  color: #ddd3f6;
}
.legal .meta {
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  .lang-menu {
    margin-left: auto;
  }
  .hero .wrap,
  .lumi-wrap,
  .site-footer .cols {
    grid-template-columns: 1fr;
  }
  .hero-art {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
  .stats,
  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .g3 {
    grid-template-columns: 1fr;
  }
  .chapters {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 420px) {
  .brand span {
    display: none;
  }
  .outfits {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.lead.center {
  margin: 0 auto 20px;
}
a.card {
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s;
}
a.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 201, 60, 0.6);
}
.card.ar img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
}
.card.ar:hover img {
  transform: scale(1.06) rotate(-2deg);
}
.card.ar h3 {
  font-size: 17px;
}
.card.ar p {
  font-size: 13px;
}
.arcade-grid {
  margin-bottom: 20px;
}
.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.shot {
  margin: 0;
  text-align: center;
}
.shot img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  border: 6px solid #1c1530;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.shot figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .shots {
    grid-template-columns: repeat(4, 62%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .shot {
    scroll-snap-align: center;
  }
}

/* 첫 방문 로고 화면 → 랜딩 (Worker 가 첫 방문에만 body.intro 추가, JS 없음) */
.intro-splash {
  display: none;
}
body.intro .intro-splash {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: radial-gradient(circle at 50% 40%, #3b1d7a 0%, #160d2e 60%, #0b0618 100%);
  animation: intro-out 0.5s ease 1.4s forwards;
}
.intro-inner {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 0 16px;
}
.intro-icon {
  border-radius: 28px;
  box-shadow: 0 0 0 6px rgba(253, 224, 71, 0.25), 0 20px 60px rgba(124, 58, 237, 0.6);
  animation: intro-pop 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.intro-inner b {
  font-size: clamp(24px, 6vw, 40px);
  color: #fff;
  letter-spacing: 0.5px;
  animation: intro-rise 0.6s ease 0.25s both;
}
.intro-inner span {
  color: #fde68a;
  font-weight: 700;
  animation: intro-rise 0.6s ease 0.4s both;
}
.intro-lumi {
  animation: intro-rise 0.6s ease 0.55s both;
}
@keyframes intro-pop {
  from { opacity: 0; transform: scale(0.4) rotate(-12deg); }
  to { opacity: 1; transform: none; }
}
@keyframes intro-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes intro-out {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.intro .intro-splash { animation-duration: 0.2s; animation-delay: 0.6s; }
  .intro-icon, .intro-inner b, .intro-inner span, .intro-lumi { animation: none; }
}

/* SEO 페이지 (미니게임 · 단어 카테고리) */
.seo-main {
  padding-top: 24px;
  padding-bottom: 56px;
}
.seo-main h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin: 6px 0 12px;
  line-height: 1.15;
}
.seo-main h2 {
  font-size: 22px;
  margin: 28px 0 12px;
}
.seo-main section p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
}
.crumbs li + li::before {
  content: '›';
  margin-right: 6px;
  opacity: 0.6;
}
.crumbs a {
  color: var(--muted);
}
.game-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: center;
  margin: 12px 0 8px;
}
.game-hero img {
  border-radius: 40px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  width: 200px;
  height: 200px;
}
.medals {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  max-width: 420px;
}
.medals li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
}
.medals span {
  font-size: 20px;
  margin-right: 6px;
}
.note {
  font-size: 14px;
}
.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  background: #fffaf0;
  color: #2b1b4d;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 16px;
}
.chips.links li {
  background: none;
  padding: 0;
}
.chips.links a {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
}
.chips.links a:hover {
  border-color: #fde047;
}
.meta-line {
  color: var(--muted);
  margin: -12px 0 8px;
}
.tip {
  background: linear-gradient(170deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px 14px;
  margin-top: 24px;
}
.card.ar.sm {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.card.ar.sm img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}
.card.ar.sm h3 {
  margin: 0;
  font-size: 16px;
}
.card.ar h2 {
  font-size: 17px;
  margin: 10px 0 6px;
}
.explore {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 18px 0 6px;
}
.word-cats {
  margin-top: 8px;
}
@media (max-width: 760px) {
  .game-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .game-hero img {
    width: 140px;
    height: 140px;
    border-radius: 30px;
  }
}

/* 실시간 누적 접속·플레이 수 (Worker 가 숫자를 채움) */
.live {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 6px 10px;
  width: fit-content;
  max-width: 100%;
  margin: 16px 0 0;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.22), rgba(250, 204, 21, 0.12));
  color: var(--muted);
  font-size: 15px;
}
.live b {
  color: #fde047;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.live .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: live-pulse 1.8s infinite;
}
@keyframes live-pulse {
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .live .dot { animation: none; }
}
.intro-lumi {
  object-fit: contain;
}
