@font-face { font-family: "Maplestory"; src: url("maplestory-bold-subset.woff") format("woff"); font-display: swap; }

:root { --bg: #000; --bg2: #0b0c10; --text: #fff; --soft: rgba(255,255,255,.72); --line: rgba(255,255,255,.16); --pad: clamp(18px, 4vw, 56px); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", "Noto Sans KR", sans-serif;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: "Maplestory", sans-serif; font-weight: 400; margin: 0; letter-spacing: -.01em; }
.kicker { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .32em; color: var(--soft); }
.sub { margin: 10px 0 0; font-size: clamp(15px, 1.3vw, 18px); color: var(--soft); }
.wrap { width: min(1200px, 100% - 2 * var(--pad)); margin-inline: auto; }

/* buttons: flat, sharp, cinematic */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none;
  font: 800 17px/1 -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif; letter-spacing: .02em;
  padding: 17px 30px; border-radius: 6px; border: 2px solid transparent; transition: background .2s, color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn-solid { background: #fff; color: #000; }
.btn-solid:hover { background: #dfe8ff; }
.btn-line { background: rgba(0,0,0,.2); color: #fff; border-color: rgba(255,255,255,.75); backdrop-filter: blur(6px); }
.btn-line:hover { background: rgba(255,255,255,.14); }
.btn-small { padding: 10px 18px; font-size: 14px; }

/* top bar */
.nav { position: fixed; z-index: 30; inset: 0 0 auto 0; height: 68px; display: flex; align-items: center; gap: 28px; padding: 0 var(--pad); transition: background .3s; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.nav.solid { background: rgba(0,0,0,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Maplestory", sans-serif; font-size: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a { text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: rgba(255,255,255,.82); }
.links a:hover { color: #fff; }

/* hero: the film fills the first screen */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #000; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 18%, rgba(0,0,0,0) 34%), linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 16%); }
.hero-copy { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(28px, 5vh, 56px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(38px, 4.6vw, 68px); line-height: 1.08; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.hero .tagline { margin: 10px 0 0; font-size: clamp(15px, 1.3vw, 18px); color: rgba(255,255,255,.86); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* sections */
.block { padding: clamp(80px, 11vw, 140px) 0; }
.block h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.2; }
.trailer { background: var(--bg); }
.poster { position: relative; display: block; width: 100%; margin-top: 36px; padding: 0; border: 0; cursor: pointer; background: #000; border-radius: 10px; overflow: hidden; }
.poster img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s ease, opacity .3s; opacity: .9; }
.poster:hover img { transform: scale(1.03); opacity: 1; }
.play-ring { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); background: rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.play-ring::after { content: ""; position: absolute; left: 39px; top: 31px; border-style: solid; border-width: 17px 0 17px 28px; border-color: transparent transparent transparent #fff; }
.poster:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.game { background: var(--bg2); }
.tiles { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tile { position: relative; margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; background: #111; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.tile:hover img { transform: scale(1.04); }
.tile .cap { position: absolute; inset: auto 0 0 0; padding: 70px 28px 26px; background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 55%, rgba(0,0,0,0) 100%); }
.tile h3 { font-size: clamp(22px, 2.2vw, 30px); }
.tile p { margin: 8px 0 0; color: rgba(255,255,255,.8); font-size: 15px; }

.screens { background: var(--bg); }
.phones { margin-top: 44px; display: flex; justify-content: center; gap: clamp(16px, 3vw, 40px); }
.phone { margin: 0; width: clamp(180px, 22vw, 260px); text-align: center; }
.phone img { width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; border-radius: 30px; border: 6px solid #22252d; background: #22252d; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.phone figcaption { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--soft); }

.friends, .closing { position: relative; overflow: hidden; background: #000; }
.friends-bg { width: 100%; aspect-ratio: 1376 / 768; object-fit: cover; }
.friends::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 32%, rgba(0,0,0,0) 50%); }
.friends-copy { position: absolute; z-index: 2; left: var(--pad); top: 50%; transform: translateY(-50%); max-width: 380px; }
.friends-copy h2 { font-size: clamp(32px, 4vw, 56px); }
.closing-bg { width: 100%; height: min(86vh, 760px); object-fit: cover; object-position: 70% center; }
.closing::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.45) 34%, rgba(0,0,0,0) 56%); }
.closing-copy { position: absolute; z-index: 2; left: var(--pad); top: 50%; transform: translateY(-50%); max-width: 520px; display: flex; flex-direction: column; align-items: flex-start; }
.closing-copy h2 { font-size: clamp(34px, 5vw, 64px); }
.closing-copy .btn { margin-top: 28px; }
.closing-copy .note { margin: 16px 0 0; font-size: 13px; color: rgba(255,255,255,.62); }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 28px var(--pad) 40px; font-size: 13px; color: rgba(255,255,255,.5); border-top: 1px solid var(--line); }
footer a { color: rgba(255,255,255,.72); }

/* full trailer popup */
.theater { width: min(1280px, 94vw); padding: 0; border: 0; background: #000; border-radius: 10px; overflow: visible; }
.theater::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(4px); }
.theater video { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; }
.theater .close { position: absolute; right: -6px; top: -48px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 18px; font-weight: 800; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .links { display: none; }
  .nav .btn-small { margin-left: auto; }
  .hero { height: auto; min-height: 0; }
  .hero { padding-top: 56px; }
  .hero-video { position: relative; height: auto; aspect-ratio: 1 / 1; object-position: 54% center; }
  .hero::after { display: none; }
  .hero-copy { position: relative; left: auto; right: auto; bottom: auto; padding: 24px var(--pad) 48px; display: block; }
  .hero-actions { margin-top: 22px; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .tiles { grid-template-columns: 1fr; }
  .phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--pad)); padding: 4px var(--pad) 18px; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phone { flex: 0 0 62vw; scroll-snap-align: center; }
  .friends-bg { aspect-ratio: 1 / 1; object-position: 100% center; }
  .friends::after, .closing::after { display: none; }
  .friends-copy, .closing-copy { position: static; transform: none; max-width: none; padding: 28px var(--pad) 64px; }
  .closing-bg { height: auto; aspect-ratio: 1 / 1; object-position: 66% center; }
  .theater .close { right: 0; top: -52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
