/* Act Of God. The page is one machine bolted to a pole in a blurred alley.
   Read off his picture: flat cel shading, hard black outlines, two greens of one family,
   a red dot matrix readout, round keys, steel plates, light from the upper left.
   Every surface here is a generated PNG nine-sliced; nothing is a bordered CSS box.
   Scale, after his notes of 2026-10-19: one type ramp (12 / 14 / 16 / 20 / 24 / 32) and one
   spacing ramp (4 / 8 / 12 / 16 / 24 / 32 / 48). The divinity numeral is the one display
   element on the page and the only size outside the ramp, at 44.
   Every plate is the same casting: the same nine slice, the same border width, the same
   padding and the same screw. */

@font-face {
  font-family: "Avara";
  src: url("/fonts/Avara-Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Avara";
  src: url("/fonts/Avara-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Avara";
  src: url("/fonts/Avara-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Array";
  src: url("/fonts/Array-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Amulya";
  src: url("/fonts/Amulya-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Amulya";
  src: url("/fonts/Amulya-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Amulya";
  src: url("/fonts/Amulya-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "RX";
  src: url("/fonts/RX100-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #0a1206;
  --acid: #a9e01e;
  --acid-lo: #6b9a00;
  --green: #36500f;
  --green-lo: #22360a;
  --green-deep: #131f06;
  --slot: #0e1a07;
  --steel: #a8b09a;
  --steel-hi: #d2d8c8;
  --enamel: #f2f7e8;
  --enamel-lo: #cfdcbb;
  --plate-ink: #0a1206;
  --plate-ink-lo: #2b3a1c;
  --red: #ff5438;
  --amber: #f5a316;
  --night: #141b2e;

  --display: "Avara", Georgia, serif;
  --body: "Amulya", system-ui, sans-serif;
  --led: "Array", "Courier New", monospace;
  --mono: "RX", ui-monospace, monospace;

  /* one spacing ramp */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;

  /* one plate: the same nine slice, border width and padding wherever steel is used */
  --plate: url("/img/plate-steel.png") 54 fill / 30px / 0 stretch;
  --plate-pad: 22px 24px;

  --machine: 1280px;
  --frame: 44px;
  --rail: 288px;

  --press: transform 0.08s ease-out, box-shadow 0.08s ease-out;
  --hover: 0.18s ease-out;
}

* {
  box-sizing: border-box;
  font-synthesis: none;
}

html {
  background: var(--night);
}

body {
  margin: 0;
  min-height: 100vh;
  padding: var(--s6) var(--s6) var(--s7);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--enamel);
  background: var(--night);
  overflow-x: hidden;
}

/* ------------------------------------------------------------- the alley behind it */
.alley {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("/img/alley-street.jpg") center top / cover no-repeat, var(--night);
}
/* the street fades into the night before the foot of the window, so the page never ends on a
   cut edge of foliage that reads as a background still loading (his note, 2026-10-19) */
.alley::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 8%, rgba(20, 27, 46, 0.08), rgba(8, 12, 20, 0.84)),
    linear-gradient(to bottom, rgba(20, 27, 46, 0) 48%, rgba(20, 27, 46, 0.82) 86%, var(--night) 100%);
}
.alley-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(34% 26% at 80% 20%, rgba(253, 80, 1, 0.45), transparent 70%),
    radial-gradient(28% 22% at 14% 64%, rgba(47, 211, 200, 0.32), transparent 72%);
  animation: neon 7s steps(1, end) infinite;
  opacity: 0.5;
}
@keyframes neon {
  0%, 38% { opacity: 0.46; }
  40%, 44% { opacity: 0.2; }
  46%, 71% { opacity: 0.54; }
  73%, 75% { opacity: 0.28; }
  77%, 100% { opacity: 0.46; }
}

/* ----------------------------------------------------------------- the machine */
/* One container, one inset: every part of the machine is a row of this grid, so nothing
   carries a margin of its own and the fields left and right are the same everywhere. */
.machine {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s5);
  isolation: isolate;
  z-index: 1;
  max-width: var(--machine);
  margin: 0 auto;
  padding: var(--frame);
  border-image: url("/img/chassis-frame.png") 60 fill / var(--frame) / 0 stretch;
  filter: drop-shadow(0 26px 34px rgba(5, 10, 4, 0.7));
}

/* ------------------------------------------------------- the one steel plate casting */
.plate {
  padding: var(--plate-pad);
  color: var(--plate-ink);
  border-image: var(--plate);
}

/* --------------------------------------------------------------------- the crown */
.crown {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s4) var(--s5);
}
.halo {
  width: 96px;
  height: auto;
  animation: halo 9s ease-in-out infinite;
}
@keyframes halo {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-6px); }
}
.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 32px;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--enamel);
  text-shadow: 3px 3px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink);
}
.strap {
  margin: var(--s2) 0 0;
  max-width: 62ch;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--enamel);
  text-shadow: 0 1px 0 rgba(10, 18, 6, 0.85);
}
.maker {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: var(--s3);
  min-width: 288px;
}
.maker-badge {
  width: 40px;
  height: auto;
}
.maker-rows {
  display: grid;
  gap: var(--s1);
  min-width: 0;
}
.maker-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.maker-row b {
  font-weight: 700;
}
.maker-row i {
  font-family: var(--mono);
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
}

