:root[data-skin=arc] {
  --k-bg: #060b10;
  --k-scr: #021318;
  --k-text: #e3f8fc;
  --k-dim: #adced5;
  --k-digits: #b9fbff;
  --k-acc: #88f2ff;
  --k-hi: #ffe0a1;
  --k-rx: #81ecff;
  --k-glow: #1dcddd80;
  --k-soft: #1dcddd38;
  --k-line: #244951;
}

:root[data-skin=arc] .radio {
  container-type: size;
  overflow: hidden auto;
  align-items: center;
  scrollbar-width: none;
  background: #060b10;
}

/* The vertical cuts follow the reference's seams. All five plates use the
   same width and height scale, including on phones with a short viewport. */
:root[data-skin=arc] .arc-console {
  container-type: inline-size;
  width: min(100%, 460px);
  flex: none;
  --arc-y: calc(100cqh / 1536);
  --arc-art: url(../img/walkies/arc/head.webp);
  color: var(--k-text);
}

:root[data-skin=arc] .radio .arc-console > :is(.head, .arc-keys, .arc-display, .arc-talk, .arc-dials) {
  position: relative;
  display: block;
  flex: none;
  height: var(--plate-h);
  margin: 0;
  padding: 0;
  background: var(--arc-art) center / 100% 100% no-repeat;
}

:root[data-skin=arc] .radio .arc-console > .head {
  --plate-h: max(calc(288 * var(--arc-y)), calc(env(safe-area-inset-top, 0px) + 72px));
}

:root[data-skin=arc] .arc-console .head > :is(.iconbtn, .chanbtn) {
  position: absolute;
  display: grid;
  place-items: center;
  left: var(--key-x, 50%);
  top: max(53.5%, calc(env(safe-area-inset-top, 0px) + 24px));
  width: 12.4%;
  height: 23.4%;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  translate: -50% -50%;
  border: 0;
  border-radius: 22px;
  background: none;
  box-shadow: none;
  color: #e4faff;
}

