/* Geumsam Sans is a subset of Pretendard Variable (SIL OFL 1.1). */
@font-face {
  font-family: "Geumsam Sans";
  src: url("fonts/GeumsamSans-Core.woff2") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F, U+2000-206F, U+20A0-20CF, U+2190-21FF, U+2212;
}

@font-face {
  font-family: "Geumsam Sans";
  src: url("fonts/GeumsamSans-Korean.woff2") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  unicode-range: U+1100-11FF, U+2E80-30FF, U+3130-318F, U+3400-9FFF, U+AC00-D7A3, U+FF00-FFEF;
}

@font-face {
  font-family: "Gowun Batang";
  src: url("fonts/GowunBatang-LanternTitle.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+B4F1, U+BD88, U+B098, U+B8E8;
}

:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --tint: #e9ebe2;
  --ink: #1b2720;
  --muted: #4b554a;
  --line: #c5c8bc;
  --green: #253c31;
  --green-hover: #365545;
  --gold-ink: #6f4f18;
  --gutter: clamp(20px, 4.5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 "Geumsam Sans", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, p, figure, dl, dd {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: .22em;
}

:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: 1.5rem;
}

.shell {
  width: min(calc(100% - var(--gutter) - var(--gutter)), 1184px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: var(--gutter);
  padding: 10px 15px;
  transform: translateY(-150%);
  background: var(--green);
  color: white;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  text-decoration: none;
}

.wordmark strong {
  font-size: 1.95rem;
  font-weight: 820;
  line-height: 1;
  letter-spacing: -.08em;
}

.wordmark span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 580;
}

.site-nav,
.footer-inner nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 590;
  white-space: nowrap;
}

.site-nav a[aria-current],
.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding-block: clamp(37px, 3.8vw, 55px);
}

.game-genre,
.section-label {
  color: var(--gold-ink);
  font-size: .9375rem;
  font-weight: 680;
}

.game-title {
  font-family: "Gowun Batang", "Batang", "Nanum Myeongjo", serif;
  font-size: clamp(4rem, 8vw, 7.375rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.075em;
  margin-block: 15px 22px;
}

.hero-lead {
  font-size: clamp(1.18rem, 2.05vw, 1.55rem);
  font-weight: 690;
  line-height: 1.45;
  letter-spacing: -.035em;
}

.hero-description,
.company-description,
.detail-intro,
.contact-section p,
.page-heading p,
.support-heading p,
.support-contact p,
.faq-section details p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.hero-description {
  max-width: 27em;
  margin-top: 12px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: 26px;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  width: fit-content;
  font-weight: 670;
  font-size: .9375rem;
}

.button {
  padding: 9px 15px;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

.button:hover {
  background: var(--green-hover);
}

.text-link {
  text-decoration-line: underline;
  text-decoration-color: #a4a99c;
  text-decoration-thickness: 1px;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

.hero-figure {
  justify-self: center;
  width: min(100%, 362px);
  padding: 12px 12px 0;
  border: 1px solid var(--line);
  background: var(--tint);
}

.hero-figure .screenshot-link {
  border-color: #2c362e;
  cursor: pointer;
}

.hero-figure figcaption {
  padding: 12px 1px 14px;
}

.hero-figure figcaption strong {
  font-size: .9375rem;
  font-weight: 700;
}

.hero-figure figcaption p {
  margin-top: 2px;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.52;
}

.company-section,
.play-section {
  padding-block: clamp(46px, 6.8vw, 88px);
  background: var(--tint);
  border-block: 1px solid var(--line);
}

.company-grid,
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 76px);
}

.company-grid h2,
.play-section h2,
.contact-section h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.22;
  letter-spacing: -.055em;
}

.company-description {
  max-width: 28ch;
  margin-top: 14px;
}

.company-grid .text-link,
.business-services .text-link {
  margin-top: 10px;
}

.page-heading {
  padding-block: clamp(44px, 6vw, 78px);
}

.page-heading p {
  max-width: 46rem;
}

.company-work {
  align-items: center;
}

.company-work .section-label {
  margin-bottom: 8px;
}

.company-work .company-description {
  max-width: 28em;
}

.company-work-preview {
  justify-self: center;
  width: min(100%, 240px);
}

.company-work-preview img {
  border: 1px solid var(--line);
}

.business-section {
  padding-block: 0;
}

.business-services > section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 12px clamp(24px, 5vw, 76px);
  padding-block: clamp(24px, 3.6vw, 42px);
}

.business-services > section + section {
  border-top: 1px solid var(--line);
}

.business-services h2 {
  font-size: clamp(1.375rem, 3vw, 2rem);
  line-height: 1.35;
  letter-spacing: -.035em;
}

.business-services p {
  max-width: 35rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.contact-section {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: clamp(44px, 6.5vw, 86px);
}

.contact-section p {
  margin-top: 10px;
}

.email-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(1.125rem, 2.7vw, 1.625rem);
  font-weight: 650;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}

.email-link:hover {
  color: var(--green-hover);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 22px clamp(28px, 5vw, 76px);
  align-items: center;
  padding-block: clamp(46px, 6vw, 85px);
}

.detail-hero .game-title,
.game-help .actions {
  margin-bottom: 0;
}

.detail-intro .actions {
  margin-top: 16px;
}

