:root {
  color-scheme: dark;

  /* The living room */
  --wallpaper: #1b2a2f;
  --wallpaper-stripe: #1f3137;
  --tv-glow: rgba(70, 120, 230, 0.22);
  --wood: #5a3620;
  --wood-light: #74462a;
  --wood-dark: #3a2213;
  --bezel: #17161a;
  --room-text: #d8e3df;
  --room-muted: #9fb2ad;

  /* The broadcast */
  --station-blue: #1747a6;
  --station-navy: #0c2a66;
  --station-red: #d8262f;
  --chrome: #f2c14e;
  --paper: #fff6dc;
  --ink: #1a1a1a;

  --pixel-font: "Pixelify Sans", system-ui, sans-serif;
  --broadcast-font: "Jersey 10", "Pixelify Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  background-color: var(--wallpaper);
  background-image:
    radial-gradient(ellipse 60% 45% at 50% 32%, var(--tv-glow), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 22px, var(--wallpaper-stripe) 22px 26px);
  color: var(--room-text);
  font-family: var(--pixel-font);
  -webkit-font-smoothing: none;
}

p {
  margin: 0;
}

.room {
  width: min(1100px, 100% - 32px);
  margin: 0 auto;
  padding: clamp(16px, 4vw, 48px) 0 64px;
}

/* ------------------------------------------------------------------ */
/* The TV set                                                          */
/* ------------------------------------------------------------------ */

.tv {
  padding: clamp(10px, 2.2vw, 26px) clamp(10px, 2.2vw, 26px) 0;
  border-radius: clamp(10px, 2vw, 22px);
  background-color: var(--wood);
  background-image:
    repeating-linear-gradient(
      178deg,
      transparent 0 7px,
      rgba(0, 0, 0, 0.12) 7px 9px,
      transparent 9px 15px,
      rgba(255, 220, 180, 0.05) 15px 16px
    ),
    linear-gradient(180deg, var(--wood-light), var(--wood) 40%, var(--wood-dark));
  box-shadow:
    inset 0 2px 0 rgba(255, 220, 180, 0.18),
    inset 0 -3px 0 rgba(0, 0, 0, 0.35),
    0 30px 60px rgba(0, 0, 0, 0.55);
}

.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  overflow: hidden;
  background: #050608;
  border-radius: 3.5% / 6%;
  box-shadow:
    0 0 0 clamp(6px, 1.2vw, 14px) var(--bezel),
    0 0 0 calc(clamp(6px, 1.2vw, 14px) + 2px) #000;
}

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

.screen[data-state="off"] .picture {
  visibility: hidden;
}

.screen[data-state="on"] .picture {
  animation: power-on 700ms steps(14) both;
}

@keyframes power-on {
  0% {
    transform: scale(1, 0.004);
    filter: brightness(6);
  }
  40% {
    transform: scale(1, 0.02);
    filter: brightness(4);
  }
  70% {
    transform: scale(1, 1.04);
    filter: brightness(1.6);
  }
  100% {
    transform: none;
    filter: none;
  }
}

#scene {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.55)),
    linear-gradient(125deg, rgba(255, 255, 255, 0.08) 0 18%, transparent 18.5%);
}

/* Power button overlay, shown until the viewer turns the TV on */
.power {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2cqw;
  text-align: center;
  color: var(--room-muted);
  font-size: clamp(12px, 1.8cqw, 18px);
}

.screen[data-state="on"] .power {
  display: none;
}

.power button {
  font-family: var(--broadcast-font);
  font-size: clamp(22px, 5cqw, 52px);
  line-height: 1;
  padding: 0.35em 0.8em 0.4em;
  color: var(--paper);
  background: var(--station-red);
  border: 0;
  border-radius: 0;
  box-shadow:
    0 0.12em 0 #8e141b,
    0 0 0 0.08em #000;
  cursor: pointer;
}

.power button:hover {
  background: #e8343d;
}

.power button:active {
  transform: translateY(0.1em);
  box-shadow: 0 0.02em 0 #8e141b;
}

