:root {
  --ink: #070b14;
  --night: #0c1424;
  --panel: #111c30;
  --line: rgba(166, 234, 255, .16);
  --text: #eaf0f7;
  --dim: #a3b3c8;
  --cyan: #7eeaff;
  --cyan-deep: #2fc4e6;
  --gold: #f3c877;
  --ember: #ff8a66;
  --paper: #e9dec4;
  --serif: "Gowun Batang", "Baskerville", "Apple SD Gothic Neo", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --wide: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 17px/1.7 var(--sans); word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
h3 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
p { margin: 0; }
em { font-style: normal; color: var(--cyan); }
.eyebrow, .tag {
  font: 600 .8rem/1.4 var(--sans); letter-spacing: .14em; color: var(--gold); text-transform: uppercase;
}
section { position: relative; padding: clamp(72px, 11vw, 136px) var(--gutter); }
.head { max-width: var(--wide); margin: 0 auto clamp(32px, 5vw, 56px); display: grid; gap: 12px; }
.head p:not(.eyebrow) { color: var(--dim); max-width: 34em; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--line);
  font: 700 1rem/1 var(--sans); color: var(--text); text-decoration: none; cursor: pointer;
  background: rgba(12, 20, 36, .6); backdrop-filter: blur(8px); transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  color: #04121a; border-color: transparent;
  background: linear-gradient(180deg, #b9f4ff, var(--cyan) 45%, var(--cyan-deep));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 10px 34px rgba(47, 196, 230, .38);
}
.btn.primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 14px 44px rgba(47, 196, 230, .55); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: .88rem; }
.btn.ghost { background: transparent; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: grid; align-content: center; min-width: 148px; min-height: 52px; padding: 6px 18px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(7, 11, 20, .62); backdrop-filter: blur(8px);
  text-decoration: none; line-height: 1.2;
}
.store small { font-size: .68rem; letter-spacing: .08em; color: var(--gold); }
.store b { font: 700 1.02rem/1.25 var(--sans); }
.store[href] { border-color: rgba(126, 234, 255, .6); }
.store[href]:hover { background: rgba(47, 196, 230, .18); }
.store:not([href]) { cursor: default; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 60px; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 18px;
  transition: background .3s ease, border-color .3s ease; border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(7, 11, 20, .82); backdrop-filter: blur(14px); border-color: var(--line); }
