:root[data-skin=orbit] {
  --k-scr: #101114;
  --k-text: #f5efeb;
  --k-dim: #c3b8af;
  --k-acc: #ffc893;
  --k-hi: #fff0d7;
  --k-rx: #dbe9ff;
  --k-glow: #ec9b637d;
  --k-soft: #ff9f5838;
  --k-line: #574a41;
  --k-digits: #eee7e3;
}
:root[data-skin=orbit] .radio {
  container-type: size;
  align-items: center;
  overflow: hidden auto;
  scrollbar-width: none;
  background: #101114;
}
:root[data-skin=orbit] .orbit-console {
  --orbit-safe: max(0px, calc(env(safe-area-inset-top, 0px) - 19px));
  container-type: inline-size;
  flex: none;
  /* The whole width of the phone (a tablet's: up to 460 px); a screen too
     low for all of it scrolls the walkie. */
  width: min(100%, 460px);
  padding-top: var(--orbit-safe);
  color: var(--k-text);
  background: #101114;
}
:root[data-skin=orbit] .radio .orbit-console > :is(.head, .orbit-display, .orbit-talk, .orbit-scope, .orbit-presets, .orbit-menu) {
  position: relative;
  display: block;
  height: calc(var(--orbit-size) * 100cqw / 707);
  padding: 0;
  margin: 0;
  background: var(--orbit-art) center / 100% 100% no-repeat;
}
:root[data-skin=orbit] .orbit-console > .head {
  --orbit-size: 225;
  --orbit-art: url(../img/walkies/orbit/head.webp);
}
:root[data-skin=orbit] .orbit-console .head > :is(.iconbtn, .chanbtn) {
  position: absolute;
  top: 64%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 13.1%;
  height: 31%;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--k-text);
  background: none;
  box-shadow: none;
}
:root[data-skin=orbit] .orbit-console .head > .iconbtn:first-child { left: 11.3%; }
:root[data-skin=orbit] .orbit-console .head > .iconbtn:last-child { left: 88.9%; }
:root[data-skin=orbit] .orbit-console .head > .chanbtn { width: 37%; height: 42%; border-radius: 12px; }
:root[data-skin=orbit] .orbit-console .head .rlogo { display: none; }
:root[data-skin=orbit] .orbit-console .head .icon svg { width: clamp(20px, 6.35cqw, 30px); height: auto; }
:root[data-skin=orbit] .orbit-console .head > .iconbtn:last-child circle { fill: currentColor; stroke: none; }

