/* LAVA LNCH site - same pixel theme as the launcher. Fonts: Galmuri (ko/en) and Fusion Pixel (cn/jp), both OFL - see fonts/. */
@font-face { font-family: 'Galmuri11'; src: url('../fonts/Galmuri11.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Galmuri11'; src: url('../fonts/Galmuri11-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Galmuri9'; src: url('../fonts/Galmuri9.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Fusion Pixel SC'; src: url('../fonts/FusionPixel12-zh_hans.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Fusion Pixel JP'; src: url('../fonts/FusionPixel12-ja.woff2') format('woff2'); font-display: swap; }

:root {
  --bg: #0f1115;
  --bg-2: #161920;
  --panel: rgba(22, 25, 32, .9);
  --line: #343b4d;
  --text: #e6e8ee;
  --muted: #8b93a7;
  --accent: #ff6a2b;
  --accent-2: #ffb03a;
  --accent-dark: #b8400f;
  --info: #5aa9ff;
  --px: 3px;
  --font: 'Galmuri11', 'Noto Sans KR', system-ui, sans-serif;
  --font-sm: 'Galmuri9', var(--font);
  --pixel-border: 0 calc(-1 * var(--px)) 0 0 var(--line), 0 var(--px) 0 0 var(--line),
    calc(-1 * var(--px)) 0 0 0 var(--line), var(--px) 0 0 0 var(--line);
  color-scheme: dark;
}
/* Galmuri has no Chinese and only part of Japanese: Fusion Pixel (OFL, built on Galmuri) takes over there */
:root:lang(zh) { --font: 'Fusion Pixel SC', 'Galmuri11', sans-serif; --font-sm: var(--font); }
:root:lang(ja) { --font: 'Fusion Pixel JP', 'Galmuri11', sans-serif; --font-sm: var(--font); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; color: var(--text); font: 13px/1.8 var(--font); letter-spacing: .02em;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 24px 24px; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.35; }
.muted { color: var(--muted); }
.small { font: 11px/1.6 var(--font-sm); }
::selection { background: var(--accent); color: #fff; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 max(16px, calc((100% - 1080px) / 2));
  background: rgba(15, 17, 21, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: var(--px) solid var(--line); box-shadow: 0 var(--px) 0 0 rgba(255, 106, 43, .35); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .16em; color: var(--accent); text-shadow: 2px 2px 0 var(--accent-dark); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; image-rendering: pixelated; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { color: var(--muted); padding: 4px 12px; }
.nav a:hover { color: var(--text); background: rgba(34, 39, 51, .85); text-decoration: none; }
.nav a.on { color: #fff; background: var(--accent); box-shadow: inset -3px -3px 0 var(--accent-dark); }
.lang { font: 11px/1.6 var(--font-sm); color: var(--text); background: var(--bg-2); border: 0; box-shadow: var(--pixel-border); padding: 3px 6px; margin: 0 3px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 18px; margin: var(--px); border: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--text); background: #1b1f27; white-space: nowrap;
  box-shadow: var(--pixel-border), inset -3px -3px 0 rgba(0, 0, 0, .35), inset 3px 3px 0 rgba(255, 255, 255, .07); }
.btn:hover { background: #2a3040; text-decoration: none; }
.btn:active { transform: translateY(2px); }
.btn.primary { --line: #ffa06e; background: var(--accent); color: #fff; text-shadow: 1px 1px 0 var(--accent-dark);
  box-shadow: var(--pixel-border), inset -3px -3px 0 var(--accent-dark), inset 3px 3px 0 rgba(255, 255, 255, .25); }
.btn.primary:hover { background: #ff7f47; }
.btn.lg { font-size: 16px; padding: 14px 28px; letter-spacing: .08em; }
.btn svg { flex: none; }

.tag { display: inline-block; padding: 0 8px; font: 11px/1.7 var(--font-sm); color: var(--accent-2);
  background: rgba(255, 176, 58, .08); box-shadow: inset 0 0 0 2px rgba(255, 176, 58, .4); }
.tag.cool { color: var(--info); background: rgba(90, 169, 255, .08); box-shadow: inset 0 0 0 2px rgba(90, 169, 255, .4); }

.card { background: var(--panel); margin: var(--px); padding: 22px; box-shadow: var(--pixel-border), 6px 6px 0 0 rgba(0, 0, 0, .3); }

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; min-height: min(78vh, 640px); display: flex; align-items: center;
  padding: 56px max(16px, calc((100% - 1080px) / 2)); background-size: cover; background-position: center bottom; image-rendering: pixelated; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 17, 21, .85) 0%, rgba(15, 17, 21, .35) 60%, rgba(15, 17, 21, .15)); }
.hero-in { position: relative; max-width: 560px; }
.hero h1 { font-size: clamp(30px, 6vw, 52px); letter-spacing: .04em; text-shadow: 4px 4px 0 rgba(0, 0, 0, .5); }
.hero h1 span { color: var(--accent); text-shadow: 4px 4px 0 var(--accent-dark); }
.hero p { font-size: 15px; margin: 14px 0 26px; color: var(--text); text-shadow: 2px 2px 0 rgba(0, 0, 0, .6); }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.section { padding: 64px max(16px, calc((100% - 1080px) / 2)); }
.section h2 { font-size: 20px; margin-bottom: 22px; }
.section h2::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: 3px; background: var(--accent); box-shadow: inset -2px -2px 0 var(--accent-dark); }
.features { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature .icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 12px; color: #fff; background: var(--accent);
  box-shadow: inset -3px -3px 0 var(--accent-dark), inset 3px 3px 0 rgba(255, 255, 255, .25); }
.feature h3 { font-size: 15px; color: #fff; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); }

.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.strip h2 { margin: 0; }

/* ---------- download ---------- */
.dl { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.dl-main h1 { font-size: 26px; margin-bottom: 8px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.notes { margin: 20px 0 0; padding: 14px 16px; white-space: pre-wrap; font: 12px/1.7 var(--font); background: rgba(10, 11, 14, .55); box-shadow: inset 0 0 0 2px rgba(52, 59, 77, .7); max-height: 280px; overflow: auto; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: s; }
.steps li { position: relative; padding-left: 36px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: var(--accent); box-shadow: inset -2px -2px 0 var(--accent-dark); }
.req { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.req li::before { content: '■ '; color: var(--accent); }
.loading { color: var(--muted); }

footer { margin-top: auto; padding: 22px max(16px, calc((100% - 1080px) / 2)); border-top: var(--px) solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: var(--muted); }

@media (max-width: 760px) {
  .dl { grid-template-columns: minmax(0, 1fr); }
  .top { gap: 10px; }
  .nav a { padding: 4px 8px; }
  .hero::before { background: linear-gradient(180deg, rgba(15, 17, 21, .7), rgba(15, 17, 21, .55)); }
  .section { padding: 44px 16px; }
}
