/* ==========================================================================
   SKENE — game studio homepage

   The name is the stage building actors stepped out of, so the page is a
   stage: a dark house, the cover shows the cast stepping out of the skene's
   three doors, and each game is its own scene that slides over the last one
   as you scroll (a cut). The studio's own colour stays out of the way: ink,
   white, and the logo's red and mint used only for actions and status. The
   games bring every other colour through their own art.
   ========================================================================== */

:root {
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Segoe UI', Roboto, 'Noto Sans KR', 'Noto Sans CJK KR',
    'Hiragino Sans', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: #121216; }
body { margin: 0; min-width: 320px; }
img { display: block; max-width: 100%; }
/* <picture> only chooses the file; its <img> takes the place in the layout. */
picture { display: contents; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.sk {
  --ink: #121216;
  --ink-raised: #1c1c22;
  --paper: #fafafa;
  --paper-2: rgba(250, 250, 250, 0.72);
  --paper-3: rgba(250, 250, 250, 0.5);
  --line: rgba(250, 250, 250, 0.14);
  --red: #ff4f45;
  --mint: #35d39a;
  --gutter: clamp(16px, 4.4vw, 72px);
  --max: 1360px;
  --radius-scene: clamp(20px, 2.4vw, 32px);
  min-height: 100svh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'ss05' on;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Pretendard carries Latin and Hangul. Japanese and Chinese take the
   reader's own system face, so kana and hanzi are not drawn with Korean
   glyphs, and their lines may break between characters, which Korean's
   keep-all forbids. */
.sk:lang(ja) {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Hiragino Sans',
    'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif;
  word-break: normal;
  line-break: strict;
}
.sk:lang(zh-Hant) {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'PingFang TC',
    'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  word-break: normal;
  line-break: strict;
}
/* Break Japanese between phrases where the browser can find them. */
@supports (word-break: auto-phrase) {
  .sk:lang(ja) { word-break: auto-phrase; }
}

@media (color-gamut: p3) {
  .sk {
    --red: color(display-p3 0.99 0.26 0.22);
    --mint: color(display-p3 0.16 0.85 0.58);
  }
}

.sk a { color: inherit; }
.sk :focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.sk-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- header: sits on the cover ---------- */

.sk-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px var(--gutter);
}
.sk-wordmark img { width: auto; height: 26px; }
.sk-navigation { display: flex; gap: 24px; margin-left: auto; white-space: nowrap; }
.sk-navigation a,
.sk-language summary,
.sk-language li a {
  color: var(--paper-2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.sk-navigation a:hover,
.sk-language summary:hover,
.sk-language[open] summary { color: var(--paper); }

/* The language menu: a native disclosure, so it opens without script. */
.sk-language { position: relative; }
.sk-language summary {
  white-space: nowrap;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
}
.sk-language summary::-webkit-details-marker { display: none; }
.sk-language summary::after {
  content: '';
  display: inline-block;
  margin-left: 8px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.sk-language ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  min-width: 12rem;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ink-raised);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  list-style: none;
}
.sk-language li a { display: block; padding: 8px 12px; border-radius: 8px; }
.sk-language li a:hover,
.sk-language li a[aria-current] { background: rgba(250, 250, 250, 0.08); color: var(--paper); }

/* ---------- hero: the cast on stage ---------- */

.sk-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.sk-hero-cover,
.sk-hero-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sk-hero-cover { z-index: -1; }
.sk-hero-cover img { object-fit: cover; object-position: 68% 40%; }
.sk-hero::before {
  /* the house lights: dark on the left where the words sit, open on the stage */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(18, 18, 22, 0.92) 0%, rgba(18, 18, 22, 0.6) 30%, rgba(18, 18, 22, 0) 58%),
    linear-gradient(0deg, rgba(18, 18, 22, 0.9) 0%, rgba(18, 18, 22, 0) 34%);
  pointer-events: none;
}
.sk-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  padding: 0 var(--gutter) clamp(48px, 9svh, 112px);
}
.sk-hero h1 {
  margin: 0;
  font-size: clamp(44px, 6.2vw, 96px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  white-space: pre-line;
  text-wrap: balance;
}
/* Languages whose title runs long keep it to two lines with a smaller face. */
.sk:lang(de) .sk-hero-copy,
.sk:lang(es) .sk-hero-copy,
.sk:lang(fr) .sk-hero-copy,
.sk:lang(pt-BR) .sk-hero-copy { max-width: 46rem; }
.sk:lang(de) .sk-hero h1,
.sk:lang(es) .sk-hero h1,
.sk:lang(fr) .sk-hero h1,
.sk:lang(pt-BR) .sk-hero h1 { font-size: clamp(36px, 4.8vw, 72px); }
.sk-lede {
  max-width: 30rem;
  margin: 24px 0 32px;
  color: var(--paper-2);
  font-size: clamp(16px, 1.25vw, 18px);
}

.sk-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--red);
  color: var(--ink) !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.sk-button:hover { filter: brightness(1.08); }

/* ---------- section headings ---------- */

.sk-section-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.sk-games > .sk-section-title {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12svh, 140px) var(--gutter) clamp(28px, 4svh, 48px);
}

