/* After a Braun T523 study drawn in Figma (the light version). Geometry is
   in the drawing's own units: the set is 1549 wide there, so one unit (--u)
   is a 1549th of the stage. Knob, button, shadow and grain artwork in
   assets/ is the Figma artwork itself. */

/* The lettering: one grotesque throughout, standing in for the
   Akzidenz-Grotesk Braun printed on its sets. Hosted here; SIL Open Font
   License. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url(assets/hanken-grotesk.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --black: #1b1b19; /* printing ink rather than pure black */
  --body: #e0e0e0;
  --glass: #f1f1f1;
  --red: #ff4d00; /* the one signal colour: the lit button's orange, on the dial and in the type too */
  --pointer: #7fb9d2; /* the pale blue of the real T 523's pointer, sampled from a photograph */
  --page: #d9d7d0;    /* the backdrop: a warm studio grey, */
  --page-hi: #e7e5df; /* lit behind the set */
  --page-lo: #c6c3ba; /* and falling off to the edges */
  --accent: var(--red);
  --rule: rgba(27, 27, 25, .16);
  --label: var(--black); /* lettering on the body, as opposed to on the glass */
  --ribs: #d9d9d9;
  --ink: var(--black); /* the card under the set */
  --ink-soft: #5b5953;
  --ink-faint: #827f77;
  color-scheme: light dark;
  /* Where the light is: the drawing's own, top right. Shadows, highlights
     and glare are all placed from these, so the light can be moved in one place. */
  --sx: -.46; /* which way shadows fall, x and y */
  --sy: .89;
  --sr: 0deg; /* how far the long shadows have swung from the drawing's */
  --sk: 1;    /* and how much longer or shorter they are */
}

/* Dark: the green set from the same drawing, in a dim room. The glass is
   unlit until the set is on, then glows warm (see the dial lamp below). */
