  /* Hora Cero's landing, dressed as the game's interface: its fonts, its colours (scripts/three_d/action_slot.gd) and
     its own skins (ui/: the plates, the photo frame, the paper), nine-sliced as the game draws them (2x textures, 24 px
     margins, 4 px of bleed). */
  @font-face {
    font-family: "Stencil";
    src: url("fonts/BigShouldersStencilDisplay-wght.ttf") format("truetype");
    font-weight: 100 900;
    font-display: swap;
  }
  @font-face {
    font-family: "Barlow";
    src: url("fonts/BarlowCondensed-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-display: swap;
  }
  @font-face {
    font-family: "Barlow";
    src: url("fonts/BarlowCondensed-Medium.ttf") format("truetype");
    font-weight: 500;
    font-display: swap;
  }
  @font-face {
    font-family: "Type";
    src: url("fonts/SpecialElite-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
  }
  :root {
    /* the game's: ivory text, muted secondary text, khaki small-caps labels, brass the one accent (selection, live
       actions), red only for alarm, ink on paper; the night is the HUD's dark */
    --night: #0d0f0c;
    --night-2: #141711;
    --panel: rgba(13, 15, 13, 0.88);
    --ivory: #ece6d2;
    --muted: #bdb8a0;
    --khaki: #b3a67d;
    --brass: #e0ad4c;
    --red: #d9482f;
    --ink: #24251e;
    --dim: #7f8473;
    --line: rgba(236, 230, 210, 0.16);
    --gutter: clamp(16px, 5vw, 64px);
    --measure: 1080px;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    margin: 0;
    background: var(--night);
    color: var(--ivory);
    font-family: "Barlow", "Arial Narrow", sans-serif;
    font-weight: 500;
    font-size: 19px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
  img, video { display: block; max-width: 100%; }
  .visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  /* the snow falls behind the page's content: over the photo at the top, never over the film or the words */
  canvas#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

  /* a key, as the game's: an olive plate (lighter under the pointer, as the game tints it), pressed when pressed; the
     primary one is armed (its brass edge) */
  .key {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 2px 14px;
    border: 12px solid transparent;
    border-image: url("ui/plate.png") 24 fill / 12px / 4px round;
    background: none;
    font: 600 16px/1.1 "Barlow", "Arial Narrow", sans-serif;
    letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; text-align: center;
    color: var(--ivory);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .key:hover { filter: brightness(1.12); }
  .key:active { border-image-source: url("ui/plate_pressed.png"); filter: none; }
  .key.primary { border-image-source: url("ui/plate_armed.png"); }
  .key.primary:active { border-image-source: url("ui/plate_pressed.png"); }
  .key[disabled] { opacity: 0.6; cursor: wait; filter: none; }

  /* the top: the snowbound square behind the title */
  .hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: 64px; overflow: hidden; }
  .scene {
    position: absolute; inset: 0;
    background: #10120e url("media/hero-poster.jpg") center 0 / cover no-repeat;
    transform: scale(1.06); transform-origin: 50% 0;
    animation: drift 40s ease-in-out infinite alternate;
  }
  .scene__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
  .scene::after {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(120% 90% at 50% 50%, rgba(13, 15, 12, 0.42) 0%, rgba(13, 15, 12, 0.64) 60%, rgba(13, 15, 12, 0.92) 100%),
      linear-gradient(180deg, rgba(13, 15, 12, 0.55) 0%, rgba(13, 15, 12, 0) 30%, rgba(13, 15, 12, 0.2) 55%, var(--night) 100%);
  }
  @keyframes drift { from { transform: scale(1.06) translate3d(-0.6%, 0, 0); } to { transform: scale(1.1) translate3d(0.6%, 0, 0); } }
  .top {
    position: fixed; top: 0; left: 0; right: 0; z-index: 5;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: max(10px, env(safe-area-inset-top)) var(--gutter) 10px;
    transition: background 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
  }
  .top.scrolled { background: rgba(13, 15, 12, 0.86); border-bottom-color: var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .eyebrow { font-weight: 600; font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--khaki); text-decoration: none; }
  .top nav { display: flex; gap: 8px; align-items: center; }
  .top nav .key { min-height: 42px; padding: 0 8px; font-size: 13px; letter-spacing: 0.18em; }
  .title { position: relative; z-index: 2; align-self: center; text-align: center; padding: 4vh var(--gutter) 2vh; }
  h1 {
    margin: 0;
    font-family: "Stencil", "Arial Narrow", sans-serif;
    font-weight: 800;
    font-size: clamp(72px, 15vw, 196px);
    line-height: 0.86;
    letter-spacing: 0.01em;
    text-shadow: 0 6px 40px rgba(0, 0, 0, 0.55);
  }
  .sub {
    margin: 22px auto 0; max-width: none;
    font-weight: 600; font-size: clamp(14px, 1.7vw, 19px);
    letter-spacing: 0.5em; padding-left: 0.5em;
    text-transform: uppercase; color: var(--ivory);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
  }
  .rule { width: 56px; height: 3px; background: var(--brass); margin: 26px auto; }
  .lede {
    margin: 0 auto; max-width: 30em;
    font-size: clamp(19px, 2.1vw, 24px); line-height: 1.38; letter-spacing: 0.01em;
    color: var(--ivory);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
  }
  .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
  .actions .key { min-width: 220px; }
  .note { margin: 18px auto 0; max-width: none; font-weight: 600; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--khaki); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
  .down { position: relative; z-index: 2; justify-self: center; padding: 12px 0 max(18px, env(safe-area-inset-bottom)); font-weight: 600; font-size: 12px; letter-spacing: 0.3em; color: var(--khaki); text-decoration: none; text-transform: uppercase; }
  /* the reel: the trailer running small in a frame, as Saboteurs' page has it; it takes the visitor to the film */
  .reel {
    position: relative; z-index: 2; justify-self: center; margin: 10px var(--gutter) 6px;
    display: grid; gap: 8px; width: min(100%, 300px); text-decoration: none; color: var(--ivory);
  }
  .reel__film { display: block; border: 12px solid transparent; border-image: url("ui/photo_frame.png") 28 / 12px stretch; background: #000; aspect-ratio: 16 / 7.5; overflow: hidden; }
  .reel__film video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .reel__label { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--khaki); }
  .reel__label small { font-family: "Type", "Courier New", monospace; font-size: 13px; letter-spacing: 0; color: var(--muted); }
  .reel__play { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--brass); }
  .reel:hover .reel__label { color: var(--ivory); }
  @media (min-width: 980px) {
    .reel { position: absolute; right: var(--gutter); bottom: 48px; margin: 0; width: 280px; }
  }

  /* the sections below */
  section { position: relative; z-index: 2; padding: clamp(56px, 9vw, 112px) var(--gutter); }
  section > .inner { max-width: var(--measure); margin: 0 auto; }
  .kicker { margin: 0 0 16px; font-weight: 600; font-size: 13px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--khaki); }
  h2 {
    margin: 0 0 22px;
    font-family: "Stencil", "Arial Narrow", sans-serif; font-weight: 700;
    font-size: clamp(36px, 6vw, 64px); line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase;
  }
  p { margin: 0 0 16px; color: var(--muted); max-width: 38em; }
  .alt { background: rgba(20, 23, 17, 0.72); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

  .film { position: relative; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
  .film video { width: 100%; height: 100%; object-fit: contain; }

  /* the levels: the HUD's objective panels (dark, a brass rule down the left) */
  .levels { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 34px 0; }
  .level, ul.features li {
    position: relative;
    border: 12px solid transparent; border-image: url("ui/strip.png") 24 fill / 12px / 4px round;
  }
  .level::before, ul.features li::before { content: ""; position: absolute; left: -2px; top: -2px; bottom: -2px; width: 3px; background: var(--brass); }
  .level { padding: 0 0 2px; overflow: hidden; }
  .level img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
  .level__body { padding: 12px 14px 0 18px; }
  .level .n { font-weight: 600; font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--khaki); }
  .level h3 { margin: 6px 0 4px; font-family: "Stencil", "Arial Narrow", sans-serif; font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ivory); }
  .level .when { font-family: "Type", "Courier New", monospace; font-size: 15px; color: var(--muted); margin-bottom: 12px; }
  /* what the game does: the HUD's hint lines (a label in capitals, then the line) */
  ul.features { list-style: none; margin: 8px 0 34px; padding: 0; display: grid; gap: 12px; }
  ul.features li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
  ul.features li img { width: 48px; height: 48px; margin-top: 2px; opacity: 0.9; }
  ul.features li { padding: 8px 10px 8px 16px; color: var(--muted); }
  ul.features li b { display: block; margin-bottom: 3px; font-weight: 600; font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory); }

  .gallery { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); background: var(--night); }

  /* the characters: each a card as the game's squad cards (a painted photo in its frame, the name on a plate), with the
     figure as the game builds it, turning, and the lines they say */
  .cast { list-style: none; margin: 34px 0 0; padding: 0 0 14px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--khaki) var(--night-2); }
  /* the bar stays in sight (a styled bar is never an overlay one) */
  .cast::-webkit-scrollbar { height: 8px; }
  .cast::-webkit-scrollbar-track { background: var(--night-2); }
  .cast::-webkit-scrollbar-thumb { background: var(--khaki); border-radius: 4px; }
  .char { position: relative; flex: 0 0 min(360px, 86vw); scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; background: var(--panel); border: 1px solid var(--line); padding: 18px; }
  .char__stage { position: relative; height: 248px; }
  /* the photo lies over the figure: the cascarudo, wider than the neighbours, reaches under its frame */
  .char__photo { position: absolute; left: 6px; top: 6px; width: 128px; }
  .char__photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
  .char__photo::after {
    content: ""; position: absolute; inset: -6px; pointer-events: none;
    border: 14px solid transparent; border-image: url("ui/photo_frame.png") 28 / 14px stretch;
  }
  .char__figure { position: absolute; right: 0; bottom: 0; height: 240px; display: flex; align-items: flex-end; z-index: 1; }
  .char__figure video, .char__figure img { height: 100%; width: auto; max-width: none; }
  .char__figure .still { display: none; }
  .char__plate {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px;
    border: 12px solid transparent; border-image: url("ui/plate.png") 24 fill / 12px / 4px round; padding: 0 6px;
  }
  .char__plate h3 { margin: 0; font-family: "Stencil", "Arial Narrow", sans-serif; font-weight: 700; font-size: 30px; line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; }
  .char__plate .role { font-weight: 600; font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--khaki); }
  .char__job { margin: 0; font-family: "Type", "Courier New", monospace; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
  .voices { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 6px; }
  .voice.key { width: 100%; min-height: 48px; justify-content: flex-start; gap: 12px; padding: 0 6px; font: 400 15px/1.25 "Type", "Courier New", monospace; letter-spacing: 0; text-transform: none; text-align: left; color: var(--muted); }
  .voice svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--khaki); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .voice svg .body { fill: var(--khaki); stroke: none; }
  .voice[aria-pressed="true"] { border-image-source: url("ui/plate_armed.png"); color: var(--ivory); }
  .voice[aria-pressed="true"] svg { stroke: var(--brass); }
  .voice[aria-pressed="true"] svg .body { fill: var(--brass); }
  /* the cascarudo: the threat, in the one colour the game keeps for alarm */
  .char.threat { border-color: rgba(217, 72, 47, 0.45); }
  .char.threat .char__plate .role { color: var(--red); }
  .char.threat .char__figure { height: 190px; }
  .char.kid .char__figure { height: 212px; }

  /* the line of cars: the friends' models as the game draws them, a dusting of snow on their roofs, driving west
     along the bottom of the page over a kerb line; paused for whoever asks for less motion */
  .cars { overflow: hidden; padding: 26px 0 10px; background: #000; }
  .cars__track { display: flex; align-items: flex-end; gap: 56px; width: max-content; animation: cars 90s linear infinite; }
  .cars__track img { display: block; height: auto; flex: none; filter: drop-shadow(0 10px 8px rgba(0,0,0,0.5)); }
  @keyframes cars { to { transform: translateX(-50%); } }
  @media (max-width: 720px) { .cars__track { gap: 32px; } .cars__track img { max-height: 64px; width: auto; } }
  @media (prefers-reduced-motion: reduce) { .cars__track { animation: none; } }
  @media (prefers-reduced-motion: reduce) {
    .char__figure video { display: none; }
    .char__figure .still { display: block; }
  }

  /* the mailing list: the game's text field (dark, brass when it has the cursor), its notes in type */
  form.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; max-width: 600px; }
  form.signup input {
    flex: 1 1 260px; min-height: 52px;
    font: 400 18px/1.2 "Type", "Courier New", monospace; letter-spacing: 0.01em;
    color: var(--ivory); background: none; border-radius: 0; padding: 2px 4px;
    border: 12px solid transparent; border-image: url("ui/strip.png") 24 fill / 12px / 4px round;
  }
  form.signup input:focus { outline: 2px solid var(--brass); outline-offset: 2px; }
  form.signup input::placeholder { color: var(--dim); }
  .status { min-height: 1.45em; margin-top: 14px; font-family: "Type", "Courier New", monospace; font-size: 16px; color: var(--ivory); }
  .status.bad { color: #f0a58c; }

  .links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
  dl.links-list { margin: 0 0 8px; display: grid; gap: 14px; }
  dl.links-list dt { font-weight: 600; font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--khaki); }
  dl.links-list dd { margin: 4px 0 0; font-family: "Type", "Courier New", monospace; font-size: 18px; color: var(--ivory); overflow-wrap: anywhere; }
  dl.links-list a { text-decoration-color: var(--brass); text-underline-offset: 4px; }

  /* the credits: a sheet of the game's paper, typed, as its Settings page lists the art's */
  .sheet {
    max-width: 880px; padding: clamp(4px, 2vw, 18px);
    border: 24px solid transparent; border-image: url("ui/paper.png") 48 fill / 24px / 10px round;
    /* the paper's own colour under it: the ink stays readable if the image is slow or missing */
    background: #e6dcc4 padding-box;
    color: var(--ink);
  }
  .sheet h2 { color: var(--ink); font-size: clamp(32px, 5vw, 48px); margin-bottom: 26px; }
  dl.credits { margin: 0; display: grid; grid-template-columns: 1fr; gap: 22px; }
  dl.credits dt { font-weight: 600; font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(36, 37, 30, 0.82); }
  dl.credits dd { margin: 4px 0 0; font-family: "Type", "Courier New", monospace; font-size: 21px; line-height: 1.3; color: var(--ink); }
  dl.credits dd span { display: block; margin-top: 2px; font-size: 15px; color: rgba(36, 37, 30, 0.78); }

  #creditos { background: #000; border-bottom: 0; }
  footer { position: relative; z-index: 2; padding: 48px var(--gutter) max(32px, env(safe-area-inset-bottom)); background: #000; }
  footer .inner { max-width: var(--measure); margin: 0 auto; display: grid; gap: 22px; }
  footer p { margin: 0; color: var(--muted); }
  .foot__cols { display: grid; grid-template-columns: 1fr; gap: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .foot__cols .kicker { margin-bottom: 12px; }
  .foot__line { margin-top: 12px; font-family: "Type", "Courier New", monospace; font-size: 15px; }
  .foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .foot__links a { font-family: "Type", "Courier New", monospace; font-size: 16px; color: var(--ivory); text-decoration-color: var(--line); text-underline-offset: 4px; }
  .foot__links a:hover { text-decoration-color: var(--brass); }
  footer .legal { font-weight: 600; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }

  @media (min-width: 720px) {
    .levels { grid-template-columns: 1fr 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; }
    ul.features { grid-template-columns: 1fr 1fr; }
    dl.credits { grid-template-columns: 1fr 1fr; }
    dl.links-list { grid-template-columns: 1fr 1fr; }
    .foot__cols { grid-template-columns: 1fr 1fr 1fr; }
  }
  @media (max-width: 720px) {
    /* a phone's bar: the code and the game only */
    .top nav .key:not(.primary):not(.code) { display: none; }
  }
  @media (max-width: 560px) {
    body { font-size: 18px; }
    .scene { background-position: 46% 0; }
    .hero { padding-top: 56px; }
    .eyebrow { display: none; }
    .sub { letter-spacing: 0.34em; padding-left: 0.34em; }
    .actions { flex-direction: column; align-items: stretch; max-width: 360px; margin-left: auto; margin-right: auto; }
    .links .key, form.signup .key { width: 100%; }
  }
  @media (prefers-reduced-motion: reduce) { .scene { animation: none; } .scene__film { display: none; } }