.brand img { height: 30px; width: auto; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { font-size: .92rem; color: var(--dim); text-decoration: none; }
.links a:hover { color: var(--text); }
.lang {
  font: 700 .8rem/1 var(--sans); color: var(--text); background: none; border: 1px solid var(--line);
  border-radius: 999px; height: 34px; padding: 0 12px; cursor: pointer;
}
@media (max-width: 760px) {
  .links { display: none; }
  .lang { margin-left: auto; }
}

/* 1. Hero */
.hero {
  min-height: 100svh; padding: 84px var(--gutter) max(28px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow: hidden;
}
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 11, 20, .9) 0, rgba(7, 11, 20, .62) 26%, rgba(7, 11, 20, 0) 50%, rgba(7, 11, 20, 0) 62%, rgba(7, 11, 20, .88) 88%, var(--ink) 100%);
}
.trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-copy { display: grid; gap: 14px; max-width: 620px; }
.hero h1 { font-size: clamp(2.5rem, 10.5vw, 5.2rem); line-height: 1.12; text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
.hero h1 em { text-shadow: 0 0 34px rgba(126, 234, 255, .55); }
.lede { font-size: clamp(1.02rem, 2.6vw, 1.25rem); color: #d5e0ee; text-shadow: 0 1px 14px rgba(0, 0, 0, .8); }
.hero-cta { display: grid; gap: 14px; justify-items: start; }
.hero-cta .btn.primary { min-height: 58px; padding: 0 32px; font-size: 1.08rem; }
.hero-cta .btn svg { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
@media (min-width: 800px) {
  .hero { justify-content: center; gap: 36px; padding-left: max(var(--gutter), calc((100vw - var(--wide)) / 2)); }
  .hero-art img { object-position: 78% 50%; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(7, 11, 20, .86) 0, rgba(7, 11, 20, .5) 34%, rgba(7, 11, 20, 0) 62%),
      linear-gradient(180deg, rgba(7, 11, 20, .5) 0, rgba(7, 11, 20, 0) 22%, rgba(7, 11, 20, 0) 74%, var(--ink) 100%);
  }
  .hero-cta { grid-auto-flow: column; justify-content: start; align-items: center; gap: 18px; }
}

/* 2. Try */
.try { background: radial-gradient(120% 70% at 50% 0, #101c33 0, var(--ink) 70%); }
.stage {
  position: relative; max-width: var(--wide); margin: 0 auto; aspect-ratio: 16 / 9; max-height: 74svh; min-height: 420px; width: 100%;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #0a1322;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair;
}
@media (max-width: 700px) { .stage { aspect-ratio: 4 / 5; max-height: 66svh; min-height: 0; } }
.stage-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 140px rgba(3, 6, 12, .85); }
.foe {
  position: absolute; left: 50%; top: 54%; height: 70%; aspect-ratio: 3 / 4; transform: translate(-50%, -50%);
  pointer-events: none; animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, -52.5%) scale(1.015); } }
.foe.enter { animation: enter .45s cubic-bezier(.2, .9, .3, 1.2) both, bob 2.6s ease-in-out .45s infinite; }
@keyframes enter { from { opacity: 0; transform: translate(-50%, -44%) scale(.7); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.foe .half {
  position: absolute; inset: 0; background: center / contain no-repeat; will-change: transform, opacity;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .55));
}
.foe.hit .half { filter: brightness(2.4) saturate(.4); }
.foe .seam {
  position: absolute; left: 0; top: 0; height: 5px; margin-top: -2.5px; width: 0; transform-origin: 0 50%; opacity: 0; border-radius: 4px;
  background: linear-gradient(90deg, transparent, #fff 18%, #fff 82%, transparent);
  box-shadow: 0 0 18px 4px rgba(126, 234, 255, .9), 0 0 60px 12px rgba(126, 234, 255, .45);
}
.hud {
  position: absolute; inset: 14px 16px auto 16px; display: flex; justify-content: space-between; align-items: center; pointer-events: none;
  font: 700 .92rem/1 var(--sans);
}
.hud span { padding: 9px 14px; border-radius: 999px; background: rgba(7, 11, 20, .66); border: 1px solid var(--line); }
.hud b { color: var(--cyan); }
.foe-name { color: var(--gold); }
.toast {
  position: absolute; left: 50%; top: 11%; transform: translate(-50%, 0); pointer-events: none; opacity: 0; white-space: nowrap;
  font: 700 clamp(1.5rem, 4.4vw, 2.6rem)/1 var(--serif); color: #fff; text-shadow: 0 0 26px rgba(126, 234, 255, .95), 0 2px 10px rgba(0, 0, 0, .8);
}
.toast.show { animation: toast .9s ease-out both; }
.toast.miss { color: var(--dim); text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 14px) scale(.8); } 18% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -14px) scale(1); } }
.hint { position: absolute; inset: 0; pointer-events: none; transition: opacity .4s ease; }
.hint.off { opacity: 0; }
.hint i {
  position: absolute; left: 50%; top: 54%; width: min(46%, 380px); height: 4px; border-radius: 4px; transform-origin: 50% 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95)); box-shadow: 0 0 16px 3px rgba(126, 234, 255, .7);
  animation: hint 2.2s cubic-bezier(.5, 0, .2, 1) infinite;
}
.hint i::after {
  content: ""; position: absolute; right: -11px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 7px rgba(255, 255, 255, .2);
}
@keyframes hint {
  0% { transform: translate(-50%, -50%) rotate(-24deg) translateX(-70%) scaleX(.2); opacity: 0; }
  20% { opacity: 1; }
  60% { transform: translate(-50%, -50%) rotate(-24deg) translateX(40%) scaleX(1); opacity: 1; }
  80%, 100% { transform: translate(-50%, -50%) rotate(-24deg) translateX(60%) scaleX(1); opacity: 0; }
}
.hint span {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  font: 600 .9rem/1 var(--sans); background: rgba(7, 11, 20, .7); border: 1px solid var(--line);
}
.finish {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 20px;
  background: rgba(7, 11, 20, .78); backdrop-filter: blur(6px); animation: fade .5s ease both; cursor: default;
}
.finish[hidden] { display: none; }
.finish .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
@keyframes fade { from { opacity: 0; } }
.note { max-width: var(--wide); margin: 18px auto 0; color: var(--dim); font-size: .92rem; text-align: center; }