/* ---------- games: one scene each, each cut over the last ---------- */

.sk-scenes { margin: 0; padding: 0; list-style: none; }

.sk-scene {
  --scene-pad: clamp(20px, 3vw, 48px);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--radius-scene) var(--radius-scene) 0 0;
  background: var(--tint, var(--ink-raised));
  box-shadow: 0 -24px 48px -24px rgba(0, 0, 0, 0.7);
}
.sk-scene-art { position: relative; }
.sk-scene-art img {
  width: 100%;
  height: clamp(220px, 46svh, 560px);
  object-fit: cover;
  object-position: center 40%;
}
.sk-scene-art::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, var(--tint, var(--ink-raised)), transparent);
}

.sk-scene-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 72px);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--scene-pad);
}
.sk-scene-text { align-self: start; max-width: 36rem; padding-top: 8px; }
.sk-scene-title { display: flex; align-items: center; gap: 16px; }
.sk-scene-title h3 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.sk-scene-title h3 a { text-decoration: none; }
.sk-scene-title h3 a:hover { text-decoration: underline; text-underline-offset: 6px; }
.sk-icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 22%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.sk-kind { margin: 4px 0 0; color: var(--paper-2); font-size: 15px; font-weight: 500; }
.sk-body { margin: 20px 0 0; font-size: 17px; line-height: 1.65; }
.sk-when {
  display: inline-flex;
  margin: 18px 0 0;
  color: var(--paper-3);
  font-size: 14px;
  font-weight: 600;
}
.sk-scene[data-released='false'] .sk-when { color: var(--mint); }

