/* Gladiator's Edge press kit: the game's menu palette (Docs/UI-STYLE.md, "ink and ember"). */
:root {
  --ink0: #0d1017; --ink1: #151923; --ink2: #1e2430; --ink3: #2a3140; --brand-ink: #0b1a21;
  --tx1: #f6f2ea; --tx2: #bcc2ce; --tx3: #8e95a5;
  --ember: #ff9326; --ember-hi: #ffb04d; --on-ember: #1c0f04;
  --earned: #e8c46a; --info: #7cc7ff;
  --display: "Lilita One", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  color-scheme: dark;
}
body.ko { --display: "Black Han Sans", "Noto Sans KR", sans-serif; --body: "Noto Sans KR", system-ui, sans-serif; word-break: keep-all; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink1); color: var(--tx1); font: 600 17px/1.6 var(--body); }
body.ko { font-weight: 500; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--info); text-underline-offset: 3px; }
a:hover { color: #a9dcff; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: .01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.quiet { color: var(--tx3); font-size: .92em; }
.lead { color: var(--tx2); font-size: 1.08em; max-width: 60ch; }
section { padding: 64px 0; }
section.band { background: var(--ink0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ember); color: var(--on-ember); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ember-hi); outline-offset: 2px; border-radius: 4px; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 5; background: rgba(13, 16, 23, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ink3); }
.bar-in { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--tx1); text-decoration: none; font-family: "Lilita One", var(--display); font-size: 1.15rem; white-space: nowrap; }
.brand img { border-radius: 9px; }
.bar nav { display: flex; gap: 18px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.bar nav a { color: var(--tx2); text-decoration: none; white-space: nowrap; font-size: .95rem; }
.bar nav a:hover { color: var(--tx1); }
.lang { color: var(--tx1); text-decoration: none; border: 2px solid var(--ink3); border-radius: 999px; padding: 4px 14px; font-size: .9rem; white-space: nowrap; }
.lang:hover { border-color: var(--ember); color: var(--tx1); }

/* Hero */
.hero { padding: 48px 0 64px; background: radial-gradient(1200px 520px at 75% 20%, rgba(255, 147, 38, .14), transparent 60%), var(--ink1); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { margin: 0 0 12px; }
.logo { width: min(460px, 100%); }
.tagline { font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.25; color: var(--tx1); margin-bottom: .5em; }
.intro { color: var(--tx2); max-width: 54ch; }
.badges { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { background: var(--ink3); color: var(--tx1); border-radius: 999px; padding: 4px 14px; font-size: .9rem; }
.btn { display: inline-block; text-decoration: none; font-family: var(--display); font-size: 1.1rem; border-radius: 12px; padding: 12px 22px; }
.btn.primary { background: var(--ember); color: var(--on-ember); box-shadow: 0 4px 0 var(--ink0), 0 8px 18px rgba(0, 0, 0, .35); }
.btn.primary:hover { background: var(--ember-hi); color: var(--on-ember); }
.beta { background: var(--ink2); border: 1px solid var(--ink3); border-radius: var(--radius); padding: 18px 22px 8px; max-width: 520px; }
.beta-title { font-size: 1.25rem; margin-bottom: .5em; }
.beta ol { margin: 0 0 .6em; padding-left: 1.4em; }
.beta li { margin: .25em 0; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink2); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.placeholder img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.9); }
.video.placeholder span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--display); font-size: 1.3rem; background: rgba(13, 16, 23, .8); border: 1px solid var(--ink3); padding: 10px 18px; border-radius: 999px; white-space: nowrap; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ink3); border: 1px solid var(--ink3); border-radius: var(--radius); overflow: hidden; margin: 0; }
.facts div { background: var(--ink1); padding: 14px 18px; }
.facts dt { color: var(--earned); font-family: var(--display); font-size: .95rem; letter-spacing: .02em; }
.facts dd { margin: 2px 0 0; color: var(--tx1); }

/* About */
.story { margin: 0 0 28px; padding: 4px 0 4px 20px; border-left: 4px solid var(--ember); color: var(--tx2); font-style: italic; max-width: 70ch; }
body.ko .story { font-style: normal; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; }
.features article { background: var(--ink2); border-radius: var(--radius); padding: 20px 22px 8px; }
.features p { color: var(--tx2); }

/* Cards */
.cards { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.cards.six { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.cards.eight { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--ink2); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.cards.six .card { flex-direction: row; align-items: center; }
.cards.six .card img { width: 128px; flex: none; background: radial-gradient(circle at 50% 60%, var(--ink3), var(--ink2) 70%); }
.cards.eight .card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card > div { padding: 14px 18px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--tx2); font-size: .95rem; margin: 0; }
.chip { display: inline-block; vertical-align: middle; font-family: var(--body); font-weight: 800; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--tx2); background: var(--ink3); border-radius: 999px; padding: 2px 9px; margin-left: 4px; }
body.ko .chip { text-transform: none; font-weight: 700; }

/* Screenshots */
.shots { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.shots a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--ink3); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .2s; }
.shots a:hover img { transform: scale(1.02); }
.shots span { display: block; color: var(--tx2); font-size: .9rem; margin-top: 6px; }

/* Downloads, contact */
.downloads, .contact { list-style: none; padding: 0; margin: 16px 0 0; }
.downloads li { padding: 10px 0; border-bottom: 1px solid var(--ink3); }
.downloads li.all { border: 0; padding-bottom: 18px; }
.contact li { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ink3); }
.contact span { color: var(--tx3); }
.contact a { overflow-wrap: anywhere; }

/* Footer: the studio logo stands on its own ink (Art/Brand/BinaryBrewery/README.md). */
footer { background: var(--brand-ink); padding: 40px 0 28px; text-align: center; }
.studio img { width: 180px; margin: 0 auto 18px; }
footer p { margin: 0 auto; }

@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .bar nav { display: none; }
  .bar-in { justify-content: space-between; }
  section { padding: 48px 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .cards.six { grid-template-columns: 1fr; }
  .cards.six .card img { width: 96px; }
  .shots { grid-template-columns: 1fr; }
  .contact li { grid-template-columns: 1fr; gap: 2px; }
  .video.placeholder span { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .shots img { transition: none; } }