@media (prefers-color-scheme: dark) {
  :root {
    --body: #34483d;
    --page: #18211c;    /* the set's own green, far down */
    --page-hi: #26342d;
    --page-lo: #0e1411;
    --accent: #ff7a45;  /* the same orange, lifted to read on the green */
    --rule: rgba(232, 238, 231, .16);
    --label: #f1ecdd;
    --ribs: linear-gradient(215deg, #bfd8b7 12%, #768970 87%);
    --ink: #e8eee7;
    --ink-soft: #a5b3a8;
    --ink-faint: #74837a;
  }
}

* { box-sizing: border-box; }

html, body { height: 100%; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  touch-action: manipulation; /* no double-tap zoom */
  -webkit-tap-highlight-color: transparent;
}

.scene {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(32px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.stage {
  container-type: inline-size;
  width: min(100%, 1240px);
  --u: calc(100cqw / 1549);
}

/* ── The set ─────────────────────────────────────────────── */

.radio {
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  padding-top: calc(41 * var(--u));
  border-radius: calc(24 * var(--u));
  background: var(--body);
  color: var(--black);
  font-weight: 500;
  -webkit-touch-callout: none;
}

/* The dial window. */
.window {
  position: relative;
  display: flex;
  align-items: stretch;
  height: calc(160 * var(--u));
  /* a shaded recess along the top edge, then the glass */
  background: linear-gradient(#9a9a9a 0 calc(9 * var(--u)), var(--glass) calc(9 * var(--u)));
  border: max(1px, calc(.925 * var(--u))) solid var(--black);
  border-left: 0;
  border-right: 0;
}

.window::before, .window::after { /* the recess at each end */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(22 * var(--u));
  background: #aaa;
}
.window::before { left: 0; }
.window::after { right: 0; }

.scales {
  position: relative;
  flex: 0 1 calc(910 * var(--u));
  margin-left: calc(63 * var(--u));
  cursor: ew-resize;
  touch-action: none;
  clip-path: inset(0 -100vw); /* the pointer is under the glass: its shadow stops at the frame */
}

.scale { position: absolute; inset: 0; }

.row {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--y) * var(--u) * var(--rows, 1));
  height: 0;
  border-top: max(1px, calc(1 * var(--u))) solid currentColor;
}

.row i { /* a tick */
  position: absolute;
  top: 0;
  left: calc(var(--p) * 100%);
  width: max(1px, calc(1 * var(--u)));
  margin-left: calc(max(1px, calc(1 * var(--u))) / -2);
  height: calc(5 * var(--u));
  background: currentColor;
}

.row.years i.major { height: calc(9 * var(--u)); }

.row.years span {
  position: absolute;
  bottom: calc(6 * var(--u));
  left: calc(var(--p) * 100%);
  transform: translateX(-50%);
  font-size: max(7px, calc(13 * var(--u)));
  line-height: 1;
  letter-spacing: .05em;
}

/* A station's row: a mark for every year it has a broadcast. */
.row.station { color: #8a8a8a; }
.row.station i {
  top: calc(-4 * var(--u));
  height: calc(8 * var(--u));
  width: calc(4 * var(--u));
  margin-left: calc(-2 * var(--u));
  background: currentColor;
}

.row.station.tuned {
  color: var(--red);
  box-shadow: 0 calc(-3 * var(--u)) 0 -0.5px currentColor, 0 calc(3 * var(--u)) 0 -0.5px currentColor;
  border-top-width: max(1px, calc(1 * var(--u)));
}
.radio:not(.on) .row.station.tuned { color: var(--black); box-shadow: none; }

.needle {
  --pos: .5;
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--pos) * 100%);
  width: calc(7 * var(--u));
  min-width: 2px;
  margin-left: calc(-3.5 * var(--u));
  background: linear-gradient(90deg, transparent 0 43%, rgba(255, 255, 255, .3) 43% 100%), var(--pointer);
  box-shadow: calc(var(--sx) * 11 * var(--u)) calc(var(--sy) * 9 * var(--u)) calc(1.85 * var(--u)) rgba(0, 0, 0, .25);
  transition: left .35s cubic-bezier(.3, .7, .3, 1);
  pointer-events: none;
}

.legend {
  position: relative;
  flex: 0 0 calc(150 * var(--u));
  margin-left: calc(17 * var(--u));
  font-size: max(7px, calc(13 * var(--u)));
  line-height: 1;
}

.legend span {
  position: absolute;
  left: 0;
  top: calc(var(--y) * var(--u) * var(--rows, 1));
  transform: translateY(-55%);
  white-space: nowrap;
}

.legend span.tuned { color: var(--red); }
.radio:not(.on) .legend span.tuned { color: var(--black); }

/* The small metal push button: power. */
.power {
  position: relative;
  flex: none;
  align-self: flex-start;
  width: calc(59.2 * var(--u));
  height: calc(59.2 * var(--u));
  margin: calc(56 * var(--u)) calc(100 * var(--u)) 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.power img, .knob img, .btn img {
  position: absolute;
  display: block;
  max-width: none;
  /* artwork only: the browser must not pick it up and drag it */
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.power .name {
  position: absolute;
  left: calc(100% + 8 * var(--u));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: calc(6 * var(--u));
  font-size: max(7px, calc(13 * var(--u)));
  line-height: 1;
  color: var(--black);
}

/* The pilot lamp beside the word: dark when off, the signal orange when on. */
.power .name::before {
  content: "";
  flex: none;
  width: max(6px, calc(11 * var(--u)));
  height: max(6px, calc(11 * var(--u)));
  border-radius: 50%;
  background: #6f6f6b;
  box-shadow: inset 0 calc(1 * var(--u)) calc(2 * var(--u)) rgba(0, 0, 0, .5);
  transition: background .25s, box-shadow .25s;
}
.power[aria-pressed="true"] .name::before {
  background: radial-gradient(circle at 35% 35%, #ffb38c, var(--red) 62%);
  box-shadow: 0 0 calc(9 * var(--u)) calc(1.5 * var(--u)) rgba(255, 77, 0, .55);
}

/* Our mark, where the maker's badge sits on the drawing. */
.logo {
  flex: none;
  align-self: center;
  margin-left: calc(64 * var(--u));
  font: 700 calc(25 * var(--u))/.9 "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -.02em;
  text-transform: lowercase;
  color: var(--black);
}

.power .shadow { left: calc(-14 * var(--u)); top: calc(-2 * var(--u)); width: calc(74.9 * var(--u)); height: calc(90.7 * var(--u)); transform-origin: 58.2% 34.8%; }
.power .base { inset: 0; width: 100%; height: 100%; }
.power .ring { left: calc(1.7 * var(--u)); top: calc(1.7 * var(--u)); width: calc(55.8 * var(--u)); height: calc(55.8 * var(--u)); }
.power .cap { left: calc(7.4 * var(--u)); top: calc(7.4 * var(--u)); width: calc(44.4 * var(--u)); height: calc(44.4 * var(--u)); transition: transform .08s; }
.power[aria-pressed="true"] .cap { transform: scale(.93); filter: brightness(.94); }

/* ── The control panel ───────────────────────────────────── */

.panel {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  min-height: calc(204 * var(--u));
  padding: calc(35 * var(--u)) calc(81 * var(--u)) 0 calc(100 * var(--u));
}

.control {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(16 * var(--u));
  width: calc(340 * var(--u));
  height: calc(169 * var(--u));
  align-items: flex-start;
}

.control .name, .control .zero {
  color: var(--label);
  font-size: max(9px, calc(16 * var(--u)));
  line-height: 1;
  margin-top: calc(57 * var(--u));
  position: relative;
  z-index: 1;
}

.control .zero {
  position: absolute;
  left: calc(-32 * var(--u));
  top: 0;
}

.knob {
  --turn: 0deg;
  position: relative;
  flex: none;
  width: calc(132.3 * var(--u));
  height: calc(132.8 * var(--u));
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
}
.knob:active { cursor: grabbing; }

.knob .shadow { left: calc(-92.4 * var(--u)); top: calc(.7 * var(--u)); width: calc(224.1 * var(--u)); height: calc(309.9 * var(--u)); pointer-events: none; transform-origin: 70.75% 21.2%; }
/* Every knob and button shadow lies on the body, under every knob and button,
   whichever way it swings. (.radio and .stage are the layers they sink to.) */
.knob .shadow, .btn .shadow { z-index: -1; }
.radio { isolation: isolate; }

/* The long shadows swing about whatever casts them and stretch along their own length. */
.knob .shadow, .btn .shadow, .power .shadow {
  transform: rotate(var(--sr)) rotate(27deg) scaleY(calc(var(--sk) * var(--press, 1))) rotate(-27deg);
}

/* A button pushed in stands less proud, so its shadow is shorter: shortest
   while a finger holds it down, a little short while it stays latched. */
.btn .shadow, .power .shadow { transition: transform .13s ease-out; }
.radio.on .preset[aria-pressed="true"], .power[aria-pressed="true"] { --press: .72; }
.preset:active, .power:active { --press: .45; }
.knob .base { inset: 0; width: 100%; height: 100%; }
.knob .ring { left: calc(2.6 * var(--u)); top: calc(2.3 * var(--u)); width: calc(128.1 * var(--u)); height: calc(128.1 * var(--u)); }
.knob .ribs { /* the ribbed edge: the drawing's shape, cut out of a fill */
  position: absolute;
  left: calc(4.6 * var(--u));
  top: calc(5 * var(--u));
  width: calc(123.4 * var(--u));
  height: calc(123.4 * var(--u));
  -webkit-mask: url(assets/knob-ribs.svg) center / 100% 100% no-repeat;
  mask: url(assets/knob-ribs.svg) center / 100% 100% no-repeat;
  transform: rotate(var(--turn));
  transition: transform .18s ease-out;
  pointer-events: none;
}
.knob .ribs::before { /* turned back, so the light on it stays put */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ribs);
  transform: rotate(calc(-1 * var(--turn)));
  transition: transform .18s ease-out;
}
.knob .cap { left: calc(19.6 * var(--u)); top: calc(20 * var(--u)); width: calc(92.7 * var(--u)); height: calc(92.7 * var(--u)); }

.knob .mark { /* the volume knob's index line */
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(39 * var(--u));
  height: max(1.5px, calc(2.6 * var(--u)));
  margin-top: calc(-1.3 * var(--u));
  border-radius: 2px;
  background: var(--black);
  transform-origin: 0 50%;
  transform: rotate(calc(var(--turn) + 333deg));
  transition: transform .18s ease-out;
}

/* A highlight on each cap, on the side the light comes from. */
.knob::after, .btn::after, .power::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle at calc(50% - var(--sx) * 42%) calc(50% - var(--sy) * 42%),
    rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.btn::after { inset: 8%; }

/* Glare sliding across the dial glass. */
.glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .34) 50%, rgba(255, 255, 255, 0) 62%)
    calc(50% + var(--sx) * 55%) 0 / 220% 100% no-repeat;
  pointer-events: none;
}

