/*
 * The look of the site: the theme of the application itself (src/ui/theme.css) — cold dark glass, hairlines, the cut
 * top-left and bottom-right corners, one cyan accent, the narrow technical face that comes with Windows. Nothing is
 * downloaded: no fonts, no pictures from elsewhere.
 */
:root {
  color-scheme: dark;

  --bg: #050c12; /* the page: a little deeper than the glass of the window */
  --glass: #07121b;
  --surface: #0b1c27;
  --surface-2: #0f2733;
  --line: #1d4654; /* hairlines */
  --frame: #2b8fa8; /* frames of what can be pressed */
  --text: #d6eef5;
  --label: #8fb7c4; /* small caps, secondary text */
  --accent: #3fd0f0;
  --accent-hi: #8be4f7;
  --ink: #03131b; /* text on the accent */
  --good: #3ee08f;
  --warn: #ffb347;
  --bad: #ff6b6b;

  --cut: 14px;
  --font: 'Bahnschrift SemiCondensed', Bahnschrift, 'Segoe UI', system-ui, sans-serif;
  --mono: Consolas, 'Cascadia Mono', 'Lucida Console', ui-monospace, monospace;

  --page: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
pre {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

img,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-hi);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--frame);
  color: var(--text);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* ---- the header -------------------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(5 12 18 / 0.94);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: calc(var(--page) + 120px + 2 * var(--gutter));
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand:hover {
  color: var(--text);
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 28px);
}

.site-nav a {
  padding: 6px 0;
  color: var(--label);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--text);
  box-shadow: 0 1px 0 var(--accent);
}

/* the switch of the language: two cells, like a switch of the application */
.lang {
  display: inline-flex;
  flex: none;
  border: 1px solid var(--line);
}

.lang__item {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--label);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.lang__item + .lang__item {
  border-left: 1px solid var(--line);
}

a.lang__item:hover {
  color: var(--text);
}

.lang__item.is-current {
  background: var(--surface-2);
  color: var(--accent);
}

/* the menu of a narrow screen works without a script: a checkbox opens the list. On a wide screen there is no
   folded menu, and the checkbox is not there at all: a keyboard must not stop at something that cannot be seen. */
.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
}

@media (max-width: 1019.98px) {
  .site-header__inner {
    gap: 12px;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    margin-left: auto;
    padding: 0 12px;
    border: 1px solid var(--line);
    color: var(--label);
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .menu-button__bars {
    width: 14px;
    height: 10px;
    border-block: 1px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  }

  .menu-toggle:focus-visible + .menu-button {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }

  .menu-toggle:checked + .menu-button {
    border-color: var(--frame);
    background: var(--surface-2);
    color: var(--accent);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 4px var(--gutter) 12px;
    border-bottom: 1px solid var(--frame);
    background: var(--glass);
  }

  .menu-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.875rem;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a:hover {
    box-shadow: none;
  }
}

/* the narrowest phones: the three bars alone say "menu" (the checkbox still carries the word for a screen reader) */
@media (max-width: 359.98px) {
  .brand {
    letter-spacing: 0.08em;
  }

  .menu-button__text {
    display: none;
  }
}

/* ---- sections ---------------------------------------------------------------------------------------- */

main {
  counter-reset: section;
}

.section {
  padding: clamp(64px, 9vw, 128px) 0;
  counter-increment: section;
}

.section--band {
  border-block: 1px solid var(--line);
  background: var(--glass);
}

.section__inner {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 64px);
}

/* small caps with spacing, as the titles of sections in the window */
.section__label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--label);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section .section__label::before {
  content: counter(section, decimal-leading-zero);
  color: var(--accent);
}

.section__label::after {
  content: '';
  flex: 0 1 64px;
  height: 1px;
  background: var(--frame);
}

.section__title {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.section__intro {
  margin-top: 18px;
  color: var(--label);
  font-size: 1.1875rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* ---- buttons ----------------------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--frame);
  border-radius: 0;
  background: var(--surface);
  color: var(--accent);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover {
  background: var(--surface-2);
  color: var(--accent-hi);
}

.button--ghost {
  background: transparent;
}

/* the main button: the accent itself, with the two cut corners of the window */
.button--primary {
  --c: 12px;
  border: 0;
  background: var(--accent);
  color: var(--ink);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}

.button--primary:hover {
  background: var(--accent-hi);
  color: var(--ink);
}

/* the cut would cut an outline too: the ring is drawn inside */
.button--primary:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 3px var(--ink);
}

