:root[data-skin=dusk] {
  --k-bg: #252631;
  --k-text: #faf6fc;
  --k-dim: #e0d8e5;
  --k-acc: #e4bdf7;
  --k-hi: #f8eaff;
  --k-rx: #e6d6f5;
  --k-glow: #c693e64a;
  --k-soft: #d4aee21c;
  --k-digits: #fcf6ff;
}
:root[data-skin=dusk] .radio {
  container-type: size;
  align-items: center;
  overflow: hidden auto;
  scrollbar-width: none;
  background: var(--k-bg);
}
:root[data-skin=dusk] .dusk-console {
  --dusk-y: calc(100cqh / 1536);
  --dusk-head-height: max(70px, calc(124 * var(--dusk-y)), calc(env(safe-area-inset-top, 0px) + 52px));
  --dusk-panel-height: max(280px, calc(533 * var(--dusk-y)));
  display: flex;
  flex-direction: column;
  width: min(100%, 480px);
  min-height: 100%;
  flex: none;
  container-type: inline-size;
  color: var(--k-text);
  background: #72697a;
}
:root[data-skin=dusk] .radio .dusk-console > :is(.head, .dusk-panel) {
  position: relative;
  flex: none;
  height: var(--dusk-height);
  margin: 0;
  padding: 0;
}

:root[data-skin=dusk] .radio .dusk-console > .head {
  --dusk-height: var(--dusk-head-height);
  background: url(../img/walkies/dusk/head.webp) center bottom / 100% auto no-repeat #2f333f;
}
:root[data-skin=dusk] .dusk-console .head > :is(.iconbtn, .chanbtn) {
  position: absolute;
  bottom: calc(38 * 100cqw / 787);
  left: 50%;
  translate: -50% 50%;
  width: 68%;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: var(--k-text);
  background: none;
  box-shadow: none;
}
:root[data-skin=dusk] .dusk-console .head > .iconbtn { left: max(6.4%, 22px); width: 44px; }
:root[data-skin=dusk] .dusk-console .head > .iconbtn:last-child { left: min(93.6%, calc(100% - 22px)); }
:root[data-skin=dusk] .dusk-console .head .rlogo { display: none; }
:root[data-skin=dusk] .dusk-console .head .icon svg { width: clamp(18px, 5.8cqw, 30px); height: auto; }
:root[data-skin=dusk] .dusk-console .head > .iconbtn:last-child circle { fill: currentColor; stroke: none; }

