:root {
  --bg:    #0e1510;
  --bg2:   #131c14;
  --card:  #192118;
  --text:  #edf4ec;
  --dim:   #8fa896;
  --gold:  #ffd54f;
  --red:   #e53935;
  --green: #43a047;
  --line:  #ffffff14;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  background: radial-gradient(ellipse at top, var(--bg2), var(--bg) 60%);
  color: var(--text);
  font: 16px/1.75 -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  min-height: 100vh;
}
a { color: var(--gold) }

header.nav {
  position: sticky; top: 0; z-index: 5;
  background: rgba(14,21,16,.93);
  border-bottom: 1px solid var(--line);
  padding: .55rem .9rem;
  display: flex; flex-wrap: nowrap; gap: .5rem;
  align-items: center; justify-content: space-between;
  backdrop-filter: blur(8px);
}
header.nav a { text-decoration: none; color: var(--dim) }
header.nav a:hover { color: var(--gold) }
.brand {
  min-width: 0; font-weight: 800; font-size: 1.1rem;
  line-height: 1.3; color: var(--gold);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.langs { position: relative; flex: 0 0 auto }
.langs > summary {
  display: flex; align-items: center; gap: .3rem;
  list-style: none; cursor: pointer; white-space: nowrap;
  font-size: .88rem; color: var(--dim);
  border: 1px solid #ffffff22; border-radius: 999px; padding: .25rem .6rem;
}
.langs > summary::-webkit-details-marker { display: none }
.langs > summary::after { content: "\25BE"; font-size: .8em; line-height: 1 }
.langs > summary:hover, .langs[open] > summary { color: var(--gold); border-color: #ffffff44 }
.langs ul {
  position: absolute; right: 0; top: calc(100% + .45rem);
  margin: 0; padding: .3rem; list-style: none; min-width: 8.5rem;
  background: var(--card); border: 1px solid #ffffff22;
  border-radius: 12px; box-shadow: 0 12px 28px #00000080;
}
.langs li { margin: 0 }
.langs a { display: block; padding: .35rem .7rem; border-radius: 8px; font-size: .9rem; white-space: nowrap }
.langs a:hover { background: #ffffff14 }
@media (max-width:400px) {
  header.nav { padding: .5rem .7rem }
  .brand { font-size: 1rem }
}

main { max-width: 720px; margin: 0 auto; padding: 0 1.1rem 3rem }

/* Hero */
.hero { text-align: center; padding: 3.2rem 0 3rem }
.tree-wrap { display: flex; justify-content: center; margin-bottom: .6rem }
.tree-svg { width: 140px; height: 160px; overflow: visible }

@keyframes twinkle {
  0%, 100% { opacity: 1 }
  50% { opacity: .2 }
}
.orb { animation: twinkle var(--d, 1.4s) ease-in-out infinite; animation-delay: var(--delay, 0s) }

@keyframes pulse-star {
  0%, 100% { filter: drop-shadow(0 0 6px #ffd54f) }
  50% { filter: drop-shadow(0 0 18px #fff176) }
}
.star { animation: pulse-star 2.2s ease-in-out infinite }

@keyframes snow {
  0% { transform: translateY(-8px) translateX(0); opacity: 0 }
  10% { opacity: 1 }
  90% { opacity: .8 }
  100% { transform: translateY(140px) translateX(var(--dx, 10px)); opacity: 0 }
}
.flake { animation: snow var(--sd, 3s) ease-in infinite; animation-delay: var(--sdelay, 0s) }

@media (prefers-reduced-motion: reduce) {
  .orb, .star, .flake { animation: none; opacity: 1 }
}

h1 {
  font-size: clamp(2rem, 8vw, 3.2rem);
  margin: .5rem 0 .1rem;
  color: var(--gold);
  text-shadow: 0 0 24px #ffd54f44;
  line-height: 1.2;
  font-weight: 800;
}
.en-title {
  font-size: .85rem; letter-spacing: .22rem;
  color: var(--green); font-weight: 700; margin: 0;
}
.sub { font-size: .95rem; color: var(--dim); margin: .4rem 0 1rem }
.lead { font-size: 1.1rem }

.badges {
  display: flex; flex-wrap: wrap; gap: .7rem 1rem;
  justify-content: center; align-items: center; margin-top: 1.4rem;
}
.badge {
  display: inline-flex; align-items: center; height: 46px;
  padding: 0 1.2rem; border-radius: 999px; font-weight: 700;
}
.badge-soon {
  background: none; border: 1px solid #ffffff22;
  padding: 0 calc(1.2rem - 1px); color: var(--dim);
  font-weight: 600; font-size: .92rem; cursor: default;
}

/* Sections */
section {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 4rem;
}
h2 { color: var(--gold); font-size: 1.5rem; margin: 0 0 .8rem }

.card {
  background: var(--card); border-radius: 14px;
  padding: 1rem 1.2rem; margin: .8rem 0;
  border-left: 4px solid var(--green);
}
ul { padding-left: 1.2rem }
li { margin: .3rem 0 }

/* Screenshots */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.1rem .8rem; margin: .8rem 0 0;
}
.shots figure { margin: 0 }
.shots img {
  display: block; width: 100%; height: auto;
  border-radius: 10px; background: var(--card);
  border: 1px solid var(--line);
}
.shots figcaption { margin: .45rem 0 0; font-size: .82rem; line-height: 1.5; color: var(--dim) }
.shot-placeholder {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 9/16; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--dim); font-size: .82rem; text-align: center;
}

/* Footer */
footer {
  text-align: center; color: var(--dim); font-size: .85rem;
  padding: 1.8rem 1rem 2.4rem; border-top: 1px solid var(--line);
}
footer .foot-links {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: .2rem 1.4rem;
}
footer a { color: var(--dim); text-decoration: none }
footer a:hover { color: var(--gold) }
footer p { margin: .45rem 0 0 }
footer .foot-copy { margin-top: .8rem; color: #7f8794 }
