/* KORYGAMES studio shell. Monochrome from the game splash; color comes only from game art. See Website/DESIGN.md. */
:root {
  --ink: #0b0b0c;
  --ink-2: #151517;
  --line: #2a2a2e;
  --paper: #f4f4f2;
  --muted: #a3a3a8;
  --radius: 14px;
  --max: 1120px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--paper); color: var(--ink); }
html { scrollbar-color: #3a3a40 var(--ink); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 30px; }
.wordmark { font-weight: 700; letter-spacing: 0.18em; font-size: 14px; text-transform: uppercase; }
.nav { display: flex; gap: 24px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }

/* Studio hero: the splash, set as a page */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(64px, 9vw, 112px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 80px); }
.hero h1 { margin: 0; font-size: clamp(44px, 7.4vw, 88px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; }
.hero p { margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 30ch; }
.hero .mark { justify-self: end; width: min(100%, 460px); }
@media (prefers-reduced-motion: no-preference) {
  .hero .mark { animation: splash-in 0.9s var(--ease-out) 0.1s both; }
  @keyframes splash-in { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
}

/* Games list */
.games { padding: 0 0 clamp(72px, 10vw, 128px); }
.section-title { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; margin: 0 0 28px; }
.game {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center;
  text-decoration: none; padding-top: 28px; border-top: 1px solid var(--line);
}
.game .art { border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.game .art img { width: 100%; transition: transform 0.4s var(--ease-out); }
.game:hover .art img, .game:focus-visible .art img { transform: scale(1.03); }
.game h3 { margin: 0; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.02em; line-height: 1.25; }
.game .meta { margin: 6px 0 14px; color: var(--muted); font-size: 15px; }
.game p { margin: 0; color: #d6d6d3; max-width: 40ch; }
.go { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 700; font-size: 15px; }
.go svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.game:hover .go svg { transform: translateX(4px); }

/* Studio */
.studio { border-top: 1px solid var(--line); padding: clamp(64px, 9vw, 112px) 0; }
.studio .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); }
.studio h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; }
.studio p { margin: 0 0 20px; color: #d6d6d3; max-width: 52ch; }
.mail { font-size: clamp(18px, 2vw, 22px); font-weight: 700; }

/* Game page: the game's art leads, the shell stays quiet */
.game-hero { padding: clamp(32px, 5vw, 56px) 0 0; }
.game-hero .feature { width: 100%; border-radius: var(--radius); }
.title-row { display: flex; align-items: center; gap: 18px; margin-top: 28px; flex-wrap: wrap; }
.title-row .icon { width: 84px; height: 84px; border-radius: 20px; }
.title-row h1 { margin: 0; font-size: clamp(30px, 4.6vw, 44px); letter-spacing: -0.03em; line-height: 1.15; }
.title-row .sub { margin: 4px 0 0; color: var(--muted); }
.cta { margin-left: auto; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none;
}
.pill[aria-disabled="true"] { background: transparent; color: var(--paper); border: 1px solid var(--line); cursor: default; }
.lead { margin: clamp(40px, 6vw, 64px) 0 0; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.55; letter-spacing: -0.01em; max-width: 34ch; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; margin: clamp(48px, 7vw, 80px) 0; padding: 0; list-style: none; }
.points li { border-top: 1px solid var(--line); padding-top: 20px; }
.points h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.points p { margin: 0; color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 20px; margin: 0 0 clamp(72px, 9vw, 112px); }
.shots img { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius); background: var(--ink-2); }

/* Document */
.doc { max-width: 720px; padding: clamp(40px, 6vw, 72px) 0 96px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 42px); letter-spacing: -0.03em; line-height: 1.2; margin: 0 0 8px; }
.doc .date { color: var(--muted); margin: 0 0 40px; }
.doc h2 { font-size: 23px; letter-spacing: -0.01em; margin: 48px 0 12px; }
.doc h3 { font-size: 17px; margin: 28px 0 10px; }
.doc p, .doc li { color: #d6d6d3; }
.doc ul { padding-left: 1.2em; }
.doc a { color: var(--paper); }
.doc dl { margin: 0; border-top: 1px solid var(--line); }
.doc dl div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.doc dt { color: var(--muted); font-size: 15px; }
.doc dd { margin: 0; color: #d6d6d3; font-size: 15px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--paper); }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .mark { justify-self: start; width: min(64%, 300px); order: -1; }
  .game { grid-template-columns: 1fr; }
  .studio .wrap { grid-template-columns: 1fr; }
  .cta { margin-left: 0; width: 100%; }
  .pill { width: 100%; }
  .points { grid-template-columns: 1fr; gap: 28px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .doc dl div { grid-template-columns: 1fr; gap: 2px; }
  .nav { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .game .art img, .go svg, .nav a { transition: none; }
}
