/*
 * GEFEST Cards: the passport page of one assembled PC, the brand's home and
 * the pages with nothing to show. The visual world is the configurator's
 * (DESIGN.md): a navy drafting studio, cyan for measured and ready, forge
 * heat for the one action; the card is the only object that has metal.
 */

@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Brand (measured from the logo) */
  --navy: #00173f;
  --surface: #000b1f;
  --cyan: #00d0fd;
  --cyan-bright: #00e0fd;
  --metal: #f8f9fb;
  --muted: #a9b8cb;
  --ember: #ea8419;
  --ember-bright: #f8b028;
  --ember-deep: #cc3c00;

  /* Roles */
  --ground: var(--surface);
  --shell: var(--navy);
  --row: #021433;
  --row-hover: #052153;
  --line: #13305e;
  --line-strong: #24477f;
  --text: var(--metal);
  --text-muted: var(--muted);
  --text-faint: #8a9db6;
  --steel: #0b2348;
  --steel-edge: #1a3a6c;
  --tile-core: #0d3166;
  --tile-edge: #03173a;
  --heat-1: #cc3c00;
  --heat-3: #ea8419;
  --heat-4: #f29c22;
  --heat-5: #f8b028;
  --heat-7: #ffe8b0;
  --quench-light: #8aedff;

  --font-display: "Unbounded", "Arial", sans-serif;
  --font-text: "Onest", "Arial", sans-serif;

  --radius: 10px;
  --gutter: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-raise: 0 6px 16px -8px rgb(0 0 0 / 0.75);
}

@media (min-width: 720px) {
  :root {
    --gutter: 24px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  background: var(--ground);
  scrollbar-color: var(--line-strong) var(--ground);
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--cyan);
  /* The studio: navy light from above fading to the night ground, as behind the card's picture. */
  background:
    radial-gradient(90% 520px at 50% 0, rgb(18 64 122 / 0.5), rgb(18 64 122 / 0) 72%),
    linear-gradient(180deg, #021a45 0, #000f2c 560px, var(--ground) 980px) no-repeat,
    var(--ground);
}
/* The drafting grid of the studio floor, fading out under the first screen. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(0 208 253 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(0 208 253 / 0.06) 1px, transparent 1px);
  background-size: 45px 45px;
  background-position: center -1px;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 30%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 30%, transparent 100%);
}
body {
  position: relative;
  isolation: isolate;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

::selection {
  background: rgb(234 132 25 / 0.4);
  color: var(--metal);
}

:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 10px;
  border: 2px solid var(--ground);
}

/* Prices, dates and codes line up. */
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.nowrap {
  white-space: nowrap;
}

/* ── Header and footer ─────────────────────────────────────────────── */

/* Header and footer line up with the content column: --column is its width (600, desktop 1280). */
:root {
  --column: 600px;
  --edge: max(var(--gutter), calc((100% - var(--column)) / 2 + var(--gutter)));
}
.top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px var(--edge);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--metal);
  text-decoration: none;
  border-radius: 6px;
}
.emblem {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  outline: 1px solid rgb(0 208 253 / 0.45);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
}
.top-note {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* A draft's preview: dashed like everything not there yet, the word «Чернетка» in heat (work in progress). */
.preview-strip {
  padding: 10px var(--edge);
  border-bottom: 1px dashed rgb(248 176 40 / 0.5);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted);
}
.preview-strip p {
  max-width: 72ch;
}
.preview-mark {
  margin-right: 8px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-bright);
}
.preview-url {
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: auto;
  padding: 20px var(--edge) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-muted);
}
.foot-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-decoration: none;
  font-weight: 600;
}
.foot-links a:hover {
  text-decoration: underline;
}
.foot-code {
  margin-left: auto;
  color: var(--text-faint);
}