/* ------------------------------------------------------------------ */
/* Broadcast graphics (positioned in the 320x180 studio's coordinates) */
/* ------------------------------------------------------------------ */

.ots {
  position: absolute;
  left: 70.3%;
  top: 8.3%;
  width: 25.6%;
  height: 31.1%;
  display: grid;
  grid-template-rows: 1fr 21%;
  text-align: center;
}

.ots-caption {
  align-self: center;
  padding: 0 4%;
  font-family: var(--broadcast-font);
  font-size: 3.1cqw;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0.25cqw 0.25cqw 0 var(--station-navy);
  overflow-wrap: anywhere;
}

.ots[data-weather] .ots-caption {
  justify-self: end;
  padding-right: 8%;
  font-size: 5.6cqw;
}

.ots-source {
  align-self: center;
  font-size: 1.35cqw;
  color: var(--chrome);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4%;
}

.bug-live {
  position: absolute;
  right: 2%;
  bottom: 9.5%;
  display: flex;
  font-family: var(--broadcast-font);
  font-size: 2.6cqw;
  line-height: 1;
  box-shadow: 0 0 0 0.25cqw #000;
}

.bug-live > * {
  padding: 0.25em 0.45em 0.3em;
}

.bug-live .live {
  background: var(--station-red);
  color: #fff;
  text-transform: uppercase;
}

.bug-live #clock {
  background: var(--paper);
  color: var(--ink);
}

.bug-encore {
  position: absolute;
  top: 1.2%;
  left: 50%;
  translate: -50% 0;
  padding: 0.15em 0.6em 0.25em;
  font-family: var(--broadcast-font);
  font-size: 2.4cqw;
  color: var(--ink);
  background: var(--chrome);
  box-shadow: 0 0 0 0.25cqw #000;
}

.lower-third {
  position: absolute;
  left: 3%;
  bottom: 9.5%;
  max-width: 62%;
}

.lt-tab {
  display: inline-block;
  padding: 0.15em 0.6em 0.2em;
  font-family: var(--broadcast-font);
  font-size: 2.4cqw;
  line-height: 1;
  color: #fff;
  background: var(--station-red);
}

.lt-name {
  display: flex;
  align-items: baseline;
  gap: 0.7em;
  padding: 0.2em 0.9em 0.3em 0.6em;
  background: linear-gradient(180deg, var(--station-blue), var(--station-navy));
  border-top: 0.35cqw solid var(--chrome);
  box-shadow: 0 0 0 0.25cqw #000;
  white-space: nowrap;
}

.lt-name strong {
  font-family: var(--broadcast-font);
  font-weight: 400;
  font-size: 4cqw;
  line-height: 1;
  color: #fff;
}

.lt-name span {
  font-size: 1.7cqw;
  color: var(--chrome);
}

.ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7.5%;
  display: flex;
  background: var(--station-navy);
  border-top: 0.3cqw solid var(--chrome);
}

.ticker-label {
  display: grid;
  place-items: center;
  padding: 0 1.4cqw;
  font-family: var(--broadcast-font);
  font-size: 3.2cqw;
  color: #fff;
  background: var(--station-red);
}

.ticker-track {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.ticker-text {
  position: absolute;
  top: 50%;
  left: 0;
  translate: 0 -50%;
  white-space: nowrap;
  font-size: 2.3cqw;
  color: #fff;
  will-change: transform;
}

.ticker-text b {
  color: var(--chrome);
  font-weight: 600;
}

/* Speech bubble */
.bubble {
  --tail-x: 50%;
  position: absolute;
  width: 44%;
  padding: 1.1cqw 1.5cqw 1.3cqw;
  background: var(--paper);
  color: var(--ink);
  box-shadow:
    0 0 0 0.45cqw var(--ink),
    0.9cqw 0.9cqw 0 0.45cqw rgba(0, 0, 0, 0.35);
}

.bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--tail-x);
  width: 2.4cqw;
  height: 2.2cqw;
  translate: -50% 0.45cqw;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 30% 100%);
}