/* ------------------------------------------------------------------ the readout */
.readout {
  padding: 20px 24px;
  border-image: url("/img/bezel.png") 44 fill / 26px / 0 stretch;
}
.led {
  margin: 0;
  font-family: var(--led);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0.05em;
  color: var(--red);
  text-shadow: 0 0 14px rgba(255, 84, 56, 0.45);
  min-height: 1.45em;
}
.led::after {
  content: "";
  display: inline-block;
  width: 0.52em;
  height: 0.86em;
  margin-left: 0.3em;
  vertical-align: -0.08em;
  background: var(--red);
  box-shadow: 0 0 12px rgba(255, 84, 56, 0.7);
  animation: blink 1.1s steps(1, end) infinite;
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.08; }
}
.readout-foot {
  margin: var(--s3) 0 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: #e09a84;
}

/* ------------------------------- the instruction plates, where his picture puts its fine print */
.notices {
  display: grid;
  gap: var(--s2);
  align-content: start;
}
.notice-title {
  margin: 0 0 var(--s1);
  font-family: var(--display);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2;
}
.notice {
  margin: 0;
  min-width: 0;
  font-size: 12px;
  line-height: 1.5;
}
.notice b {
  font-weight: 700;
}

/* --------------------------------------------------------------------- the deck */
.deck {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail);
  gap: var(--s5);
  align-items: stretch;
}

.screen {
  min-width: 0;
  padding: var(--s5) 28px 28px;
  border-image: url("/img/panel.png") 54 fill / 30px / 0 stretch;
}

/* ----------------------------------------------- the dial, the one display element */
.controls {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: var(--s4);
  width: 100%;
}
.controls .notices {
  align-self: end;
}
.dial {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}
.dial img {
  width: 100%;
  height: 100%;
  display: block;
}
.dial-face {
  position: absolute;
  inset: 23%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--s1);
  text-align: center;
}
.dial-value {
  font-family: var(--led);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--acid);
  text-shadow: 0 0 14px rgba(169, 224, 30, 0.4);
}
.dial-value.dark {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 44px;
  letter-spacing: 0.02em;
  color: var(--enamel-lo);
  text-shadow: none;
}
.dial-unit {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  color: var(--steel-hi);
  text-transform: uppercase;
}
.dial-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  color: var(--enamel);
}
.poles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2);
}
.pole {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px var(--s3);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  color: var(--ink);
  background: var(--steel-hi);
  border: 2px solid var(--ink);
  border-radius: 6px;
}

