/* The plates follow the seams of the original olive-metal chassis. */
:root[data-skin=field] {
  --k-bg: #050403;
  --k-scr: #110e09;
  --k-text: #f0dfc4;
  --k-dim: #b5ad88;
  --k-digits: #d9e46e;
  --k-acc: #dce978;
  --k-hi: #fff1a5;
  --k-rx: #d8f48d;
  --k-glow: #bbc65070;
  --k-soft: #bbc65026;
  --k-line: #615638;
}
:root[data-skin=field] .radio {
  container-type: size;
  --field-v: clamp(.84cqw, .4596cqh, 1cqw);
  overflow: hidden auto;
  scrollbar-width: none;
  color: var(--k-text);
}
:root[data-skin=field] .radio .head {
  position: relative;
  display: block;
  flex: none;
  height: max(calc(58.07 * var(--field-v)), calc(env(safe-area-inset-top, 0px) + 146px));
  padding: 0;
  background: url(../img/walkies/field/head.webp) center / 100% 100% no-repeat;
}
:root[data-skin=field] .radio .head > :is(.iconbtn, .chanbtn) {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 15%;
  height: 19%;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--k-text);
  background: none;
  box-shadow: none;
  translate: -50% -50%;
}
:root[data-skin=field] .radio .head > .chanbtn { left: 50%; top: 50.2%; width: 43%; }
:root[data-skin=field] .radio .head .rlogo { display: none; }
/* «My channels» and the walkie's «⋯» (its settings), on the speaker grilles
   left and right, as in every look: dark plates with their glyphs. */