.bubble[data-side="left"]::after {
  top: 1.6cqw;
  left: 0;
  width: 2.4cqw;
  height: 2.2cqw;
  translate: -100% 0;
  clip-path: polygon(100% 0, 100% 100%, 0 30%);
}

.bubble p {
  font-size: clamp(10px, 2.25cqw, 26px);
  line-height: 1.22;
  min-height: 2.44em;
}

/* Color bars when nothing is on air */
.standby {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.standby[hidden] {
  display: none;
}

.standby .bars {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #c0c0c0 0 14.28%,
    #c0c000 14.28% 28.56%,
    #00c0c0 28.56% 42.84%,
    #00c000 42.84% 57.12%,
    #c000c0 57.12% 71.4%,
    #c00000 71.4% 85.68%,
    #0000c0 85.68%
  );
}

.standby p {
  position: relative;
  padding: 0.3em 0.9em 0.4em;
  font-family: var(--broadcast-font);
  font-size: 5cqw;
  color: #fff;
  background: #000;
}

/* ------------------------------------------------------------------ */
/* Cabinet controls                                                    */
/* ------------------------------------------------------------------ */

.cabinet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding: clamp(14px, 2vw, 22px) 4px;
  font-size: 15px;
  color: #f1dcc3;
}

.plate {
  padding: 4px 10px 5px;
  font-family: var(--broadcast-font);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: #2a2a2a;
  background: linear-gradient(180deg, #e9e6df, #a9a49a);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  background: #ff3b45;
  box-shadow: 0 0 8px #ff3b45;
}

.mode {
  color: #d5bb9c;
}

.knob {
  margin-left: auto;
  padding: 8px 14px 9px;
  font-family: var(--pixel-font);
  font-size: 15px;
  color: #f1dcc3;
  background: #2a1a10;
  border: 2px solid #1a0f08;
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255, 220, 180, 0.15);
  cursor: pointer;
}

.knob[aria-pressed="false"] {
  color: #a88d70;
}

:is(.knob, .power button):focus-visible {
  outline: 3px solid var(--chrome);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ */
/* Channel guide                                                       */
/* ------------------------------------------------------------------ */

.guide {
  margin-top: clamp(32px, 5vw, 56px);
}

.guide h1 {
  margin: 0 0 12px;
  font-family: var(--broadcast-font);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 0.9;
  color: var(--paper);
}

.guide-lede {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--room-muted);
}

.cast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px 28px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.cast li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px 14px;
  align-items: start;
}

.cast canvas {
  grid-row: span 3;
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  background: var(--station-blue);
  box-shadow: 0 0 0 3px #0a1022;
}

.cast h2 {
  margin: 0;
  font-family: var(--broadcast-font);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  color: var(--paper);
}

.cast .role {
  font-size: 14px;
  color: var(--chrome);
}