.sk-phone {
  /* the screen steps forward out of the key art */
  align-self: start;
  width: clamp(150px, 15vw, 220px);
  margin-top: clamp(-200px, -16svh, -96px);
}
.sk-phone img {
  width: 100%;
  height: auto;
  border-radius: clamp(18px, 2vw, 28px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 30px 60px -20px rgba(0, 0, 0, 0.75);
}

.sk-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 24px; }
.sk-links svg { width: 14px; height: 14px; }
.sk-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink) !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.sk-store:hover { background: #fff; }
/* The store's logo keeps its own shape; only its height is set. */
.sk-store .sk-store-logo { flex: none; width: auto; height: 20px; }
.sk-site {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 0 4px;
  color: var(--paper-2) !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.sk-site:hover { color: var(--paper) !important; text-decoration-color: currentColor; }

/* A phone or tablet sees its own store only. The document head marks the
   device; where a product is not on that store, its other store stays. */
:root[data-store='app-store'] .sk-links:has([data-store='app-store']) [data-store='google-play'],
:root[data-store='google-play'] .sk-links:has([data-store='google-play']) [data-store='app-store'] {
  display: none;
}

/* Stacking only where a whole scene fits on one screen. */
@media (min-width: 900px) and (min-height: 720px) {
  .sk-scenes > li { position: sticky; top: 0; }
  .sk-scene { min-height: 100svh; }
  .sk-scene-art img { height: clamp(320px, 60svh, 760px); }
  .sk-scenes > li:last-child .sk-scene { min-height: auto; padding-bottom: 24px; }
}

/* ---------- apps ---------- */

.sk-apps {
  position: relative;
  z-index: 1;
  background: var(--ink);
  padding: clamp(80px, 12svh, 140px) var(--gutter) 0;
}
.sk-apps-head,
.sk-app-list,
.sk-contact,
.sk-footer { max-width: var(--max); margin-left: auto; margin-right: auto; }
.sk-apps-head p { margin: 12px 0 0; color: var(--paper-2); }
.sk-app-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
  gap: 0 48px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}
.sk-app {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.sk-app .sk-icon { width: 48px; height: 48px; }
.sk-icon-blank { background: var(--ink-raised); }
.sk-app h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.sk-app .sk-kind { font-size: 14px; }
.sk-app .sk-body { margin-top: 8px; color: var(--paper-2); font-size: 15px; }
.sk-app .sk-links { grid-column: 2; margin-top: 8px; }
.sk-app .sk-store { min-height: 36px; padding: 0 14px 0 12px; font-size: 14px; background: transparent; color: var(--paper) !important; box-shadow: inset 0 0 0 1px var(--line); }
.sk-app .sk-store:hover { box-shadow: inset 0 0 0 1px var(--paper-2); }
.sk-app .sk-store .sk-store-logo { height: 17px; }

/* ---------- contact ---------- */

.sk-contact {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 12svh, 140px) var(--gutter);
  background: var(--ink);
}
.sk-contact p { max-width: 36rem; margin: 16px 0 24px; color: var(--paper-2); font-size: 17px; }
.sk-email {
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

/* ---------- footer ---------- */

.sk-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px 64px;
  padding: 48px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper-2);
  font-size: 14px;
}
.sk-footer h2 { margin: 0 0 12px; color: var(--paper); font-size: 15px; font-weight: 700; }
.sk-footer-identity { margin: 0 0 8px; }
.sk-footer dl { display: grid; gap: 4px; margin: 0 0 8px; }
.sk-footer dl div { display: flex; gap: 12px; }
.sk-footer dt { flex: none; min-width: 9.5em; color: var(--paper-3); }
.sk-footer dd { margin: 0; }
.sk-footer .sk-site { min-height: 32px; padding: 0; font-size: 14px; }
.sk-footer-policies ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sk-footer-policies a { color: var(--paper-2); text-decoration: none; }
.sk-footer-policies a:hover { color: var(--paper); text-decoration: underline; }
.sk-copyright { grid-column: 1 / -1; margin: 8px 0 0; color: var(--paper-3); }

/* ---------- a game's own page ---------- */