/* Phone frame */
.phone {
  margin: 0; width: min(100%, 300px); border-radius: 38px; overflow: hidden; background: #000;
  border: 7px solid #1a2233; outline: 1px solid rgba(255, 255, 255, .14); outline-offset: -1px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .6), 0 0 70px rgba(47, 196, 230, .12);
}
/* The frame takes the screenshot's own shape: some English captures are cropped shorter. */
.phone img { width: 100%; height: auto; }

/* 3. Combat */
.combat { background: linear-gradient(180deg, var(--ink), var(--night) 30%, var(--ink)); }
.beat {
  max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 7vw, 96px); align-items: center;
}
.beat + .beat { margin-top: clamp(56px, 9vw, 110px); }
.beat.flip { grid-template-columns: 1fr 300px; }
.beat.flip .phone { order: 2; }
.beat .phone { transform: rotate(-2.5deg); }
.beat.flip .phone { transform: rotate(2.5deg); }
.beat h3 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); margin: 10px 0 16px; }
.beat p:not(.tag) { color: var(--dim); max-width: 26em; font-size: 1.06rem; }
@media (max-width: 700px) {
  .beat, .beat.flip { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 26px; }
  .beat.flip .phone { order: 0; }
  .beat .phone { width: 240px; }
}

/* 4. Story */
.story { background: #05080f; }
.panels {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--wide);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.panels li { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 9 / 16; border: 1px solid var(--line); background: var(--night); }
.panels img { width: 100%; height: 100%; object-fit: cover; }
.panels p {
  position: absolute; inset: auto 0 0 0; padding: 60px 16px 18px; font: 400 .98rem/1.6 var(--serif);
  background: linear-gradient(180deg, transparent, rgba(5, 8, 15, .94) 62%);
}
.panels li:nth-child(2) { transition-delay: .1s; } .panels li:nth-child(3) { transition-delay: .2s; } .panels li:nth-child(4) { transition-delay: .3s; }
@media (max-width: 860px) {
  .panels {
    grid-template-columns: repeat(4, 72vw); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px;
    scrollbar-width: none;
  }
  .panels::-webkit-scrollbar { display: none; }
  .panels li { scroll-snap-align: center; }
  .panels li.reveal { opacity: 1; transform: none; }
}
.letter {
  max-width: 560px; margin: clamp(44px, 7vw, 80px) auto 0; padding: 30px 32px 34px; border-radius: 6px; color: #2a2016;
  background: linear-gradient(175deg, #f0e6cf, var(--paper) 60%, #d9cba9); transform: rotate(-1.2deg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(60, 40, 10, .18) inset; position: relative;
}
.letter.reveal { transform: translateY(22px) rotate(-1.2deg); } .letter.reveal.in { transform: rotate(-1.2deg); }
.letter::after {
  content: ""; position: absolute; right: 26px; bottom: -14px; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #6f9bff, #24479f 62%, #142a66); box-shadow: 0 5px 12px rgba(0, 0, 0, .45);
}
.letter figcaption { font: 600 .8rem/1 var(--sans); letter-spacing: .12em; color: #8a5a1c; margin-bottom: 14px; }
.letter blockquote { margin: 0; font: 700 clamp(1.15rem, 3vw, 1.45rem)/1.75 var(--serif); }
.after { text-align: center; margin-top: 44px; font: 700 clamp(1.3rem, 3.4vw, 1.9rem)/1.4 var(--serif); color: var(--cyan); }

/* 5. Worlds */
.worlds { background: linear-gradient(180deg, #05080f, var(--ink)); }
.world {
  position: relative; max-width: var(--wide); margin: 0 auto; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  min-height: clamp(380px, 44vw, 520px); display: flex; align-items: flex-end; background: var(--night);
}
.world + .world { margin-top: 18px; }
.world img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.world:hover img { transform: scale(1.04); }
.world::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 11, 20, .9) 0, rgba(7, 11, 20, .55) 38%, rgba(7, 11, 20, 0) 68%), linear-gradient(0deg, rgba(7, 11, 20, .7), transparent 50%);
}
.world > div { position: relative; z-index: 1; padding: clamp(22px, 4vw, 44px); max-width: 520px; display: grid; gap: 10px; }
.world h3 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.world p:not(.tag) { color: #d0dbe9; }
.world ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.world li { font: 600 .84rem/1 var(--sans); padding: 8px 12px; border-radius: 999px; background: rgba(7, 11, 20, .62); border: 1px solid var(--line); }
@media (max-width: 700px) {
  .world { min-height: 500px; }
  .world img { object-position: 78% 50%; }
  .world::after { background: linear-gradient(0deg, rgba(7, 11, 20, .96) 0, rgba(7, 11, 20, .7) 40%, rgba(7, 11, 20, 0) 72%); }
}

/* 6. Legends */
.legends { padding-left: 0; padding-right: 0; overflow: hidden; }
.legends .head { padding: 0 var(--gutter); }
.marquee { display: flex; width: max-content; gap: 14px; padding: 7px 0; animation: slide 80s linear infinite; }
.marquee.rev { animation-direction: reverse; animation-duration: 95s; }
.marquee:hover { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.card {
  position: relative; flex: none; width: clamp(150px, 19vw, 210px); aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; margin: 0;
  border: 1px solid rgba(243, 200, 119, .32); background: var(--night);
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 34px 12px 11px; background: linear-gradient(180deg, transparent, rgba(5, 8, 15, .94) 70%);
  font: 700 1rem/1.25 var(--serif); display: grid; gap: 3px;
}
.card small { font: 600 .68rem/1 var(--sans); letter-spacing: .1em; color: var(--gold); }

/* 7. More */
.more { background: linear-gradient(180deg, var(--ink), var(--night)); }
.reel {
  max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.reel figure { margin: 0; display: grid; gap: 14px; justify-items: center; align-content: start; text-align: center; }
.reel .phone { width: 100%; border-width: 5px; border-radius: 28px; }
.reel figcaption { font-size: .92rem; color: var(--dim); line-height: 1.45; }
@media (max-width: 900px) {
  .reel {
    grid-template-columns: repeat(5, 58vw); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px;
    scrollbar-width: none;
  }
  .reel::-webkit-scrollbar { display: none; }
  .reel figure { scroll-snap-align: center; }
  .reel figure.reveal { opacity: 1; transform: none; }
}
.feats { list-style: none; max-width: var(--wide); margin: clamp(40px, 6vw, 72px) auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feats li { padding: 26px 24px; border-radius: 18px; background: rgba(17, 28, 48, .7); border: 1px solid var(--line); }
.feats h3 { font-size: 1.35rem; margin-bottom: 8px; color: var(--gold); }
.feats p { color: var(--dim); font-size: .98rem; }
@media (max-width: 760px) { .feats { grid-template-columns: 1fr; } }

/* 8. Get */
.get { min-height: 92svh; display: grid; align-items: start; overflow: hidden; padding-top: clamp(88px, 13svh, 150px); padding-bottom: clamp(260px, 44svh, 460px); }
.get-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; z-index: -2; }
.get::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--night) 0, rgba(9, 16, 32, .78) 24%, rgba(9, 16, 32, .3) 58%, rgba(7, 11, 20, .5) 100%);
}
.get-copy { max-width: var(--wide); margin: 0 auto; width: 100%; display: grid; gap: 16px; justify-items: center; text-align: center; }
.get h2 { font-size: clamp(2.3rem, 7.4vw, 4.4rem); text-shadow: 0 2px 30px rgba(0, 0, 0, .7); }
.get p { text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.get .stores { justify-content: center; margin-top: 10px; }
.mail { font-size: .92rem; color: #d5e0ee; }
.mail a { color: var(--cyan); }

.foot {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; padding: 26px var(--gutter) max(26px, env(safe-area-inset-bottom));
  font-size: .86rem; color: var(--dim); background: #04070d; border-top: 1px solid var(--line);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee { animation: none; overflow-x: auto; width: auto; }
  .foe, .hero-cta .btn svg, .hint i { animation: none; }
}