/* ------------------------------------------------------------------- the keypad */
.keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: var(--s3) var(--s2);
  width: 100%;
}
.keycell {
  display: grid;
  grid-template-rows: auto 20px;
  justify-items: center;
  align-content: start;
  gap: var(--s1);
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.keycap {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: url("/img/key.png") center / 100% 100% no-repeat;
  font-family: var(--led);
  font-weight: 700;
  font-size: 24px;
  color: var(--acid);
  transition: var(--press), filter var(--hover);
}
.keycell:hover .keycap {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(169, 224, 30, 0.6));
}
.keycell:active .keycap {
  transform: translateY(3px) scale(1);
}
.keycell[aria-current="true"] .keycap {
  background-image: url("/img/key-down.png");
  color: var(--ink);
  transform: translateY(3px);
}
.keyword {
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--enamel);
  text-shadow: 0 1px 0 rgba(10, 18, 6, 0.9);
}
.keycell[aria-current="true"] .keyword {
  color: var(--amber);
}
.keycell:focus-visible .keycap {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 50%;
}

/* ------------------------------------------- the lower casting and what is bolted to it */
.lower {
  display: grid;
  gap: var(--s5);
  padding: 28px var(--s5) var(--s5);
  border-image: url("/img/body-deep.png") 60 fill / 30px / 0 stretch;
}
.apron {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
  align-items: stretch;
}
.card {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  min-width: 0;
}
.card > :last-child {
  margin-top: auto;
}
.card-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
}
.card-sub {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--plate-ink);
}
.card-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--plate-ink-lo);
}

/* the coin: the mint, the copy key and the four platform keys, all on one grid */
.coin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: var(--s2);
  align-items: stretch;
}
.mint {
  display: flex;
  align-items: center;
  margin: 0;
  min-height: 44px;
  padding: 10px var(--s4);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.45;
  color: var(--enamel);
  background: var(--ink);
  border-radius: 5px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.coin-row .key-flat {
  width: 100%;
  height: 100%;
}
.copy-say {
  margin: -8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--plate-ink-lo);
}
.coin-keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2);
}

/* the offerings: the slot and the number are one group */
.offer-group {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: var(--s3);
}
.offer-slot {
  width: 56px;
  height: auto;
  display: block;
}
.offer-value {
  margin: 0;
  font-family: var(--led);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* the hunger meter: ten cells of one fixed width, so no cell can round a pixel wider */
.meter-cells {
  display: grid;
  grid-template-columns: repeat(10, 24px);
  justify-content: space-between;
  align-items: center;
}
.meter-cells img {
  width: 24px;
  height: 42px;
  display: block;
  object-fit: fill;
}

/* the skirt: the band at the foot of the casting, where the street has left its marks */
.skirt {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4);
  height: 76px;
  overflow: hidden;
}
.decal {
  display: block;
  pointer-events: none;
}
.decal-graffiti {
  width: 118px;
  height: 72px;
  object-fit: contain;
  object-position: left bottom;
  opacity: 0.85;
}
.decal-sticker {
  width: 76px;
  height: 56px;
  object-fit: contain;
  object-position: right bottom;
  transform: rotate(-7deg);
  filter: drop-shadow(3px 5px 5px rgba(5, 10, 4, 0.45));
}

/* ------------------------------------------------------- what the screen prints */
.screen h2 {
  margin: 0 0 var(--s2);
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.1;
  color: var(--enamel);
}
.screen h3 {
  margin: var(--s6) 0 var(--s3);
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--acid);
}
.screen > p {
  margin: 0 0 var(--s3);
  max-width: 76ch;
}
.lede {
  font-size: 14px;
  line-height: 1.6;
  color: var(--enamel-lo);
  max-width: 72ch;
}
.rows {
  display: grid;
  gap: var(--s1);
  margin: var(--s3) 0 0;
}
.row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--s4);
  align-items: start;
  min-height: 44px;
  padding: 11px var(--s4);
  background: var(--slot);
  border-radius: 4px;
  border-left: 3px solid var(--acid-lo);
}
.row b {
  font-weight: 500;
  color: var(--acid);
  font-size: 12px;
  line-height: 22px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.row span,
.row div {
  min-width: 0;
  font-size: 14px;
  line-height: 22px;
  overflow-wrap: anywhere;
}
.row .qwho {
  text-transform: none;
  letter-spacing: 0;
}
.value {
  font-family: var(--mono);
  font-size: 14px;
}
.big-say {
  margin: 0 0 var(--s3);
  padding: var(--s4) var(--s5);
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.45;
  color: var(--enamel);
  background: var(--slot);
  border-left: 4px solid var(--amber);
  border-radius: 4px;
}
.muted {
  color: var(--enamel-lo);
  font-size: 12px;
}
/* an empty state is a state: its own box, with the reason centred in it */
.empty,
.state {
  margin: var(--s3) 0 0;
  padding: var(--s5);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--enamel-lo);
  background: var(--slot);
  border-radius: 4px;
}
.state {
  color: var(--amber);
  border-left: 3px solid var(--amber);
}

