/* Walkie looks (web/js/skin.js): the picker in the profile and the walkie's
   «⋯», and the hardware parts some looks share (web/js/knobs.js): a knob
   that turns, the deck of SQL, the signal meter and VOL; a look places and
   dresses them in its own file (Forge, Arc). */

/* ---------------------------------------------------------- the picker */
.skintiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.skintile { display: flex; flex-direction: column; gap: 3px; padding: 6px 6px 8px; border-radius: 14px; text-align: left;
  background: var(--surface-2); border: 1px solid var(--line); transition: transform .1s, border-color .15s; }
.skintile:active { transform: var(--press); }
.skintile.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 16px -8px var(--accent-glow); }
.skinpic { position: relative; display: block; height: 64px; border-radius: 9px; overflow: hidden; margin-bottom: 4px; }
.skinpic i { position: absolute; left: 10px; right: 10px; top: 8px; height: 16px; border-radius: 4px; }
.skinpic b { position: absolute; left: 50%; bottom: -14px; width: 50px; height: 50px; margin-left: -25px; border-radius: 50%; }
.skinpic.sp-aura { background: #110e20; box-shadow: inset 0 0 0 1px #514268; }
.skinpic.sp-aura i {
  height: 28px;
  border-radius: 5px;
  border: 1px solid #795da3;
  background: linear-gradient(103deg, #ae7de65c, #69bbff50) center 70% / 94% 1px no-repeat,
    linear-gradient(145deg, #32244a, #151b36);
}
.skinpic.sp-aura b {
  left: 10px; right: 10px; bottom: 6px; width: auto; height: 12px; margin: 0; border-radius: 4px;
  background: linear-gradient(113deg, #e1ccff, #c2adfb 48%, #a2bcf7);
}
.skinname { font-size: 13.5px; font-weight: 600; color: var(--text); padding: 0 2px; }
.skinwhat { font-size: 11.5px; line-height: 1.3; color: var(--text-3); padding: 0 2px; }

/* ---------------------------------------------------------- knobs and the meter (knobs.js) */
.kdeck { display: none; }
.knobwrap { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.knob { position: relative; width: 62px; height: 62px; border-radius: 50%; cursor: grab; }
.knob:focus-visible { outline: 2px solid #ffad3d; outline-offset: 6px; }
/* The scale of dots around the knob. */
.knob::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from -136deg, rgba(235, 210, 160, .7) 0 2deg, transparent 2deg 27deg);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 68%, #000 76%, transparent 78%); mask: radial-gradient(circle, transparent 66%, #000 68%, #000 76%, transparent 78%); }
/* The knurled skirt and the cap that turns. */
.knob-ring { position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, transparent 60%, rgba(0, 0, 0, .55) 100%), repeating-conic-gradient(#3a352f 0 5deg, #0d0b09 5deg 10deg);
  box-shadow: 0 5px 9px rgba(0, 0, 0, .85), 0 0 0 1px #050403, inset 0 1px 1px rgba(255, 240, 210, .25); }
.knob-top { position: absolute; inset: 9px; border-radius: 50%; transition: transform .12s var(--ease);
  background: radial-gradient(circle at 42% 36%, rgba(255, 255, 255, .35), transparent 55%),
    conic-gradient(from 20deg, #6e675f, #c9c2b6, #5f5850, #b9b2a5, #6e675f, #d1cabe, #6e675f);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45), inset 0 -3px 5px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .7); }
.knob.turning { cursor: grabbing; }
.knob.turning .knob-top { transition: none; }
.knob-mark { position: absolute; left: 50%; top: 3px; width: 3px; height: 14px; margin-left: -1.5px; border-radius: 2px; background: #fbf6ea; box-shadow: 0 0 2px rgba(0, 0, 0, .7); }
.knob-name { font: 700 13px var(--font); letter-spacing: .1em; color: #dccca9; text-shadow: 0 1px 0 #000; }
.kmeter { position: relative; width: min(196px, 48vw); padding: 6px; border-radius: 12px; border: 1px solid #3a2d1d;
  background: linear-gradient(#0b0907, #1c1712); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .95), 0 1px 0 rgba(255, 222, 165, .14); }
.km-face { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; border-radius: 7px; clip-path: inset(0 round 7px);
  filter: brightness(.9) saturate(.95); transition: filter .4s; }
.kmeter.lit .km-face { filter: brightness(1.04) saturate(1.05); }
.kmeter::after { content: ""; position: absolute; inset: 6px; border-radius: 7px; pointer-events: none; box-shadow: inset 0 0 14px rgba(60, 30, 5, .65), inset 0 0 0 1px rgba(0, 0, 0, .5); }
.km-cap { font: 800 14px var(--font); letter-spacing: .16em; fill: #4b2b0b; text-anchor: middle; }
.km-cap.says { font-size: 11.5px; letter-spacing: .06em; fill: #2b1504; }
.km-needle-l { stroke: #140b04; stroke-width: 2.2; stroke-linecap: round; }
