:root {
  --bg: #fbf6ec;
  --paper: #fffdf8;
  --ink: #2a221c;
  --ink-soft: #6b5d52;
  --line: #e9dfcf;
  --accent: #f4b223;
  --accent-ink: #2a221c;
  --steam: #1b2838;
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Jua", "Noto Sans KR", sans-serif; font-weight: 400; line-height: 1.25; margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Jua", sans-serif; font-size: 22px; }
.brand img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; border: 1px solid var(--line); }
.nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.lang { font-size: 14px; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--paper); }

/* intro */
.intro { padding: 72px 0 48px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.intro h1 { font-size: clamp(34px, 5vw, 52px); }
.intro p { color: var(--ink-soft); max-width: 560px; margin: 16px 0 0; font-size: 18px; }
.intro .logo-big { width: 220px; background: #fff; border-radius: 24px; padding: 18px; border: 1px solid var(--line); transform: rotate(2deg); box-shadow: 0 10px 30px rgba(60, 40, 20, .08); }

/* game cards */
.games-head { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 0 20px; }
.games-head h2 { font-size: 30px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(60, 40, 20, .1); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card .pixel { image-rendering: pixelated; }
.card div { padding: 18px 22px 22px; }
.card h3 { font-size: 23px; }
.card p { margin: 6px 0 0; color: var(--ink-soft); font-size: 15.5px; }

/* game detail */
.game { padding: 88px 0 24px; scroll-margin-top: 64px; }
.game-hero { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 16 / 7; background: #ddd center / cover no-repeat; }
.game-hero.pixel { image-rendering: pixelated; aspect-ratio: 16 / 9; }
.game-hero img.title { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(46%, 420px); filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .25)); }
.game-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; margin-top: 36px; }
.game h2 { font-size: clamp(30px, 4vw, 40px); }
.tagline { font-size: 19px; color: var(--ink-soft); margin: 8px 0 20px; }
.game h3 { font-size: 21px; margin: 26px 0 6px; }
.game p { margin: 0 0 12px; }
.facts { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; align-self: start; position: sticky; top: 88px; }
.facts dl { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.facts dt { color: var(--ink-soft); white-space: nowrap; }
.facts dd { margin: 0; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; border-radius: 12px; padding: 12px 18px; font-weight: 700; font-size: 16px; margin-top: 10px; }
.btn.steam { background: var(--steam); color: #fff; }
.btn.steam:hover { background: #2a475e; }
.btn.alt { background: var(--accent); color: var(--accent-ink); }
.btn.alt:hover { filter: brightness(1.05); }
.btn svg { width: 20px; height: 20px; }

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.shots img { border-radius: 12px; border: 1px solid var(--line); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video { margin-top: 36px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }

/* about / contact */
.about { padding: 96px 0 24px; scroll-margin-top: 64px; }
.about-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.about-box img { width: 150px; image-rendering: pixelated; border-radius: 16px; }
.about h2 { font-size: 32px; margin-bottom: 12px; }
.about p { margin: 0 0 10px; color: var(--ink-soft); }
.contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.contact a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 16px; font-size: 15px; }
.contact a:hover { border-color: var(--ink-soft); }
.contact svg { width: 18px; height: 18px; }

/* policy pages */
.doc { max-width: 760px; padding: 56px 0 24px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); }
.doc .date { color: var(--ink-soft); font-size: 15px; margin: 8px 0 28px; }
.doc h2 { font-size: 22px; margin: 34px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; margin: 6px 0 12px; }
.doc li { margin: 4px 0; }

footer { padding: 56px 0 40px; color: var(--ink-soft); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  .intro { grid-template-columns: 1fr; padding: 44px 0 28px; gap: 24px; }
  .intro .logo-big { width: 140px; order: -1; }
  .cards, .shots, .game-body { grid-template-columns: 1fr; }
  .game-body { gap: 28px; }
  .facts { position: static; }
  .game { padding-top: 64px; }
  .game-hero { aspect-ratio: 16 / 9; }
  .about-box { grid-template-columns: 1fr; padding: 28px 22px; gap: 20px; }
  .about-box img { width: 110px; }
}