/* ── Buttons ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition:
    filter 160ms var(--ease-out),
    transform 160ms var(--ease-out),
    background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out);
}
.btn svg {
  flex: none;
}
/* The one action: forge heat, with the 1px light edge of a struck plate on top. */
.btn-primary {
  min-height: 52px;
  padding: 0 20px;
  background: linear-gradient(180deg, var(--ember-bright), var(--ember) 70%);
  color: #170800;
  font-weight: 700;
  font-size: 16px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    var(--shadow-raise);
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-ghost {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
}
@media (hover: hover) {
  .btn-primary:hover {
    filter: brightness(1.08);
  }
  .btn-ghost:hover {
    background-color: var(--row-hover);
    border-color: var(--cyan);
  }
}

/* ── The passport page ─────────────────────────────────────────────── */

.passport {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 18px var(--gutter) 56px;
}

.head {
  display: grid;
  gap: 8px;
}
.title {
  font-size: clamp(27px, 7.6vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.state-series {
  color: var(--metal);
  font-weight: 650;
}

/* Status of the PC: in stock is cyan (ready), sold is cold steel with a hollow ring. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 10px 3px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.3;
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.pill-stock {
  background: rgb(0 224 253 / 0.1);
  color: var(--cyan-bright);
}
.pill-stock::before {
  background: currentColor;
}
.pill-sold {
  background: rgb(159 176 198 / 0.12);
  color: #b4c2d4;
}
.pill-sold::before {
  border: 1.5px solid currentColor;
}
/* A draft (preview only): heat for work in progress, dashed for «not yet». */
.pill-draft {
  border: 1px dashed rgb(248 176 40 / 0.6);
  color: var(--ember-bright);
}
.pill-draft::before {
  border: 1.5px dashed currentColor;
}

.hero {
  display: grid;
  gap: 18px;
  margin-top: -14px;
}

/* The card: a plate with metal, foil and a shadow; the page around it has none of that. */
.card-wrap {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.card {
  position: relative;
  width: 100%;
  aspect-ratio: 360 / 504;
  container-type: inline-size;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  filter: drop-shadow(0 24px 22px rgb(0 4 16 / 0.6));
  transition: transform 500ms var(--ease-out);
  touch-action: pan-y;
  animation: card-rise 700ms var(--ease-out) backwards;
}
.card[data-live] {
  transition: none;
}
@keyframes card-rise {
  from {
    opacity: 0;
    transform: perspective(1000px) translateY(18px);
  }
}
.card-face {
  position: absolute;
  inset: 0;
  /* One card unit: the face is laid out on a 360-unit-wide plate. */
  --u: calc(100cqw / 360);
}
.card-foil,
.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: polygon(5% 0, 95% 0, 100% 3.571%, 100% 96.429%, 95% 100%, 5% 100%, 0 96.429%, 0 3.571%);
}
/* Temper colours — straw, bronze, purple, blue — moving with the light. */
.card-foil {
  background: repeating-linear-gradient(
    var(--shine-a, 115deg),
    rgb(232 194 122 / 0) 0%,
    rgb(232 194 122 / 0.55) 7%,
    rgb(181 113 58 / 0.5) 12%,
    rgb(138 92 200 / 0.55) 18%,
    rgb(61 123 224 / 0.55) 24%,
    rgb(80 200 220 / 0.4) 29%,
    rgb(80 200 220 / 0) 36%
  );
  background-size: 260% 260%;
  background-position: var(--mx, 50%) var(--my, 50%);
  mix-blend-mode: color-dodge;
  opacity: calc(var(--shine, 0) * 0.6);
}
/* Light steel would wash out under a dodge. */
.card[data-series="standart"] .card-foil {
  mix-blend-mode: overlay;
  opacity: calc(var(--shine, 0) * 1.1);
}
.card-glare {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgb(255 255 255 / 0.42), rgb(255 255 255 / 0) 46%);
  mix-blend-mode: soft-light;
  opacity: calc(0.35 + var(--shine, 0) * 0.65);
}
.tilt-ask {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
}

.deal {
  /* Painted after the card, so the plate's drop shadow does not dim the price. */
  position: relative;
  display: grid;
  gap: 12px;
}
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.price-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.page[data-status="sold"] .price-value {
  color: var(--text-muted);
}
.price-note {
  font-size: 13.5px;
  color: var(--text-muted);
}
.price-ask {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
}
.deal .btn-primary {
  width: 100%;
}
.deal-note {
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
  padding: 0 8px;
}
.deal .btn-ghost {
  justify-self: center;
}

/* Sections: a heading set like the step titles, more air above than below. */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 21px;
  letter-spacing: -0.015em;
}
.section-count {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-faint);
}
.lead {
  max-width: 62ch;
  margin-bottom: 14px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.fine {
  max-width: 62ch;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ── Photos: a rail of this very PC, each photo at its own proportions ── */

.photos {
  --shot-h: min(64svh, 460px);
}
.rail {
  display: flex;
  gap: 10px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: thin;
}
.shot {
  flex: none;
  height: var(--shot-h);
  aspect-ratio: var(--ar);
  max-width: calc(100vw - 2 * var(--gutter) - 24px);
  scroll-snap-align: start;
}
.photos[data-count="1"] .shot {
  max-width: 100%;
}
.shot a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--row);
  outline-offset: -2px;
}
.shot picture,
.shot img {
  display: block;
  width: 100%;
  height: 100%;
}
.shot img {
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}
@media (hover: hover) {
  .shot a:hover img {
    transform: scale(1.02);
  }
}
.rail-nav {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}
.rail-nav button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgb(0 23 63 / 0.72);
  color: var(--text-muted);
}
.rail-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (hover: hover) {
  .rail-nav button:not(:disabled):hover {
    color: var(--metal);
    border-color: var(--cyan);
  }
}

