/* Amber's metal faceplate, split display and recessed talk key. */
:root[data-skin=amber] {
  --k-bg: #413d38;
  --k-acc: #ffb32b;
  --k-hi: #ffd685;
  --k-rx: #ffe2a7;
  --k-glow: #ffac2566;
  --k-soft: #ffb32b24;
  --k-text: #f0eeeb;
  --k-dim: #c6c1bb;
  --k-digits: #f9f8f7;
  --k-line: #837c70;
  --am-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.81' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.22' d='M0 0h96v96H0z'/%3E%3C/svg%3E");
  --am-metal: var(--am-grain), linear-gradient(138deg, #827b71, #6a6359 52%, #49443d);
  --am-cap: var(--am-grain), linear-gradient(150deg, #817a6e, #514b42);
}

:root[data-skin=amber] .radio {
  container-type: inline-size;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  background: var(--am-metal);
  color: var(--k-text);
  --am-gutter: clamp(6px, 1.9cqw, 10px);
}
:root[data-skin=amber] .radio::-webkit-scrollbar { display: none; }

:root[data-skin=amber] .radio .head {
  min-height: calc(max(8px, env(safe-area-inset-top)) + 45px);
  padding: max(8px, env(safe-area-inset-top)) 4.8% 10px;
}
:root[data-skin=amber] .radio .head > .iconbtn {
  width: clamp(43px, 11.6cqw, 53px);
  height: clamp(36px, 8.8cqw, 40px);
  border: 1px solid #28241e;
  border-radius: 9px;
  color: #e8e1d6;
  background: var(--am-cap);
  box-shadow: inset 0 1px 1px #f2e8d6b8, 0 1px 2px #211d19a8;
}
:root[data-skin=amber] .radio .head > .iconbtn svg { width: 20px; height: 20px; }
:root[data-skin=amber] .radio .head .chanbtn { min-height: 40px; }
:root[data-skin=amber] .radio .rlogo { color: #1e1b18; filter: none; }
:root[data-skin=amber] .radio .rlogo :is(.rlwave, small) { display: none; }
:root[data-skin=amber] .radio .rlword b {
  font: 750 clamp(18px, 5.5cqw, 24px)/1 var(--font);
  letter-spacing: .26em;
  padding-inline-start: .26em;
  text-shadow: 0 1px 0 #d8cdb9a6;
}

:root[data-skin=amber] .amber-display {
  display: grid;
  grid-template-columns: minmax(0, 26%) minmax(0, 1fr);
  flex: 1.1 0 auto;
  min-height: clamp(236px, 77cqw, 354px);
  padding: 4px;
  border: 1px solid #26221d;
  border-radius: clamp(17px, 5.3cqw, 25px);
  background: var(--am-metal);
  box-shadow: inset 0 1px 0 #ede3cfbe, 0 1px 0 #c9bfaca8;
}
:root[data-skin=amber] .amber-rail {
  display: grid;
  grid-template-rows: minmax(44px, 1fr) minmax(132px, 3fr) minmax(44px, 1fr);
  min-width: 0;
  border-radius: 17px 0 0 17px;
  box-shadow: inset -1px 0 #29251f8a;
}
:root[data-skin=amber] .amber-preset-panel {
  display: grid;
  grid-template-rows: repeat(3, minmax(44px, 1fr));
  min-width: 0;
  border: 1px solid #2c2822;
  border-radius: 6px 0 0 6px;
  overflow: hidden;
}
:root[data-skin=amber] :is(.amber-page-arrow, .amber-preset) {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
}
:root[data-skin=amber] .amber-page-arrow {
  color: #201c18;
  filter: drop-shadow(0 1px 0 #e0d5c0a0);
}
:root[data-skin=amber] .amber-page-arrow .icon { transform: rotate(90deg); }
:root[data-skin=amber] .amber-page-arrow.prev .icon { transform: rotate(-90deg); }
:root[data-skin=amber] .amber-page-arrow[aria-disabled=true] { opacity: .65; cursor: default; }
:root[data-skin=amber] .amber-preset {
  padding-inline: 9px 3px;
  color: var(--k-dim);
  background: var(--am-cap);
  box-shadow: inset 0 1px 0 #ded3be9c;
}
:root[data-skin=amber] .amber-preset + .amber-preset { border-top: 1px solid #27231e; }
:root[data-skin=amber] .amber-preset.on { color: #fff; background: var(--am-grain), linear-gradient(145deg, #70685e, #47423a); }
:root[data-skin=amber] .amber-preset.on::before {
  content: "";
  position: absolute;
  left: 6%;
  top: 27%;
  bottom: 27%;
  width: 3px;
  border-radius: 3px;
  background: var(--k-acc);
  box-shadow: 0 0 6px var(--k-glow);
}
:root[data-skin=amber] .amber-preset:disabled { opacity: .55; }
:root[data-skin=amber] .amber-preset-screen { width: 100%; min-width: 0; }
:root[data-skin=amber] .amber-preset-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 clamp(12px, 4.15cqw, 19px)/1.15 var(--font);
  font-variant-numeric: tabular-nums;
}
:root[data-skin=amber] .amber-preset-text.add { white-space: normal; font-size: clamp(10px, 3.05cqw, 13px); }

:root[data-skin=amber] .amber-glass {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(8px, 3.1cqw, 15px) clamp(10px, 4.05cqw, 19px) 9px;
  border: 2px solid #090909;
  border-radius: clamp(15px, 4.75cqw, 22px);
  background: radial-gradient(ellipse at 9% 0, #302e2b, #1d1c1b 47%, #151514 100%);
  box-shadow: inset 0 1px 1px #eeece333, 0 0 0 1px #968e80, 0 2px 2px #0b0a09b8;
}
:root[data-skin=amber] .amber-glass .airline {
  min-height: 36px;
  height: auto;
  gap: 7px;
  flex-wrap: wrap;
}
:root[data-skin=amber] .amber-glass .airline::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  mask: none;
  -webkit-mask: none;
  background: var(--k-acc);
  box-shadow: 0 0 8px var(--k-glow);
}
:root[data-skin=amber] .amber-glass .airline:has(.err)::before { background: #ff9a85; box-shadow: none; }
:root[data-skin=amber] .amber-glass .airline .airtext { white-space: normal; }
:root[data-skin=amber] .amber-glass .airline .wstatus {
  font: 500 clamp(11px, 3.55cqw, 16px)/1.22 var(--font);
  letter-spacing: 0;
  text-transform: none;
  color: var(--k-dim);
}
:root[data-skin=amber] .amber-glass .airline :is(.tx, .rx) .wstatus { color: var(--k-hi); }
:root[data-skin=amber] .amber-glass .airline .btn.replay {
  height: 36px;
  padding: 0;
  color: var(--k-dim);
  background: none;
  border: 0;
  box-shadow: none;
  font-size: clamp(11px, 3.4cqw, 15px);
}
:root[data-skin=amber] .amber-glass .airline .unavail:not(:empty) { width: 100%; max-width: none; flex-wrap: wrap; }

:root[data-skin=amber] .amber-glass .lcdbox {
  flex: 1 0 auto;
  justify-content: space-evenly;
  gap: 4px;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: none;
  border: 0;
  box-shadow: none;
}
:root[data-skin=amber] .amber-readout { display: grid; justify-items: center; gap: 2px; text-align: center; }
:root[data-skin=amber] .amber-readout .lcdfreq {
  width: 100%;
  height: auto;
  margin: 0;
  color: var(--k-digits);
  font: 500 clamp(36px, 14.8cqw, 67px)/1.02 var(--font);
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
}
:root[data-skin=amber] .amber-readout .lcdfreq.word { font-size: clamp(21px, 8cqw, 34px); }
:root[data-skin=amber] .amber-unit {
  color: var(--k-dim);
  font-size: clamp(12px, 3.95cqw, 18px);
}
:root[data-skin=amber] .amber-glass .lcdart {
  display: block;
  height: clamp(36px, 11.2cqw, 52px);
  margin: 0;
  padding: 0 9% 3px;
}
:root[data-skin=amber] .amber-glass .lcdart::before,
:root[data-skin=amber] .amber-glass .lcdart::after {
  content: "";
  position: absolute;
  inset-block: 1px 0;
  width: 5px;
  background: repeating-linear-gradient(0deg, #aea89e75 0 1px, transparent 1px 20%);
}
:root[data-skin=amber] .amber-glass .lcdart::before { left: 5px; }
:root[data-skin=amber] .amber-glass .lcdart::after { right: 5px; }
:root[data-skin=amber] .amber-glass .lwave {
  --wave-style: envelope;
  --wave-bars: 36;
  --wave-fill: .32;
  --wave-idle: .8;
  color: #ffad20;
  filter: drop-shadow(0 0 2px #ffb3268c);
}
:root[data-skin=amber] .amber-glass .lcdbot {
  order: 5;
  height: auto;
  min-height: 0;
  padding: 0;
  gap: 6px;
  flex-wrap: wrap;
}
:root[data-skin=amber] .amber-glass .lcdbox:not(.none) .lcdhere { display: none; }
:root[data-skin=amber] .amber-glass .lcdbot:not(:has(> :not(.lcdhere))) { display: none; }
:root[data-skin=amber] .radio .amber-glass .people {
  height: auto;
  min-height: 43px;
  margin: 5px 0 0;
  padding: 4px 0 0;
  gap: 6px;
  background: none;
  border: 0;
  border-top: 1px solid #a39d9160;
  border-radius: 0;
  box-shadow: none;
}
:root[data-skin=amber] .amber-glass .people .pstrip {
  height: auto;
  min-height: 36px;
  color: var(--k-dim);
  font-size: clamp(11px, 3.6cqw, 16px);
  line-height: 1.18;
}
:root[data-skin=amber] .amber-glass .people .pstrip > .icon { flex: none; color: inherit; }
:root[data-skin=amber] .amber-glass .people .plabel { white-space: normal; overflow-wrap: anywhere; }
:root[data-skin=amber] .amber-glass .people .pcall {
  height: 32px;
  padding-inline: 12px;
  border: 1px solid #69645c;
  border-radius: 9px;
  background: #34312d;
  color: var(--k-text);
  box-shadow: inset 0 1px 0 #ffffff19;
}
:root[data-skin=amber] .amber-glass .pcall > .icon { display: none; }
:root[data-skin=amber] .amber-mode { color: #b4aea3; font: 500 8px/1.2 var(--font); letter-spacing: .05em; }
:root[data-skin=amber] .amber-mode .lcdmode { color: inherit; white-space: normal; }

/* The lens is fixed to the well. Only the concave face and engraving move. */
:root[data-skin=amber] .radio .stage {
  flex: 1 0 auto;
  justify-content: stretch;
  min-height: clamp(134px, 45cqw, 223px);
  padding: clamp(9px, 3.7cqw, 17px) var(--am-gutter) clamp(10px, 3.45cqw, 16px);
}
:root[data-skin=amber] .radio .stage .ptt-wrap {
  --am-lamp: #ffad21;
  display: grid;
  place-items: stretch;
  flex: 1 0 auto;
  min-height: 116px;
  max-height: none;
  height: auto;
  padding: 5px;
  border: 1px solid #d5cbbb;
  border-top-color: #898174;
  border-radius: clamp(22px, 9cqw, 42px);
  background: linear-gradient(150deg, #262422, #10100f 62%, #0b0b0a);
  box-shadow: inset 0 1px 2px #000d, 0 1px 0 #d9d0b787;
  container-type: normal;
}
:root[data-skin=amber] .radio .ptt-wrap:has(.ptt[data-state=transmitting]) { --am-lamp: #ffce55; }
:root[data-skin=amber] .radio .ptt-wrap:has(.ptt[data-state=receiving]) { --am-lamp: #ffe5a8; }
:root[data-skin=amber] .radio .ptt-wrap:has(.ptt:is([data-state=busy], [data-state=calling], [data-state=turn])) { --am-lamp: #ff925b; }
:root[data-skin=amber] .radio .stage .ptt[data-state] {
  --am-travel: 0px;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  gap: clamp(4px, 2.35cqw, 11px);
  padding: 11px 9px 4px;
  border: 0;
  border-radius: clamp(18px, 8cqw, 37px);
  background: transparent;
  box-shadow: none;
  animation: none;
  transform: none;
  color: #c4c1bd;
}
:root[data-skin=amber] .radio .stage .ptt:is([data-held], [data-state=transmitting], [data-state=requesting]) { --am-travel: 2px; }
:root[data-skin=amber] .radio .stage .ptt[data-state]::before { content: none; }
:root[data-skin=amber] .radio .stage .ptt[data-state]::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px 0 3px;
  border: 1px solid #171715;
  border-radius: inherit;
  pointer-events: none;
  background: var(--am-grain), radial-gradient(ellipse at 50% 96%, #55514b 0%, #343230 40%, #232221 75%);
  box-shadow: inset 0 2px 2px #b7b3a57d, inset 0 10px 15px #292824,
    inset 0 -10px 18px #0a0a09f0, inset 3px 0 7px #56534b58, 0 3px 1px #090909;
}
:root[data-skin=amber] .radio .stage .ptt[data-state] :is(.lbl, .lsub),
:root[data-skin=amber] .radio .stage .ptt[data-state] > :is(.icon, .pttface),
:root[data-skin=amber] .radio .stage .ptt[data-state]::after {
  transform: translateY(var(--am-travel));
  transition: transform var(--am-duration, .1s) var(--ease);
}
:root[data-skin=amber] .radio .stage .ptt :is(.lbl, .lsub) {
  max-width: 90%;
  color: #d1cfcb;
  font: 650 clamp(11px, 3.65cqw, 16px)/1.16 var(--font);
  letter-spacing: .13em;
  text-shadow: 0 -1px 0 #10100f;
  overflow-wrap: anywhere;
}
:root[data-skin=amber] .radio .stage .ptt .lsub { font-size: 10px; }
:root[data-skin=amber] .radio .stage .ptt .icon { display: grid; color: #b9b7b2; filter: drop-shadow(0 -1px 0 #0c0c0b); animation: none; }
:root[data-skin=amber] .radio .stage .ptt .icon svg { width: clamp(28px, 10cqw, 45px); height: auto; stroke-width: 1.65; }
:root[data-skin=amber] .radio .stage .ptt .pttface { width: 44px !important; height: 44px !important; box-shadow: none; animation: none; }
:root[data-skin=amber] .radio .stage .ptt:focus-visible { outline-offset: -3px; }
:root[data-skin=amber] .amber-light-pipe {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 0;
  width: 36%;
  height: 16px;
  transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
  border-radius: 0 0 19px 19px;
  background: var(--am-grain), linear-gradient(175deg, #716a5f, #443e35);
  box-shadow: inset 0 1px 0 #b3aa99bd, inset 0 -1px 0 #161512;
  pointer-events: none;
}
:root[data-skin=amber] .amber-light-pipe::after {
  content: "";
  position: absolute;
  inset: 3px 36% auto;
  height: 7px;
  border: 1px solid #725223;
  border-radius: 8px;
  background: linear-gradient(#fff0a980, transparent 75%), var(--am-lamp);
  box-shadow: 0 0 6px #ffb72565, inset 0 1px 1px #84551d85;
  transition: background-color var(--am-duration, .14s), box-shadow var(--am-duration, .14s);
}
:root[data-skin=amber] .radio[data-air=tx] .amber-light-pipe::after { box-shadow: 0 0 9px 2px #ffbf42be; }
:root[data-skin=amber] .ptt-wrap:has(.ptt:is(:disabled, [data-state=none])) .amber-light-pipe::after { opacity: .26; }
:root[data-skin=amber] .radio .stage .hint-line { width: 100%; color: var(--k-text); white-space: normal; }

:root[data-skin=amber] .radio .actions {
  margin: 0 var(--am-gutter) clamp(9px, 3.35cqw, 15px);
  gap: 0;
  border: 1px solid #24211d;
  border-radius: 11px;
  background: var(--am-cap);
  box-shadow: inset 0 1px 1px #f1e7d68a, 0 1px 0 #ad9f87a8;
}
:root[data-skin=amber] .radio .action {
  height: clamp(48px, 17.1cqw, 76px);
  gap: 4px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--k-text);
  font-size: clamp(10px, 2.9cqw, 13px);
}
:root[data-skin=amber] .radio .action + .action { border-inline-start: 1px solid #231f19; box-shadow: inset 1px 0 #d8cdb557; }
:root[data-skin=amber] .radio .action :is(.iconbtn, .iconbtn:hover) { color: inherit; background: none; border: 0; box-shadow: none; }
:root[data-skin=amber] .radio .action .icon svg { width: 21px; height: 21px; }
:root[data-skin=amber] .radio .action.on { color: var(--k-hi); background: #ffb32b12; }
:root[data-skin=amber] .radio .action.off { color: #ffc0ac; }
:root[data-skin=amber] .radio .action .actlbl { white-space: normal; line-height: 1.12; }
:root[data-skin=amber] .radio :is(.action, .amber-preset, .amber-page-arrow):focus-visible { outline-offset: -3px; }

.skinpic.sp-amber { background: linear-gradient(140deg, #867e71, #4e473e); }
.skinpic.sp-amber i { left: 32%; top: 6px; height: 27px; background: #1a1918; }
.skinpic.sp-amber b { left: 10%; bottom: 6px; width: 80%; height: 16px; margin: 0; border-radius: 6px; background: #242321; }
.skinpic.sp-amber::after {
  content: "";
  position: absolute;
  left: 48%;
  bottom: 19px;
  width: 13%;
  height: 2px;
  border-radius: 2px;
  background: #ffb32b;
}

@media (max-height: 710px) {
  :root[data-skin=amber] .amber-display { min-height: 228px; }
  :root[data-skin=amber] .amber-glass { padding-block: 5px; }
  :root[data-skin=amber] .radio .stage { min-height: 128px; padding-block: 7px; }
  :root[data-skin=amber] .radio .actions { margin-bottom: 8px; }
}
:root[data-skin=amber].eco .ptt-wrap { --am-duration: 0s; }
@media (prefers-reduced-motion: reduce) {
  :root[data-skin=amber] .ptt-wrap { --am-duration: 0s; }
}

/* 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=amber] .radio .ptt:not([data-state=transmitting]) :is(.icon, .lbl) { color: var(--tint-light); }
