:root {
  color-scheme: dark;
  --bg: #131514;
  --ink: #f5f4ee;
  --muted: #b6bcb4;
  --line: #3b413a;
  --accent: #d5f76b;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.home-page {
  --home-header: 73px;
  overscroll-behavior-x: contain;
  scroll-padding-block-start: var(--home-header);
  scroll-snap-type: y proximity;
}
.home-page #main, .home-page #games, .home-page #studio, .home-page #news { scroll-margin-top: 0; }
body { margin: 0; color: var(--ink); background: var(--bg); }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
p { line-height: 1.72; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
[id] { scroll-margin-top: 95px; }
.shell { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 12px; left: 12px; padding: 12px; background: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.top { position: sticky; top: 0; z-index: 2; background: #131514; border-bottom: 1px solid #323733; }
.top-inner, .footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font: 850 24px/1 system-ui, sans-serif; letter-spacing: -.075em; white-space: nowrap; }
.mark { width: 27px; height: 26px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 81% 25%, 60% 25%, 60% 100%, 37% 80%, 37% 25%, 0 25%); }
nav { display: flex; gap: clamp(14px,4vw,52px); }
nav a { color: #e0e3da; text-decoration: none; font-size: .95rem; font-weight: 700; white-space: nowrap; }
nav a:hover, .news-item a:hover { color: var(--accent); }
.hero {
  position: relative;
  touch-action: pan-y pinch-zoom;
  isolation: isolate;
  overflow: hidden;
  min-height: 490px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #141714;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 76%;
  z-index: -2;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, #131514f5 0%, #131514dd 19%, #13151456 47%, transparent 68%);
}
.hero-kitten {
  background: linear-gradient(90deg, #141714 12%, #141714e8 50%, #14171496), url("assets/hero.webp") center 38% / cover;
}
.hero-kitten .hero-video {
  inset-inline-start: 50%;
  width: 50%;
  height: calc(100% - 40px);
  inset-block-start: 20px;
  object-fit: contain;
  object-position: center;
  z-index: -1;
}
.hero-kitten::after { content: none; }
.showcase {
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}
.feature-stage {
  display: grid;
  overflow: hidden;
  isolation: isolate;
}
.feature-stage > .hero { grid-area: 1 / 1; min-width: 0; }
.showcase .hero { min-height: clamp(490px, 56.25vw, calc(100svh - var(--home-header) - 67px)); }
.feature-controls { background: #1b1f1a; border-bottom: 1px solid var(--line); }
.feature-buttons { display: flex; align-items: stretch; gap: 8px; }
.feature-buttons button {
  padding: 12px clamp(12px, 2vw, 23px);
  min-height: 48px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.feature-choice { display: flex; align-items: center; gap: 10px; }
.feature-choice img {
  width: 70px;
  height: 39px;
  object-fit: cover;
  border: 1px solid #ffffff30;
}
.feature-choice:nth-child(2) img { object-position: 70% 30%; }
.feature-buttons button:hover, .feature-buttons button[aria-pressed="true"] { color: var(--accent); }
.feature-buttons button[aria-pressed="true"] { border-color: var(--accent); }
.feature-buttons .motion-toggle { margin-left: auto; }
.hero-inner {
  padding-block: 60px;
}
.hero-copy { max-width: 49%; }
.hero-copy h1, .hero-copy p { word-break: keep-all; }
.eyebrow, .section-heading span { color: var(--accent); font: 750 .88rem/1.4 system-ui, sans-serif; letter-spacing: .16em; }
.hero h1 { margin: 11px 0 16px; font-size: clamp(1.85rem,3.6vw,3.55rem); letter-spacing: -.055em; line-height: 1.15; }
.hero-text { font-size: clamp(1rem,1.6vw,1.25rem); color: #e2e7de; }
.button { display: inline-flex; align-items: center; min-height: 49px; margin-top: 30px; padding-inline: 23px; background: var(--accent); color: #13170d; font-weight: 800; text-decoration: none; }
.button:hover { background: #e4ff9e; }
.section { padding-block: 54px 73px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
h2 { font-size: clamp(2.1rem,4vw,3.2rem); letter-spacing: -.07em; }
.game { display: grid; grid-template-columns: 1.32fr 1fr; gap: clamp(22px,5vw,72px); align-items: start; padding-top: 24px; border-top: 1px solid var(--line); }
.game figure { background: #eae7dd; color: #30352d; overflow: hidden; }
.game figure img { width: 100%; }
figcaption { padding: 8px 15px 12px; font-size: .85rem; }
.game h3 { font-size: clamp(1.75rem,3vw,2.5rem); margin: 5px 0 10px; letter-spacing: -.07em; }
.game-meta { font-size: .9rem; font-weight: 750; color: var(--accent); }
.game-copy > p:not(.game-meta), .info-grid p:not(.eyebrow) { color: var(--muted); }
details { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
summary { cursor: pointer; width: fit-content; font-weight: 700; }
details p { margin-top: 8px; color: var(--muted); }
.info-band { background: #1b1f1a; border-block: 1px solid var(--line); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,9vw,125px); padding-block: 62px; }
.info-grid h2 { margin: 4px 0 13px; }
.news-item h3 { font-size: 1.12rem; }
.news-item + .news-item { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.news-item p { margin: 6px 0 9px; }
.news-item a { font-weight: 700; text-underline-offset: .23em; }
.footer { min-height: 100px; }
.footer p { color: var(--muted); font-size: .88rem; }
.footer-credit { text-align: right; }
.section-link { color: var(--accent); font-weight: 720; text-underline-offset: .24em; }
.catalog-title { font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1.16; letter-spacing: -.075em; margin-block: 12px 14px; word-break: keep-all; }
.catalog-intro { margin-bottom: 28px; color: var(--muted); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 410px)); gap: 24px; }
.catalog-card, .detail-card { min-width: 0; border: 1px solid var(--line); background: #1b1f1a; }
.catalog-card img { display: block; width: 100%; min-height: 118px; object-fit: cover; }
.catalog-card-copy { padding: 24px; }
.catalog-card-copy h2 { font-size: 1.7rem; margin-block: 5px 9px; }
.catalog-card-copy h2 a { text-underline-offset: .19em; }
.games-panel {
  min-block-size: calc(100svh - var(--home-header));
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
}
.games-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.rail-controls { display: flex; gap: 6px; }
.rail-controls button {
  min-block-size: 42px;
  padding-inline: 13px;
  color: var(--ink);
  background: #1b1f1a;
  border: 1px solid var(--line);
  font: inherit;
  cursor: pointer;
}
.rail-controls button:hover:not([aria-disabled="true"]) { border-color: var(--accent); }
.rail-controls button[aria-disabled="true"] { color: var(--muted); opacity: .6; cursor: default; }
.home-games {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72%, 780px);
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: #626d56 #1b1f1a;
  scrollbar-width: thin;
  padding-block: 2px 14px;
}
.home-games:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.home-games > .catalog-card { scroll-snap-align: start; }
.home-games .card-image { display: block; overflow: hidden; }
.home-games .card-image img { aspect-ratio: 2 / 1; object-fit: cover; object-position: center 40%; }
.home-games h3 { margin-block: 6px; font-size: clamp(1.55rem, 3.1vw, 2.3rem); letter-spacing: -.06em; }
.home-games h3 a { text-underline-offset: .18em; }
.catalog-card-copy > p:last-child, .detail-card > p:not(.game-meta) { color: var(--muted); }
.detail-card { max-width: 880px; margin-top: 20px; padding: clamp(20px, 5vw, 44px); }
.detail-card img { width: 100%; }
.detail-card h2 { font-size: 1.35rem; margin-block: 27px 5px; letter-spacing: -.04em; }
.development-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 12px; }
.development-gallery figure { background: #131514; border: 1px solid var(--line); }
.development-gallery figure:first-child { grid-row: span 2; }
.development-gallery img { aspect-ratio: 16 / 9; object-fit: cover; }
.development-gallery figure:first-child img { aspect-ratio: 1 / 1; object-fit: contain; }
.development-gallery figcaption { color: var(--muted); }
@media (max-width: 760px) {
  .home-page { --home-header: 65px; }
  .shell { width: calc(100% - 40px); }
  .top-inner { min-height: 64px; }
  .brand { font-size: 20px; gap: 7px; }
  .mark { width: 22px; height: 22px; }
  nav a { font-size: .875rem; }
  .showcase .hero {
    min-height: 0;
    grid-template-rows: auto 1fr;
    align-items: start;
  }
  .hero, .hero-kitten { background: #151714; }
  .hero::after { content: none; }
  .hero-video, .hero-kitten .hero-video {
    position: static;
    width: 100%;
    height: clamp(180px, 56.25vw, 320px);
    object-position: center;
    object-fit: contain;
    background: #191b17;
    z-index: auto;
  }
  .hero-inner { padding: 27px 0 32px; }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: clamp(1.5rem,7.2vw,2.5rem); }
  .feature-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 4px; }
  .feature-buttons button { font-size: .875rem; padding: 8px 4px; }
  .feature-choice { justify-content: center; gap: 5px; flex-direction: column; }
  .feature-choice img { width: 55px; height: 31px; }
  .section { padding-block: 37px 46px; }
  .game, .info-grid { grid-template-columns: 1fr; }
  .home-games { grid-auto-columns: 87%; gap: 12px; }
  .info-grid { padding-block: 42px; }
  [id] { scroll-margin-top: 83px; }
}
@media (max-width: 350px) {
  .shell { width: calc(100% - 28px); }
  .brand { font-size: 18px; }
  nav { gap: 10px; }
}
@media (max-width: 480px) {
  .development-gallery { grid-template-columns: 1fr; }
  .development-gallery figure:first-child { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-page { scroll-snap-type: none; }
}