:root[data-skin=field] .radio .head > .iconbtn {
  width: 44px;
  height: 44px;
  border: 1px solid #c99b5259;
  border-radius: 12px;
  color: #f2d9a2;
  background: linear-gradient(#2a2418e6, #15120ce6);
  box-shadow: inset 0 1px #ffe2a62e, 0 2px 6px #0009;
}
:root[data-skin=field] .radio .head > .iconbtn:first-child { left: 15.25%; top: 49.8%; }
:root[data-skin=field] .radio .head > .iconbtn:last-child { left: 84.75%; top: 49.8%; }
:root[data-skin=field] .radio .head > button:active { background: #ffc15c24; }
:root[data-skin=field] .field-meter {
  position: absolute;
  inset: 66% 25.8% 3% 30%;
  overflow: hidden;
  border-radius: 8px;
  pointer-events: none;
}
:root[data-skin=field] .field-meter-face { display: block; width: 100%; height: 100%; }
:root[data-skin=field] .field-needle {
  stroke: #24140b;
  stroke-width: 2.4;
  stroke-linecap: round;
  filter: drop-shadow(1px 0 #ffe3a7) drop-shadow(0 0 1px #5d3215);
}

:root[data-skin=field] .field-preset-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.15%;
  flex: none;
  height: max(50px, calc(16.005 * var(--field-v)));
  padding: 0 6.1% 3.9cqw 6.4%;
  background: url(../img/walkies/field/presets.webp) center / 100% 100% no-repeat;
}
:root[data-skin=field] .field-preset {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 0 5px;
  border-radius: 9px;
  color: #d7c4a8;
}
:root[data-skin=field] .field-preset-screen {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:root[data-skin=field] .field-preset-text {
  font: 600 clamp(13px, 4.25cqw, 21px)/1 var(--k-digit-font);
  font-variant-numeric: tabular-nums;
}
:root[data-skin=field] .field-preset[aria-pressed=true] {
  color: #ffde89;
  background: radial-gradient(ellipse at 50% 77%, #f0962d45, transparent 65%);
  text-shadow: 0 0 8px #ffae5070;
}
:root[data-skin=field] .field-preset[aria-pressed=true]::after {
  content: "";
  position: absolute;
  inset: auto 22% 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff9e32, #fff0ae, #ff9e32, transparent);
  box-shadow: 0 0 8px 1px #f59e46;
}

:root[data-skin=field] .field-display {
  position: relative;
  display: grid;
  align-content: start;
  flex: none;
  min-height: calc(45.18 * var(--field-v));
  padding: calc(4.8 * var(--field-v)) 10.6% calc(3.1 * var(--field-v));
  color: #e3e69c;
  background: url(../img/walkies/field/display.webp) center / 100% 100% no-repeat;
}
:root[data-skin=field] .field-display-top {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 25px;
  gap: 7px;
}
:root[data-skin=field] .field-display-top > .icon { color: var(--k-acc); }
:root[data-skin=field] .field-display-top > .icon svg { width: clamp(18px, 5.3cqw, 28px); height: auto; }
:root[data-skin=field] .field-channel {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 clamp(10px, 2.95cqw, 15px)/1.2 var(--font);
  letter-spacing: .035em;
}
:root[data-skin=field] .field-count-button {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 30px;
  min-height: 29px;
  font-size: clamp(10px, 2.7cqw, 14px);
}
:root[data-skin=field] .field-display .lcdright { gap: 4px; }
:root[data-skin=field] .field-display .lcdsig { height: 17px; gap: 2px; }
:root[data-skin=field] .field-display .lcdsig i { width: 3px; }
:root[data-skin=field] .field-display .lcdsig i:nth-child(4) { height: 17px !important; }
:root[data-skin=field] .field-display .lcdsig i.on { background: #d9e67d; box-shadow: 0 0 5px #b6c95675; }
:root[data-skin=field] .field-display .lamp { padding-inline: 3px; font-size: 9px; }
:root[data-skin=field] .field-display .lcdbox {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
:root[data-skin=field] .field-display .lcd { padding: 0; }
:root[data-skin=field] .field-readout {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 1.8cqw;
  min-width: 0;
  padding: 1.3cqw 0 .4cqw;
}
:root[data-skin=field] .field-readout .lcdfreq {
  width: 64%;
  min-width: 0;
  height: auto;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--k-digits);
  font: 600 clamp(20px, 6.8cqw, 35px)/1.08 var(--k-digit-font);
  text-align: center;
  text-shadow: 0 0 9px #b7cd686e;
}
:root[data-skin=field] .field-segments { display: block; line-height: 0; }
:root[data-skin=field] .field-segments svg { width: 100%; height: auto; filter: drop-shadow(0 0 4px #b9cf4a90); }
:root[data-skin=field] .field-unit {
  flex: none;
  padding-bottom: .35cqw;
  font: 500 clamp(11px, 3.4cqw, 16px)/1 var(--font);
}
:root[data-skin=field] .field-display .lcdbot { min-height: 0; margin: 0; padding: 0; gap: 3px; }
:root[data-skin=field] .field-display .lcdbot:has(> .lcdhere:only-child) { display: none; }
:root[data-skin=field] .field-display .lcdart {
  position: relative;
  inset: auto;
  display: block;
  height: max(35px, calc(12.1 * var(--field-v)));
  margin: 0 -1%;
  overflow: hidden;
  border-bottom: 1px solid #b3b26236;
  background: repeating-linear-gradient(90deg, #9fa6511c 0 1px, transparent 1px 10px),
    repeating-linear-gradient(0deg, #9fa65115 0 1px, transparent 1px 9px);
}
:root[data-skin=field] .field-display .lwave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #cfdf5f;
  --wave-style: field;
  --wave-bars: 105;
  --wave-fill: .58;
  --wave-idle: .7;
  filter: drop-shadow(0 0 4px #b6cd4e);
  mask-image: linear-gradient(#000, #000 68%, transparent);
}
:root[data-skin=field] .radio[data-air=tx] .field-display .lwave { color: #f6ed95; }
:root[data-skin=field] .radio[data-air=rx] .field-display .lwave { color: #d9f489; }
:root[data-skin=field] .field-display .airline {
  height: auto;
  min-height: max(25px, calc(6.55 * var(--field-v)));
  flex-wrap: wrap;
  gap: 3px 6px;
  padding: 0 1%;
}
:root[data-skin=field] .field-display .airline::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  mask: none;
  -webkit-mask: none;
  background: #a1d948;
  box-shadow: 0 0 7px #a1da5375;
}
:root[data-skin=field] .field-display .airline:has(.tx)::before { background: #e4ff66; }
:root[data-skin=field] .field-display .airline:has(:is(.busy, .err))::before { background: #ca8654; }
:root[data-skin=field] .field-display .airtext { display: flex; align-items: center; gap: 5px; }
:root[data-skin=field] .field-display .airtext :is(.wstatus, .wsub) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #eeedb6;
  font: 500 clamp(9px, 2.55cqw, 13px)/1.2 var(--font);
  letter-spacing: 0;
  text-transform: none;
}
:root[data-skin=field] .field-display .airtext .wsub { color: #bfbd86; margin: 0; }
:root[data-skin=field] .field-display .wsub:empty { display: none; }
:root[data-skin=field] .field-display .airline .replay { height: 25px; padding-inline: 5px; color: #eeeab0; }
:root[data-skin=field] .field-display .airline .unavail { max-width: 100%; flex-wrap: wrap; }

:root[data-skin=field] .field-controls {
  position: relative;
  flex: none;
  height: calc(40.94 * var(--field-v));
  background: url(../img/walkies/field/controls.webp) center / 100% 100% no-repeat;
}
:root[data-skin=field] :is(.field-power, .field-dial) {
  position: absolute;
  top: 55%;
  translate: -50% -50%;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
}
:root[data-skin=field] .field-power {
  left: 13.45%;
  top: 56%;
  display: grid;
  place-items: center;
  width: 11.2%;
  height: 37%;
  border: 1px solid #130d08;
  border-radius: clamp(7px, 2cqw, 10px);
  touch-action: manipulation;
  color: #cbb495;
  background:
    radial-gradient(ellipse at 35% 0%, #69554377, transparent 74%),
    linear-gradient(155deg, #43382b 0%, #282017 57%, #1b1510);
  box-shadow: inset 0 1px 1px #ae916766, inset 0 -2px #110c09,
    0 2px 4px #000c, 0 0 0 1px #71593b77;
}
:root[data-skin=field] .field-power:active {
  box-shadow: inset 0 2px 4px #000c, inset 0 -1px #110c09,
    0 0 0 1px #71593b77;
}
:root[data-skin=field] .field-power:focus-visible {
  outline: 2px solid var(--k-hi);
  outline-offset: 2px;
}
:root[data-skin=field] .field-power-label {
  font: 600 clamp(10px, 2.9cqw, 15px)/1 var(--mono);
  letter-spacing: .04em;
}
:root[data-skin=field] .field-power[aria-checked=true] .field-power-label {
  color: #f2ffa4;
  text-shadow: 0 0 5px #c5d95a, 0 0 9px #8da7398c;
}
:root[data-skin=field] .field-power[aria-checked=false] .field-power-label {
  color: #f3d0a1;
  text-shadow: 0 0 5px #d88c4c73;
}
:root[data-skin=field] .radio:has(.field-power[aria-checked=false]) .field-display .airline::before { background: #9c7951; box-shadow: none; }
:root[data-skin=field] .field-dial { left: 81.73%; top: 54.67%; width: 20%; height: 51%; border-radius: 50%; }
:root[data-skin=field] .field-dial-scale {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
:root[data-skin=field] .field-dial-scale svg { width: 100%; height: 100%; display: block; }
:root[data-skin=field] .field-dial-scale text {
  fill: #dac7a9;
  font: 600 17px var(--mono);
  text-anchor: middle;
  dominant-baseline: central;
  paint-order: stroke;
  stroke: #281f14;
  stroke-width: 1.6px;
}
:root[data-skin=field] .field-dial-scale line { stroke: #b6a181; stroke-width: 1.5px; }
:root[data-skin=field] .field-dial-scale text.active { fill: #ffe4ac; filter: drop-shadow(0 0 2px #d68c4d); }
:root[data-skin=field] .field-dial-needle {
  transform: rotate(var(--field-angle, -135deg));
  fill: #ad895d;
  stroke: #28190c;
  stroke-width: 1px;
  filter: drop-shadow(1px 2px 2px #080604b0);
  transition: transform .18s;
}
:root[data-skin=field] .field-dial-needle path:last-child { stroke: #efce9c; }
@media (prefers-reduced-motion: reduce) {
  :root[data-skin=field] .field-dial-needle { transition: none; }
}

:root[data-skin=field] .radio .stage {
  position: relative;
  display: block;
  flex: none;
  height: max(64px, calc(26.06 * var(--field-v)));
  min-height: 0;
  padding: 0;
  background: url(../img/walkies/field/talk.webp) center / 100% 100% no-repeat;
}
:root[data-skin=field] .radio .ptt-wrap {
  position: absolute;
  inset: 10% 10.4% 20%;
  width: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  container-type: normal;
}
:root[data-skin=field] .radio .ptt {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 44px;
  max-width: none;
  max-height: none;
  padding: 0 7%;
  border: 0;
  border-radius: 14px;
  background: none;
  box-shadow: none;
  transform: none;
  color: #cbb293;
  transition: background-color .16s, box-shadow .16s;
}
:root[data-skin=field] .radio .ptt::before,
:root[data-skin=field] .radio .ptt::after,
:root[data-skin=field] .radio .ptt > :is(.icon, .pttface, .lsub) { display: none; }
:root[data-skin=field] .radio .ptt .lbl {
  max-width: 100%;
  color: inherit;
  font: 600 clamp(13px, 5cqw, 25px)/1.08 var(--mono);
  letter-spacing: .06em;
  text-align: center;
  white-space: normal;
  text-shadow: 0 1px #171009;
}
:root[data-skin=field] .radio .ptt[data-held] { background: #0b08065c; }
:root[data-skin=field] .radio .ptt[data-state=transmitting] {
  color: #fff1bb;
  background: radial-gradient(ellipse at 50% 50%, #ffaa3744, transparent 75%);
  box-shadow: inset 0 0 14px #ffc15e82;
}
:root[data-skin=field] .radio .ptt:focus-visible { outline: 2px solid #ffe29a; outline-offset: -4px; }
:root[data-skin=field] .radio .stage .hint-line {
  position: absolute;
  inset: auto 8% 2%;
  min-height: 0;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.1;
}
:root[data-skin=field] .radio .stage .sfxbar {
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 25%;
  width: 43%;
  overflow: auto hidden;
  justify-content: start;
  border-radius: 8px;
  background: #100b07da;
}

:root[data-skin=field] .field-menu {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  flex: none;
  height: max(100px, calc(31.31 * var(--field-v)));
  padding: 1.5cqw 6.2% calc(13 * var(--field-v)) 7.3%;
  background: url(../img/walkies/field/menu.webp) center / 100% 100% no-repeat;
}
:root[data-skin=field] .field-menu .action {
  position: relative;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: none;
  min-height: 44px;
  gap: 4px;
  padding: 0 2px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  background: none;
  color: var(--k-text);
}
:root[data-skin=field] .field-menu .action.on { color: #ffe19b; }
:root[data-skin=field] .field-menu .action > .iconbtn { color: inherit; }
:root[data-skin=field] .field-menu .action svg { width: clamp(18px, 5.65cqw, 29px); height: auto; }
:root[data-skin=field] .field-menu .actlbl { font-size: clamp(9px, 2.7cqw, 14px); }
:root[data-skin=field] .field-menu .action:disabled { opacity: .42; }

.skinpic.sp-field {
  background: #282218 url(../img/walkies/field/controls.webp) center 40% / cover no-repeat;
  box-shadow: inset 0 0 0 1px #85724c;
}
.skinpic.sp-field > :is(i, b) { display: none; }

/* The empty walkie: the chassis has no room for the help card (it would be a
   sliver under the display); the big key says SET FREQUENCY and the display
   says what to do. */
:root[data-skin=field] .radio > .howto { display: 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=field] :is(.radio .head, .field-menu)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--tint-vivid);
  -webkit-mask: var(--fd-lights) center / 100% 100% no-repeat;
  mask: var(--fd-lights) center / 100% 100% no-repeat;
  mix-blend-mode: color;
}
:root[data-tint][data-skin=field] .radio .head { --fd-lights: url(../img/walkies/field/head-lights.webp); }
:root[data-tint][data-skin=field] .field-menu { --fd-lights: url(../img/walkies/field/menu-lights.webp); }