.sk-game { position: relative; background: var(--tint, var(--ink-raised)); }
.sk-game .sk-scene-art img { height: clamp(240px, 52svh, 620px); }
.sk-game-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 72px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 8svh, 96px);
}
.sk-game-text { max-width: 44rem; }
/* The screen stays beside the text for as long as the text runs. */
.sk-game .sk-phone { position: sticky; top: 32px; }
.sk-game h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.sk-game h2 { margin: 56px 0 16px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.sk-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--paper-3);
  font-size: 14px;
  font-weight: 600;
}
.sk-crumbs a { color: var(--paper-2); text-decoration: none; }
.sk-crumbs a:hover { color: var(--paper); }
.sk-crumbs > * + *::before { content: '/'; margin-right: 8px; color: var(--paper-3); }
.sk-features { display: grid; gap: 10px; margin: 0; padding-left: 1.2em; font-size: 17px; }
.sk-facts { margin: 0; }
.sk-facts div {
  display: grid;
  grid-template-columns: 11em minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.sk-facts dt { color: var(--paper-2); font-size: 15px; }
.sk-facts dd { margin: 0; }
.sk-faq h3 { margin: 24px 0 6px; font-size: 17px; font-weight: 700; }
.sk-faq p { margin: 0; color: var(--paper-2); }

.sk-more {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8svh, 96px) var(--gutter);
}
.sk-more h2 { margin: 0 0 20px; font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -0.03em; }
.sk-more ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sk-more a { display: flex; align-items: center; gap: 14px; padding: 12px 0; text-decoration: none; }
.sk-more .sk-icon { width: 48px; height: 48px; }
.sk-more strong { display: block; font-size: 17px; }
.sk-more .sk-kind { display: block; margin: 0; font-size: 14px; }
.sk-more a:hover strong { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- store link: one product, its stores ---------- */

.sk-get { background: var(--tint, var(--ink)); }
.sk-get-main { display: grid; justify-items: center; padding-bottom: 64px; }
.sk-get-art { position: relative; width: 100%; }
.sk-get-art img {
  width: 100%;
  height: clamp(200px, 38svh, 460px);
  object-fit: cover;
  object-position: center 40%;
}
.sk-get-art::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(0deg, var(--tint, var(--ink)), transparent);
}
.sk-get-card {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100%, 26rem);
  margin-top: -56px;
  padding: 0 var(--gutter);
  text-align: center;
}
/* Without key art the card starts below the header instead of over the art. */
.sk-get-main > .sk-get-card:first-child { margin-top: 0; padding-top: 112px; }
.sk-get-card .sk-icon { width: 96px; height: 96px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 20px 40px -16px rgba(0, 0, 0, 0.7); }
.sk-get-card h1 {
  margin: 20px 0 0;
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.sk-get-status { margin: 28px 0 0; color: var(--paper-2); font-size: 17px; }
.sk-get-actions { display: grid; gap: 8px; width: min(100%, 20rem); margin-top: 16px; }
.sk-get-actions .sk-store { justify-content: center; min-height: 52px; font-size: 17px; }
.sk-get-actions .sk-store .sk-store-logo { height: 24px; }
.sk-get-actions .sk-site { justify-content: center; }
.sk-get-help { margin: 20px 0 0; color: var(--paper-3); font-size: 14px; }

/* ---------- 404 ---------- */

.sk-not-found {
  display: grid;
  min-height: 100svh;
  place-content: center;
  gap: 12px;
  padding: 96px var(--gutter);
  text-align: center;
}
.sk-not-found h1 { margin: 0; font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -0.04em; }
.sk-not-found p { margin: 0; color: var(--paper-2); }
.sk-not-found-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 16px; }

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  .sk-header { padding-top: 16px; gap: 16px; }
  .sk-wordmark img { height: 22px; }
  .sk-navigation { gap: 16px; }
  /* A phone's header has room for the wordmark, one link and the language menu. */
  .sk-navigation a:nth-child(n + 2) { display: none; }

  .sk-hero { display: block; min-height: 0; }
  .sk-hero-cover,
  .sk-hero-cover img { position: relative; height: auto; }
  .sk-hero-cover img { aspect-ratio: 4 / 3; }
  .sk-hero::before {
    background: linear-gradient(180deg, rgba(18, 18, 22, 0.7) 0%, rgba(18, 18, 22, 0) 22%, rgba(18, 18, 22, 0) 62%, var(--ink) 100%);
    height: calc(100vw * 0.75);
  }
  .sk-hero-copy { margin-top: -40px; padding-bottom: 56px; }
  .sk-hero h1 { font-size: clamp(38px, 11vw, 52px); }

  .sk-scene-body,
  .sk-game-body { grid-template-columns: 1fr; }
  .sk-facts div { grid-template-columns: 1fr; gap: 2px; }
  .sk-phone { display: none; }
  .sk-scenes > li + li { margin-top: 12px; }

  .sk-footer { grid-template-columns: 1fr; }
  .sk-footer dl div { flex-direction: column; gap: 0; }
}
