:root {
  /* The app's own palette: frost for surfaces, ember for action, rune for labels. */
  --frost-000: #05080c;
  --frost-050: #0a0e14;
  --frost-100: #10161f;
  --frost-200: #161d28;
  --frost-300: #1d2633;
  --frost-400: #2a3542;
  --frost-600: #5a6a7e;
  --frost-700: #8a9aaf;
  --frost-800: #c2cbd6;
  --frost-900: #e6ecf3;
  --rune-300: #6fc8ff;
  --rune-400: #3aa7ff;
  --rune-500: #1d8ee8;
  --ember-500: #d85a12;
  --ember-600: #f07820;
  --ember-700: #ffa048;
  --ember-800: #ffd28a;
  --on-ember: #1a0a04;
  --gutter: 20px;
  --display: "Cinzel Decorative", Georgia, serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--frost-800);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  /* Ember in one corner, rune light in the other, as in the app window. */
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(216, 90, 18, .16), transparent 70%),
    radial-gradient(900px 620px at 100% 100%, rgba(29, 142, 232, .10), transparent 70%),
    var(--frost-050);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rune-300); text-underline-offset: 3px; }
a:hover { color: var(--ember-700); }
:focus-visible { outline: 2px solid var(--ember-700); outline-offset: 3px; border-radius: 4px; }
code, pre { font-family: var(--mono); }
code { font-size: .88em; color: var(--frost-900); background: var(--frost-200); border: 1px solid var(--frost-400); border-radius: 4px; padding: 1px 6px; }
strong { color: var(--frost-900); font-weight: 600; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--ember-600); color: var(--on-ember); padding: 8px 12px; border-radius: 4px; }

/* Navigation */
nav { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 16px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--frost-900); font-family: var(--display); font-size: 19px; letter-spacing: .5px; }
.brand:hover { color: var(--ember-700); }
nav .links { display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: 15px; }
nav .links a { color: var(--frost-700); text-decoration: none; padding: 4px 0; }
nav .links a:hover { color: var(--frost-900); }

/* Type */
.eyebrow { font-family: var(--display); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rune-300); margin: 0 0 12px; }
h1 { font-family: var(--display); font-size: clamp(34px, 5.6vw, 58px); line-height: 1.08; color: var(--frost-900); margin: 0 0 20px; letter-spacing: .5px; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; color: var(--frost-900); margin: 0 0 12px; letter-spacing: -.4px; font-weight: 700; text-wrap: balance; }
h3 { font-size: 18px; color: var(--frost-900); margin: 0 0 6px; font-weight: 600; }
.lede { font-size: 19px; color: var(--frost-800); margin: 0 0 28px; max-width: 34em; }
.sub { color: var(--frost-700); margin: 0 0 18px; max-width: 44em; }
.fine { font-size: 14px; color: var(--frost-600); margin: 18px 0 0; }
[data-version]:empty { display: none; }

/* Hero */
.hero { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); padding: 36px 0 28px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding-top: 56px; gap: 48px; } }
.emblem { width: 132px; margin: 0 0 20px -8px; position: relative; }
.emblem::before {
  content: ""; position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 160, 72, .75), rgba(216, 90, 18, 0) 70%);
  filter: blur(22px); animation: ember 4.5s ease-in-out infinite;
}
.emblem img { position: relative; width: 132px; height: 132px; }
@keyframes ember { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) {
  .emblem::before { animation: none; }
  html { scroll-behavior: auto; }
}

.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 6px; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn.primary { background: var(--ember-600); color: var(--on-ember); }
.btn.primary:hover { background: var(--ember-700); color: var(--on-ember); }
.btn.ghost { background: var(--frost-200); color: var(--frost-900); border: 1px solid var(--frost-400); }
.btn.ghost:hover { border-color: var(--rune-400); color: var(--frost-900); }

/* Screenshots sit in a frame like a window on the desk. */
figure { margin: 0; }
.window { border: 1px solid var(--frost-400); border-radius: 10px; overflow: hidden; background: var(--frost-000); box-shadow: 0 0 0 4px rgba(16, 22, 31, .8), 0 24px 70px rgba(0, 0, 0, .6); }

/* Sections */
section { padding: 72px 0 0; scroll-margin-top: 12px; }

.games { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .games { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.games li { background: var(--frost-100); border: 1px solid var(--frost-300); border-radius: 10px; padding: 18px; }
.game-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.game-head h3 { margin: 0 auto 0 0; }
.games p { margin: 0; color: var(--frost-700); font-size: 15px; line-height: 1.55; }
/* The blue tag the app shows beside a panel title. */
.tag { font-family: var(--mono); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: #04121f; background: var(--rune-400); border-radius: 3px; padding: 2px 7px; }

.shots { display: grid; gap: 26px 22px; grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
@media (min-width: 760px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
figcaption { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 15px; }
.os { font-family: var(--mono); font-size: 12px; color: var(--ember-800); border: 1px solid rgba(240, 120, 32, .5); border-radius: 3px; padding: 1px 7px; }

.cards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--frost-100); border: 1px solid var(--frost-300); border-top: 3px solid var(--ember-500); border-radius: 10px; padding: 20px; }
.card p { margin: 0; color: var(--frost-700); font-size: 15.5px; }

.split { display: grid; gap: 56px 44px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

pre { background: var(--frost-000); border: 1px solid var(--frost-300); border-radius: 10px; padding: 16px 18px; margin: 0; overflow-x: auto; font-size: 13.5px; line-height: 1.6; color: var(--frost-800); }
pre .p { color: var(--ember-700); user-select: none; }
pre .s { color: var(--rune-300); }

.table-scroll { overflow-x: auto; margin-top: 14px; border: 1px solid var(--frost-300); border-radius: 10px; background: var(--frost-100); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15.5px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--frost-300); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-family: var(--display); font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--rune-300); }
tbody th { color: var(--frost-900); font-weight: 600; white-space: nowrap; }
td { color: var(--frost-700); }

/* Download */
.downloads { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
@media (min-width: 760px) { .downloads { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dl { display: flex; flex-direction: column; gap: 2px; padding: 20px 22px; border-radius: 10px; text-decoration: none; background: linear-gradient(180deg, rgba(216, 90, 18, .22), rgba(216, 90, 18, .06)), var(--frost-100); border: 1px solid rgba(240, 120, 32, .55); }
.dl:hover { border-color: var(--ember-700); background: linear-gradient(180deg, rgba(240, 120, 32, .32), rgba(216, 90, 18, .10)), var(--frost-100); }
.dl-os { font-size: 20px; font-weight: 700; color: var(--frost-900); }
.dl-kind { font-size: 14px; color: var(--ember-800); font-family: var(--mono); }
.notes { display: grid; gap: 30px 28px; grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
@media (min-width: 900px) { .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.notes p { margin: 0 0 10px; color: var(--frost-700); font-size: 15.5px; }

/* Footer */
footer { margin-top: 96px; border-top: 1px solid var(--frost-300); background: rgba(5, 8, 12, .6); }
.foot { padding-top: 30px; padding-bottom: 44px; font-size: 14.5px; color: var(--frost-600); }
.foot p { margin: 0 0 10px; max-width: 60em; }
.foot a { color: var(--frost-700); }
.foot a:hover { color: var(--ember-700); }
.foot-links { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 16px; }