:root[data-skin=arc] .arc-console .head > .iconbtn:first-child { --key-x: 12.7%; }
:root[data-skin=arc] .arc-console .head > .iconbtn:last-child { --key-x: 87.8%; }
:root[data-skin=arc] .arc-console .head > .chanbtn { top: 47%; width: 45%; height: 42%; }
:root[data-skin=arc] .arc-console .head .rlogo { display: none; }
:root[data-skin=arc] .arc-console .head .icon svg { width: clamp(19px, 6.05cqw, 29px); height: auto; }
:root[data-skin=arc] .arc-console .head > .iconbtn:active { transform: none; background: #8eefff16; }
:root[data-skin=arc] .arc-console .head > .iconbtn:last-child circle { fill: currentColor; stroke: none; }

:root[data-skin=arc] .radio .arc-console > .arc-keys {
  --plate-h: max(50px, calc(109 * var(--arc-y)));
  --arc-art: url(../img/walkies/arc/keys.webp);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 7.75% 1.3cqw;
}

:root[data-skin=arc] .arc-keys .action {
  min-width: 0;
  min-height: 44px;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  gap: clamp(2px, .85cqw, 5px);
  padding: 0 1px;
  border: 0;
  border-radius: 11px;
  background: none;
  box-shadow: none;
  color: #d7f4fa;
}

:root[data-skin=arc] .arc-keys .action.on { color: var(--k-hi); }
:root[data-skin=arc] .arc-keys button.action:active { transform: none; background: #8eefff16; }
:root[data-skin=arc] .arc-keys .action .iconbtn {
  width: auto;
  height: auto;
  border: 0;
  color: inherit;
  background: none;
  box-shadow: none;
}
:root[data-skin=arc] .arc-keys .action .icon svg { width: clamp(18px, 5.55cqw, 28px); height: auto; }
:root[data-skin=arc] .arc-keys .actlbl { font-size: clamp(9px, 2.65cqw, 13px); white-space: nowrap; }

:root[data-skin=arc] .radio .arc-console > .arc-display {
  --plate-h: max(200px, calc(412 * var(--arc-y)));
  --arc-art: url(../img/walkies/arc/display.webp);
}

:root[data-skin=arc] .arc-display-top {
  position: absolute;
  z-index: 1;
  inset: 16.3% 13.1% auto 12.8%;
  translate: 0 -50%;
  display: flex;
  align-items: center;
  min-height: 38px;
  gap: 2.4cqw;
}
:root[data-skin=arc] .arc-display-top > .icon svg { width: clamp(19px, 6.05cqw, 28px); height: auto; }
:root[data-skin=arc] .arc-channel {
  min-width: 0;
  flex: 1;
  font: 500 clamp(11px, 3.05cqw, 16px)/1.2 var(--font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:root[data-skin=arc] .arc-count-button {
  display: inline-flex;
  align-items: center;
  gap: 1.35cqw;
  min-height: 38px;
  padding: 0 1.5cqw;
  flex: none;
  font-size: clamp(11px, 2.95cqw, 16px);
}
:root[data-skin=arc] .arc-count-button .icon svg { width: clamp(16px, 4.8cqw, 24px); height: auto; }

:root[data-skin=arc] .arc-display .lcdright { position: relative; }
:root[data-skin=arc] .arc-display .lcdsig {
  align-items: flex-end;
  gap: clamp(2px, .48cqw, 4px);
  height: auto;
}
:root[data-skin=arc] .arc-display .lcdsig i {
  width: clamp(2px, .68cqw, 5px);
  border-radius: 3px;
  background: #1a3e46;
}
:root[data-skin=arc] .arc-display .lcdsig i:nth-child(1) { height: 1.6cqw !important; }
:root[data-skin=arc] .arc-display .lcdsig i:nth-child(2) { height: 2.5cqw !important; }
:root[data-skin=arc] .arc-display .lcdsig i:nth-child(3) { height: 3.4cqw !important; }
:root[data-skin=arc] .arc-display .lcdsig i:nth-child(4) { height: 4.4cqw !important; }
:root[data-skin=arc] .arc-display .lcdsig i.on { background: #d4faff; box-shadow: 0 0 5px #34c5ee55; }
:root[data-skin=arc] .arc-display .lamp {
  position: absolute;
  inset: calc(100% + 4px) 0 auto auto;
  padding: 0 3px;
  font-size: 9px;
  line-height: 12px;
}
:root[data-skin=arc] .arc-display .lamp.tx { background: #693816; color: #ffe3ab; box-shadow: 0 0 7px #ffb34c85; }
:root[data-skin=arc] .arc-display .lamp.rx { background: #143d4b; color: #c1f9ff; box-shadow: 0 0 7px #60eaff75; }
:root[data-skin=arc] .arc-display .lamp:not(.tx, .rx) { display: none; }

:root[data-skin=arc] .arc-display .lcdbox {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  pointer-events: none;
}
:root[data-skin=arc] .arc-display .lcdbot { display: none; }
:root[data-skin=arc] .arc-display .lcd {
  position: absolute;
  inset: 23.5% 9% auto 9%;
  width: auto;
  min-height: 44px;
  height: 19%;
  padding: 0;
  pointer-events: auto;
}
:root[data-skin=arc] .arc-readout {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2.0cqw;
  width: 100%;
  padding-left: 6%;
}
:root[data-skin=arc] .arc-readout .lcdfreq {
  width: 63%;
  min-width: 0;
  height: auto;
  margin: 0;
  color: var(--k-digits);
  font: 600 clamp(15px, 5.9cqw, 35px)/1.12 var(--k-digit-font);
  text-align: center;
  text-shadow: 0 0 8px #38e8f68c;
}
:root[data-skin=arc] .arc-readout .lcdfreq.word { width: 100%; }
:root[data-skin=arc] .arc-display .lcdbox.none .lcdfreq { color: #527783; }
:root[data-skin=arc] .arc-segments { display: block; line-height: 0; }
:root[data-skin=arc] .arc-segments svg { width: 100%; height: auto; filter: drop-shadow(0 0 6px #43eefa); }
:root[data-skin=arc] .arc-unit { flex: none; padding-bottom: .6cqw; font: 500 clamp(12px, 3.5cqw, 18px)/1 var(--font); }

:root[data-skin=arc] .arc-display .lcdart {
  position: absolute;
  inset: 44.42% 8.78% auto;
  height: 34.47%;
  margin: 0;
}
:root[data-skin=arc] .arc-display .lcdart::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../img/walkies/arc/idle-wave.webp) center / 100% 100% no-repeat;
}
:root[data-skin=arc] .radio[data-air]:not([data-air=""]) .arc-display .lcdart::before { visibility: hidden; }
:root[data-skin=arc] .arc-display .lwave {
  --wave-style: arc;
  color: #88f6ff;
  filter: drop-shadow(0 0 3px #39e3f1);
}
:root[data-skin=arc] .arc-display .deaf {
  position: absolute;
  z-index: 1;
  inset: 67% 11% auto;
  width: auto;
  padding: 3px 5px;
  border-radius: 6px;
  background: #021217d9;
  color: #ffd1a6;
  text-align: center;
  pointer-events: auto;
}

:root[data-skin=arc] .arc-display .airline {
  position: absolute;
  inset: 80.1% 9.5% auto;
  display: grid;
  grid-template-columns: 26.5fr 49fr 26.5fr;
  align-items: stretch;
  gap: 1px;
  width: auto;
  height: 14.8%;
  min-height: 34px;
}
:root[data-skin=arc] .arc-display .airline::before,
:root[data-skin=arc] .arc-display .airline .wave { display: none; }
:root[data-skin=arc] .arc-display .airtext {
  display: grid;
  align-content: center;
  justify-items: center;
  position: relative;
  padding: 0 .6cqw 0 4.8cqw;
  overflow: hidden;
}
:root[data-skin=arc] .arc-display .airtext::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 4cqw;
  width: clamp(5px, 2.35cqw, 11px);
  aspect-ratio: 1;
  translate: 0 -50%;
  border-radius: 50%;
  background: #7efa5f;
  box-shadow: 0 0 8px #44f335b3;
}
:root[data-skin=arc] .arc-display .airtext.tx::before { background: #ffd35e; box-shadow: 0 0 8px #ff9e3f; }
:root[data-skin=arc] .arc-display .airtext.rx::before { background: #60efff; box-shadow: 0 0 8px #41c8ff; }
:root[data-skin=arc] .arc-display .airtext.standby::before { background: #63909c; box-shadow: none; }
:root[data-skin=arc] .arc-display .airtext:is(.err, .busy)::before { background: #f59782; box-shadow: 0 0 7px #f074626a; }
:root[data-skin=arc] .arc-display .airtext:is(.wait, .turn)::before { background: #f6bf75; box-shadow: 0 0 7px #e88e4880; }
:root[data-skin=arc] .arc-display .airline .wstatus {
  max-width: 82%;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 500 clamp(9px, 2.65cqw, 14px)/1.12 var(--font);
  letter-spacing: 0;
  text-transform: none;
  color: var(--k-text);
}
:root[data-skin=arc] .arc-display .airline .wsub {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  margin: 2px 0 0;
  color: #a7cfd8;
  font: 500 clamp(8px, 1.96cqw, 11px)/1 var(--mono);
}
:root[data-skin=arc] .arc-display .airline .wsub:empty { display: none; }

:root[data-skin=arc] .arc-display .airline :is(.action, .btn.replay) {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.4cqw;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 1.2cqw;
  border: 0;
  border-radius: 18px;
  background: none;
  box-shadow: none;
  color: var(--k-text);
  font: 500 clamp(9px, 2.68cqw, 14px)/1.12 var(--font);
}
:root[data-skin=arc] .arc-display .airline :is(.action, .btn.replay):active { background: #8eefff16; }
:root[data-skin=arc] .arc-display .airline :is(.action, .btn.replay):disabled { opacity: .47; }
:root[data-skin=arc] .arc-display .airline .action .iconbtn {
  flex: none;
  width: auto;
  height: auto;
  border: 0;
  color: inherit;
  background: none;
  box-shadow: none;
}
:root[data-skin=arc] .arc-display .airline .action .icon svg,
:root[data-skin=arc] .arc-display .airline .replay .icon svg { width: clamp(12px, 4.2cqw, 19px); height: auto; }
:root[data-skin=arc] .arc-display .airline .actlbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[data-skin=arc] .arc-display .airline .unavail:not(:empty) {
  position: absolute;
  bottom: calc(100% + 2px);
  right: 0;
  justify-content: flex-end;
  max-width: 100%;
}
:root[data-skin=arc] .arc-display .airline .unavail .btn { min-height: 34px; height: auto; white-space: normal; }
:root[data-skin=arc] .arc-display .airline .unavail .qfix { flex-shrink: 1; }

:root[data-skin=arc] .radio .arc-console > .arc-talk {
  --plate-h: max(153px, calc(367 * var(--arc-y)));
  --arc-art: url(../img/walkies/arc/talk.webp);
}
/* The living glass and flasks (pttfx.js arcFx): light over the plate's
   picture, under the key's words; a touch goes through to the key. */
:root[data-skin=arc] .radio .arc-talk > .arc-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}
:root[data-skin=arc] .radio .arc-talk .stage {
  position: absolute;
  inset: 0;
  display: block;
  min-height: 0;
  padding: 0;
}
:root[data-skin=arc] .radio .arc-talk .ptt-wrap {
  position: absolute;
  inset: 4% 26.8% 12%;
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-height: none;
  padding: 0;
  container-type: normal;
}
:root[data-skin=arc] .radio .arc-talk .ptt {
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 56% 44%;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: end;
  gap: 0;
  padding: 6% 0 8%;
  border: 0;
  border-radius: 50%;
  color: #fff2d8;
  background: none;
  box-shadow: none;
  transform: none;
}
:root[data-skin=arc] .radio .arc-talk .ptt::before {
  z-index: -1;
  inset: 0;
  border: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 62%, #ffba4f00 43%, #ffab393c 72%, #fff3ba53 85%, #ff9a2244);
  opacity: 0;
  animation: none;
  transition: opacity .2s ease;
}
:root[data-skin=arc] .radio .arc-talk .ptt[data-held]::before { opacity: .45; }
:root[data-skin=arc] .radio .arc-talk .ptt[data-state=transmitting]::before {
  opacity: 1;
  animation: arc-key-light 2.3s ease-in-out infinite;
}
:root[data-skin=arc] .radio .arc-talk .ptt > .icon {
  display: inline-grid;
  translate: 0 1.8cqw;
  color: inherit;
  filter: drop-shadow(0 0 6px #ffb76195);
}
:root[data-skin=arc] .radio .arc-talk .ptt > .icon svg {
  width: clamp(28px, 18.4cqw, 87px);
  height: clamp(28px, calc(128 * var(--arc-y)), 87px);
  stroke-width: .95;
}
:root[data-skin=arc] .radio .arc-talk .ptt .lbl {
  align-self: start;
  display: block;
  margin-top: 5%;
  max-width: 86%;
  color: inherit;
  font: 500 clamp(9px, 2.95cqw, 15px)/1.16 var(--font);
  letter-spacing: .18em;
  text-wrap: balance;
  text-shadow: 0 0 9px #ffb55f85;
}
:root[data-skin=arc] .radio .arc-talk .ptt.face { grid-template-rows: 51% auto auto; align-content: center; }
:root[data-skin=arc] .radio .arc-talk .ptt.face .lsub { display: block; color: #aff6ff; }
:root[data-skin=arc] .radio .arc-talk .ptt .pttface {
  width: clamp(25px, 12cqw, 58px) !important;
  height: clamp(25px, 12cqw, 58px) !important;
  border-color: #a1f5ff;
}
:root[data-skin=arc] .radio .arc-talk .ptt:disabled { opacity: .7; }

@keyframes arc-key-light { 50% { opacity: .72; } }

:root[data-skin=arc] .radio .arc-console > .arc-dials {
  --plate-h: max(148px, calc(360 * var(--arc-y)));
  --arc-art: url(../img/walkies/arc/dials.webp);
}
:root[data-skin=arc] .arc-dials .knobwrap {
  position: absolute;
  inset: 23.2% auto auto var(--dial-x, 50%);
  width: 17.4%;
  height: 32.8%;
  translate: -50% -50%;
}
:root[data-skin=arc] .arc-dials .knobwrap:first-child { --dial-x: 20.55%; }
:root[data-skin=arc] .arc-dials .knobwrap:last-child { --dial-x: 79.9%; }
:root[data-skin=arc] .arc-dials .knob {
  width: 100%;
  height: 100%;
  min-width: 44px;
  min-height: 44px;
}
:root[data-skin=arc] .arc-dials :is(.knob-ring, .knob-name) { display: none; }
:root[data-skin=arc] .arc-dials .knob::before {
  inset: -13%;
  background: conic-gradient(from 225deg, #ffce8166 var(--knob-sweep, 0deg), transparent 0);
  -webkit-mask: radial-gradient(ellipse, transparent 66%, #000 68% 73%, transparent 75%);
  mask: radial-gradient(ellipse, transparent 66%, #000 68% 73%, transparent 75%);
  opacity: 0;
  transition: opacity .15s ease;
}
:root[data-skin=arc] .arc-dials .knob:is(.turning, :focus-visible)::before { opacity: 1; }
:root[data-skin=arc] .arc-dials .knob-top { inset: 10%; height: auto; width: auto; background: none; box-shadow: none; }
:root[data-skin=arc] .arc-dials .knob-mark {
  top: 0;
  width: clamp(1px, .48cqw, 3px);
  height: 12%;
  margin: 0;
  translate: -50% 0;
  background: #ffe3a3;
  box-shadow: 0 0 5px #ffad55;
}
:root[data-skin=arc] .arc-dials .knob[aria-disabled=true] { cursor: default; }
:root[data-skin=arc] .arc-dials .knob[aria-disabled=true] .knob-mark { opacity: .3; }
:root[data-skin=arc] .arc-dials .knob.turning .knob-mark { background: #fff4d0; }

:root[data-skin=arc] .arc-console button:focus-visible,
:root[data-skin=arc] .arc-console .knob:focus-visible { outline: 2px solid #a6efff; outline-offset: -2px; }
:root[data-skin=arc] .radio > .hint-line,
:root[data-skin=arc] .radio > .sfxbar { width: 100%; max-width: 460px; }
/* The empty walkie: the chassis has no room for the help card (under it, it
   would be out of sight); the big key says SET FREQUENCY and the display
   says what to do. */
:root[data-skin=arc] .radio > .howto { display: none; }
:root[data-skin=arc] .arc-console :is(.rbanner, .tipcard, .stcard.compact) { margin-bottom: 6px; }

:root[data-skin=arc]:not(.desk) #app[data-tab=radio] { background: #060b10; }

.skinpic.sp-arc {
  background: url(../img/walkies/arc/talk.webp) center 42% / cover no-repeat #07171c;
}
.skinpic.sp-arc > :is(i, b, u) { display: none; }

@media (prefers-reduced-motion: reduce) {
  :root[data-skin=arc] .radio .arc-talk .ptt::before,
  :root[data-skin=arc] .radio .arc-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 (its amber lights and the wave at rest; the cyan glass stays): 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=arc] :is(.arc-console > :is(.head, .arc-keys, .arc-talk, .arc-dials), .arc-display .lcdart)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--tint-vivid);
  -webkit-mask: var(--ac-lights) center / 100% 100% no-repeat;
  mask: var(--ac-lights) center / 100% 100% no-repeat;
  mix-blend-mode: color;
}
:root[data-tint][data-skin=arc] .arc-console > .head { --ac-lights: url(../img/walkies/arc/head-lights.webp); }
:root[data-tint][data-skin=arc] .arc-console > .arc-keys { --ac-lights: url(../img/walkies/arc/keys-lights.webp); }
:root[data-tint][data-skin=arc] .arc-console > .arc-talk { --ac-lights: url(../img/walkies/arc/talk-lights.webp); }
:root[data-tint][data-skin=arc] .arc-console > .arc-dials { --ac-lights: url(../img/walkies/arc/dials-lights.webp); }
:root[data-tint][data-skin=arc] .arc-display .lcdart { --ac-lights: url(../img/walkies/arc/idle-wave-lights.webp); }
:root[data-tint][data-skin=arc] .radio[data-air]:not([data-air=""]) .arc-display .lcdart::after { visibility: hidden; }