:root[data-skin=dusk] .dusk-display {
  flex: 1 0 max(230px, calc(100cqh - var(--dusk-head-height) - var(--dusk-panel-height)));
  position: relative;
  isolation: isolate;
  background: #22232d;
}
:root[data-skin=dusk] .radio .dusk-video {
  position: absolute;
  inset: 0;
  /* These slate tones sit outside the global theme's ice and green ranges. */
  background:
    radial-gradient(ellipse 78% 58% at 50% 42%, #aea7c414, transparent 75%),
    linear-gradient(180deg, #464b5b, #303440 26%, #242630 67%, #1d1d27);
}
:root[data-skin=dusk] .dusk-meta {
  position: absolute;
  z-index: 31;
  top: 0;
  right: 3.8%;
  display: flex;
  align-items: center;
  gap: 2.65cqw;
  height: max(29px, 6.8%);
  pointer-events: none;
}
:root[data-skin=dusk] .dusk-count-button {
  display: inline-flex;
  min-height: 36px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  gap: 1.3cqw;
  color: #fff;
  font-size: clamp(10px, 3.05cqw, 15px);
  text-shadow: 0 1px 5px #080911;
  pointer-events: auto;
}
:root[data-skin=dusk] .dusk-count-button:disabled { opacity: .55; }
:root[data-skin=dusk] .dusk-count-button .icon svg { width: clamp(15px, 4.2cqw, 22px); height: auto; }
:root[data-skin=dusk] .dusk-meta .lcdsig { height: clamp(13px, 3.55cqw, 19px); gap: 2px; }
:root[data-skin=dusk] .dusk-meta .lcdsig i { width: clamp(2px, .65cqw, 3px); background: #ffffff30; }
:root[data-skin=dusk] .dusk-meta .lcdsig i.on { background: #ece5f3; box-shadow: none; }
:root[data-skin=dusk] .dusk-meta .lamp { display: none; }
:root[data-skin=dusk] .dusk-video .airline {
  position: absolute;
  top: 0;
  left: 3.8%;
  right: 34%;
  width: auto;
  height: auto;
  min-height: max(29px, 6.8%);
  align-items: center;
}
:root[data-skin=dusk] .dusk-video .airline::before,
:root[data-skin=dusk] .dusk-video .airline .wave { display: none; }
:root[data-skin=dusk] .dusk-video .airline .wstatus {
  font: 500 clamp(10px, 2.95cqw, 16px)/1.2 var(--font);
  letter-spacing: .065em;
  text-transform: uppercase;
}
:root[data-skin=dusk] .dusk-video .airline .wsub { font-size: clamp(8px, 2.45cqw, 12px); }
:root[data-skin=dusk] .dusk-video .airline.chips {
  align-items: flex-start;
  flex-wrap: wrap;
  padding-top: 8px;
}
:root[data-skin=dusk] .dusk-video .airline .unavail { max-width: 100%; }
:root[data-skin=dusk] .dusk-video .airline .qfix { flex-shrink: 1; }
:root[data-skin=dusk] .dusk-video .deaf { position: absolute; inset: auto 8% 6%; width: auto; color: #ffe0c1; text-align: center; }
:root[data-skin=dusk] .dusk-video .lcdart {
  position: absolute;
  inset: 42% 15% auto;
  height: 16%;
  margin: 0;
  pointer-events: none;
}
:root[data-skin=dusk] .dusk-video .lwave {
  --wave-style: ribbon;
  --wave-idle: .43;
  opacity: .72;
  filter: drop-shadow(0 0 2px var(--k-glow));
  mask-image: linear-gradient(90deg, transparent, #000 9% 91%, transparent);
}

:root[data-skin=dusk] .dusk-video .vmon:not(.big) {
  border-radius: 0;
  --vrim: 0px;
  animation: dusk-video-enter .26s ease-out;
}
@keyframes dusk-video-enter { from { opacity: 0; } }
:root[data-skin=dusk] .dusk-video .vmon:not(.big) .vmon-lens {
  background: linear-gradient(180deg, #191d2b8c, transparent 21%, transparent 75%, #19172080);
  box-shadow: none;
}
:root[data-skin=dusk] .dusk-video .vmon:not(.big) :is(.vmon-rx, .vmon-cam) { object-position: 50% 44%; }
:root[data-skin=dusk] .dusk-video .vmon:not(.big) .vmon-bar {
  inset: auto auto 3.7% 4.35%;
  translate: none;
  padding: 0;
  background: none;
  font: 650 clamp(12px, 3.4cqw, 19px)/1.15 var(--font);
  letter-spacing: .12em;
}
:root[data-skin=dusk] .dusk-video .vmon:not(.big) .vmon-dot,
:root[data-skin=dusk] .dusk-video .vmon.self:not(.big) .vmon-who { display: none; }
:root[data-skin=dusk] .dusk-video .vmon.self:not(.big) .vmon-you { display: inline; }
:root[data-skin=dusk] .dusk-video .vmon:not(.big) .vmon-off {
  top: auto;
  bottom: 2.6%;
  left: auto;
  right: 3.8%;
  translate: none;
  min-height: 30px;
}
:root[data-skin=dusk] .dusk-video .vmon:not(.big) .vmon-direction {
  position: absolute;
  top: 0;
  left: 3.8%;
  height: max(29px, 6.8%);
  z-index: 3;
  display: flex;
  align-items: center;
  pointer-events: none;
  color: #fff;
  font: 500 clamp(10px, 2.92cqw, 16px)/1.17 var(--font);
  letter-spacing: .1em;
  text-shadow: 0 1px 5px #080911;
}
:root[data-skin=dusk] .vmon-direction :is(.vmon-preview, .vmon-sending),
:root[data-skin=dusk] .vmon.self .vmon-receiving { display: none; }
:root[data-skin=dusk] .radio:not([data-air=tx]) .vmon.self .vmon-preview,
:root[data-skin=dusk] .radio[data-air=tx] .vmon.self .vmon-sending { display: inline; }

:root[data-skin=dusk] .radio .dusk-console > .dusk-panel {
  --dusk-height: var(--dusk-panel-height);
  isolation: isolate;
  background:
    linear-gradient(180deg, #21212d05, #25213030 28% 100%),
    url(../img/walkies/dusk/panel.webp) center / 100% 100% no-repeat;
}
:root[data-skin=dusk] .dusk-media-strip,
:root[data-skin=dusk] .dusk-utilities,
:root[data-skin=dusk] .dusk-actions { position: absolute; display: grid; align-items: stretch; }
:root[data-skin=dusk] .dusk-media-strip {
  inset: 0 22% auto 2%;
  height: 15%;
  grid-template-columns: 2fr 1fr;
}
:root[data-skin=dusk] .dusk-media-strip .dusk-media { display: grid; grid-template-columns: 1fr 1fr; }
/* The pager's keys while it shows (radio.js els.pagerKeysOut): in the dark
   slot of the row above, which steps aside then (walkies.css .paging), two
   halves of it with a hair between; the display's edge over them is their
   line. The pager on the display reaches down to its foot. */
:root[data-skin=dusk] .dusk-pager-keys {
  position: absolute;
  inset: 0 22% auto 2%;
  height: 15%;
  z-index: 1;
  pointer-events: none;
  --pgr-keys-top: 0%;
  --pgr-keys-h: 100%;
  --pgr-div-top: 26%;
  --pgr-div-bottom: 26%;
}
:root[data-skin=dusk] .dusk-pager-keys .pgr-keys::before { display: none; }
:root[data-skin=dusk] .dusk-pager-keys .pgr-key.l { left: 0; width: 50%; }
:root[data-skin=dusk] .dusk-pager-keys .pgr-key.r { left: 50%; width: 50%; }
:root[data-skin=dusk] .dusk-pager-keys .pgr-key.w { left: 0; width: 100%; }
:root[data-skin=dusk] .radio :is(.dusk-media-strip, .dusk-actions) .action {
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 44px;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  color: var(--k-text);
  padding: 0 3px;
  transition: color .2s ease, background-color .2s ease;
}
:root[data-skin=dusk] .radio :is(.dusk-media-strip, .dusk-actions) .action.on {
  color: var(--k-hi);
  box-shadow: none;
}
:root[data-skin=dusk] .radio :is(.dusk-media-strip, .dusk-actions) .action :is(.iconbtn, .icon) {
  color: inherit;
  transition: color .2s ease;
}
:root[data-skin=dusk] .radio .dusk-actions .action.on :is(.iconbtn, .icon) { color: var(--k-acc); }
:root[data-skin=dusk] .radio .dusk-actions .action.on.held,
:root[data-skin=dusk] .radio .dusk-actions .action.on.held :is(.iconbtn, .icon) { color: #ffe2bb; }
:root[data-skin=dusk] .radio :is(.dusk-media-strip, .dusk-actions) .action:active,
:root[data-skin=dusk] .radio :is(.dusk-media-strip, .dusk-actions) .action:active .iconbtn { transform: none; }

:root[data-skin=dusk] .dusk-media-key,
:root[data-skin=dusk] .radio .dusk-media-strip .action,
:root[data-skin=dusk] .dusk-utilities button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.4cqw;
  width: 100%;
  min-width: 0;
  color: var(--k-text);
  background: none;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
  font: 500 clamp(10px, 2.95cqw, 15px)/1.2 var(--font);
}
:root[data-skin=dusk] .dusk-media-key .icon svg,
:root[data-skin=dusk] .dusk-media-strip .action .icon svg { width: clamp(16px, 4.75cqw, 26px); height: auto; }
:root[data-skin=dusk] .dusk-media-key.video[aria-pressed=true] .icon { color: var(--k-acc); }
:root[data-skin=dusk] .dusk-media-key.sound[aria-pressed=true] .icon,
:root[data-skin=dusk] .dusk-media-key.video.unavailable { opacity: .66; }

:root[data-skin=dusk] .dusk-panel .lcd {
  position: absolute;
  inset: 20.5% 21.8% auto 5.75%;
  width: auto;
  height: 19%;
  min-height: 44px;
  padding: 0;
}
:root[data-skin=dusk] .dusk-readout { display: flex; align-items: baseline; gap: 2.1cqw; text-align: left; }
:root[data-skin=dusk] .dusk-readout .lcdfreq {
  min-width: 0;
  height: auto;
  margin: 0;
  color: var(--k-digits);
  font: 400 clamp(23px, 9.5cqw, 49px)/1.1 var(--font);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: .018em;
  text-shadow: none;
}
:root[data-skin=dusk] .dusk-readout .lcdfreq.word { font-size: clamp(18px, 6.2cqw, 35px); }
:root[data-skin=dusk] .dusk-unit { flex: none; color: var(--k-dim); font-size: clamp(11px, 3.1cqw, 16px); }

:root[data-skin=dusk] .dusk-scale {
  position: absolute;
  inset: 39.2% 22.5% auto 4.35%;
  height: 17%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
:root[data-skin=dusk] .dusk-scale button {
  position: relative;
  min-width: 0;
  min-height: 44px;
  color: var(--k-text);
  border-radius: 7px;
}
:root[data-skin=dusk] .dusk-scale button .icon { position: absolute; top: 49%; translate: 0 -50%; }
:root[data-skin=dusk] .dusk-scale button.prev .icon { left: 2%; }
:root[data-skin=dusk] .dusk-scale button.next .icon { right: 2%; }
:root[data-skin=dusk] .dusk-scale button:disabled { opacity: .4; }
:root[data-skin=dusk] .dusk-neighbour {
  position: absolute;
  inset: 9% 22% auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #eee7f2;
  font-variant-numeric: tabular-nums;
  font-size: clamp(9px, 2.62cqw, 14px);
}
:root[data-skin=dusk] .dusk-scale .prev .dusk-neighbour { text-align: left; }
:root[data-skin=dusk] .dusk-scale .next .dusk-neighbour { text-align: right; }
:root[data-skin=dusk] .dusk-utilities {
  inset: 58.4% 22.5% auto 3.9%;
  height: 15.4%;
  grid-template-columns: 1.17fr .93fr .86fr;
}
:root[data-skin=dusk] .dusk-utilities .replay:disabled { opacity: .52; }
:root[data-skin=dusk] .dusk-utilities .replay .icon svg { width: clamp(16px, 5cqw, 29px); height: auto; }
:root[data-skin=dusk] .dusk-volume { display: flex; align-items: center; gap: 12px; min-height: 44px; }
:root[data-skin=dusk] .dusk-volume input { flex: 1; min-width: 0; }
:root[data-skin=dusk] .dusk-volume output { min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }

:root[data-skin=dusk] .dusk-actions {
  inset: 74% 22.5% 4% 2.9%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
:root[data-skin=dusk] .radio .dusk-actions .action {
  position: relative;
  gap: 1.25cqw;
}
:root[data-skin=dusk] .dusk-actions .action:disabled,
:root[data-skin=dusk] .dusk-media-strip .action:disabled { opacity: .52; }
:root[data-skin=dusk] .dusk-actions .actlbl {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 500 clamp(9px, 2.65cqw, 13px)/1.2 var(--font);
}
:root[data-skin=dusk] .dusk-actions .icon svg { width: clamp(17px, 4.85cqw, 26px); height: auto; stroke-width: 1.5; }
:root[data-skin=dusk] .radio :is(.dusk-media-strip, .dusk-actions) .action .iconbtn {
  flex: none;
  width: auto;
  height: auto;
  border: 0;
  background: none;
  box-shadow: none;
}
:root[data-skin=dusk] .dusk-console :is(.iconbtn, .dusk-media-key, .dusk-utilities button, .dusk-scale button) {
  transition: color .2s ease, opacity .2s ease;
}
:root[data-skin=dusk] .dusk-console :is(.iconbtn, .dusk-media-key, .dusk-utilities button, .dusk-scale button):enabled:active {
  color: var(--k-acc);
}
:root[data-skin=dusk] .radio :is(.dusk-media-strip, .dusk-actions) button.action:enabled:active {
  background-color: #f8edff13;
}

:root[data-skin=dusk] .radio .dusk-panel .stage {
  position: absolute;
  inset: 2% 1.2% 4.35% 80.9%;
  min-height: 0;
  display: block;
  padding: 0;
}
:root[data-skin=dusk] .radio .dusk-panel .ptt-wrap {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  container-type: normal;
}
:root[data-skin=dusk] .radio .dusk-panel .ptt {
  isolation: isolate;
  display: grid;
  grid-template: 40% auto 1fr / minmax(0, 1fr);
  place-items: end center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0 4%;
  gap: 0;
  border: 0;
  border-radius: 20% / 7%;
  color: var(--k-text);
  background: none;
  box-shadow: none;
  transform: none;
  transition: color .24s ease;
}
:root[data-skin=dusk] .radio .dusk-panel .ptt::before {
  z-index: -1;
  inset: 2%;
  border: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 69%, #c59bd43d, transparent 64%);
  box-shadow: inset 0 0 13px #bea0d231;
  opacity: 0;
  animation: none;
  transition: opacity .26s ease;
}
:root[data-skin=dusk] .radio .dusk-panel .ptt[data-held]::before { opacity: .57; }
:root[data-skin=dusk] .radio .dusk-panel .ptt[data-state=transmitting]::before { opacity: 1; }
:root[data-skin=dusk] .radio .dusk-panel .ptt::after {
  content: "";
  position: absolute;
  top: 62.6%;
  width: 30%;
  height: 2px;
  border-radius: 3px;
  background: #dcb4ed;
  box-shadow: 0 0 6px #d8aff280;
  transition: background-color .24s ease, box-shadow .24s ease;
}
:root[data-skin=dusk] .radio .dusk-panel .ptt[data-state=transmitting]::after {
  background: #f5deff;
  box-shadow: 0 0 10px 1px #e3b4f5a3;
}
:root[data-skin=dusk] .radio .dusk-panel .ptt > .icon { display: inline-grid; color: inherit; filter: none; }
:root[data-skin=dusk] .radio .dusk-panel .ptt > .icon svg { width: clamp(19px, 7.35cqw, 37px); height: auto; stroke-width: 1.25; }
:root[data-skin=dusk] .radio .dusk-panel .ptt .lbl {
  align-self: start;
  margin-top: 2.5cqw;
  max-width: 100%;
  color: inherit;
  font: 550 clamp(8px, 2.58cqw, 14px)/1.3 var(--font);
  letter-spacing: .045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
:root[data-skin=dusk] .radio .dusk-panel .ptt.face .lsub { display: none; }
:root[data-skin=dusk] .radio .dusk-panel .ptt .pttface { width: 9cqw !important; height: 9cqw !important; }
:root[data-skin=dusk] .radio .dusk-panel .ptt:disabled { opacity: .64; }

:root[data-skin=dusk] .dusk-console button:focus-visible { outline: 2px solid #f4d4ff; outline-offset: -3px; }
:root[data-skin=dusk] .radio > :is(.hint-line, .sfxbar, .howto):not([hidden]) { max-width: 448px; flex: none; }
.skinpic.sp-dusk { background: url(../img/walkies/dusk/panel.webp) center / cover no-repeat #817888; }
.skinpic.sp-dusk > :is(i, b, u) { display: none; }

@media (prefers-reduced-motion: reduce) {
  :root[data-skin=dusk] .radio .dusk-console :is(.action, .iconbtn, .icon, .dusk-media-key, .dusk-utilities button, .dusk-scale button, .ptt, .pttface),
  :root[data-skin=dusk] .radio .dusk-panel .ptt::before,
  :root[data-skin=dusk] .radio .dusk-panel .ptt::after { transition: none; }
  :root[data-skin=dusk] .dusk-video .vmon:not(.big) { animation: none; }
}
:root[data-skin=dusk].eco .dusk-video .vmon:not(.big) { animation: none; }

/* The interface colour on the talk key (theme.js): while a colour is
   chosen (:root[data-tint]), its microphone and its words take it (the light shade,
   on its dark face); not while on air (the key's own colours say so).
   In «Original» nothing of it. */
:root[data-tint][data-skin=dusk] .radio .dusk-panel .ptt:not([data-state=transmitting]) :is(.icon, .lbl) { color: var(--tint-light); }
/* …and its capsule glows softly in it at rest (its own glow, held and on
   air brighter, as before). */
:root[data-tint][data-skin=dusk] .radio .dusk-panel .ptt:not([data-held], [data-state=transmitting])::before { opacity: .5; }
/* …and the capsule itself takes the colour's hue, as quiet and as dark as
   it is: a layer of the colour cut to the capsule (panel-lights.webp,
   tools/art-lights.py), blended in «hue» (a grey: «color»). */
:root[data-tint][data-skin=dusk] .radio .dusk-console > .dusk-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--tint-vivid);
  -webkit-mask: url(../img/walkies/dusk/panel-lights.webp) center / 100% 100% no-repeat;
  mask: url(../img/walkies/dusk/panel-lights.webp) center / 100% 100% no-repeat;
  mix-blend-mode: var(--tint-hue-blend, color);
}
