@import url("https://fonts.googleapis.com/css2?family=Sora:wght@700;800&display=swap");

:root {
  --black: #030506;
  --ink: #f2f4ef;
  --paper: #e8e7df;
  --paper-ink: #0a1417;
  --cyan: #55c9d2;
  --gold: #efc36d;
  --line: rgba(255, 255, 255, 0.15);
  --line-dark: rgba(10, 20, 23, 0.18);
  --shell: min(1380px, calc(100vw - 72px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0; min-width: 320px; overflow-x: hidden; color: var(--ink); background: var(--black);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.65; word-break: keep-all; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px;
  color: #061519; background: #fff; transform: translateY(-160%); transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.game-header {
  position: fixed; z-index: 50; top: 0; left: 50%; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; width: var(--shell); min-height: 88px; border-bottom: 1px solid var(--line);
  transform: translateX(-50%); transition: background .25s ease, min-height .25s ease, width .25s ease, padding .25s ease;
}
.game-header.is-scrolled {
  width: 100%; min-height: 66px; padding-inline: max(28px, calc((100vw - 1380px) / 2));
  background: rgba(3, 5, 6, .82); backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand-mark {
  position: relative; display: grid; width: 42px; height: 38px; overflow: hidden;
  color: var(--cyan); background: rgba(85,201,210,.08); border: 1px solid rgba(85,201,210,.72);
  clip-path: polygon(0 0,100% 0,100% 72%,74% 100%,0 100%);
  place-items: center; font: 800 14px/1 Sora, "Segoe UI", sans-serif; letter-spacing: -.07em;
}
.brand-mark::after { position: absolute; right: 5px; bottom: 5px; width: 7px; height: 7px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); content: ""; }
.brand-name { display: grid; font-family: Sora, "Segoe UI", sans-serif; font-size: 18px; font-weight: 800; line-height: 1; letter-spacing: .11em; }
.brand-name::after { width: 30px; height: 1px; margin-top: 5px; background: linear-gradient(90deg,var(--cyan) 0 70%,var(--gold) 70%); content: ""; }
.game-nav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px); color: #a6b0b1; font-size: 13px; font-weight: 700; }
.game-nav > a { padding: 10px 0; border-bottom: 1px solid transparent; }
.game-nav > a:hover, .game-nav > a:focus-visible, .game-nav > a[aria-current="page"] { color: var(--gold); border-color: currentColor; }
.nav-group { position: relative; }
.nav-group-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 10px 0; color: inherit; background: transparent; border: 0; font: inherit; cursor: pointer; }
.nav-group-toggle span { color: var(--gold); font-size: 10px; transition: transform .22s ease; }
.nav-group.is-expanded .nav-group-toggle span { transform: rotate(180deg); }
.nav-submenu { position: absolute; top: calc(100% + 17px); left: 50%; width: 270px; padding: 8px; visibility: hidden; opacity: 0; background: rgba(3,5,6,.98); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.38); transform: translate(-50%,-7px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.nav-group.is-expanded .nav-submenu, .nav-group:focus-within .nav-submenu { visibility: visible; opacity: 1; transform: translate(-50%,0); }
@media (hover: hover) { .nav-group:hover .nav-submenu { visibility: visible; opacity: 1; transform: translate(-50%,0); } }
.game-nav .nav-submenu a { display: grid; gap: 5px; padding: 13px 14px; }
.game-nav .nav-submenu a:hover, .game-nav .nav-submenu a:focus-visible, .game-nav .nav-submenu a[aria-current="page"] { color: var(--ink); background: rgba(85,201,210,.12); }
.nav-submenu b { font-family: Pretendard, "Noto Sans KR", sans-serif; font-size: 12px; letter-spacing: 0; }
.nav-submenu small { color: #718587; font-family: Pretendard, "Noto Sans KR", sans-serif; font-size: 10px; font-weight: 500; line-height: 1.5; letter-spacing: 0; }
.game-actions { display: flex; align-items: center; justify-self: end; gap: 16px; }
.header-cta { justify-self: end; color: var(--gold); font-size: 13px; font-weight: 800; }
.header-cta span { margin-left: 18px; }
.game-nav-toggle { display: none; }

.game-hero { position: relative; min-height: 100svh; overflow: hidden; background: #030506; }
.hero-media, .hero-poster, .hero-player, .hero-shade, .hero-grain { position: absolute; inset: 0; }
.hero-poster {
  background-position: center; background-size: cover; transform: scale(1.025);
  transition: background-image .55s ease, opacity .5s ease, transform 8s linear;
}
.game-hero.is-playing .hero-poster { opacity: .16; transform: scale(1.08); }
.hero-player { overflow: hidden; opacity: 0; transition: opacity .6s ease; }
.game-hero.is-playing .hero-player { opacity: .78; }
.hero-player iframe, .hero-player video {
  position: absolute; top: 50%; left: 50%; width: max(100vw, 177.78vh); height: max(56.25vw, 100vh);
  border: 0; object-fit: cover; pointer-events: none; transform: translate(-50%, -50%) scale(1.01);
}
.hero-shade {
  background:
    linear-gradient(90deg, rgba(3,5,6,.92) 0%, rgba(3,5,6,.46) 45%, rgba(3,5,6,.2) 72%, rgba(3,5,6,.6) 100%),
    linear-gradient(0deg, rgba(3,5,6,.98) 0%, transparent 42%, rgba(3,5,6,.36) 100%);
}
.hero-grain {
  opacity: .18; mix-blend-mode: soft-light; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.36'/%3E%3C/svg%3E");
}
.hero-frame {
  position: relative; z-index: 2; display: flex; flex-direction: column; width: var(--shell);
  min-height: 100svh; margin-inline: auto; padding: 122px 0 36px;
}
.hero-meta { display: flex; justify-content: space-between; color: #899597; font: 700 9px/1 Consolas, monospace; letter-spacing: .15em; }
.live-state { display: flex; align-items: center; gap: 9px; }
.live-state i { width: 6px; height: 6px; background: #f06c65; border-radius: 50%; box-shadow: 0 0 14px #f06c65; }
.hero-copy { margin-top: clamp(94px, 15vh, 170px); }
.eyebrow { color: var(--cyan); font: 750 10px/1 Consolas, monospace; letter-spacing: .19em; }
.eyebrow.dark { color: #6e521f; }
.hero-copy h1 { max-width: 1030px; margin-top: 25px; font-size: clamp(58px, 7.4vw, 112px); line-height: .98; letter-spacing: -.075em; }
.hero-copy h1 em { color: var(--gold); font-style: normal; }
.hero-copy > p:last-child { margin-top: 31px; color: #adb7b7; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.9; }
.game-switcher {
  display: grid; grid-template-columns: repeat(5, 1fr); margin-top: auto;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.game-switcher button {
  display: grid; grid-template-columns: 38px 1fr; gap: 5px 10px; min-height: 104px; padding: 23px 20px;
  text-align: left; background: rgba(3,5,6,.34); border: 0; cursor: pointer; transition: background .25s ease;
}
.game-switcher button + button { border-left: 1px solid var(--line); }
.game-switcher button:hover, .game-switcher button:focus-visible, .game-switcher button[aria-selected="true"] { background: rgba(85,201,210,.13); }
.game-switcher span { grid-row: 1 / span 2; color: var(--gold); font: 700 9px/1.4 Consolas, monospace; }
.game-switcher b { font-size: 14px; letter-spacing: .04em; }
.game-switcher small { color: #7e8c8e; font: 700 8px/1 Consolas, monospace; letter-spacing: .13em; }
.hero-controls { display: flex; justify-content: flex-end; gap: 28px; margin-top: 22px; }
.hero-controls button, .hero-controls a { color: #aab4b4; background: none; border: 0; font-size: 11px; cursor: pointer; }
.hero-controls .toggle-icon, .hero-controls a span { margin-right: 8px; color: var(--gold); }

.manifesto {
  position: relative;
  display: grid; grid-template-columns: 150px minmax(0, 1.15fr) minmax(320px, .7fr); gap: clamp(36px, 7vw, 110px);
  align-items: end; width: 100%; margin-inline: 0; padding: 150px max(36px, calc((100vw - 1380px) / 2)) 140px; color: var(--paper-ink);
  background: var(--paper); isolation: isolate;
}
.section-no { align-self: start; color: #7a8485; font: 700 9px/1 Consolas, monospace; letter-spacing: .13em; }
.section-no span { color: #8a651d; }
.section-no.light span { color: var(--gold); }
.manifesto-copy .eyebrow { margin-bottom: 24px; }
.manifesto h2, .gallery-heading h2, .system-design h2 { font-size: clamp(45px, 5.2vw, 76px); line-height: 1.06; letter-spacing: -.065em; }
.manifesto-lead { color: #5f6d70; font-size: 16px; line-height: 1.9; }

.game-stories { background: #040809; }
.game-story { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(430px, .75fr); min-height: 820px; border-top: 1px solid var(--line); }
.game-story.reverse { grid-template-columns: minmax(430px, .75fr) minmax(0, 1.25fr); }
.game-story.reverse .story-visual { grid-column: 2; }
.game-story.reverse .story-copy { grid-row: 1; grid-column: 1; }
.story-visual { position: relative; overflow: hidden; min-height: 620px; }
.story-visual::after { position: absolute; inset: 0; background: linear-gradient(to top, rgba(3,5,6,.78), transparent 54%); content: ""; }
.story-visual img { height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.04) brightness(.82); transition: transform 1.4s cubic-bezier(.2,.7,.2,1), filter .6s ease; }
.game-story:hover .story-visual img { filter: saturate(.98) contrast(1.02) brightness(.9); transform: scale(1.025); }
.story-copy {
  display: flex; flex-direction: column; justify-content: center; padding: 82px clamp(46px, 6vw, 105px);
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 70px 70px;
}
.story-no { color: var(--cyan); font: 700 9px/1 Consolas, monospace; letter-spacing: .15em; }
.story-copy h2 { margin-top: 26px; font-size: clamp(40px, 4.3vw, 64px); line-height: 1.08; letter-spacing: -.06em; }
.story-copy > p { margin-top: 29px; color: #93a1a2; font-size: 15px; line-height: 1.9; }
.story-copy ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 38px; }
.story-copy li { padding: 8px 11px; color: #b9c2c1; border: 1px solid var(--line); font-size: 11px; }

.build-gallery { padding: 150px max(36px, calc((100vw - 1380px) / 2)); background: #09171b; }
.gallery-heading { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(300px, .62fr); gap: clamp(36px, 7vw, 110px); align-items: end; margin-bottom: 75px; }
.gallery-heading > p { color: #8ea0a1; font-size: 14px; line-height: 1.9; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.build-shot { position: relative; overflow: hidden; min-height: 530px; background: #0b1417; }
.build-shot.build-wide { grid-column: 1 / -1; min-height: 720px; }
.build-shot::after { position: absolute; inset: 0; background: linear-gradient(to top, rgba(3,5,6,.94), transparent 55%); content: ""; }
.build-shot img { height: 100%; object-fit: cover; filter: saturate(.78) brightness(.8); transition: transform .9s ease, filter .6s ease; }
.build-shot:hover img { filter: saturate(1) brightness(.92); transform: scale(1.02); }
.build-shot figcaption { position: absolute; z-index: 1; right: 28px; bottom: 25px; left: 28px; display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: end; }
.build-shot figcaption b { color: var(--gold); font: 700 9px/1 Consolas, monospace; letter-spacing: .13em; }
.build-shot figcaption span { font-size: 20px; font-weight: 750; }
.build-shot figcaption a { grid-row: 1 / span 2; grid-column: 2; color: #899698; font-size: 9px; }

.system-design {
  width: 100%; padding: 150px max(36px, calc((100vw - 1380px) / 2)); color: var(--paper-ink); background: var(--paper);
}
.system-design-inner {
  display: grid; grid-template-columns: minmax(360px, .85fr) minmax(0, 1.15fr); gap: clamp(70px, 10vw, 160px);
  width: 100%; max-width: 1380px; margin-inline: auto;
}
.design-copy { position: sticky; top: 105px; align-self: start; }
.design-copy .eyebrow { margin: 38px 0 24px; }
.design-list { border-top: 1px solid var(--line-dark); }
.design-list li { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 35px 0; border-bottom: 1px solid var(--line-dark); }
.design-list > li > span { color: #8a651d; font: 700 10px/1 Consolas, monospace; }
.design-list h3 { margin-bottom: 8px; font-size: 25px; letter-spacing: -.035em; }
.design-list p { color: #647174; }

.game-contact { position: relative; overflow: hidden; padding: 150px 0 100px; background: #041013; }
.contact-light { position: absolute; top: -30%; right: -8%; width: 58vw; height: 58vw; border-radius: 50%; background: radial-gradient(circle, rgba(85,201,210,.22), transparent 62%); }
.contact-inner { position: relative; z-index: 1; width: var(--shell); margin-inline: auto; }
.contact-inner h2 { max-width: 1040px; margin-top: 25px; font-size: clamp(54px, 7.4vw, 108px); line-height: .98; letter-spacing: -.075em; }
.contact-inner > div { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-top: 80px; padding-top: 25px; border-top: 1px solid var(--line); }
.contact-inner > div p { max-width: 590px; color: #8e9c9d; }
.contact-inner a { display: inline-flex; gap: 48px; padding: 18px 22px; color: #071417; background: var(--gold); font-size: 13px; font-weight: 850; }

.game-footer { display: grid; grid-template-columns: 1fr minmax(320px, 1fr) auto; gap: 50px; align-items: end; padding: 44px max(36px, calc((100vw - 1380px) / 2)); color: #758486; background: #020607; border-top: 1px solid var(--line); font-size: 10px; }
.game-footer > div { display: grid; gap: 6px; }
.game-footer strong { color: #dfe5e3; letter-spacing: .26em; }
.game-footer > div span { font: 700 8px/1 Consolas, monospace; letter-spacing: .12em; }
.game-footer a { color: var(--gold); font-weight: 750; }

.js .reveal { opacity: 0; transform: translateY(25px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) {
  :root { --shell: min(calc(100vw - 44px), 960px); }
  .game-header { grid-template-columns: 1fr auto; }
  .game-nav { position: fixed; z-index: 49; top: 87px; right: 22px; display: none; min-width: 280px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; color: #a6b0b1; background: rgba(3,5,6,.98); border: 1px solid var(--line); backdrop-filter: blur(18px); }
  .game-nav.is-open { display: flex; }
  .game-nav > a, .nav-group-toggle { width: 100%; padding: 13px 12px; text-align: left; border: 0; }
  .nav-group-toggle { justify-content: space-between; }
  .game-nav-toggle { display: grid; width: 40px; height: 40px; padding: 0 10px; background: transparent; border: 1px solid var(--line); place-content: center; gap: 6px; }
  .game-nav-toggle > span:not(.sr-only) { display: block; width: 18px; height: 1px; background: var(--ink); }
  .nav-submenu, .nav-group.is-expanded .nav-submenu, .nav-group:focus-within .nav-submenu { position: static; width: auto; max-height: 0; padding: 0 8px; visibility: hidden; opacity: 1; overflow: hidden; background: rgba(255,255,255,.025); border: 0; box-shadow: none; transform: none; transition: max-height .25s ease, padding .25s ease, visibility .25s; }
  .nav-group.is-expanded .nav-submenu { max-height: 260px; padding: 6px 8px 9px; visibility: visible; }
  .manifesto { grid-template-columns: 100px 1fr; padding-inline: 22px; }
  .gallery-heading { grid-template-columns: 100px 1fr; }
  .manifesto-lead, .gallery-heading > p { grid-column: 2; }
  .game-story, .game-story.reverse { grid-template-columns: 1fr; }
  .game-story.reverse .story-visual, .game-story.reverse .story-copy { grid-row: auto; grid-column: auto; }
  .story-visual { min-height: 62vw; }
  .system-design { padding-inline: 22px; }
  .system-design-inner { grid-template-columns: 1fr; max-width: 960px; }
  .design-copy { position: static; }
}

@media (max-width: 720px) {
  :root { --shell: calc(100vw - 32px); }
  body { word-break: normal; overflow-wrap: anywhere; }
  .game-header, .game-header.is-scrolled { left: 16px; width: calc(100vw - 32px); min-height: 70px; padding: 0; transform: none; }
  .game-header.is-scrolled { left: 0; width: 100%; padding-inline: 16px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 14px; }
  .header-cta { display: none; }
  .game-nav { top: 69px; right: 16px; left: 16px; min-width: 0; }
  .hero-frame { min-height: 100svh; padding: 96px 0 24px; }
  .hero-meta span:first-child { display: none; }
  .hero-meta { justify-content: flex-end; }
  .hero-copy { margin-top: 14vh; }
  .hero-copy h1 { font-size: clamp(39px, 11.5vw, 52px); line-height: 1.02; }
  .hero-copy > p:last-child { font-size: 14px; }
  .hero-copy > p:last-child br { display: none; }
  .game-switcher { grid-template-columns: repeat(2, 1fr); margin-top: auto; }
  .game-switcher button { min-height: 80px; padding: 16px 12px; }
  .game-switcher button:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .game-switcher button:nth-child(4) { border-top: 1px solid var(--line); }
  .game-switcher button:nth-child(5) { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .hero-controls { justify-content: space-between; }
  .video-toggle { display: none; }
  .manifesto { grid-template-columns: 1fr; gap: 34px; padding: 100px 16px 92px; }
  .manifesto-lead, .gallery-heading > p { grid-column: auto; }
  .manifesto h2, .gallery-heading h2, .system-design h2 { font-size: clamp(34px, 9.6vw, 46px); }
  .game-story { min-height: auto; }
  .story-visual { min-height: 62vh; }
  .story-copy { padding: 72px 16px 78px; }
  .story-copy h2 { font-size: clamp(34px, 9.7vw, 46px); }
  .build-gallery { padding: 96px 16px; }
  .gallery-heading { grid-template-columns: 1fr; gap: 30px; margin-bottom: 48px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .build-shot, .build-shot.build-wide { grid-column: auto; min-height: 72vh; }
  .build-shot figcaption { right: 18px; bottom: 18px; left: 18px; grid-template-columns: 1fr; }
  .build-shot figcaption a { grid-row: auto; grid-column: auto; }
  .system-design { padding: 100px 16px; }
  .design-list li { grid-template-columns: 42px 1fr; gap: 14px; }
  .game-contact { padding: 100px 0 80px; }
  .contact-inner h2 { font-size: clamp(38px, 11vw, 54px); }
  .contact-inner > div { align-items: stretch; flex-direction: column; margin-top: 62px; }
  .contact-inner a { justify-content: space-between; }
  .game-footer { grid-template-columns: 1fr; gap: 23px; padding: 42px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-player { display: none; }
}
