/* ==========================================================================
   LOTS — Room 502 (lotssoft.com)
   ========================================================================== */

:root {
  --bg: #0c0d12;
  --bg-2: #12141c;
  --panel: #171a24;
  --ink: #eeecf4;
  --ink-2: #c3bfd2;
  --muted: #8b869e;
  --line: rgba(255, 255, 255, .10);
  --accent: #7aa2f7;
  --accent-2: #b39ddb;
  --wrap: 1080px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
}
body.lang-zh {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC",
    "Microsoft JhengHei", "Segoe UI", Roboto, sans-serif;
}
body.lang-ja {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Noto Sans JP", "Segoe UI", Roboto, sans-serif;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
em { font-style: normal; color: var(--accent-2); }
strong { color: var(--accent); font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: linear-gradient(to bottom, rgba(12,13,18,.85), rgba(12,13,18,0));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.site-header .wrap { height: 62px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 17px; font-weight: 800; letter-spacing: .22em; }
.logo:hover { color: var(--accent); }

.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--muted); transition: color .18s var(--ease), background .18s var(--ease);
}
.lang-switch a:hover { color: var(--ink); background: rgba(255,255,255,.07); }
.lang-switch a[aria-current] { color: var(--bg); background: var(--ink); }

/* ---------- hero ---------- */
.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;
}

.hero { padding: 96px 0 clamp(56px, 8vw, 96px); text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 70vh; z-index: -1;
  background: radial-gradient(70% 60% at 50% 0%, rgba(122,162,247,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }

.keyart {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  max-width: 980px; margin: 0 auto;
}
.keyart img { width: 100%; display: block; }

.hero-sub {
  margin-top: 26px; font-size: clamp(14px, 2vw, 17px);
  letter-spacing: .06em; color: var(--ink-2);
}

.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.tags li {
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.03);
}

.btn-steam {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--ink); color: #0c0d12; font-weight: 800; font-size: 15px; line-height: 1;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-steam svg { width: 20px; height: 20px; fill: currentColor; }
.btn-steam:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(122,162,247,.3); }

.hero-badge {
  margin-top: 14px; font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- quote ---------- */
.quote { padding: clamp(72px, 12vw, 140px) 0; text-align: center; }
.quote p {
  font-size: clamp(17px, 2.6vw, 24px); line-height: 1.9; font-weight: 600;
  color: var(--ink-2);
}

/* ---------- narrative beats ---------- */
.beats { padding-bottom: clamp(60px, 10vw, 120px); }
.beat {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 5vw, 60px);
  align-items: center; margin-bottom: clamp(48px, 8vw, 96px);
}
.beat.reverse { grid-template-columns: 1.15fr .85fr; }
.beat.reverse .beat-art { order: 2; }
.beat.reverse .beat-text { order: 1; }
.beat-art img {
  width: 100%; max-width: 360px; margin-inline: auto;
  border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.beat-text p { font-size: clamp(19px, 2.8vw, 30px); line-height: 1.6; font-weight: 700; letter-spacing: -.01em; }
.beat-final {
  text-align: center; font-size: clamp(22px, 4vw, 40px); line-height: 1.5;
  font-weight: 800; letter-spacing: -.02em;
}

/* ---------- synopsis ---------- */
.synopsis { padding: clamp(48px, 8vw, 88px) 0; border-top: 1px solid var(--line); }
.synopsis .wrap { max-width: 760px; }
.synopsis p { font-size: clamp(15px, 2vw, 17.5px); line-height: 2; color: var(--ink-2); text-align: center; }

/* ---------- generic section ---------- */
.section { padding: clamp(52px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.section-title {
  font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 28px;
}

/* ---------- screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shot {
  display: block; overflow: hidden; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.shot img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.shot:hover { transform: translateY(-4px); border-color: var(--accent); }

/* ---------- video ---------- */
.video {
  position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: #000; box-shadow: var(--shadow);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- news ---------- */
.news { display: grid; gap: 10px; }
.news a {
  display: grid; gap: 6px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.news a:hover { border-color: var(--accent); transform: translateY(-2px); background: #1b1f2b; }
.news-meta { display: flex; gap: 10px; align-items: baseline; font-size: 12px; }
.news-meta b { color: var(--accent); font-weight: 700; letter-spacing: .04em; }
.news-meta i { font-style: normal; color: var(--muted); }
.news-title { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ---------- about ---------- */
.about .wrap { max-width: 720px; }
.about p { font-size: 15.5px; line-height: 2; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { padding: clamp(48px, 7vw, 80px) 0 60px; border-top: 1px solid var(--line); text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.foot-btn {
  padding: 11px 22px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.foot-btn:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.copy { font-size: 13px; color: var(--muted); }
.copy a:hover { color: var(--accent); }
.copy.dim { margin-top: 8px; font-size: 12px; opacity: .7; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .beat, .beat.reverse { grid-template-columns: 1fr; gap: 20px; }
  .beat.reverse .beat-art, .beat.reverse .beat-text { order: initial; }
  .beat-text p { text-align: center; }
  .shots { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