/* the ten tablets */
.tablets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
  margin-top: var(--s3);
}
.tabletcell {
  min-width: 0;
  padding: var(--s4) var(--s5);
  color: var(--ink);
  border-image: url("/img/tablet.png") 48 fill / 26px / 0 stretch;
}
.tabletcell.blank {
  border-image-source: url("/img/tablet-blank.png");
  color: var(--enamel-lo);
}
.tabletcell h4 {
  margin: 0 0 var(--s1);
  font-family: var(--led);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: #1b3a86;
}
.tabletcell.blank h4 {
  color: var(--enamel-lo);
}
.tabletcell p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.tabletcell .meta {
  margin-top: var(--s2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  color: #3d4b2d;
}
.tabletcell.blank .meta {
  color: var(--enamel-lo);
}
.tabletcell a {
  color: #1b3a86;
}

/* forms: asking, voting, praying */
.form {
  display: grid;
  gap: var(--s2);
  margin: var(--s3) 0 0;
  padding: var(--s4) var(--s5);
  background: var(--slot);
  border-radius: 6px;
}
.form label {
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--acid);
}
textarea,
input[type="text"] {
  width: 100%;
  min-height: 84px;
  padding: var(--s3);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--enamel);
  background: var(--ink);
  border: 3px solid var(--green-lo);
  border-radius: 6px;
  resize: vertical;
}
input[type="text"] {
  min-height: 44px;
}
textarea:focus-visible,
input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
  justify-content: space-between;
}
.counter {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--enamel-lo);
}

.queue {
  display: grid;
  gap: var(--s1);
  margin-top: var(--s3);
}
.qrow {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: var(--s3);
  align-items: center;
  min-height: 44px;
  padding: 11px var(--s4);
  background: var(--slot);
  border-radius: 4px;
}
.qvotes {
  font-family: var(--led);
  font-weight: 700;
  font-size: 20px;
  color: var(--amber);
  text-align: center;
}
.qtext {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.5;
}
.qwho {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--enamel-lo);
}

.prayer-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: var(--s5);
  align-items: start;
}
.prayer-handset {
  width: 72px;
  height: auto;
  filter: drop-shadow(4px 6px 8px rgba(5, 10, 4, 0.5));
}
.chat {
  display: grid;
  gap: var(--s2);
  margin: var(--s3) 0 0;
}
.bubble {
  padding: var(--s3) var(--s4);
  border-radius: 6px;
  background: var(--slot);
  max-width: 68ch;
  font-size: 14px;
  line-height: 1.6;
}
.bubble.me {
  justify-self: end;
  background: rgba(107, 154, 0, 0.32);
}
.bubble b {
  display: block;
  margin-bottom: var(--s1);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--acid);
  font-weight: 400;
}

.chart {
  width: 100%;
  height: 260px;
  margin-top: var(--s3);
  background: var(--slot);
  border-radius: 6px;
  display: block;
}

.steps {
  display: grid;
  gap: var(--s1);
  margin: var(--s3) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--s3);
  align-items: start;
  padding: var(--s3) var(--s4);
  background: var(--slot);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.6;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--led);
  font-weight: 700;
  font-size: 20px;
  line-height: 22px;
  color: var(--amber);
  text-align: center;
}
.steps b {
  color: var(--acid);
}

