@import url("https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap");

:root {
  --bg: #120d22;
  --bg2: #1b1433;
  --glass: rgba(255, 255, 255, 0.07);
  --glass2: rgba(255, 255, 255, 0.12);
  --text: #f6f1ff;
  --muted: #c4b7e0;
  --lav: #c9a8ff;
  --lav2: #e7dcff;
  --cyan: #8ee6e0;
  --gold: #ecd09a;
  --line: rgba(214, 190, 255, 0.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text);
  background:
    radial-gradient(1200px 700px at 85% 10%, rgba(142,230,224,.08), transparent 60%),
    radial-gradient(1000px 800px at 10% 60%, rgba(201,168,255,.10), transparent 60%),
    var(--bg);
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.8; word-break: keep-all; overflow-x: hidden;
}
a { color: var(--lav2); text-decoration: none; }
img { max-width: 100%; display: block; }

/* 상단 바 */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; transition: background .4s, box-shadow .4s;
}
.nav.solid { background: rgba(18,13,34,.72); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2em; font-size: 13px; color: var(--lav2); }
.nav .brand i { width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle, #fff, var(--lav) 50%, transparent 70%); box-shadow: 0 0 12px var(--lav); }
.nav .links a { margin-left: 22px; font-size: 14px; color: var(--text); opacity: .85; transition: color .2s; }
.nav .links a:hover { color: var(--cyan); opacity: 1; }

/* 히어로 */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; overflow: hidden; padding: 120px 16px 90px; }
.hero .bg {
  position: absolute; inset: -30px;
  background: url("mutation-teaser.jpg") center 35% / cover no-repeat;
  filter: saturate(1.08) brightness(.78);
  animation: breathe 26s ease-in-out infinite alternate;
}
@keyframes breathe { from { transform: scale(1.04); } to { transform: scale(1.12) translateY(-14px); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(18,13,34,.15), rgba(18,13,34,.55) 70%),
    linear-gradient(to bottom, rgba(18,13,34,.55) 0%, rgba(18,13,34,.05) 30%, rgba(18,13,34,.25) 70%, var(--bg) 100%);
}
#motes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero .inner { position: relative; z-index: 3; max-width: 920px; }
.hero .eyebrow { color: var(--cyan); }
.hero h1 {
  font-family: "Gowun Batang", serif; font-weight: 700; margin: 14px 0 10px;
  font-size: clamp(40px, 7.5vw, 92px); line-height: 1.08; letter-spacing: .04em;
  background: linear-gradient(120deg, #ffffff 10%, var(--lav2) 35%, var(--lav) 55%, var(--cyan) 80%, #ffffff);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(40,20,80,.75));
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero .tag { font-family: "Gowun Batang", serif; font-size: clamp(19px, 2.8vw, 27px); color: #fff; text-shadow: 0 2px 18px rgba(30,10,60,.9); margin: 0 0 6px; }
.hero .sub { color: var(--lav2); text-shadow: 0 2px 12px rgba(30,10,60,.9); }
.cta { display: inline-flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 999px; font-weight: 700; color: var(--text);
  border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.10); backdrop-filter: blur(10px);
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn.primary { color: #23124a; border-color: transparent; background: linear-gradient(135deg, #ffffff, var(--lav2) 40%, var(--lav) 75%, var(--cyan)); box-shadow: 0 0 28px rgba(201,168,255,.6); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(142,230,224,.55); }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 12px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* 섹션 공통 */
section { position: relative; padding: 110px 16px; }
.wrap { max-width: 1160px; margin: 0 auto; }
.eyebrow { letter-spacing: .34em; font-size: 12px; font-weight: 700; color: var(--lav); text-align: center; }
h2.title { font-family: "Gowun Batang", serif; text-align: center; font-size: clamp(28px, 4vw, 44px); margin: 10px 0 14px; color: #fff; }
.lead { text-align: center; color: var(--muted); max-width: 700px; margin: 0 auto 56px; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 26px; }
.ornament::before, .ornament::after { content: ""; width: 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }
.ornament span { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--gold); box-shadow: 0 0 10px rgba(236,208,154,.6); }

/* 게임 카드 */
.games { display: grid; gap: 34px; }
.game {
  position: relative; border-radius: 28px; overflow: hidden; min-height: 520px;
  display: grid; grid-template-columns: 1.05fr 1fr; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(5,2,15,.55);
}
.game .art { position: relative; overflow: hidden; }
.game .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s ease; }
.game:hover .art img { transform: scale(1.05); }
.game .body { padding: 46px clamp(22px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.game .status { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 5px 14px; border-radius: 999px; margin-bottom: 16px; }
.game h3 { font-family: "Gowun Batang", serif; font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 10px; line-height: 1.2; }
.game p { margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 20px; }
.chips span { font-size: 13px; padding: 5px 13px; border-radius: 999px; border: 1px solid; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.thumbs img { border-radius: 12px; aspect-ratio: 16/10; object-fit: cover; border: 1px solid rgba(255,255,255,.15); }
.game .more { font-size: 14px; margin: 0; }

.game.fire { background: linear-gradient(135deg, #1d0c07, #2a120a 60%, #160805); }
.game.fire .logo { width: min(380px, 100%); margin: 0 0 6px -6px; filter: drop-shadow(0 0 18px rgba(255,120,40,.45)); }
.game.fire .status { color: #1a0a03; background: linear-gradient(135deg, #ffd27a, #ff8a2a); }
.game.fire h3 { color: #ffd998; }
.game.fire p { color: #ecd8c8; }
.game.fire .chips span { color: #ffcf9a; border-color: rgba(255,170,90,.4); background: rgba(255,120,40,.08); }
.game.fire .more a { color: #ffb070; }

.game.dawn { grid-template-columns: 1fr 1.05fr; background: linear-gradient(135deg, #261b45, #2f2352 55%, #1d2a3d); }
.game.dawn .art { order: 2; }
.game.dawn .status { color: #23124a; background: linear-gradient(135deg, #ffffff, var(--lav)); }
.game.dawn h3 { background: linear-gradient(120deg, #fff, var(--lav2), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game.dawn p { color: var(--lav2); }
.game.dawn .chips span { color: var(--lav2); border-color: var(--line); background: rgba(201,168,255,.08); }

/* 가치 */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value {
  background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 34px 28px;
  backdrop-filter: blur(12px); position: relative; overflow: hidden; transition: transform .3s, background .3s;
}
.value:hover { transform: translateY(-6px); background: var(--glass2); }
.value::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(142,230,224,.22), transparent 70%); }
.value .gem { width: 40px; height: 40px; transform: rotate(45deg); border-radius: 10px; margin: 6px 0 24px 6px; background: linear-gradient(135deg, #fff, var(--lav) 55%, #7a5bd6); box-shadow: 0 0 22px rgba(201,168,255,.6); }
.value:nth-child(2) .gem { background: linear-gradient(135deg, #fff, var(--cyan) 55%, #3b9e9a); box-shadow: 0 0 22px rgba(142,230,224,.6); }
.value:nth-child(3) .gem { background: linear-gradient(135deg, #fff, var(--gold) 55%, #b08a45); box-shadow: 0 0 22px rgba(236,208,154,.6); }
.value h3 { font-family: "Gowun Batang", serif; font-size: 22px; margin: 0 0 8px; color: #fff; }
.value p { margin: 0; color: var(--muted); font-size: 15px; }

/* 문의 */
.contact { text-align: center; }
.contact .box { max-width: 760px; margin: 0 auto; padding: 54px 24px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(201,168,255,.12), rgba(142,230,224,.08)); backdrop-filter: blur(12px); }
.contact .mail { display: inline-block; margin-top: 10px; font-size: clamp(18px, 2.6vw, 24px); font-weight: 700; color: #fff; border-bottom: 1px solid var(--cyan); }

footer { border-top: 1px solid var(--line); padding: 40px 16px 50px; text-align: center; color: var(--muted); font-size: 14px; background: rgba(10,7,20,.6); }
footer .links a { margin: 0 12px; }
footer p { margin: 6px 0; }

/* 문서 페이지 */
.doc-hero { position: relative; padding: 150px 16px 60px; text-align: center; overflow: hidden; }
.doc-hero::before { content: ""; position: absolute; inset: -40px; background: url("mutation-teaser.jpg") center 30% / cover; filter: blur(26px) brightness(.45) saturate(1.2); }
.doc-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(18,13,34,.3), var(--bg)); }
.doc-hero > * { position: relative; z-index: 1; }
.doc-hero h1 { font-family: "Gowun Batang", serif; font-size: clamp(30px, 4.4vw, 44px); margin: 8px 0; color: #fff; }
.doc { max-width: 840px; margin: 0 auto; padding: 0 16px 100px; }
.doc .panel { background: var(--glass); border: 1px solid var(--line); border-radius: 24px; padding: 38px clamp(18px, 4vw, 48px); backdrop-filter: blur(12px); }
.doc h2 { font-size: 19px; margin: 34px 0 8px; color: var(--lav); }
.doc h2:first-of-type { margin-top: 10px; }
.doc p { color: #e9e2fa; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.doc th { background: rgba(201,168,255,.08); width: 34%; }
.muted { color: var(--muted); font-size: 14px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.on { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .game, .game.dawn { grid-template-columns: 1fr; min-height: 0; }
  .game .art { aspect-ratio: 16/10; }
  .game.dawn .art { order: 0; }
  .values { grid-template-columns: 1fr; }
  .nav { padding: 12px 16px; }
  .nav .brand span { display: none; }
  .nav .links a { margin-left: 14px; font-size: 13px; }
  section { padding: 80px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .bg, .hero h1, .scroll-hint::after { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
