/* ARK 100K (ark/): the colony ship from the video. Deep space, the covers' comic titles, figures in JetBrains Mono.
   Mobile first (people come from the Instagram bio). Motion is transform and opacity; none of it under reduced motion. */
@font-face { font-family: "Bricolage"; src: url(../fonts/bricolage-grotesque-latin.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "JBMono"; src: url(../fonts/jetbrains-mono-latin.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
:root {
  --sp0: #050816; --sp1: #070b1f; --sp2: #0d1538; --sp3: #16214f;
  --y: #ffd43b; --c: #6fe3ff; --r: #ff4545; --ink: #120c06; --deep: #02040d; --paper: #fff4dc;
  --tx: #eef3ff; --mu: #a9b6dc; --dim: #8592bd; --line: rgba(111, 227, 255, .22);
  --mono: "JBMono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--sp1); scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body { margin: 0; min-height: 100svh; color: var(--tx); font: 500 16px/1.45 "Bricolage", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; border-radius: 6px; }
svg { display: block; }
h1, h2 { margin: 0; line-height: 0; }
.ark-mono { font-family: var(--mono); font-weight: 600; letter-spacing: -.01em; }
.ark-k { margin: 0; font: 700 11.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mu); }
.ark-k.is-c { color: var(--c); }
.ark-k.is-r { color: var(--r); }

/* ---- space: a starfield the script draws, under a nebula in the video's blues ---- */
.ark-stars { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.ark-neb { position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(60% 42% at 82% 8%, rgba(111, 227, 255, .14), transparent 70%),
    radial-gradient(52% 40% at 6% 34%, rgba(118, 76, 255, .16), transparent 72%),
    radial-gradient(70% 50% at 70% 92%, rgba(255, 69, 69, .09), transparent 70%),
    linear-gradient(180deg, var(--sp1), var(--sp0) 70%); }

/* ---- the bar: back to the Chief Movie links, and the one person awake ---- */
.ark-bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1160px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 18px 0; }
.ark-brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; font: 800 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.ark-brand img { border-radius: 50%; border: 2px solid var(--y); }
.ark-awake { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--y); }
.ark-awake i { width: 8px; height: 8px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 0 rgba(255, 212, 59, .6); animation: ark-awake 2.4s ease-out infinite; }

/* ---- the page: one column on a phone, two from 1000 px ---- */
.ark { max-width: 560px; margin: 0 auto; padding: 18px 18px 8px; display: grid; gap: 22px; }
/* the tracks may shrink below their content, so nothing inside can push the page wider than a phone */
.ark-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; min-width: 0; }

/* the comic titles: Komika Axis outlines, yellow inside an ink line, a hard shadow under them */
.ark-t { height: 34px; width: auto; max-width: 100%; overflow: visible; filter: drop-shadow(0 4px 0 var(--deep)); }
.ark-t path { fill: var(--y); stroke: var(--ink); stroke-width: 110; stroke-linejoin: round; paint-order: stroke fill; transform-box: fill-box; transform-origin: 50% 100%; }
.ark-hero h1 .ark-t { height: auto; width: min(100%, 440px); filter: drop-shadow(0 6px 0 var(--deep)) drop-shadow(0 0 28px rgba(255, 212, 59, .22)); }
.ark-hero h1 .ark-t path { animation: ark-drop .62s cubic-bezier(.34, 1.56, .64, 1) calc(.1s + var(--i) * 55ms) backwards; }

/* ---- the first screen: the ship nearing its planet (from the video), what it is, how many are aboard, the search ---- */
.ark-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 6px; }
.ark-hero__art { position: absolute; z-index: -2; left: 50%; top: -96px; width: 100vw; max-width: none; height: 700px; transform: translateX(-50%); object-fit: cover; object-position: 50% 38%; pointer-events: none;
  -webkit-mask: linear-gradient(180deg, rgba(0, 0, 0, .55), #000 16%, #000 50%, transparent 94%); mask: linear-gradient(180deg, rgba(0, 0, 0, .55), #000 16%, #000 50%, transparent 94%); }
/* a veil over the picture where the words sit */
.ark-hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -96px; width: 100vw; height: 700px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 8, 22, .5), rgba(5, 8, 22, .62) 34%, rgba(5, 8, 22, .2) 62%, rgba(5, 8, 22, 0) 80%); }
.ark-k.is-y { color: var(--y); }
.ark-hero h1 { margin-top: 2px; }
.ark-lede { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.38; color: var(--tx); max-width: 32ch; }
.ark-count { display: grid; gap: 6px; padding: 16px 16px 14px; border-radius: 20px; background: linear-gradient(180deg, rgba(22, 33, 79, .82), rgba(13, 21, 56, .82)); border: 1.5px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.ark-count__n { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; font-family: var(--mono); }
.ark-count__n b { font-size: clamp(46px, 15vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.ark-count__n span { font-size: 16px; font-weight: 600; color: var(--mu); }
.ark-meter { position: relative; height: 14px; margin: 12px 0 34px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(111, 227, 255, .28); }
.ark-meter__fill { position: absolute; left: 0; top: 0; bottom: 0; width: max(calc(var(--p) * 100%), 0px); border-radius: inherit; background: linear-gradient(90deg, #ffb703, var(--y)); box-shadow: 0 0 16px rgba(255, 212, 59, .55); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.ark-meter__fill::after { content: ""; position: absolute; right: -3px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff, 0 0 22px var(--y); }
.ark-meter.is-empty .ark-meter__fill::after { display: none; }
.ark-mile { position: absolute; top: -5px; left: calc(var(--at) * 100%); display: grid; justify-items: center; transform: translateX(-50%); font: 700 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mu); white-space: nowrap; }
.ark-mile::before { content: ""; width: 2px; height: 22px; margin-bottom: 4px; background: var(--c); border-radius: 2px; box-shadow: 0 0 8px var(--c); }
.ark-mile b { color: var(--c); font-weight: 800; }
.ark-mile.is-end { transform: translateX(-100%); justify-items: end; }
.ark-mile.is-end::before { margin-right: 0; }
.ark-next { margin: 0; font: 600 13px/1.4 var(--mono); color: var(--mu); }
.ark-next b { color: var(--y); font-weight: 800; }

/* the search: a scanner line, the answers under it */
.ark-find { display: grid; gap: 8px; }
.ark-find__row { position: relative; display: flex; align-items: center; min-height: 58px; border-radius: 16px; background: rgba(5, 8, 22, .72); border: 2px solid rgba(111, 227, 255, .38); transition: border-color .2s, box-shadow .2s; }
.ark-find__row:focus-within { border-color: var(--c); box-shadow: 0 0 0 4px rgba(111, 227, 255, .14), 0 0 28px rgba(111, 227, 255, .2); }
.ark-find__at { padding: 0 2px 0 16px; font: 800 18px/1 var(--mono); color: var(--c); }
.ark-find input { flex: 1; width: 0; min-width: 0; height: 54px; padding: 0 8px 0 4px; border: 0; background: transparent; color: #fff; font: 600 17px/1 var(--mono); outline: none; }
.ark-find input::placeholder { color: var(--dim); font-weight: 500; }
.ark-find input::-webkit-search-cancel-button { display: none; }
.ark-find .ark-btn { margin: 5px; }
.ark-hits { list-style: none; margin: 0; padding: 6px; display: grid; gap: 4px; border-radius: 16px; background: rgba(13, 21, 56, .96); border: 1.5px solid var(--line); }
.ark-hits button { width: 100%; display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 11px; background: transparent; color: var(--tx); font: 600 16px/1.2 "Bricolage", sans-serif; text-align: left; cursor: pointer; }
.ark-hits button:hover, .ark-hits button:focus-visible { background: rgba(111, 227, 255, .1); }
.ark-hits button span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ark-hits small { font: 700 12px/1 var(--mono); color: var(--mu); letter-spacing: .06em; }
.ark-dot { width: 10px; height: 10px; border-radius: 50%; }
.ark-dot.is-window { background: var(--c); } .ark-dot.is-kevin { background: var(--y); } .ark-dot.is-zero { background: var(--r); } .ark-dot.is-free { background: #dfe6ff; }
.ark-hits mark { background: none; color: var(--y); }
.ark-status { margin: 0; min-height: 1.4em; font: 600 13px/1.4 var(--mono); color: var(--mu); }
.ark-status b { color: var(--y); }

/* buttons: the covers' yellow, an ink line and a hard shadow the finger pushes down */
.ark-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 2.5px solid var(--ink); border-radius: 13px; background: var(--y); color: var(--ink);
  font: 800 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--deep); transition: transform .12s cubic-bezier(.2, .8, .2, 1), box-shadow .12s; }
.ark-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--deep); }
.ark-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ark-btn.is-big { min-height: 60px; width: 100%; font-size: 13.5px; }
.ark-btn.is-ghost { background: transparent; color: var(--tx); border-color: rgba(111, 227, 255, .45); box-shadow: none; }
.ark-btn.is-ghost:active { transform: scale(.97); }

/* ---- the boarding pass: printed on paper, torn along a perforation ---- */
.ark-pass { --z: var(--c); position: relative; padding: 16px 18px 14px 24px; border-radius: 18px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--deep), 0 18px 40px rgba(0, 0, 0, .45); outline: none; }
.ark-pass[hidden] { display: none; }
.ark-pass.is-in { animation: ark-print .7s cubic-bezier(.2, .8, .2, 1); }
.ark-pass::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 9px; border-radius: 0 6px 6px 0; background: var(--z); border: 2px solid var(--ink); border-left: 0; }
.ark-pass .ark-k { color: #5b5047; }
.ark-pass__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ark-x { display: grid; place-items: center; width: 40px; height: 40px; margin: -8px -8px 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.ark-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.ark-pass__pod { margin: 6px 0 0; font: 800 15px/1 var(--mono); letter-spacing: .12em; }
.ark-pass__pod b { display: block; margin-top: 2px; font-size: clamp(44px, 14vw, 60px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ark-pass__who { margin: 6px 0 0; font-size: 22px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.ark-pass__f { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.ark-pass__f div { min-width: 0; }
.ark-pass__f .is-wide { grid-column: 1 / -1; }
.ark-pass__f dt { font: 700 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #6b6058; }
.ark-pass__f dd { margin: 3px 0 0; font: 800 14px/1.25 var(--mono); }
.ark-pass__cut { position: relative; height: 2px; margin: 16px -18px 14px -24px; border-top: 2.5px dashed rgba(18, 12, 6, .45); }
.ark-pass__cut::before, .ark-pass__cut::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--sp1); border: 3px solid var(--ink); }
.ark-pass__cut::before { left: -15px; clip-path: inset(0 0 0 50%); }
.ark-pass__cut::after { right: -15px; clip-path: inset(0 50% 0 0); }
.ark-pass__end { display: grid; gap: 12px; }
.ark-pass__code { width: 100%; height: 34px; }
.ark-pass__code rect { fill: var(--ink); }
.ark-pass__go { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ark-pass .ark-btn.is-ghost { color: var(--ink); border-color: var(--ink); font-size: 11.5px; padding: 0 10px; }
/* the pod the comment asked for was taken: a red rubber stamp, pressed on once the pass has printed */
.ark-pass__ask dd { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; }
.ark-pass__ask small { flex-basis: 100%; font: 600 12.5px/1.35 var(--mono); color: #5b5047; }
.ark-stamp { display: inline-block; padding: 4px 7px 3px; border: 2px solid currentColor; border-radius: 6px; color: #c1121f; font: 800 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; transform: rotate(-4deg); }
.ark-pass.is-in .ark-stamp { animation: ark-stamp .42s cubic-bezier(.2, .8, .2, 1) .55s backwards; }
/* the narrowest phones: the pass keeps its first line and its button labels on one line each */
@media (max-width: 359px) {
  .ark-pass .ark-k { letter-spacing: .07em; }
  .ark-pass .ark-btn.is-ghost { padding: 0 6px; letter-spacing: .06em; }
}

/* ---- Pod 0000: sealed, red, and every few seconds it knocks ---- */
/* ---- Kevin: the caretaker, the only one awake ---- */
.ark-kevin { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 20px;
  background: radial-gradient(120% 90% at 0% 50%, rgba(255, 212, 59, .14), transparent 60%), linear-gradient(180deg, rgba(22, 33, 79, .85), rgba(13, 21, 56, .85)); border: 1.5px solid rgba(255, 212, 59, .38); }
.ark-kevin__p { width: 112px; height: 199px; object-fit: cover; object-position: 50% 42%; border-radius: 14px; border: 2px solid rgba(255, 212, 59, .55); }
.ark-kevin__b { display: grid; gap: 8px; }
.ark-kevin__b > p:last-child { margin: 0; color: var(--mu); }

.ark-zero { position: relative; display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: center; padding: 18px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 50%, rgba(255, 69, 69, .22), transparent 60%), linear-gradient(180deg, #1d0a12, #12050b); border: 1.5px solid rgba(255, 69, 69, .45); }
.ark-zero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(-45deg, rgba(255, 69, 69, .06) 0 10px, transparent 10px 20px); }
.ark-zero__pod { position: relative; z-index: 1; width: 104px; height: 185px; overflow: hidden; border-radius: 18px; background: #2b0c13; border: 3px solid var(--ink); box-shadow: 0 0 0 2px rgba(255, 69, 69, .55), 0 0 30px rgba(255, 69, 69, .4);
  animation: ark-knock-pod 7s ease-in-out 1.5s infinite; }
.ark-zero__pod img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.ark-zero__b { position: relative; z-index: 1; display: grid; gap: 8px; }
.ark-zero__b p { margin: 0; color: #f6d6da; }
.ark-zero__b .ark-k { color: var(--r); }
.ark-zero .ark-t path { fill: #fff; }
.ark-zero__knock { font-weight: 800; color: #fff !important; }
.ark-zero__knock em { font-style: normal; color: var(--r); }

/* ---- how to board ---- */
.ark-board { display: grid; gap: 16px; }
.ark-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.ark-steps li { counter-increment: s; display: grid; grid-template-columns: 46px 1fr; align-items: start; gap: 2px 12px; padding: 14px; border-radius: 16px; background: rgba(13, 21, 56, .7); border: 1.5px solid var(--line); }
.ark-steps li::before { content: "0" counter(s); grid-row: span 2; font: 800 24px/1 var(--mono); color: var(--y); }
.ark-steps b { font-size: 17px; font-weight: 800; }
.ark-steps li > span { color: var(--mu); }
.ark-zones-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ark-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font: 800 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.ark-chip.is-window { background: var(--c); }
.ark-chip.is-kevin { background: var(--y); }
.ark-chip.is-zero { background: var(--r); color: var(--ink); }
.ark-chip.is-free { background: #dfe6ff; }

/* ---- the ship: a hull drawn top-down, the pods of one deck under its glass roof ---- */
.ark-ship { display: grid; gap: 12px; }
.ark-ship__s { margin: 0; color: var(--mu); font-size: 15px; }
.ark-deck { position: relative; width: min(100%, 380px); margin: 6px auto 0; aspect-ratio: 300 / 640; }
.ark-hull { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ark-hull__body { fill: url(#hullG); stroke: rgba(111, 227, 255, .55); stroke-width: 2; }
.ark-hull__wings path { fill: #0c1431; stroke: rgba(111, 227, 255, .4); stroke-width: 2; }
.ark-hull__line { fill: none; stroke: rgba(111, 227, 255, .25); stroke-width: 1.5; }
.ark-hull__bridge { fill: rgba(111, 227, 255, .2); stroke: var(--c); stroke-width: 2; }
.ark-hull__glass { fill: #060b22; stroke: rgba(111, 227, 255, .6); stroke-width: 2; }
.ark-hull__shine { fill: url(#glassG); }
.ark-hull__lights circle { animation: ark-blink 1.6s steps(2, jump-none) infinite; }
.ark-hull__lights .is-r { fill: var(--r); }
.ark-hull__lights .is-g { fill: #57f28e; animation-delay: .8s; }
.ark-flame { fill: url(#flameG); transform-box: fill-box; transform-origin: 50% 0; animation: ark-flame .18s ease-in-out infinite alternate; }
.ark-flame:nth-child(2) { animation-delay: -.07s; }
.ark-flame:nth-child(3) { animation-delay: -.12s; }
.ark-pods { position: absolute; left: 13.3333%; top: 16.25%; width: 73.3333%; height: 70.625%; cursor: pointer; touch-action: manipulation; }
.ark-deck__kevin { position: absolute; left: 50%; top: 10.9375%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; font: 800 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--y); pointer-events: none; }
.ark-deck__kevin i { width: 7px; height: 7px; border-radius: 50%; background: var(--y); box-shadow: 0 0 10px var(--y); animation: ark-awake 2.4s ease-out infinite; }
.ark-deck__zero { position: absolute; left: 50%; top: 91.4%; transform: translate(-50%, -50%); padding: 4px 9px; border-radius: 999px; background: #2b0c13; border: 1.5px solid var(--r); font: 800 10px/1 var(--mono); letter-spacing: .1em; color: var(--r); box-shadow: 0 0 14px rgba(255, 69, 69, .45); pointer-events: none; animation: ark-knock 7s ease-in-out 1.5s infinite; }
.ark-tip { position: absolute; z-index: 2; left: 50%; bottom: 3%; transform: translateX(-50%); margin: 0; padding: 7px 11px; border-radius: 10px; background: rgba(5, 8, 22, .94); border: 1px solid var(--line); font: 700 11.5px/1.3 var(--mono); color: var(--tx); white-space: nowrap; pointer-events: none; }
.ark-decknav { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ark-decknav__t { margin: 0; min-width: 9ch; text-align: center; font: 800 15px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ark-decknav__t span { color: var(--dim); }
.ark-arrow { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(111, 227, 255, .45); background: rgba(13, 21, 56, .8); color: var(--tx); cursor: pointer; }
.ark-arrow:disabled { opacity: .35; cursor: default; }
.ark-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ark-decks { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; width: min(100%, 380px); margin: 0 auto; }
.ark-decks i { aspect-ratio: 1; border-radius: 2px; background: rgba(255, 212, 59, calc(.08 + var(--f, 0) * .92)); border: 1px solid rgba(111, 227, 255, .14); cursor: pointer; }
.ark-decks i.is-on { outline: 2px solid var(--c); outline-offset: 1px; }
.ark-legend { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ark-legend li { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 10px; border-radius: 12px; background: rgba(13, 21, 56, .7); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; }
.ark-legend i { flex: none; width: 10px; height: 16px; border-radius: 4px; }
.ark-legend b { margin-left: auto; font: 800 13px/1 var(--mono); color: var(--tx); }
.ark-legend .is-window i { background: var(--c); box-shadow: 0 0 8px var(--c); }
.ark-legend .is-kevin i { background: var(--y); box-shadow: 0 0 8px var(--y); }
.ark-legend .is-zero i { background: var(--r); box-shadow: 0 0 8px var(--r); }
.ark-legend .is-free i { background: #dfe6ff; box-shadow: 0 0 8px rgba(223, 230, 255, .7); }

/* ---- the newest colonists ---- */
.ark-log { display: grid; gap: 12px; }
.ark-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ark-list button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(13, 21, 56, .7); color: var(--tx); font: 700 15.5px/1.2 "Bricolage", sans-serif; text-align: left; cursor: pointer; }
.ark-list button:hover { border-color: rgba(111, 227, 255, .5); }
.ark-list .ark-list__pod { font: 800 12px/1 var(--mono); letter-spacing: .06em; color: var(--mu); }
.ark-list .ark-list__who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ark-list .ark-chip { min-height: 22px; padding: 0 8px; font-size: 10px; }
.ark-list li.is-new button { border-color: rgba(255, 212, 59, .55); }
.ark-empty { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; border: 1.5px dashed rgba(111, 227, 255, .4); color: var(--mu); }
.ark-empty img { width: 92px; height: 124px; object-fit: cover; object-position: 50% 26%; border-radius: 12px; border: 2px solid rgba(255, 212, 59, .5); }
.ark-empty p { margin: 0; }
.ark-empty b { color: var(--y); font-family: var(--mono); }

/* ---- the destination: the planet, colony lights on, under the whole page ---- */
.ark-dest { position: relative; isolation: isolate; display: grid; align-items: end; min-height: 360px; max-width: 1160px; margin: 30px auto 0; overflow: hidden; }
.ark-dest img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; }
.ark-dest::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 11, 31, .15), rgba(7, 11, 31, .45) 45%, rgba(5, 8, 22, .94)); }
.ark-dest__b { display: grid; gap: 8px; max-width: 560px; padding: 24px 20px 26px; }
.ark-dest__b p { margin: 0; color: #dce3ff; }
.ark-dest__t { font: 800 30px/1.1 "Bricolage", sans-serif; letter-spacing: -.01em; color: #fff; }
@media (min-width: 620px) { .ark-dest { margin: 30px 18px 0; border-radius: 28px; border: 1.5px solid var(--line); } }
@media (min-width: 1196px) { .ark-dest { margin: 30px auto 0; } }

/* ---- the end ---- */
.ark-end { max-width: 560px; margin: 0 auto; padding: 26px 18px calc(34px + env(safe-area-inset-bottom)); display: grid; gap: 10px; color: var(--mu); font-size: 14px; text-align: center; }
.ark-end p { margin: 0; }
.ark-end__upd { font-size: 12px; color: var(--dim); }
.ark-end__links { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--tx); font: 800 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.ark-noscript { max-width: 560px; margin: 0 auto 30px; padding: 0 18px; color: var(--mu); text-align: center; }

@media (min-width: 1000px) {
  .ark, .ark-end { max-width: 1160px; }
  .ark { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 64px; padding-top: 28px; }
  .ark-side { position: sticky; top: 16px; }
  .ark-end { grid-template-columns: 1fr; }
  .ark-lede { font-size: 20px; }
  /* the picture stays behind the first column on a wide screen, fading out on every side in an oval */
  .ark-hero__art, .ark-hero::before { left: -140px; width: calc(100% + 280px); transform: none; }
  .ark-hero__art { -webkit-mask-image: radial-gradient(ellipse 50% 52% at 50% 42%, #000 50%, transparent 100%); mask-image: radial-gradient(ellipse 50% 52% at 50% 42%, #000 50%, transparent 100%); }
  .ark-hero::before { background: radial-gradient(ellipse 46% 40% at 38% 30%, rgba(5, 8, 22, .6), rgba(5, 8, 22, 0) 100%); }
}

@keyframes ark-drop { from { opacity: 0; transform: translateY(-38%) scale(.55) rotate(-6deg); } }
@keyframes ark-awake { 0% { box-shadow: 0 0 0 0 rgba(255, 212, 59, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255, 212, 59, 0); } }
@keyframes ark-blink { 50% { opacity: .15; } }
@keyframes ark-flame { from { transform: scaleY(.82); opacity: .85; } to { transform: scaleY(1.12); opacity: 1; } }
@keyframes ark-print { from { clip-path: inset(0 0 100% 0 round 18px); transform: translateY(-10px); } to { clip-path: inset(0 0 0 0 round 18px); transform: none; } }
@keyframes ark-stamp { from { opacity: 0; transform: rotate(-4deg) scale(1.9); } 55% { opacity: 1; } to { transform: rotate(-4deg) scale(1); } }
/* two quick knocks, then nothing for a while */
@keyframes ark-knock {
  0%, 84%, 100% { transform: translate(-50%, -50%) rotate(0); }
  86% { transform: translate(calc(-50% - 3px), -50%) rotate(-2deg); }
  88% { transform: translate(calc(-50% + 3px), -50%) rotate(2deg); }
  90% { transform: translate(-50%, -50%) rotate(0); }
  92% { transform: translate(calc(-50% - 3px), -50%) rotate(-2deg); }
  94% { transform: translate(calc(-50% + 2px), -50%) rotate(1deg); }
}
@keyframes ark-knock-pod {
  0%, 84%, 100% { transform: rotate(0); }
  86% { transform: translateX(-4px) rotate(-3deg); }
  88% { transform: translateX(4px) rotate(3deg); }
  90% { transform: none; }
  92% { transform: translateX(-4px) rotate(-3deg); }
  94% { transform: translateX(3px) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