/* The dial lamp, dark mode only. Two tints laid over the glass and multiplied
   into it, so the ink stays ink: a dull one for the unlit glass, a warm one
   for the bulb behind it. Power fades one into the other. */
@media (prefers-color-scheme: dark) {
  .glare::before, .glare::after {
    content: "";
    position: absolute;
    inset: 0;
    mix-blend-mode: multiply;
    transition: opacity .6s;
  }
  .glare { inset: 0 calc(22 * var(--u)); } /* between the end pieces, which are tinted on their own */
  .glare::before { background: #7f857b; }
  .glare::after {
    background: radial-gradient(ellipse 75% 130% at 42% 50%, #ffeac0, #e6bd7c);
    opacity: 0;
  }
  .radio.on .glare::before { opacity: 0; }
  .radio.on .glare::after { opacity: 1; }

  .window::before, .window::after { background: #5b6058; transition: background .6s; }
  .radio.on .window::before, .radio.on .window::after { background: #a98d5f; }
  .window { transition: box-shadow .6s; }
  .radio.on .window { box-shadow: 0 0 calc(46 * var(--u)) rgba(255, 196, 120, .22); } /* the glow spills onto the body */

  /* The metal button sits on the glass and takes the same light. */
  .power .shadow { filter: brightness(0); opacity: .26; }
  .power .base, .power .ring, .power .cap { filter: brightness(.62); transition: filter .6s, transform .08s; }
  .power[aria-pressed="true"] .base, .power[aria-pressed="true"] .ring { filter: sepia(.45) brightness(.92); }
  .power[aria-pressed="true"] .cap { filter: sepia(.45) brightness(.88); }
}

:focus-visible { outline: 2px solid #ff4d00; outline-offset: 3px; }

/* The round station buttons. */
.presets {
  display: flex;
  margin-left: auto;
  margin-top: calc(-3 * var(--u));
  height: calc(172 * var(--u));
}

.preset {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(15 * var(--u));
  width: calc(108 * var(--u));
  padding: 0;
  border: 0;
  background: none;
  color: var(--label);
  font: inherit;
  cursor: pointer;
}

.preset .label {
  position: relative;
  z-index: 1;
  font-size: max(8px, calc(16 * var(--u)));
  line-height: 1;
  white-space: nowrap;
}

.btn {
  position: relative;
  width: calc(77.7 * var(--u));
  height: calc(77.7 * var(--u));
}

.btn .shadow { left: calc(-69.4 * var(--u)); top: calc(-1.9 * var(--u)); width: calc(149 * var(--u)); height: calc(217.8 * var(--u)); pointer-events: none; transform-origin: 72.65% 18.7%; }
.btn .base { inset: 0; width: 100%; height: 100%; }
.btn .ring { left: calc(2.8 * var(--u)); top: calc(2.8 * var(--u)); width: calc(72.2 * var(--u)); height: calc(72.2 * var(--u)); }
.btn .cap { left: calc(6.5 * var(--u)); top: calc(6.5 * var(--u)); width: calc(64.8 * var(--u)); height: calc(64.8 * var(--u)); }

.btn .lit { opacity: 0; transition: opacity .25s; }
.radio.on .preset[aria-pressed="true"] .lit { opacity: 1; }
.preset:active .cap { transform: scale(.96); }

/* The darker underside, and the grain over everything. */
.lip {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* an inset band, so it follows the rounded corners like the drawing's rim */
  box-shadow:
    0 calc(-17 * var(--u)) 0 rgba(0, 0, 0, .36) inset,
    calc(5 * var(--u)) 0 0 rgba(0, 0, 0, .1) inset;
  /* the body is a little brighter toward the light and darker away from it */
  background: linear-gradient(calc(var(--sr) + 207deg), rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .13));
  pointer-events: none;
}

.noise {
  position: absolute;
  inset: 0;
  background: url(assets/noise.png) 0 0 / calc(231.3 * var(--u)) calc(231.3 * var(--u));
  mix-blend-mode: overlay;
  opacity: .3;
  pointer-events: none;
}

/* ── What's on ───────────────────────────────────────────── */

.card {
  margin: 34px 0 0 calc(63 * var(--u));
  max-width: 520px;
  min-height: 138px;
}

.card p { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.5; letter-spacing: .005em; }

.card h1 {
  margin: 6px 0;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -.02em;
}

.card .card-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: lowercase;
  color: var(--accent);
}

.card .card-note { color: var(--ink-soft); margin-top: 4px; }

.credit {
  margin: 22px 0 0 calc(63 * var(--u));
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--ink-faint);
}

/* Lettering on the set: one weight, lowercase, a little air between letters. */
.window, .panel { letter-spacing: .035em; text-transform: lowercase; }

/* Wide screens: the set stands on a lit backdrop with the body's own grain,
   and the card is a printed label under a hairline. */
@media (min-width: 721px) {
  body { background: radial-gradient(ellipse 90% 70% at 50% 36%, var(--page-hi), var(--page-lo)) fixed var(--page); }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url(assets/noise.png) 0 0 / 180px 180px;
    mix-blend-mode: overlay;
    opacity: .28;
    pointer-events: none;
  }
  .card { border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 40px; }
}

/* Narrow screens: the phone is the radio. The body fills the screen edge to
   edge, the dial runs across the top, what's on is lettered on the body, and
   the controls sit under the thumbs. Each band has its own scale. */
@media (max-width: 720px) {
  body { background: var(--body); }
  .scene { padding: 0; align-items: stretch; }

  .stage {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: max(env(safe-area-inset-top), calc(30 * var(--u)));
    overflow: hidden;
    isolation: isolate; /* the shadows' floor, now that .radio has no box */
    background: var(--body);
    --u: calc(100cqw / 760);
  }
  .radio { display: contents; } /* its parts join the column; the card slots between them */
  .lip, .noise { border-radius: 0; }

  .window {
    --u: calc(100cqw / 560);
    --rows: 1.5;
    order: 1;
    flex: none;
    height: calc(250 * var(--u));
    color: var(--black);
    font-weight: 600;
  }
  .scales { flex: 1 1 0; margin-left: calc(40 * var(--u)); }
  .legend { flex-basis: calc(92 * var(--u)); margin: 0 calc(22 * var(--u)) 0 calc(12 * var(--u)); }
  .logo { display: none; }

  /* The controls stand on one grid: three equal columns, 160 panel units
     each, centred 110, 270 and 430 across the 540-unit body. The year knob
     heads the left column, power the right, on one centre line; the station
     buttons fill the rows beneath. */
  /* Power moves off the glass onto the body. It still belongs to the window,
     so it is placed in the body's own measure (cqw): centred on the right
     column (430/540) and on the knob's centre line (36 + 66.4 panel units
     below the glass); the button is 59.2/560 of the width across. */
  .power {
    position: absolute;
    top: calc(100% + 1px + 18.963cqw - 5.286cqw); /* 1px: the frame under the glass */
    left: calc(79.63cqw - 5.286cqw);
    margin: 0;
    z-index: 2;
  }
  .power .name { left: auto; right: calc(100% + 10 * var(--u)); color: var(--label); }
  .power .shadow { filter: brightness(0); opacity: .22; } /* drawn for the glass; on the body it must be dark */

  .card {
    order: 3; /* what's on reads under the controls */
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    min-height: 150px;
    margin: 0;
    padding: 22px 26px 8px;
    color: var(--label);
  }
  .card h1 { font-size: 34px; }
  .card p { font-size: 15px; }
  .card .card-kicker { font-size: 12px; }
  .card .card-note { color: var(--label); opacity: .62; }

  .panel {
    --u: calc(100cqw / 540);
    order: 2;
    flex: none;
    min-height: 0;
    display: block;
    padding: calc(36 * var(--u)) calc(30 * var(--u)) calc(28 * var(--u));
    font-weight: 600;
  }
  /* The knob is 132.3 across: centred in its 160 column. */
  .control { width: calc(160 * var(--u)); height: calc(132.8 * var(--u)); padding-left: calc(13.85 * var(--u)); }
  .control .name { margin-top: calc(58 * var(--u)); white-space: nowrap; }
  /* No volume knob: a phone's own buttons set the loudness, and Safari
     ignores a page that tries. */
  .control:has(#vol-knob) { display: none; }
  /* Six buttons: two rows of three, full size, rather than one cramped row. */
  .presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    row-gap: calc(22 * var(--u));
    width: 100%;
    height: auto;
    margin: calc(34 * var(--u)) 0 0;
  }
  .preset { width: calc(120 * var(--u)); gap: calc(12 * var(--u)); }
  .preset .label { font-size: calc(17 * var(--u)); }

  .credit {
    order: 4;
    margin: 0;
    padding: 0 26px calc(max(env(safe-area-inset-bottom), 10px) + 14 * var(--u));
    font-size: 10px;
    color: var(--label);
    opacity: .5;
    position: relative;
    z-index: 1;
  }
}

/* On a phone, and when opened from the home screen, it is an appliance:
   nothing selects, nothing pops up on a long press. */
@media (pointer: coarse), (display-mode: standalone) {
  body { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
}

@media (prefers-reduced-motion: reduce) {
  .needle, .knob .ribs, .knob .ribs::before, .knob .mark, .btn .lit, .btn .shadow, .power .shadow { transition: none; }
}