/* ------------------------------------------------------------------- the keys */
.key-flat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 44px;
  padding: 0 var(--s4);
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--enamel);
  text-decoration: none;
  text-align: center;
  background: var(--green);
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
  transition: var(--press), background 0.12s ease-out;
}
.key-flat img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: none;
}
.key-flat:hover {
  background: var(--acid-lo);
}
.key-flat:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--ink);
}
/* not yet is a state, not a faded button: it keeps its contrast and sits pressed in */
.key-flat[disabled],
.key-flat[aria-disabled="true"] {
  color: var(--enamel-lo);
  background: var(--green-lo);
  box-shadow: none;
  transform: translateY(3px);
  cursor: not-allowed;
  pointer-events: none;
}
.key-flat[disabled] img,
.key-flat[aria-disabled="true"] img {
  opacity: 0.7;
}
.key-flat.ok {
  background: var(--acid-lo);
}
.key-flat:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

a {
  color: var(--acid);
}
.screen a:focus-visible,
.tabletcell a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------- the widths */
@media (max-width: 1199px) {
  :root { --rail: 260px; }
  .apron { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coin { grid-column: 1 / -1; }
  .coin-keys { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  :root { --frame: 32px; }
  .deck { grid-template-columns: minmax(0, 1fr); }
  .controls {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    gap: var(--s4) var(--s5);
  }
  .dial { grid-column: 1; grid-row: 1; }
  .poles { grid-column: 1; grid-row: 2; align-self: start; }
  .keypad { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .notices { grid-column: 1 / -1; grid-row: 3; }
  .crown { grid-template-columns: 88px minmax(0, 1fr); }
  .halo { width: 88px; }
  .maker { grid-column: 1 / -1; min-width: 0; }
}

@media (max-width: 767px) {
  :root { --frame: 28px; --plate-pad: 22px; }
  body { padding: var(--s3) var(--s3) var(--s6); }
  .apron { grid-template-columns: minmax(0, 1fr); }
  .coin-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coin-row { grid-template-columns: minmax(0, 1fr); }
  .controls {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
  }
  .dial,
  .poles,
  .keypad,
  .controls .notices {
    grid-column: 1;
    grid-row: auto;
  }
  .dial { grid-row: auto; max-width: 240px; justify-self: center; }
  .controls .notices { margin-top: var(--s2); }
  .dial-value { font-size: 40px; }
  /* on a phone the fine print moves below the working panel: the product comes first */
  .crown { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .maker { width: 100%; }
  .wordmark { font-size: 28px; }
  .led { font-size: 16px; letter-spacing: 0.03em; }
  .screen { padding: var(--s4) var(--s5) var(--s5); }
  .screen h2 { font-size: 20px; }
  .screen h3 { font-size: 16px; margin-top: var(--s5); }
  .row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .qrow { grid-template-columns: 44px minmax(0, 1fr); }
  .qrow .key-flat { grid-column: 1 / -1; }
  .tablets { grid-template-columns: minmax(0, 1fr); }
  .big-say { font-size: 16px; padding: var(--s3) var(--s4); }
  .steps li { grid-template-columns: 26px minmax(0, 1fr); gap: var(--s2); }
  .meter-cells { grid-template-columns: repeat(10, 20px); }
  .meter-cells img { width: 20px; }
  .decal-graffiti { width: 96px; height: 58px; }
  .skirt { height: 62px; }
}

@media (max-width: 389px) {
  :root { --frame: 24px; }
  .keycap { font-size: 20px; }
  .wordmark { font-size: 24px; }
  .meter-cells { grid-template-columns: repeat(10, 13px); }
  .meter-cells img { width: 13px; height: 36px; }
  .decal-graffiti { width: 84px; height: 52px; }
  .coin-keys { grid-template-columns: minmax(0, 1fr); }
  .offer-group { grid-template-columns: 44px minmax(0, 1fr); }
  .offer-slot { width: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .halo,
  .alley-glow,
  .led::after {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}