/* ── Specs: the parts on hairlines, each on its drawing tile ───────── */

.parts {
  border-top: 1px solid var(--line);
}
.part {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
/* Drawing tile: 4:3, cyan grid, registration corners top-right and bottom-left. */
.tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  color: var(--cyan);
  background:
    linear-gradient(rgb(0 208 253 / 0.07) 1px, transparent 1px) 0 0 / 11px 11px,
    linear-gradient(90deg, rgb(0 208 253 / 0.07) 1px, transparent 1px) 0 0 / 11px 11px,
    radial-gradient(120% 100% at 50% 30%, var(--tile-core), var(--tile-edge));
  box-shadow: inset 0 0 0 1px rgb(0 208 253 / 0.16);
}
.tile::before,
.tile::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: rgb(0 208 253 / 0.5);
  border-style: solid;
}
.tile::before {
  top: 5px;
  right: 5px;
  border-width: 1px 1px 0 0;
}
.tile::after {
  bottom: 5px;
  left: 5px;
  border-width: 0 0 1px 1px;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* A part typed by hand has no drawing: the tile stays an empty, dashed place. */
.tile[data-empty] {
  background: transparent;
  box-shadow: none;
  border: 1px dashed var(--line-strong);
  color: var(--text-faint);
}
.tile[data-empty]::before,
.tile[data-empty]::after {
  display: none;
}
.part-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.part-label {
  font-size: 12.5px;
  color: var(--text-faint);
}
.part-name {
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.part-spec {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}
.cond {
  display: inline-block;
  margin-left: 8px;
  padding: 0 7px 1px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-muted);
  vertical-align: 2px;
  white-space: nowrap;
}
.cond[data-cond="new"] {
  border-color: rgb(0 224 253 / 0.4);
  color: var(--cyan-bright);
}

/* ── Score: the card's numbers opened up ───────────────────────────── */

.scales {
  border-top: 1px solid var(--line);
}
.scale {
  display: grid;
  gap: 6px;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--line);
}
.scale-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.scale-label {
  font-size: 15.5px;
  font-weight: 650;
}
.scale-value {
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
}
.scale[data-empty] .scale-value {
  color: var(--text-faint);
}
/* Five heat marks, lit in the plate's heat order (as on the class plate of a part tile). */
.scale-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin: 2px 0 4px;
}
.scale-bar span {
  height: 6px;
  border-radius: 2px;
  background: var(--steel);
  box-shadow: inset 0 0 0 1px var(--steel-edge);
}
.scale-bar span[data-on]:nth-child(1) {
  background: var(--heat-1);
}
.scale-bar span[data-on]:nth-child(2) {
  background: var(--heat-3);
}
.scale-bar span[data-on]:nth-child(3) {
  background: var(--heat-4);
}
.scale-bar span[data-on]:nth-child(4) {
  background: var(--heat-5);
}
.scale-bar span[data-on]:nth-child(5) {
  background: var(--heat-7);
}
.scale-bar span[data-on] {
  box-shadow: none;
}
.scale[data-empty] .scale-bar span {
  background: transparent;
  box-shadow: none;
  border: 1px dashed var(--line-strong);
}
.scale-hint {
  font-size: 14px;
  color: var(--text-muted);
}
.scale-basis {
  display: grid;
  gap: 2px;
  font-size: 13px;
  color: var(--text-faint);
}
.scale-basis li::before {
  content: "·";
  margin-right: 7px;
  color: var(--line-strong);
}
.scale-gap {
  font-size: 13px;
  color: var(--text-faint);
}
.verdict {
  display: grid;
  gap: 10px;
  max-width: 64ch;
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.verdict strong {
  color: var(--metal);
  font-weight: 650;
}

/* ── Phone → tablet → desktop ──────────────────────────────────────── */

@media (min-width: 720px) and (max-width: 1099px) {
  /* Tablet: the card on the left, its price and the action beside it. */
  .hero {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: end;
    column-gap: 28px;
  }
  .card-wrap {
    margin: 0;
  }
  .deal-note {
    text-align: left;
    padding: 0;
  }
  .deal .btn-ghost {
    justify-self: start;
  }
}

@media (min-width: 720px) {
  .title {
    font-size: 40px;
  }
  .photos {
    --shot-h: 480px;
  }
  .part {
    grid-template-columns: 116px minmax(0, 1fr);
  }
}

/*
 * Desktop: the card and its price stay in a sticky column on the left, the
 * PC itself (title, photos, parts, score) runs on the right.
 */
@media (min-width: 1100px) {
  :root {
    --column: 1280px;
  }
  .passport {
    max-width: 1280px;
    grid-template-columns: 380px minmax(0, 1fr);
    grid-template-areas:
      "hero head"
      "hero photos"
      "hero specs"
      "hero score";
    grid-template-rows: auto auto auto 1fr;
    column-gap: clamp(48px, 5vw, 88px);
    row-gap: 40px;
    padding-top: 36px;
  }
  .head {
    grid-area: head;
  }
  .hero {
    grid-area: hero;
    align-self: start;
    position: sticky;
    top: 24px;
    margin-top: 0;
  }
  /* The card shrinks on a short laptop screen so the price and «Хочу такий» stay on the first screen. */
  .card-wrap {
    max-width: clamp(260px, calc((100svh - 250px) * 360 / 504), 360px);
    margin: 0;
  }
  .deal {
    max-width: 360px;
  }
  .photos {
    grid-area: photos;
    --shot-h: min(58svh, 520px);
  }
  .specs {
    grid-area: specs;
  }
  .score {
    grid-area: score;
  }
  .rail {
    margin: 0;
    padding: 0 0 12px;
    scroll-padding: 0;
  }
  .shot {
    max-width: 100%;
  }
  .title {
    font-size: 44px;
  }
}

/* ── Photo viewer (card.js) ────────────────────────────────────────── */

.viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  /* Solid: the page must not show through around the photo. */
  background: rgb(0 6 20);
  color: var(--metal);
  overflow: hidden;
  /* Horizontal drags stay ours (swipe to the next photo); vertical pan and pinch stay the browser's. */
  touch-action: pan-y pinch-zoom;
}
.viewer::backdrop {
  background: rgb(0 6 20);
}
.viewer-frame {
  position: absolute;
  inset: 56px 0 72px;
  display: grid;
  /* A definite row and column, so the photo's 100% limits are the frame, not the photo itself. */
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: 0 12px;
}
.viewer-frame img {
  max-width: 100%;
  max-height: 100%;
  user-select: none;
  -webkit-user-drag: none;
  object-fit: contain;
  border-radius: 6px;
}
.viewer-bar {
  position: absolute;
  inset: auto 0 calc(12px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.viewer-count {
  min-width: 64px;
  text-align: center;
  font-size: 14px;
  font-weight: 650;
  color: var(--text-muted);
}
.viewer button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgb(0 23 63 / 0.72);
  color: var(--metal);
}
.viewer button:disabled {
  opacity: 0.35;
}
.viewer-close {
  position: absolute;
  top: 8px;
  right: 8px;
}
@media (hover: hover) {
  .viewer button:not(:disabled):hover {
    border-color: var(--cyan);
  }
}

/* ── Pages with nothing to show, and the home page ─────────────────── */

.status,
.home {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px var(--gutter) 64px;
  text-align: center;
}
.status-frame {
  width: 100%;
  max-width: 420px;
  padding: 18px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #021a45, #000f2c);
}
.blank-drawing {
  display: block;
  width: 100%;
  height: clamp(150px, 34vw, 220px);
  fill: none;
  stroke: rgb(34 184 232 / 0.6);
  stroke-width: 1.4px;
  stroke-dasharray: 6 4;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.blank-drawing path {
  vector-effect: non-scaling-stroke;
}
.status-title {
  font-size: clamp(26px, 6.4vw, 36px);
  letter-spacing: -0.02em;
}
.status-text {
  max-width: 50ch;
  color: var(--text-muted);
}
.status-actions,
.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.status-actions .btn-primary,
.home-actions .btn-primary {
  min-height: 48px;
}

.home {
  padding-top: 28px;
  gap: 16px;
}
.home-logo {
  width: min(64vw, 260px);
  height: auto;
  border-radius: 50%;
}
.home-title {
  font-size: clamp(28px, 7.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.home-lead {
  max-width: 52ch;
  font-size: 16px;
  color: var(--text-muted);
}
.home-drawing {
  width: 100%;
  max-width: 360px;
  margin-top: 16px;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