.button--primary:disabled {
  background: var(--surface-2);
  color: var(--label);
  cursor: default;
}

.button--large {
  flex-direction: column;
  gap: 2px;
  min-height: 68px;
  padding: 10px 38px;
  font-size: 1.125rem;
}

.button__meta {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.button--icon {
  width: 44px;
  padding: 0;
  font-size: 1.125rem;
  letter-spacing: 0;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.link-button:hover {
  color: var(--accent-hi);
}

/* ---- a plate: the frame of the window, one hairline all the way round, the two corners cut -------------- */

.panel {
  --c: var(--cut);
  --edge: var(--line);
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--edge);
  background:
    linear-gradient(135deg, transparent 50%, var(--edge) 50%, var(--edge) calc(50% + 1px), transparent calc(50% + 1px)) top left / var(--c) var(--c)
      no-repeat border-box,
    linear-gradient(135deg, transparent calc(50% - 1px), var(--edge) calc(50% - 1px), var(--edge) 50%, transparent 50%) bottom right / var(--c) var(--c)
      no-repeat border-box,
    var(--bg) border-box;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}

.note {
  padding: 16px 20px;
  border-left: 2px solid var(--frame);
  background: var(--surface);
}

.note--warn {
  border-left-color: var(--warn);
}

.note__title {
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.note--warn .note__title {
  color: var(--warn);
}

.note p + p {
  margin-top: 6px;
}

/* ---- the footer -------------------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #03080c;
  color: var(--label);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 64px);
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
}

.site-footer p + p {
  margin-top: 10px;
}

.site-footer__name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer__copy {
  color: var(--text);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

@media (max-width: 859.98px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/*
 * The first screen. Behind the text: the background video when there is one (`.hero--video`), else a still scene
 * drawn here with gradients only — deep space, the lit edge of a planet, a few stars. No picture file, no script,
 * no animation.
 *
 * Contrast. The text of the first screen is only ever `--text` or `--accent`, and it always stands on a veil that
 * follows the block of text itself (`.hero__copy::before`): it reaches from the left edge of the screen to the right
 * edge of the text at full strength and fades beyond it, so no line of text can leave it at any width. With a video
 * the whole frame is dimmed first (`.hero__veil`) and the veil of the text is nearly solid: a pure white frame under
 * it still leaves the text above 7:1 (scripts/site/pagecheck.mjs measures it in a browser).
 */
.hero {
  --copy-veil: 0.82;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: max(calc(100svh - var(--header-h)), 620px);
  overflow: hidden;
  background: #03070b;
}

.hero--video {
  --copy-veil: 0.9;
}

.hero__media,
.hero__media > * {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -1;
}

.hero__space {
  background:
    radial-gradient(circle at 6% 12%, rgb(214 238 245 / 0.75) 0 0.7px, transparent 1.3px),
    radial-gradient(circle at 17% 71%, rgb(214 238 245 / 0.45) 0 0.6px, transparent 1.2px),
    radial-gradient(circle at 23% 27%, rgb(214 238 245 / 0.55) 0 0.6px, transparent 1.2px),
    radial-gradient(circle at 31% 9%, rgb(214 238 245 / 0.4) 0 0.6px, transparent 1.2px),
    radial-gradient(circle at 38% 58%, rgb(214 238 245 / 0.5) 0 0.7px, transparent 1.3px),
    radial-gradient(circle at 44% 21%, rgb(214 238 245 / 0.85) 0 0.8px, transparent 1.5px),
    radial-gradient(circle at 52% 84%, rgb(214 238 245 / 0.35) 0 0.6px, transparent 1.2px),
    radial-gradient(circle at 57% 6%, rgb(214 238 245 / 0.5) 0 0.6px, transparent 1.2px),
    radial-gradient(circle at 63% 39%, rgb(139 228 247 / 0.7) 0 0.7px, transparent 1.4px),
    radial-gradient(circle at 69% 15%, rgb(214 238 245 / 0.45) 0 0.6px, transparent 1.2px),
    radial-gradient(circle at 76% 8%, rgb(214 238 245 / 0.8) 0 0.9px, transparent 1.6px),
    radial-gradient(circle at 83% 27%, rgb(214 238 245 / 0.4) 0 0.6px, transparent 1.2px),
    radial-gradient(circle at 91% 13%, rgb(214 238 245 / 0.6) 0 0.7px, transparent 1.3px),
    radial-gradient(circle at 96% 31%, rgb(139 228 247 / 0.5) 0 0.6px, transparent 1.2px),
    radial-gradient(circle at 12% 44%, rgb(214 238 245 / 0.3) 0 0.6px, transparent 1.2px),
    radial-gradient(circle at 48% 46%, rgb(214 238 245 / 0.3) 0 0.5px, transparent 1.1px),
    radial-gradient(70% 60% at 82% 22%, rgb(20 62 84 / 0.5), transparent 72%),
    linear-gradient(180deg, #03070b 0%, #050d14 55%, #07141d 100%);
}

/*
 * The planet: one big circle whose centre lies beyond the bottom right corner, so only an arc of its edge crosses
 * the screen, from the right side down to the bottom. The body is as dark as the space; a thin lit line and a soft
 * glow outside it are its atmosphere.
 */
.hero__planet {
  --d: max(162vw, 1180px);
  inset: auto calc(var(--d) * -0.505) calc(var(--d) * -0.732) auto;
  width: var(--d);
  height: var(--d);
  background: radial-gradient(
    circle closest-side,
    #03080c 0,
    #040b11 80%,
    #06131c 88.5%,
    #0b2a39 91.6%,
    #1b7592 92.6%,
    #7fe0f6 92.95%,
    rgb(63 208 240 / 0.42) 93.3%,
    rgb(63 208 240 / 0.16) 94.6%,
    rgb(63 208 240 / 0.05) 97%,
    transparent 100%
  );
}

/* the columns of the page, as hairlines that fade towards the top and the bottom */
.hero__grid {
  background: linear-gradient(90deg, rgb(43 143 168 / 0.09) 0 1px, transparent 1px) 0 0 / calc(100% / 12) 100%;
  mask-image: linear-gradient(180deg, transparent 0, #000 28%, #000 62%, transparent 96%);
}

.hero__poster,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__veil {
  background:
    linear-gradient(180deg, rgb(5 12 18 / 0.7) 0, rgb(5 12 18 / 0) 26%),
    linear-gradient(0deg, rgb(5 12 18 / 0.9) 0, rgb(5 12 18 / 0) 34%),
    rgb(5 12 18 / 0.5);
}

/* no moving picture on a narrow screen or for a visitor who asked for less motion: the still frame only */
@media (max-width: 719.98px), (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }
}

.hero__inner {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 11fr) minmax(0, 10fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  width: 100%;
  max-width: calc(var(--page) + 120px + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(40px, 7vh, 88px) var(--gutter);
}

.hero__copy {
  position: relative;
}

.hero__copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -200vh -180px -200vh -100vw;
  background: linear-gradient(90deg, rgb(5 12 18 / var(--copy-veil)) calc(100% - 180px), rgb(5 12 18 / 0));
  pointer-events: none;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--accent);
  font-size: 0.875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero__kicker::before {
  content: '';
  flex: none;
  width: 36px;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  margin: 20px 0 0 -0.04em;
  font-size: clamp(4.25rem, 9.6vw, 9.25rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 27em;
  margin-top: 28px;
  font-size: clamp(1.1875rem, 1.7vw, 1.5rem);
  line-height: 1.4;
  text-wrap: balance;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 36px;
}

.hero__platform {
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__disclaimer {
  max-width: 34em;
  margin-top: 20px;
  padding-left: 14px;
  border-left: 1px solid var(--frame);
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* ---- the window of the application, where it stands in life: the top right corner of the screen ---------- */

.hero__shots {
  position: relative;
  display: grid;
  justify-items: end;
  gap: 26px;
  padding-top: 22px;
}

/* the corner of the screen */
.hero__shots::before {
  content: '';
  position: absolute;
  top: 0;
  right: -14px;
  width: 40px;
  height: 40px;
  border-top: 1px solid var(--frame);
  border-right: 1px solid var(--frame);
}

.hero-shot {
  display: grid;
  justify-items: end;
  gap: 8px;
  max-width: 100%;
}

.hero-shot figcaption {
  padding: 3px 9px;
  border: 1px solid var(--line);
  background: rgb(7 18 27 / 0.94);
  color: var(--label);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---- four words at the bottom edge, cut by hairlines like the mini line of the application --------------- */

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: rgb(5 12 18 / 0.94);
  list-style: none;
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px var(--gutter);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero__facts li + li {
  border-left: 1px solid var(--line);
}

/* the filled square: the mark of "my price" in the table of the application */
.hero__facts li::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

@media (max-width: 1019.98px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 40px;
  }

  .hero__shots {
    justify-items: start;
    padding-top: 0;
  }

  .hero__shots::before {
    display: none;
  }

  .hero-shot {
    justify-items: start;
  }

  .hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__facts li:nth-child(odd) {
    border-left: 0;
  }

  .hero__facts li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 719.98px) {
  .hero {
    min-height: 0;
  }

  .hero__inner {
    padding-block: 36px 40px;
  }

  .hero__cta .button {
    width: 100%;
  }

  /* the mini line is too wide to stay readable here; the features section shows it */
  .hero-shot--strip {
    display: none;
  }

  .hero__facts li {
    padding-block: 13px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }
}

/* ---- what it does: three rows, the text on one side and a picture of the application on the other -------- */

.features {
  display: grid;
  gap: clamp(56px, 8vw, 112px);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
}

/* every second row is turned round: the picture on the left, in the wide column */
.feature-row:nth-child(even) {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.feature-row:nth-child(even) .feature-row__text {
  order: 2;
}

.feature-row.feature-row--plain {
  grid-template-columns: minmax(0, 1fr);
}

.feature-row__name {
  display: flex;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--label);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.feature-row__index {
  color: var(--accent);
}

.feature-list {
  display: grid;
  gap: 30px;
  margin-top: 28px;
}

.feature-row--plain .feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px clamp(28px, 6vw, 88px);
}

.feature dt {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

.feature dd {
  margin-top: 10px;
  color: var(--label);
  text-wrap: pretty;
}

/* ---- beside the game: six facts in two columns, a hairline over each -------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 6vw, 88px);
}

.fact {
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
}

.fact dt {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.2;
}

.fact__index {
  flex: none;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.fact dd {
  margin-top: 8px;
  padding-left: calc(0.8125rem * 1.5 + 14px);
  color: var(--label);
  text-wrap: pretty;
}

.facts + .note {
  margin-top: 12px;
}

/* ---- download ---------------------------------------------------------------------------------------- */

.download {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(20px, 3vw, 40px);
}

.download__side {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.download__main .button--large {
  min-width: min(100%, 340px);
}

.download__absent {
  margin-top: 12px;
  color: var(--warn);
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px 24px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.specs dt,
.download__subtitle {
  color: var(--label);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.specs dd {
  margin-top: 2px;
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
}

.download__subtitle {
  margin: 30px 0 12px;
}

.download__sum .download__subtitle:first-child {
  margin-top: 0;
}

.ticks {
  display: grid;
  gap: 8px;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 22px;
}

.ticks li::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.download__small {
  margin-top: 26px;
  color: var(--label);
  font-size: 0.9375rem;
}

/* the sum: eight groups of eight, selected whole by one click */
.sum {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 6px 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--glass);
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.4;
  user-select: all;
}

.sum--missing {
  display: block;
  color: var(--label);
  font-family: inherit;
  user-select: auto;
}

.sum__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 12px;
}

.sum__status {
  min-height: 1.6em;
  color: var(--good);
  font-size: 0.9375rem;
}

.sum__status.is-failed {
  color: var(--warn);
}

.code {
  margin: 10px 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--glass);
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---- support: three plates that are links --------------------------------------------------------------- */

.support {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  list-style: none;
}

.support__link {
  --c: var(--cut);
  --edge: var(--line);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 18px;
  height: 100%;
  padding: 22px 24px;
  border: 1px solid var(--edge);
  background:
    linear-gradient(135deg, transparent 50%, var(--edge) 50%, var(--edge) calc(50% + 1px), transparent calc(50% + 1px)) top left / var(--c) var(--c)
      no-repeat border-box,
    linear-gradient(135deg, transparent calc(50% - 1px), var(--edge) calc(50% - 1px), var(--edge) 50%, transparent 50%) bottom right / var(--c) var(--c)
      no-repeat border-box,
    var(--bg) border-box;
  color: var(--text);
  text-decoration: none;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}

.support__link:hover {
  --edge: var(--accent);
  color: var(--text);
}

/* the cut corners would cut an outline off: the ring of the focus is drawn inside the plate, and only the focus has it */
.support__link:focus-visible {
  --edge: var(--accent);
  color: var(--text);
  outline: 0;
  box-shadow: inset 0 0 0 3px var(--accent);
}

.support__name {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.support__link:hover .support__name {
  color: var(--accent);
}

.support__hint {
  grid-column: 2;
  color: var(--label);
  font-size: 0.9375rem;
}

/* marks drawn here with plain shapes: steps, a ring, a triangle — nobody's logo */
.support__mark {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
}

.support__mark--tier {
  background:
    linear-gradient(var(--accent), var(--accent)) left bottom / 8px 12px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center bottom / 8px 22px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 8px 34px no-repeat;
}

.support__mark--coin {
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0 5px, transparent 5.6px);
}

.support__mark--play {
  background: var(--accent);
  clip-path: polygon(4px 2px, 32px 17px, 4px 32px);
}

@media (max-width: 859.98px) {
  .feature-row,
  .feature-row:nth-child(even),
  .download,
  .feature-row--plain .feature-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-row:nth-child(even) .feature-row__text {
    order: 0;
  }

  .facts,
  .support {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 479.98px) {
  .fact dd {
    padding-left: 0;
  }

  .download__main .button--large {
    width: 100%;
  }

  .sum {
    grid-template-columns: repeat(2, max-content);
  }
}

/*
 * Pictures of the application (site/assets/shots/*.png). Each is the window alone, cut along its own frame, twice as
 * many pixels as the size it is shown at. A picture stands on a "stage": a dark plate with a dot grid, where the
 * window lies the way it lies over the game.
 */
.stage figcaption {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--frame);
  color: var(--label);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.stage__screen {
  --c: var(--cut);
  --edge: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3.4vw, 44px);
  border: 1px solid var(--edge);
  background:
    linear-gradient(135deg, transparent 50%, var(--edge) 50%, var(--edge) calc(50% + 1px), transparent calc(50% + 1px)) top left / var(--c) var(--c)
      no-repeat border-box,
    linear-gradient(135deg, transparent calc(50% - 1px), var(--edge) calc(50% - 1px), var(--edge) 50%, transparent 50%) bottom right / var(--c) var(--c)
      no-repeat border-box,
    radial-gradient(circle, rgb(43 143 168 / 0.28) 0 0.8px, transparent 1.4px) 11px 11px / 22px 22px border-box,
    linear-gradient(160deg, #06121b, #040a10) border-box;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}

/* the mini line is one line in a corner of the screen: the stage shows that corner */
.stage--mini-run .stage__screen {
  position: relative;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: clamp(120px, 13vw, 176px);
  padding: 26px 26px 26px 14px;
  overflow: hidden;
}

.stage--mini-run .stage__screen::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-top: 1px solid var(--frame);
  border-right: 1px solid var(--frame);
}

/* where the corner is narrower than the line, the line keeps its size and its left end goes out of the stage */
.stage--mini-run img {
  flex: none;
  max-width: none;
}

/* and there the cut end fades out, so that it reads as "the line goes on", not as a broken picture */
@media (max-width: 859.98px) {
  .stage--mini-run .stage__screen::after {
    content: '';
    position: absolute;
    top: 1px;
    bottom: 1px;
    left: 1px;
    width: 56px;
    background: linear-gradient(90deg, #06121b 12%, rgb(6 18 27 / 0));
  }
}

/* ---- the gallery ----------------------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px) clamp(20px, 3vw, 40px);
  list-style: none;
}

/* the two stages of a row are as tall as the taller one, each window in the middle of its own */
.gallery > li,
.stage--tile {
  display: flex;
  flex-direction: column;
}

.stage--tile,
.stage--tile .stage__screen {
  flex: 1 1 auto;
}

.stage--tile .stage__screen {
  cursor: zoom-in;
}

.stage--tile .stage__screen:hover {
  --edge: var(--accent);
}

/* the ring of the focus is drawn inside the stage (its cut corners would cut an outline off); the hover has none */
.stage--tile .stage__screen:focus-visible {
  --edge: var(--accent);
  outline: 0;
  box-shadow: inset 0 0 0 3px var(--accent);
}

/* ---- a picture opened larger -------------------------------------------------------------------------------- */

.lightbox {
  width: min(100vw - 24px, 960px);
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--frame);
  background: var(--glass);
  color: var(--text);
}

.lightbox::backdrop {
  background: rgb(2 6 9 / 0.88);
}

.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  border-bottom: 1px solid var(--line);
}

.lightbox__caption {
  flex: 1 1 auto;
  color: var(--label);
  font-size: 0.9375rem;
  line-height: 1.35;
}

.lightbox__stage {
  display: flex;
  justify-content: center;
  padding: clamp(10px, 2.4vw, 28px);
  overflow: auto;
}

.lightbox__stage img {
  width: auto;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
}

@media (max-width: 859.98px) {
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- the feedback form ----------------------------------------------------------------------------------- */

.feedback {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: start;
  gap: clamp(20px, 3vw, 40px);
}

.feedback__main {
  display: grid;
  gap: 16px;
}

.feedback__side {
  padding-left: 14px;
  border-left: 1px solid var(--frame);
  color: var(--label);
}

.form {
  display: grid;
  gap: 22px;
}

/* the field robots fill in and people never see */
.form__trap {
  position: absolute;
  left: -200vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--label);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.field textarea,
.field input[type='text'] {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--frame);
  border-radius: 0;
  background: var(--glass);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
}

.field textarea {
  min-height: 9em;
  resize: vertical;
}

.field textarea:focus-visible,
.field input[type='text']:focus-visible {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: 0;
}

.field [aria-invalid='true'] {
  border-color: var(--bad);
}

.field input[type='file'] {
  max-width: 100%;
  color: var(--label);
  font: inherit;
  font-size: 0.9375rem;
}

.field input[type='file']::file-selector-button {
  min-height: 36px;
  margin-right: 14px;
  padding: 0 16px;
  border: 1px solid var(--frame);
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.field input[type='file']::file-selector-button:hover {
  background: var(--surface-2);
}

.field__hint {
  color: var(--label);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.form__error {
  padding: 12px 16px;
  border-left: 2px solid var(--bad);
  background: rgb(255 107 107 / 0.09);
  color: #ffd9d9;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.form__progress {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--label);
  font-size: 0.9375rem;
}

.form__progress progress {
  width: 140px;
  height: 6px;
  border: 0;
  background: var(--surface-2);
  accent-color: var(--accent);
}

.form__progress progress::-webkit-progress-bar {
  background: var(--surface-2);
}

.form__progress progress::-webkit-progress-value {
  background: var(--accent);
}

.form__progress progress::-moz-progress-bar {
  background: var(--accent);
}

.form__privacy {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--label);
  font-size: 0.9375rem;
}

.form__done {
  display: grid;
  gap: 16px;
  --edge: var(--good);
}

.form__done p:first-child {
  color: var(--good);
  font-size: 1.3125rem;
  font-weight: 600;
}

@media (max-width: 859.98px) {
  .feedback {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 479.98px) {
  .form__actions .button {
    width: 100%;
  }
}

/*
 * The question about analytics: a strip at the bottom edge. The two answers are the same button twice — same size,
 * same weight, side by side — so that saying no is exactly as easy as saying yes.
 */
.consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  border-top: 1px solid var(--frame);
  background: var(--glass);
}

.consent__inner {
  display: flex;
  align-items: center;
  gap: 16px 32px;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 18px var(--gutter);
}

.consent__text {
  flex: 1 1 auto;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.consent__title {
  margin-bottom: 2px;
  color: var(--label);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.consent__actions {
  display: grid;
  flex: none;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 719.98px) {
  .consent__inner {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---- a page of text ("About data") ------------------------------------------------------------------------ */

.doc {
  display: block;
  padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 128px);
}

.doc__inner {
  max-width: calc(760px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.doc__title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.06;
  text-transform: uppercase;
  text-wrap: balance;
}

.doc__lead {
  margin-top: 20px;
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.doc__part {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.doc__part h2 {
  margin-bottom: 14px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.doc__part p {
  color: var(--label);
  text-wrap: pretty;
}

.doc__part p + p {
  margin-top: 12px;
}

.doc__back {
  margin-top: 48px;
}