.cast .tagline {
  font-size: 15px;
  line-height: 1.4;
  color: var(--room-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .bubble {
    width: 58%;
  }
  .lt-name span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen[data-state="on"] .picture {
    animation: none;
  }
}

/* ------------------------------------------------------------------ */
/* Bumpers between segments                                            */
/* ------------------------------------------------------------------ */

.bumper {
  --bumper-bg: var(--station-blue);
  --bumper-stripe: #2156bd;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding-bottom: 9%;
  overflow: hidden;
  background: var(--bumper-bg);
  color: #fff;
  text-align: center;
}

.bumper[hidden] {
  display: none;
}

.bumper[data-style="break"] {
  --bumper-bg: var(--station-red);
  --bumper-stripe: #c11f28;
}

.bumper[data-style="upnext"] {
  --bumper-bg: var(--station-navy);
  --bumper-stripe: #10357c;
}

.bumper-stripes {
  position: absolute;
  inset: -20%;
  background: repeating-linear-gradient(-45deg, transparent 0 3cqw, var(--bumper-stripe) 3cqw 6cqw);
  animation: bumper-slide 1.2s linear infinite;
}

@keyframes bumper-slide {
  to {
    transform: translateX(8.485cqw);
  }
}

.bumper-brand {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.2cqw;
  animation: bumper-slam 520ms steps(6) both;
}

@keyframes bumper-slam {
  0% {
    transform: scale(2.6);
    opacity: 0;
  }
  60% {
    transform: scale(0.94);
    opacity: 1;
  }
  100% {
    transform: none;
  }
}

.bumper-logo {
  font-family: var(--broadcast-font);
  font-size: 17cqw;
  line-height: 0.8;
  padding: 0 3cqw 1.2cqw;
  background: var(--station-navy);
  box-shadow:
    0 1.4cqw 0 var(--station-red),
    0 2cqw 0 var(--chrome),
    0 0 0 0.5cqw #000;
}

.bumper-slogan {
  margin-top: 2.4cqw;
  font-size: 2.4cqw;
  color: var(--chrome);
}

.bumper[data-style="upnext"] .bumper-logo {
  font-size: 8cqw;
}

.bumper[data-style="upnext"] .bumper-slogan {
  display: none;
}

.bumper-card {
  position: relative;
  width: min(80%, 70cqw);
  padding: 1.2cqw 2.4cqw 1.6cqw;
  background: var(--paper);
  color: var(--ink);
  box-shadow:
    0 0 0 0.45cqw #000,
    0.9cqw 0.9cqw 0 0.45cqw rgba(0, 0, 0, 0.35);
  animation: bumper-card-in 420ms 300ms steps(5) both;
}

@keyframes bumper-card-in {
  from {
    transform: translateY(40cqw);
  }
  to {
    transform: none;
  }
}

.bumper-label {
  font-size: 1.8cqw;
  color: var(--station-red);
  font-weight: 600;
}

.bumper-title {
  font-family: var(--broadcast-font);
  font-size: 5.2cqw;
  line-height: 1;
}

.bumper-tease {
  margin-top: 0.4cqw;
  font-size: 1.9cqw;
  color: #444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bumper-tease:empty {
  display: none;
}

.bumper[data-style="break"] .bumper-title {
  font-size: 7cqw;
}

@media (prefers-reduced-motion: reduce) {
  .bumper-stripes,
  .bumper-brand,
  .bumper-card {
    animation: none;
  }
}

/* ------------------------------------------------------------------ */
/* Crypto Corner: price board                                          */
/* ------------------------------------------------------------------ */

.board {
  position: absolute;
  left: 70.3%;
  top: 8.3%;
  width: 25.6%;
  height: 31.1%;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0.6cqw 0.9cqw 0.4cqw;
  font-size: 1.75cqw;
  color: #e8ecf5;
}

.board[hidden] {
  display: none;
}

.board table {
  width: 100%;
  border-collapse: collapse;
}

.board td {
  padding: 0.15cqw 0;
  white-space: nowrap;
}

.board .sym {
  font-family: var(--broadcast-font);
  font-size: 2.3cqw;
  color: var(--chrome);
}

.board .price {
  text-align: right;
}

.board .chg {
  text-align: right;
  padding-left: 0.8cqw;
}

.board .up {
  color: #3ddc84;
}

.board .down {
  color: #ff4d5e;
}

.board-foot {
  font-size: 1.25cqw;
  color: #9aa4bd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



.ots[hidden] {
  display: none;
}

/* ------------------------------------------------------------------ */
/* Shows: each one gets its own bumper colors                          */
/* ------------------------------------------------------------------ */

.bug-live .show-name {
  background: var(--station-navy);
  color: var(--chrome);
}

.bumper[data-show="morning"]:not([data-style="break"]) {
  --bumper-bg: #d9611e;
  --bumper-stripe: #e8762f;
}

.bumper[data-show="evening"]:not([data-style="break"]) {
  --bumper-bg: #101a3d;
  --bumper-stripe: #16224d;
}

.bumper[data-show="after_hours"]:not([data-style="break"]) {
  --bumper-bg: #3d1466;
  --bumper-stripe: #4b1b7c;
}

.bumper[data-show="after_dark"]:not([data-style="break"]) {
  --bumper-bg: #120b1f;
  --bumper-stripe: #1c1230;
}

.bumper[data-show="after_hours"] .bumper-slogan,
.bumper[data-show="after_dark"] .bumper-slogan {
  color: #b59cff;
}

/* ------------------------------------------------------------------ */
/* Channel guide schedule                                              */
/* ------------------------------------------------------------------ */

.guide-heading {
  margin: 40px 0 14px;
  font-family: var(--broadcast-font);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  color: var(--paper);
}

.guide-heading span {
  font-family: var(--pixel-font);
  font-size: 15px;
  color: var(--room-muted);
}

.schedule {
  display: grid;
  gap: 2px;
  max-width: 640px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule li {
  display: grid;
  grid-template-columns: 8.5em 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px;
  background: rgba(10, 16, 34, 0.45);
  font-size: 16px;
}

.schedule .when {
  color: var(--room-muted);
  font-size: 14px;
}

.schedule strong {
  font-weight: 600;
  color: var(--room-text);
}

.schedule li[aria-current="true"] {
  background: var(--station-blue);
  box-shadow: inset 4px 0 0 var(--station-red);
}

.schedule li[aria-current="true"] strong,
.schedule li[aria-current="true"] .when {
  color: #fff;
}

.schedule .on-now {
  font-size: 13px;
  font-weight: 600;
  color: var(--chrome);
}

/* ------------------------------------------------------------------ */
/* Captions (phones) and full screen                                   */
/* ------------------------------------------------------------------ */

.captions {
  display: none;
}

.cap-name {
  font-family: var(--broadcast-font);
  font-size: 20px;
  line-height: 1;
  color: var(--chrome);
}

.cap-name[data-speaker="dana"] { color: #ff8fb1; }
.cap-name[data-speaker="gary"] { color: #7fe0a6; }
.cap-name[data-speaker="rook"] { color: #ffb05a; }
.cap-name[data-speaker="jax"] { color: #c7a6ff; }

.cap-text {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.4;
  color: #fff6dc;
  min-height: calc(1.4em * 4);
}

.screen:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  place-items: center;
}

.screen:fullscreen .picture {
  position: relative;
  inset: auto;
  width: min(100vw, 100vh * 16 / 9);
  aspect-ratio: 16 / 9;
  container-type: inline-size;
}

.knob[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .room {
    width: calc(100% - 16px);
    padding-top: 8px;
  }

  .tv {
    padding: 8px 8px 0;
    border-radius: 12px;
  }

  .screen {
    border-radius: 3% / 5%;
  }

  /* The captions below the TV replace the tiny in-picture speech bubble. */
  .captions {
    display: block;
    margin: 12px 2px 0;
    padding: 12px 14px 14px;
    background: #0d0f14;
    box-shadow: inset 0 0 0 2px #000, 0 1px 0 rgba(255, 220, 180, 0.12);
  }

  .bubble,
  .board {
    display: none !important;
  }

  .ticker {
    height: max(7.5%, 22px);
  }

  .ticker-label {
    font-size: max(3.2cqw, 14px);
  }

  .ticker-text {
    font-size: max(2.3cqw, 12px);
  }

  .lower-third {
    bottom: max(9.5%, 26px);
  }

  .lt-tab {
    font-size: max(2.4cqw, 10px);
  }

  .lt-name strong {
    font-size: max(4cqw, 15px);
  }

  .bug-live {
    bottom: max(9.5%, 26px);
    font-size: max(2.6cqw, 11px);
  }

  .bug-live .show-name {
    display: none;
  }


  .bumper-slogan,
  .bumper-label,
  .bumper-tease {
    font-size: max(1.9cqw, 10px);
  }

  .cabinet {
    gap: 10px 14px;
    padding: 14px 4px;
  }

  .mode {
    flex-basis: 100%;
    order: 3;
    font-size: 14px;
  }

  .knob {
    min-height: 44px;
    padding: 10px 14px;
  }

  .knob#fullBtn {
    margin-left: auto;
  }

  .knob#soundBtn {
    margin-left: 0;
  }

  .schedule li {
    grid-template-columns: 1fr auto;
  }

  .schedule .when {
    grid-column: 1 / -1;
  }
}

.knob + .knob {
  margin-left: 0;
}

/* ------------------------------------------------------------------ */
/* Viewer mail + treasury                                              */
/* ------------------------------------------------------------------ */

.extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.panel {
  padding: 4px 20px 20px;
  background: rgba(10, 16, 34, 0.45);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.panel .guide-heading {
  margin-top: 18px;
}

.panel-lede {
  margin: 0 0 14px;
  color: var(--room-muted);
  line-height: 1.5;
  max-width: 60ch;
}

.mail-form {
  display: grid;
  gap: 12px;
}

.mail-form .row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mail-form label {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 140px;
  font-size: 14px;
  color: var(--room-muted);
}

.mail-form input,
.mail-form select,
.mail-form textarea {
  font: inherit;
  font-size: 16px;
  padding: 9px 10px;
  color: var(--room-text);
  background: #0d141a;
  border: 2px solid #2c4049;
  border-radius: 0;
}

.mail-form textarea {
  resize: vertical;
  line-height: 1.4;
}

.mail-form .hp {
  position: absolute;
  left: -9999px;
}

.form-foot {
  align-items: center;
  justify-content: space-between;
}

.count {
  font-size: 13px;
  color: var(--room-muted);
}

.send,
.copy {
  font: inherit;
  min-height: 44px;
  padding: 9px 16px;
  color: #1a1a1a;
  background: var(--chrome);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.copy {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 14px;
  justify-self: start;
}

.form-status {
  min-height: 1.4em;
  font-size: 15px;
  color: var(--chrome);
}

.form-status[data-error] {
  color: #ff8f8f;
}

.treasury-line {
  margin: 0 0 14px;
  font-size: 18px;
}

.treasury-line strong {
  font-family: var(--broadcast-font);
  font-weight: 400;
  font-size: 30px;
  color: var(--chrome);
}

.wallets {
  display: grid;
  gap: 14px;
}

.wallet {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  align-items: center;
  margin: 0;
}

.wallet img {
  width: 132px;
  height: 132px;
  image-rendering: pixelated;
}

.wallet figcaption {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.wallet figcaption span {
  font-weight: 600;
  color: var(--paper);
}

.wallet code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; /* every character must be unambiguous */
  font-size: 13px;
  color: var(--room-muted);
  overflow-wrap: anywhere;
}

.fineprint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--room-muted);
}

.treasury-total {
  color: var(--chrome);
}

.tip-toast {
  position: absolute;
  top: 8%;
  left: 50%;
  translate: -50% 0;
  max-width: 80%;
  padding: 0.5em 1em 0.6em;
  font-family: var(--broadcast-font);
  font-size: max(3cqw, 14px);
  line-height: 1.05;
  text-align: center;
  color: #1a1a1a;
  background: var(--chrome);
  box-shadow: 0 0 0 0.45cqw #000, 0.8cqw 0.8cqw 0 0.45cqw rgba(0, 0, 0, 0.35);
  animation: toast-in 380ms steps(5) both;
}

.tip-toast[hidden] {
  display: none;
}

@keyframes toast-in {
  from {
    transform: translateY(-30cqw);
  }
  to {
    transform: none;
  }
}

@media (max-width: 640px) {
  .wallet {
    grid-template-columns: 104px 1fr;
  }
  .wallet img {
    width: 104px;
    height: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tip-toast {
    animation: none;
  }
}

/* ------------------------------------------------------------------ */
/* About / disclaimers                                                 */
/* ------------------------------------------------------------------ */

.about {
  max-width: 68ch;
  margin-top: 56px;
  padding-top: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.06);
}

.about p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--room-muted);
}

.mail-form .fineprint {
  margin: 0;
}
