@font-face {
  font-family: "Pretendard";
  src: url("fonts/PretendardVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f2f6fc;
  --muted: #aab7cb;
  --mint: #83f4cd;
  --navy: #080e1b;
  --panel: #101a2c;
  --line: #26354b;
  font-family: "Pretendard", "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  background: var(--navy);
  color: var(--ink);
}
:root:lang(en) { font-family: "Inter", "Pretendard", "Segoe UI", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 1.5rem; }

.frame { width: min(1160px, calc(100% - 6rem)); margin-inline: auto; }
.site-header { background: #080e1b; border-bottom: 1px solid #1a283b; }
.header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.wordmark { display: inline-flex; width: fit-content; align-items: center; gap: .7rem; font-size: 1rem; font-weight: 760; letter-spacing: .085em; white-space: nowrap; }
.wordmark img { display: block; width: 122px; height: auto; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #5dc4af; border-radius: 8px; background: #102c2f; color: var(--mint); font-size: .85rem; letter-spacing: -.025em; }
.main-nav { display: flex; align-items: center; gap: clamp(.9rem, calc(5.5vw - 2.2rem), 3rem); color: var(--muted); font-size: 1.11rem; font-weight: 600; white-space: nowrap; }
.main-nav a { padding-block: .6rem; }
.main-nav a:hover, .main-nav a[aria-current="page"], .policy-link:hover { color: var(--mint); }
.lang-switch { justify-self: end; display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; }
.document-header .lang-switch { grid-column: -2 / -1; }
.lang-switch button { border: 0; border-radius: 4px; min-width: 42px; min-height: 34px; padding: .25rem .55rem; background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; font-size: .875rem; }
.lang-switch button[aria-pressed="true"] { background: #243349; color: var(--ink); }
.lang-switch button:hover { color: var(--mint); }
.skip { position: absolute; z-index: 2; padding: 1rem; transform: translateY(-150%); background: var(--mint); color: var(--navy); }
.skip:focus { transform: translateY(0); }

.hero { isolation: isolate; position: relative; overflow: hidden; background: #060d1d; border-bottom: 1px solid #213147; }
.hero-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; min-height: clamp(540px, 48vw, 715px); transform: translateX(calc(var(--slide, 0) * -100%)); }
.hero-slide { isolation: isolate; position: relative; display: grid; min-width: 0; }
.hero-art { z-index: -1; position: absolute; inset: 0; background: url("studio-world.jpg") center / cover no-repeat; }
.hero-art-warm { background-image: url("studio-warmth.webp"); }
.hero-art-pace { background-image: url("studio-at-your-pace.webp"); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, #060d1de8 0%, #060d1dc4 24%, #060d1d48 58%, transparent 78%), linear-gradient(0deg, #060d1d 0%, transparent 24%); }
.hero-inner { align-self: center; padding: 5.4rem 3.75rem; }
.hero-copy { width: min(100%, 740px); margin-inline: auto; text-align: center; }
.hero-slide-mascots { background: radial-gradient(ellipse at 74% 55%, #183748 0%, #101e32 38%, #060d1d 79%); }
.hero-slide-mascots .hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(1.25rem, 4vw, 4rem); }
.hero-slide-mascots .hero-title { font-size: clamp(2.5rem, 4.75vw, 4.5rem); }
.hero-mascots { display: block; justify-self: center; width: 100%; height: auto; }
.eyebrow { color: var(--mint); font-size: .875rem; letter-spacing: .10em; font-weight: 750; margin-bottom: .9rem; }
.hero-title { font-size: clamp(3rem, 5.8vw, 5.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -.065em; word-break: keep-all; overflow-wrap: anywhere; }
:lang(en) .hero-title { letter-spacing: -.062em; }
.mint { color: var(--mint); }
.hero-description { max-width: 30rem; margin: 1.6rem auto 2rem; color: #c2cce1; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.75; word-break: keep-all; text-wrap: balance; }
.hero-slide:not(.hero-slide-intro) .hero-description { max-width: 36rem; }
.hero-controls {
  --arrow-inset: max(clamp(.8rem, 3.5vw, 3rem), calc((100% - 1240px) / 2));
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-arrow { position: absolute; inset-block-start: 50%; translate: 0 -50%; width: 48px; height: 48px; padding: 0; display: grid; place-items: center; pointer-events: auto; border: 1px solid #65778e80; border-radius: 50%; background: #080e1bcc; color: var(--ink); font-family: "Segoe UI", sans-serif; font-size: 1.65rem; line-height: 1; cursor: pointer; }
.hero-arrow[data-slide-step="-1"] { inset-inline-start: var(--arrow-inset); }
.hero-arrow[data-slide-step="1"] { inset-inline-end: var(--arrow-inset); }
.hero-arrow:hover, .hero-play:hover { color: var(--mint); border-color: var(--mint); }
.hero-progress { position: absolute; inset-block-end: 1.3rem; inset-inline-start: 50%; translate: -50% 0; display: flex; align-items: center; gap: .45rem; }
.hero-count { border: 1px solid #65778e60; border-radius: 99px; padding: .3rem .7rem; background: #080e1bd9; color: var(--ink); font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-play { display: grid; width: 32px; height: 32px; padding: 0; place-items: center; pointer-events: auto; border: 1px solid #65778e80; border-radius: 50%; background: #080e1bd9; color: var(--ink); cursor: pointer; }
.hero-play span::before { content: "▶"; font-size: .75rem; }
.hero-play[aria-pressed="true"] span::before { content: "Ⅱ"; font-size: .95rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: 7px; font-size: .95rem; font-weight: 600; text-align: center; }
.button-primary { background: var(--mint); color: #062018; }
.button-primary:hover { background: #b0ffe3; }
.button-outline { border-color: #49617d; color: var(--ink); }
.button-outline:hover { color: var(--mint); border-color: var(--mint); }

.section { padding-block: clamp(3.5rem, 7vw, 6.3rem); border-bottom: 1px solid #1a283b; }
.section-page .section { min-height: 60vh; }
.section-page h1 { max-width: 19ch; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -.055em; word-break: keep-all; }
.notice-list { margin-block: 2rem 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.notice-list li + li { border-top: 1px solid var(--line); }
.notice-list summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .75rem;
  padding: 1.1rem clamp(.85rem, 3vw, 1.5rem);
  cursor: pointer;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.notice-list summary::-webkit-details-marker { display: none; }
.notice-list summary::after {
  content: "";
  width: .5rem;
  height: .5rem;
  border: solid var(--mint);
  border-width: 0 2px 2px 0;
  transform: translateY(-.15rem) rotate(45deg);
}
.notice-list details[open] summary::after { transform: translateY(.1rem) rotate(225deg); }
.notice-list summary:hover, .notice-list details[open] summary { color: var(--mint); }
.notice-list time { color: var(--muted); font-size: .875rem; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.notice-list details p { max-width: 72ch; padding: 0 clamp(.85rem, 3vw, 1.5rem) 1.25rem; color: var(--muted); line-height: 1.7; }
.document h1 { max-width: 19ch; font-size: clamp(2rem, 3.5vw, 3.35rem); line-height: 1.2; letter-spacing: -.055em; word-break: keep-all; }
.section-copy, .document-copy { color: var(--muted); font-size: 1.06rem; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; }
.about-layout .section-copy { max-width: 30rem; padding-bottom: .2rem; }
.section-page .about-layout { align-items: start; }
.about-layout h1 { text-wrap: balance; }
.about-copy { max-width: 29.5rem; text-align: end; }
.about-copy .section-copy { max-width: none; text-wrap: balance; }
.about-copy .section-copy + .section-copy { margin-top: 1rem; }
.about-lead {
  margin-top: 1.5rem;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  font-weight: 750;
  line-height: 1.35;
}
.about-mascots { display: block; grid-column: 1 / -1; justify-self: center; width: min(100%, 31rem); height: auto; }
.section-games { background: #0b1423; }
.games-heading { display: flex; justify-content: space-between; align-items: center; gap: clamp(.5rem, 3vw, 2rem); }
.games-heading h1 { overflow-wrap: anywhere; }
.games-mascots { display: block; flex: 0 0 auto; width: clamp(88px, 17vw, 202px); height: auto; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 305px), 1fr)); gap: 1.2rem; margin-top: 2rem; }
.project-card { display: grid; grid-template-columns: minmax(130px, 30%) 1fr; grid-column: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.project-card:only-child { max-width: 840px; }
.section-page .project-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); align-items: stretch; }
.section-page .project-grid > .project-card { grid-template-columns: clamp(72px, 10vw, 104px) minmax(0, 1fr); gap: clamp(.8rem, 2vw, 1.35rem); padding: clamp(.8rem, 2vw, 1.35rem); }
.section-page .project-art { aspect-ratio: 9 / 16; min-height: 0; align-self: start; border-radius: 6px; background: #080e1b; }
.section-page .project-art img { object-fit: contain; }
.section-page .project-copy { align-self: center; padding: 0; }
.project-art { display: grid; min-height: 186px; place-items: center; position: relative; isolation: isolate; overflow: hidden; background-color: #112735; background-image: linear-gradient(#73e1cb14 1px, transparent 1px), linear-gradient(90deg, #73e1cb14 1px, transparent 1px), radial-gradient(ellipse at center, #235565, #112735 75%); background-size: 22px 22px, 22px 22px, 100% 100%; background-position: center; }
.project-art img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.project-glyph { display: grid; place-items: center; width: 63px; height: 63px; border: 1px solid #5cd5bb; border-radius: 14px; background: #133442; box-shadow: 0 0 42px #60e4d036; color: var(--mint); font-size: 2.1rem; }
.project-copy { padding: clamp(1.3rem, 3vw, 2rem); }
.project-status, .project-genre { margin-bottom: .5rem; color: var(--mint); font-size: .875rem; font-weight: 750; }
.project-copy :is(h2, h3) { font-size: 1.35rem; line-height: 1.35; letter-spacing: -.03em; }
.project-copy p:not(.project-status, .project-genre) { margin-top: .65rem; color: var(--muted); line-height: 1.65; word-break: keep-all; }
.policy-link { display: inline-block; color: var(--mint); text-decoration: underline; text-underline-offset: .28em; }
.project-copy .policy-link { margin-top: .9rem; }
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.2rem; margin-top: 2rem; }
.support-card { min-width: 0; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.support-card h2 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); line-height: 1.25; }
.support-card .section-copy, .support-email { margin-top: .7rem; }
.support-email { overflow-wrap: anywhere; }
.support-channel { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.support-channel-avatar { display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--navy); }
.support-channel-avatar img { width: 80%; height: auto; }
.support-channel-name { font-weight: 700; }
.support-channel-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.button-kakao { background: #fee500; color: #191600; }
.button-kakao:hover { background: #fff16a; }
.support-privacy { margin-top: 1.4rem; }
.site-footer { color: var(--muted); padding-block: 1.7rem; font-size: .875rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: first baseline; gap: 1rem; }
.footer-brand { display: grid; justify-items: center; gap: .25rem; }
.footer-message {
  color: var(--ink);
  font-family: "Pretendard", "Malgun Gothic", sans-serif;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  word-break: keep-all;
}
.footer-tagline { display: block; width: 150px; max-width: 100%; height: auto; }
.footer-inner .wordmark { color: var(--ink); }
.footer-inner .wordmark img { width: 164px; }
.footer-details { min-width: 0; line-height: 1.6; text-align: end; overflow-wrap: anywhere; }
.footer-details address { font-style: normal; }
.document { min-height: 55vh; padding-block: clamp(3.5rem, 8vw, 7rem); }
.document-copy { margin-top: 1rem; max-width: 46rem; }
.document h2 { margin-top: 2rem; }
.document ul { padding-left: 1.4rem; margin-top: 1.5rem; line-height: 2; }
.document .button { margin-top: 2rem; }
.policy-document { max-width: 47rem; }
.policy-document h1 { font-size: clamp(1.65rem, 4vw, 2.5rem); line-height: 1.25; text-wrap: balance; }
.policy-languages { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.5rem 2rem; }
.policy-languages .button { min-height: 44px; margin: 0; padding: .55rem .85rem; }
.policy-languages .button[aria-current="true"] { background: var(--mint); border-color: var(--mint); color: var(--navy); }
.policy-version { color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; }
.policy-version h2, .policy-version strong { color: var(--ink); }
.policy-version p { margin-top: 1.2rem; }
.policy-version a { color: var(--mint); text-decoration: underline; text-underline-offset: .18em; }

@media (max-width: 850px) {
  .frame { width: calc(100% - 3rem); }
  .hero-art { background-position: 68% center; }
  .project-card:not(:only-child) { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .header-inner:not(.document-header) { grid-template-columns: 1fr auto; column-gap: .7rem; row-gap: .15rem; padding-block: .7rem .25rem; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; gap: 0 clamp(.4rem, 2vw, 1.2rem); flex-wrap: wrap; font-size: clamp(.875rem, 3.2vw, 1.11rem); }
}

@media (max-width: 600px) {
  .frame { width: calc(100% - 2.5rem); }
  .document-header { grid-template-columns: 1fr auto; gap: .15rem .7rem; padding-block: .7rem; }
  .hero-track { min-height: 0; }
  .hero-inner { align-self: start; padding: 2.8rem 0 clamp(195px, 62vw, 300px); }
  .hero-title, .hero-slide-mascots .hero-title { font-size: clamp(2rem, 8.8vw, 3.3rem); }
  .hero-slide-mascots .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 5.2rem; }
  .hero-mascots { width: min(76%, 290px); }
  .hero-art { inset: auto 0 0; height: clamp(255px, 71vw, 365px); background-position: right bottom; background-size: auto 100%; }
  .hero-art::after { background: linear-gradient(180deg, #060d1d 0%, transparent 29%, transparent 75%, #060d1d 100%); }
  .hero-description { margin-block: 1.15rem 1.45rem; }
  .hero-arrow { inset-block: auto .65rem; translate: none; width: 44px; height: 44px; }
  .section-page h1 { font-size: clamp(2rem, 8.5vw, 3rem); overflow-wrap: anywhere; }
  .about-layout { grid-template-columns: 1fr; gap: 1rem; }
  .games-heading h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
  .project-card, .project-card:only-child { grid-template-columns: 1fr; }
  .project-art { min-height: 134px; }
  .footer-inner { flex-direction: column; align-items: center; }
  .footer-details { text-align: center; }
  .footer-details p, .footer-details address { text-wrap: balance; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-track { transition: transform 420ms cubic-bezier(.22, .61, .36, 1); }
  .hero-track-reset { transition: none; }
  main { animation: 220ms ease-out both content-in; }
}

@keyframes content-in {
  from { opacity: 0; transform: translateY(6px); }
}