:root[data-skin=orbit] .orbit-console > .orbit-display {
  --orbit-size: 590;
  --orbit-art: url(../img/walkies/orbit/display.webp);
}
:root[data-skin=orbit] .orbit-channel {
  position: absolute;
  inset: 25.6% 18% auto;
  translate: 0 -50%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  font: 500 clamp(11px, 3.45cqw, 17px)/1.15 var(--font);
}
:root[data-skin=orbit] .orbit-display .lcdbox {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  pointer-events: none;
}
:root[data-skin=orbit] .orbit-display .lcdbot { display: none; }
:root[data-skin=orbit] .orbit-display .lcd {
  position: absolute;
  inset: 70% 16% auto;
  translate: 0 -50%;
  width: auto;
  min-height: 44px;
  padding: 0;
  pointer-events: auto;
}
:root[data-skin=orbit] .orbit-readout {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1.25cqw;
}
:root[data-skin=orbit] .orbit-readout .lcdfreq {
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0;
  color: var(--k-digits);
  text-shadow: none;
  text-align: center;
  font: 400 clamp(14px, 3.8cqw, 22px)/1.2 "PULSE Wide", var(--font);
  letter-spacing: .07em;
  font-variant-numeric: tabular-nums;
}
:root[data-skin=orbit] .orbit-display .lcdbox.none .lcdfreq { color: #959195; }
:root[data-skin=orbit] .orbit-unit { flex: none; font: 400 clamp(10px, 3.2cqw, 18px)/1 var(--font); letter-spacing: .05em; }
:root[data-skin=orbit] .orbit-display .lcdart {
  position: absolute;
  inset: 30.17% 17.26% auto;
  height: 34.24%;
  margin: 0;
}
:root[data-skin=orbit] .orbit-display .lcdart::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../img/walkies/orbit/idle-wave.webp) center / 100% 100% no-repeat;
}
:root[data-skin=orbit] .radio[data-air]:not([data-air=""]) .orbit-display .lcdart::before { visibility: hidden; }
:root[data-skin=orbit] .orbit-display .lwave {
  --wave-style: orbit;
  color: #ffdbb7;
  filter: drop-shadow(0 0 5px #f59d67);
}
:root[data-skin=orbit] .orbit-display .lcdright {
  position: absolute;
  inset: 77.3% 19% auto;
  justify-content: center;
  pointer-events: none;
}
:root[data-skin=orbit] .orbit-display .lcdsig,
:root[data-skin=orbit] .orbit-display .lamp:not(.tx, .rx) { display: none; }
:root[data-skin=orbit] .orbit-display .lamp {
  padding: 1px 7px;
  line-height: 13px;
  font-size: 9px;
  border-radius: 9px;
}
:root[data-skin=orbit] .orbit-display .lamp.tx { background: #6a3c21; color: #ffe8c7; box-shadow: 0 0 9px #f68c4f77; }
:root[data-skin=orbit] .orbit-display .lamp.rx { background: #243b51; color: #e3efff; box-shadow: 0 0 9px #7cacdf77; }
:root[data-skin=orbit] .orbit-display .deaf {
  position: absolute;
  inset: 80% 23% auto;
  width: auto;
  padding: 3px 5px;
  text-align: center;
  color: #ffd1ad;
  pointer-events: auto;
}

:root[data-skin=orbit] .orbit-console > .orbit-talk {
  --orbit-size: 310;
  --orbit-art: url(../img/walkies/orbit/talk.webp);
}
:root[data-skin=orbit] .radio .orbit-talk .stage {
  display: block;
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0;
}
:root[data-skin=orbit] .radio .orbit-talk .ptt-wrap {
  position: absolute;
  inset: 6% 31% auto;
  width: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 1;
  container-type: normal;
}
:root[data-skin=orbit] .radio .orbit-talk .ptt {
  isolation: isolate;
  display: grid;
  grid-template: 54% 46% / minmax(0, 1fr);
  place-items: end center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  gap: 0;
  border: 0;
  color: #fff4e7;
  background: none;
  box-shadow: none;
  transform: none;
}
:root[data-skin=orbit] .radio .orbit-talk .ptt::before {
  z-index: -1;
  inset: 0;
  border: 0;
  background: radial-gradient(circle at 50% 56%, transparent 47%, #faa96c32 65%, #ffd49577 76%, #ff9b5b21);
  opacity: 0;
  animation: none;
  transition: opacity .22s ease;
}
:root[data-skin=orbit] .radio .orbit-talk .ptt[data-held]::before { opacity: .48; }
:root[data-skin=orbit] .radio .orbit-talk .ptt[data-state=transmitting]::before { opacity: 1; animation: orbit-breathe 2.4s ease-in-out infinite; }
:root[data-skin=orbit] .radio .orbit-talk .ptt > .icon { display: inline-grid; color: inherit; filter: drop-shadow(0 0 4px #ffa85b63); }
:root[data-skin=orbit] .radio .orbit-talk .ptt > .icon svg { width: clamp(32px, 14cqw, 69px); height: auto; stroke-width: .85; }
:root[data-skin=orbit] .radio .orbit-talk .ptt .lbl {
  align-self: start;
  margin-top: 1.8cqw;
  max-width: 88%;
  color: inherit;
  text-wrap: balance;
  font: 500 clamp(8px, 2.63cqw, 14px)/1.16 var(--font);
  letter-spacing: .11em;
}
:root[data-skin=orbit] .radio .orbit-talk .ptt.face { grid-template-rows: 47% auto auto; align-content: center; }
:root[data-skin=orbit] .radio .orbit-talk .ptt.face .lsub { display: block; align-self: center; color: #e1edff; }
:root[data-skin=orbit] .radio .orbit-talk .ptt .pttface {
  width: clamp(27px, 10cqw, 53px) !important;
  height: clamp(27px, 10cqw, 53px) !important;
  border-color: #e0e9fa;
}
:root[data-skin=orbit] .radio .orbit-talk .ptt:disabled { opacity: .55; }
@keyframes orbit-breathe { 50% { opacity: .7; } }

:root[data-skin=orbit] .orbit-talk > :is(.orbit-sound, .orbit-count-button) {
  position: absolute;
  top: 46.2%;
  left: 15.6%;
  translate: -50% -50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5cqw;
  width: 18%;
  aspect-ratio: 1;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  color: var(--k-text);
}
:root[data-skin=orbit] .orbit-talk .orbit-count-button { left: 84.6%; font-size: clamp(9px, 2.7cqw, 14px); }
:root[data-skin=orbit] .orbit-talk .orbit-sound[aria-pressed=false],
:root[data-skin=orbit] .orbit-talk .orbit-count-button:disabled { opacity: .47; }
:root[data-skin=orbit] .orbit-talk .orbit-sound .icon svg { width: clamp(21px, 8.75cqw, 38px); height: auto; stroke-width: 1.16; }
:root[data-skin=orbit] .orbit-talk .orbit-count-button .icon svg { width: clamp(17px, 6.5cqw, 32px); height: auto; stroke-width: 1.35; }

:root[data-skin=orbit] .orbit-console > .orbit-scope {
  --orbit-size: 99;
  --orbit-art: url(../img/walkies/orbit/scope.webp);
}
:root[data-skin=orbit] .orbit-scope .swave {
  --wave-style: ribbon;
  position: absolute;
  inset: 18% 6% auto;
  width: 88%;
  height: 48%;
  opacity: .65;
  color: #ffcdab;
  filter: drop-shadow(0 0 4px #f9a064);
  pointer-events: none;
}
:root[data-skin=orbit] .radio[data-air=""] .orbit-scope .swave { visibility: hidden; }
:root[data-skin=orbit] .orbit-scope .airline {
  position: absolute;
  z-index: 1;
  inset: 72% 9% auto;
  width: auto;
  height: 46%;
  min-height: 26px;
  padding: 0 2cqw;
  justify-content: center;
  background: #111015e8;
  border-radius: 20px;
}
:root[data-skin=orbit] .orbit-scope .airline.chips { inset-block-start: 60%; }
:root[data-skin=orbit] .orbit-scope .airline::before,
:root[data-skin=orbit] .orbit-scope .airline .wave { display: none; }
:root[data-skin=orbit] .orbit-scope .airtext { text-align: center; }
:root[data-skin=orbit] .orbit-scope .airtext .wstatus { font: 500 clamp(9px, 2.45cqw, 13px)/1.15 var(--font); letter-spacing: .025em; }
:root[data-skin=orbit] .orbit-scope .airtext .wsub { font-size: clamp(8px, 2.1cqw, 11px); }
:root[data-skin=orbit] .orbit-scope .unavail { max-width: 59%; }
:root[data-skin=orbit] .orbit-scope .unavail .btn { height: auto; min-height: 27px; white-space: normal; }
:root[data-skin=orbit] .orbit-scope .unavail .qfix { flex-shrink: 1; }

:root[data-skin=orbit] .radio .orbit-console > .orbit-presets {
  --orbit-size: 124;
  --orbit-art: url(../img/walkies/orbit/presets.webp);
}
:root[data-skin=orbit] .orbit-preset-panel {
  position: absolute;
  inset: 47% 13.45% auto 14.65%;
  translate: 0 -50%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
:root[data-skin=orbit] .orbit-preset {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 44px;
  min-width: 0;
  color: var(--k-text);
  font: 500 clamp(9px, 2.9cqw, 15px)/1 var(--font);
}
:root[data-skin=orbit] .orbit-preset.on { color: #fff1dc; text-shadow: 0 0 8px #ffb45f; }
:root[data-skin=orbit] .orbit-preset.on::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 15% 5%;
  border: 1px solid #f9c891;
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 94%, #e89e5fa8, #9f5c394a 61%, #deb39028);
  box-shadow: inset 0 -2px 7px #ffa7639c, 0 0 8px #ea935f86, 0 3px 8px #ed9a555d;
}
:root[data-skin=orbit] .orbit-preset:disabled { color: #908886; }
:root[data-skin=orbit] .orbit-page-arrow {
  position: absolute;
  top: 47%;
  left: 9.3%;
  translate: -50% -50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
:root[data-skin=orbit] .orbit-page-arrow.next { left: 90.8%; }
:root[data-skin=orbit] .orbit-page-arrow.prev .icon { transform: rotate(180deg); }
:root[data-skin=orbit] .orbit-page-arrow[aria-disabled=true] { opacity: .44; }

:root[data-skin=orbit] .radio .orbit-console > .orbit-menu {
  --orbit-size: 188;
  --orbit-art: url(../img/walkies/orbit/menu.webp);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 54%;
  padding: 3cqw 4.8% 0;
}
:root[data-skin=orbit] .orbit-menu .action {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: 100%;
  justify-content: center;
  color: var(--k-text);
}
:root[data-skin=orbit] .orbit-menu .action.on { color: #ffe5c6; }
:root[data-skin=orbit] .orbit-menu .action:disabled { opacity: .5; }
:root[data-skin=orbit] .orbit-menu .action .iconbtn {
  width: auto;
  height: auto;
  border: 0;
  background: none;
  box-shadow: none;
  color: inherit;
}
:root[data-skin=orbit] .orbit-menu .action .icon svg { width: clamp(20px, 7.05cqw, 33px); height: auto; stroke-width: 1.46; }
:root[data-skin=orbit] .orbit-menu .actlbl { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
:root[data-skin=orbit] .orbit-console button:focus-visible { outline: 2px solid #ffcb9b; outline-offset: -3px; }
:root[data-skin=orbit] .orbit-console button:not(:disabled):active:is(.iconbtn, .action, .orbit-sound, .orbit-count-button) { transform: none; background: #ffbf9315; }
:root[data-skin=orbit] .radio > .howto:not([hidden]) { width: calc(100% - 24px); max-width: 432px; flex: none; }
:root[data-skin=orbit] .radio > :is(.hint-line, .sfxbar) { width: 100%; max-width: 460px; flex: none; }

.skinpic.sp-orbit { background: url(../img/walkies/orbit/display.webp) center 57% / 100% auto no-repeat #101114; }
.skinpic.sp-orbit > :is(i, b, u) { display: none; }

@media (prefers-reduced-motion: reduce) {
  :root[data-skin=orbit] .radio .orbit-talk .ptt::before,
  :root[data-skin=orbit] .radio .orbit-talk .ptt .pttface { animation: none; transition: none; }
}

/* ---------------------------------------------------------- the interface colour on its pictures' lights
   While a colour is chosen (:root[data-tint], theme.js), the lights drawn
   in its pictures take it: a layer of the colour over each picture, cut to
   its lights (<picture>-lights.webp, made by tools/art-lights.py: the light
   pixels alone, the body round them left out) and blended in «color» (the
   picture's lightness, the colour's hue). In «Original» there is no layer:
   the pictures as drawn. */
:root[data-tint][data-skin=orbit] :is(.orbit-console > :is(.orbit-display, .orbit-talk, .orbit-scope), .orbit-display .lcdart)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--tint-vivid);
  -webkit-mask: var(--ob-lights) center / 100% 100% no-repeat;
  mask: var(--ob-lights) center / 100% 100% no-repeat;
  mix-blend-mode: color;
}
:root[data-tint][data-skin=orbit] .orbit-console > .orbit-display { --ob-lights: url(../img/walkies/orbit/display-lights.webp); }
:root[data-tint][data-skin=orbit] .orbit-console > .orbit-talk { --ob-lights: url(../img/walkies/orbit/talk-lights.webp); }
:root[data-tint][data-skin=orbit] .orbit-console > .orbit-scope { --ob-lights: url(../img/walkies/orbit/scope-lights.webp); }
:root[data-tint][data-skin=orbit] .orbit-display .lcdart { --ob-lights: url(../img/walkies/orbit/idle-wave-lights.webp); }
:root[data-tint][data-skin=orbit] .radio[data-air]:not([data-air=""]) .orbit-display .lcdart::after { visibility: hidden; }