.play-section h2 {
  margin-bottom: 26px;
}

.play-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px clamp(18px, 4vw, 54px);
}

.screenshot-link {
  display: block;
  border: 1px solid #929c90;
  cursor: zoom-in;
}

.screenshot-link:hover {
  border-color: var(--green);
}

.screenshot-link img {
  width: 100%;
}

.play-gallery h3 {
  font-size: 1.2rem;
  margin-top: 12px;
  line-height: 1.4;
  letter-spacing: -.025em;
}

.play-gallery p {
  margin-top: 5px;
  color: var(--muted);
}

.game-help {
  align-items: center;
}

.game-help .actions {
  margin-top: 0;
}

.support-page {
  padding-block: clamp(46px, 6vw, 84px) clamp(56px, 8vw, 105px);
}

.page-heading h1,
.support-heading h1 {
  font-size: clamp(2.75rem, 6.2vw, 5rem);
  line-height: 1.08;
  letter-spacing: -.065em;
}

.page-heading p,
.support-heading p {
  margin-top: 12px;
}

.support-grid {
  margin-top: clamp(26px, 4vw, 54px);
  align-items: start;
}

.support-contact {
  padding: clamp(20px, 3.3vw, 40px);
  background: var(--tint);
  border-top: 2px solid var(--green);
}

.support-grid h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.3;
  letter-spacing: -.035em;
}

.support-contact p {
  margin-top: 15px;
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-top: 10px;
}

.faq-section h2 {
  margin-bottom: 13px;
}

.faq-section details {
  border-top: 1px solid var(--line);
}

.faq-section details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-section summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-block: 14px;
  min-height: 50px;
  cursor: pointer;
  list-style: none;
  font-weight: 640;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: "+";
  color: var(--gold-ink);
  font-size: 1.28em;
  line-height: 1;
}

.faq-section details[open] summary::after {
  content: "−";
}

.faq-section details p {
  padding: 0 22px 16px 0;
}

.site-footer {
  background: var(--green);
  color: #f6f4ed;
}

.site-footer :focus-visible {
  outline-color: #e9cd91;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding-block: 22px;
  font-size: .875rem;
}

.footer-inner p {
  color: #d8e2da;
}

.footer-inner nav {
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-inner nav a {
  padding-block: 5px;
  text-decoration-color: #82988c;
}

.footer-inner nav a:hover {
  text-decoration-color: currentColor;
}

@media (max-width: 760px) {
  .header-inner {
    display: block;
  }

  .wordmark {
    min-height: 57px;
    padding-block: 16px 9px;
  }

  .wordmark strong {
    font-size: 1.65rem;
  }

  .site-nav {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0 8px;
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    font-size: .875rem;
  }

  .hero,
  .detail-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 37px 42px;
  }

  .game-title {
    font-size: clamp(3.65rem, 11vw, 5.75rem);
    margin-block: 11px 17px;
  }

  .actions {
    gap: 6px 17px;
    margin-top: 19px;
  }

  .hero-figure {
    justify-self: start;
  }

  .company-grid,
  .business-services > section,
  .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .play-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .play-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .play-gallery {
    gap: 30px;
  }
}

.home-app-link {
  margin-top: 18px;
  font-weight: 650;
}

.studio-products {
  background: var(--paper);
  border-bottom: 0;
}

.studio-products h2,
.app-features h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.22;
  letter-spacing: -.055em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px clamp(26px, 5vw, 68px);
  margin-top: 24px;
}

.product-item {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-item h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -.035em;
}

.product-item > p,
.store-download p,
.app-description,
.app-features dd,
.app-screenshot figcaption {
  color: var(--muted);
}

.product-item > p {
  margin-top: 8px;
}

.store-download {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-block: 18px 6px;
}

.store-download > div {
  max-width: 100%;
}

.store-download p {
  margin-top: 6px;
  font-size: .875rem;
}

.store-qr {
  width: 132px;
  height: auto;
  image-rendering: pixelated;
}

.app-intro,
.app-features {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: 26px clamp(28px, 5vw, 76px);
}

.app-intro {
  padding-block: clamp(36px, 5vw, 68px);
}

.app-icon {
  width: 62px;
  border-radius: 12px;
}

.app-intro h1 {
  margin-block: 14px 10px;
  font-size: clamp(2.4rem, 5.6vw, 4.8rem);
  line-height: 1.12;
  letter-spacing: -.065em;
}

.app-description {
  max-width: 32rem;
  margin-top: 11px;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.app-screenshot {
  justify-self: center;
  width: min(100%, 336px);
  border: 1px solid var(--line);
  background: var(--paper);
}

.app-screenshot img {
  width: 100%;
}

.app-screenshot figcaption {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
}

.app-features dl {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.app-features dl > div {
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.app-features dt {
  font-weight: 680;
}

.app-features dd {
  margin-top: 4px;
}

@media (max-width: 760px) {
  .product-grid,
  .app-intro,
  .app-features {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-screenshot {
    justify-self: start;
  }
}

.app-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.button-secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--green);
  background: var(--tint);
}

.app-video-section {
  padding-block: clamp(36px, 5vw, 68px);
  border-top: 1px solid var(--line);
}

.app-promo-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  background: #111b25;
}
