/* The image supplies the metal and unlettered key faces. The display, all
   legends, hit targets and state lights belong to the live radio. */
:root[data-skin=titan] {
  --k-bg: #161817;
  --k-scr: #070e0d;
  --k-text: #f1f1ee;
  --k-dim: #b5b9b7;
  --k-digits: #fafbf8;
  --k-acc: #6fe8c4;
  --k-hi: #b8ffe6;
  --k-rx: #95ffe6;
  --k-glow: #5afbd16b;
  --k-soft: #5afbd126;
  --k-line: #434c49;
  --look-base: #242827;
  --look-detail: var(--k-hi);
  --look-header: linear-gradient(140deg, #464b48, #212523 65%, #414743);
  --look-nav-top: #454a47;
  --look-nav-mid: #242826;
  --look-nav-bottom: #181b19;
  --look-key: linear-gradient(160deg, #3a3e3b, #151917);
}
:root[data-skin=titan] .radio {
  container-type: size;
  isolation: isolate;
  overflow: hidden auto;
  scrollbar-width: none;
  color: var(--k-text);
}
:root[data-skin=titan] .radio .head {
  position: relative;
  isolation: isolate;
  display: block;
  flex: none;
  height: max(33.255cqw, calc(env(safe-area-inset-top, 0px) + 71px));
  padding: 0;
}
:root[data-skin=titan] .radio :is(.head, .stage)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  filter: var(--art-mint, none);
}
:root[data-skin=titan] .radio .head::before {
  background: url(../img/walkies/titan/head.webp) center / 100% 100% no-repeat;
}
:root[data-skin=titan] .radio .head > :is(.iconbtn, .chanbtn) {
  position: absolute;
  top: 82%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 15%;
  height: 32%;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: none;
  box-shadow: none;
  color: var(--k-text);
}
:root[data-skin=titan] .radio .head > .iconbtn:first-child { left: 19.2%; }
:root[data-skin=titan] .radio .head > .iconbtn:nth-child(3) { left: 80.5%; }
:root[data-skin=titan] .radio .head > .titan-knob { top: 32%; width: 16%; height: 34%; color: var(--k-acc); }
:root[data-skin=titan] .radio .head > .titan-knob.volume { left: 23%; }
:root[data-skin=titan] .radio .head > .titan-knob.tone { left: 77.2%; }
:root[data-skin=titan] .radio .head > .chanbtn { top: 69%; left: 50%; width: 36%; height: 38%; }
:root[data-skin=titan] .radio .head .rlogo { display: none; }
:root[data-skin=titan] .radio .head .icon svg { width: clamp(19px, 4.8cqw, 27px); height: auto; }

/* A bank of three presets. The six-button rail pages the entire bank. */
.titan-preset-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: none;
  height: 12.808cqw;
  min-height: 40px;
  padding: 0 4.5%;
  background: url(../img/walkies/titan/presets.webp) center / 100% 100% no-repeat;
}
.titan-preset {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0 5% 4%;
  border-radius: 10px;
  color: #aeb0b5;
}
.titan-preset-screen { min-width: 0; max-width: 100%; }
.titan-preset-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 650 clamp(14px, 4.3cqw, 25px)/1 var(--font);
  font-variant-numeric: tabular-nums;
  letter-spacing: .045em;
}
.titan-preset-text.add { font-size: clamp(10px, 2.9cqw, 16px); }
.titan-preset[aria-pressed=true] { color: var(--k-acc); text-shadow: 0 0 12px var(--k-glow); }
.titan-preset[aria-pressed=true]::before {
  content: '';
  position: absolute;
  bottom: 16%;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--k-acc), var(--k-hi), var(--k-acc), transparent);
  box-shadow: 0 0 8px var(--k-glow);
}
.titan-preset[aria-pressed=true]::after {
  content: '';
  position: absolute;
  bottom: 18%;
  left: 50%;
  translate: -50%;
  width: 8px;
  height: 5px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--k-hi);
}

.titan-display {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  align-content: center;
  gap: 0;
  flex: none;
  min-height: max(209px, 57.344cqw);
  padding: 4.2cqw 9.5% 3.5cqw;
}
.titan-display::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url(../img/walkies/titan/display.webp) center / 100% 100% no-repeat;
}
.titan-status { display: flex; align-items: flex-start; gap: 6px; min-height: 11.5cqw; }
:root[data-skin=titan] .titan-status .airline {
  flex: 1;
  min-width: 0;
  min-height: 24px;
  height: auto;
  width: auto;
  padding: 0;
  flex-wrap: wrap;
  align-self: flex-start;
  gap: 3px;
}
:root[data-skin=titan] .titan-status .airline::before { display: none; }
:root[data-skin=titan] .titan-status .airtext {
  position: relative;
  flex: 1;
  min-width: 0;
  padding-left: 3.4cqw;
  padding-top: 1.9cqw;
}
.titan-status .airtext::before {
  content: '';
  position: absolute;
  top: 2.55cqw;
  left: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9eea4d;
  box-shadow: 0 0 9px #97e84e80;
}
.titan-status .airtext:is(.tx, .rx)::before { background: var(--k-acc); box-shadow: 0 0 9px var(--k-glow); }
:root[data-skin=titan] .radio .titan-status :is(.wstatus, .wsub) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--k-text);
  font: 500 clamp(8px, 2.5cqw, 14px)/1.25 var(--font);
  letter-spacing: .06em;
}
:root[data-skin=titan] .radio .titan-status .wsub { margin-top: 3px; color: var(--k-dim); letter-spacing: 0; font-size: 10px; }
.titan-status .wsub:empty { display: none; }
.titan-status .unavail { flex-basis: 100%; flex-wrap: wrap; max-width: 100%; }
.titan-status .lcdright { flex: none; gap: 4px; padding-top: 2cqw; }
:root[data-skin=titan] .titan-status .lcdsig { height: 18px; gap: 2px; }
:root[data-skin=titan] .titan-status .lcdsig i { width: 3px; }
:root[data-skin=titan] .titan-status .lcdsig i:nth-child(4) { height: 18px !important; }
:root[data-skin=titan] .titan-status .lamp { font: 600 9px/16px var(--font); min-height: 18px; padding-inline: 3px; border-width: 1px; border-radius: 5px; }
.titan-media { display: flex; flex: none; gap: 4px; }
:root[data-skin=titan] .radio .titan-media-key {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-width: 44px;
  min-height: 36px;
  padding: 3px 5px;
  border: 1px solid #6379777a;
  border-radius: 7px;
  background: linear-gradient(160deg, #283c3b, #0e1818 85%);
  box-shadow: inset 0 1px #d7fff52b, 0 1px 2px #0009;
  color: #eaf5f1;
  font: 500 clamp(9px, 2.1cqw, 13px)/1.05 var(--font);
}
.titan-media-key .icon svg { width: 17px; height: 17px; }
:root[data-skin=titan] .titan-media-key[aria-pressed=true] { color: var(--k-hi); border-color: var(--k-acc); box-shadow: inset 0 0 12px var(--k-soft); }
.titan-status .replay { font-size: 10px; min-height: 24px; padding: 3px 6px; border-color: var(--k-line); color: var(--k-acc); }
:root[data-skin=titan] .titan-display .lcdbox {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  border-radius: 0;
  overflow: visible;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
:root[data-skin=titan] .titan-display .lcd { padding: 0; }
.titan-readout { display: flex; align-items: baseline; justify-content: center; min-width: 0; gap: 2.5cqw; padding-block: .6cqw 1.8cqw; }
.titan-readout > .icon { align-self: center; color: var(--k-acc); }
.titan-readout > .icon svg { width: 6.7cqw; height: auto; }
:root[data-skin=titan] .titan-readout .lcdfreq {
  height: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--k-digits);
  font: 650 clamp(28px, 10.2cqw, 57px)/1.14 var(--font);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  text-shadow: 0 0 10px #b9ffe71a;
}
:root[data-skin=titan] .titan-readout .lcdfreq.word { font-size: clamp(21px, 6.8cqw, 40px); }
.titan-unit { flex: none; font: 500 clamp(11px, 3.1cqw, 17px)/1 var(--font); }
:root[data-skin=titan] .titan-display .lcdart {
  position: relative;
  inset: auto;
  display: block;
  height: 13.4cqw;
  min-height: 38px;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: repeating-linear-gradient(90deg, #8addca1b 0 1px, transparent 1px 7px),
    repeating-linear-gradient(0deg, #8addca14 0 1px, transparent 1px 7px), #091211;
  box-shadow: inset 0 0 0 1px #6aa3944a;
}
.titan-display .lcdart::after {
  content: '';
  position: absolute;
  inset: auto 2% 0;
  height: 7px;
  background: repeating-linear-gradient(90deg, #a4c7be 0 1px, transparent 1px 22px) bottom / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, #80a798 0 1px, transparent 1px 5px) bottom / 100% 4px no-repeat;
  opacity: .7;
}
:root[data-skin=titan] .titan-display .lwave {
  position: absolute;
  inset: 2px 0 7px;
  width: 100%;
  height: calc(100% - 9px);
  color: var(--k-acc);
  --wave-style: ribbon;
  --wave-idle: .98;
  filter: drop-shadow(0 0 4px var(--k-glow));
}
:root[data-skin=titan] .titan-display .lcdbot { min-height: 0; padding: 0; gap: 3px; }
.titan-display .lcdbot:has(> .lcdhere:only-child) { display: none; }
.titan-display .deaf { margin-top: 3px; }
:root[data-skin=titan] .titan-display .people {
  min-width: 0;
  height: auto;
  min-height: 8.8cqw;
  margin: 0;
  padding: 0 3%;
  gap: 6px;
  border: 0;
  background: none;
  box-shadow: none;
}
:root[data-skin=titan] .titan-display .pstrip { height: auto; min-height: 30px; font-size: clamp(10px, 2.65cqw, 15px); }
:root[data-skin=titan] .titan-display .paway { border: 0; border-left: 1px solid var(--k-line); border-radius: 0; height: 28px; font-size: clamp(10px, 2.65cqw, 14px); }
:root[data-skin=titan] .titan-display .people .pcall { height: 26px; font-size: 10px; color: var(--k-acc); }
.titan-mode { display: flex; min-width: 0; justify-content: center; align-items: center; gap: 6px; color: var(--k-dim); font-size: clamp(9px, 2.2cqw, 12px); }
.titan-mode .lcdmode { flex: 0 1 auto; text-overflow: ellipsis; letter-spacing: .075em; }
.titan-mode > .icon { color: var(--k-acc); }

.titan-controls { position: relative; flex: none; height: 11.986cqw; min-height: 44px; background: url(../img/walkies/titan/controls.webp) center / 100% 100% no-repeat; }
.titan-controls > button {
  position: absolute;
  top: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 13.6%;
  height: 90%;
  min-height: 44px;
  border-radius: 10px;
  color: var(--k-text);
}
.titan-controls > button:nth-child(1) { left: 11.3%; }
.titan-controls > button:nth-child(2) { left: 27.2%; }
.titan-controls > button:nth-child(3) { left: 43.2%; }
.titan-controls > button:nth-child(4) { left: 59%; }
.titan-controls > button:nth-child(5) { left: 75%; }
.titan-controls > button:nth-child(6) { left: 90.5%; }
.titan-controls .prev svg { rotate: 180deg; }
.titan-controls .icon svg { width: clamp(21px, 5.8cqw, 30px); height: auto; }
.titan-controls button:is([aria-disabled=true], :disabled) { color: #838c88; }
.titan-controls .titan-control:nth-child(3):not(:disabled) { color: var(--k-acc); }
.titan-controls button:active > .icon,
.titan-controls .titan-control[aria-pressed=true]:nth-child(3) > .icon { filter: drop-shadow(0 0 5px var(--k-acc)); }

:root[data-skin=titan] .radio .stage {
  position: relative;
  isolation: isolate;
  display: block;
  flex: none;
  width: 100%;
  height: clamp(44cqw, calc(100cqh - 138cqw), 54.64cqw);
  min-height: 0;
  padding: 0;
}
:root[data-skin=titan] .radio .stage::before { background: url(../img/walkies/titan/talk.webp) center / 100% 100% no-repeat; }
:root[data-skin=titan] .radio .stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background:
    radial-gradient(ellipse 11% 19% at 14% 46%, #5cfbd979, transparent),
    radial-gradient(ellipse 11% 19% at 86% 46%, #5cfbd979, transparent),
    radial-gradient(ellipse 37% 8% at 50% 68%, #5cfbd962, transparent);
  filter: blur(2px);
  transition: opacity .18s ease;
}
:root[data-skin=titan] .radio[data-air=tx] .stage::after { opacity: .9; }
:root[data-skin=titan] .radio[data-air=rx] .stage::after { opacity: .45; }
:root[data-skin=titan] .radio .ptt-wrap {
  display: block;
  position: absolute;
  inset: 3.5% 10% 27%;
  width: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  container-type: normal;
}
:root[data-skin=titan] .radio .ptt {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  gap: 3.5cqw;
  padding: 0 5% 4%;
  border: 0;
  border-radius: 15%;
  clip-path: polygon(15% 0, 85% 0, 100% 43%, 85% 100%, 15% 100%, 0 43%);
  background: none;
  box-shadow: none;
  color: var(--k-acc);
  transform: none;
  transition: background .15s ease, color .15s ease;
}
:root[data-skin=titan] .radio .ptt::before,
:root[data-skin=titan] .radio .ptt::after { display: none; }
:root[data-skin=titan] .radio .ptt > .icon svg { width: clamp(34px, 11.3cqw, 63px); height: clamp(34px, 11.3cqw, 63px); }
:root[data-skin=titan] .radio .ptt > .icon { color: inherit; filter: drop-shadow(0 1px 1px #010504); }
:root[data-skin=titan] .radio .ptt .lbl {
  min-width: 54%;
  max-width: 90%;
  padding: 2% 6%;
  border-radius: 100px;
  color: #eeefed;
  background: #080b09e8;
  box-shadow: inset 0 1px 2px #020403, 0 1px #ffffff0a;
  font: 600 clamp(10px, 3.2cqw, 18px)/1 var(--font);
  letter-spacing: .23em;
  text-align: center;
  white-space: normal;
}
:root[data-skin=titan] .radio .ptt[data-held] { background: #02080628; }
:root[data-skin=titan] .radio .ptt[data-state=transmitting] { color: var(--k-hi); background: radial-gradient(ellipse at 50% 32%, #51ffc018, transparent 64%); }
:root[data-skin=titan] .radio .ptt[data-state=transmitting] > .icon { filter: drop-shadow(0 0 7px var(--k-glow)); }
:root[data-skin=titan] .radio .ptt[data-state=transmitting] .lbl { color: var(--k-hi); }
:root[data-skin=titan] .radio .ptt.face { gap: 1.5cqw; }
:root[data-skin=titan] .radio .ptt .pttface { width: clamp(30px, 12cqw, 60px) !important; height: clamp(30px, 12cqw, 60px) !important; }
:root[data-skin=titan] .radio .ptt .lsub { color: var(--k-dim); }
:root[data-skin=titan] .radio .stage .hint-line {
  position: absolute;
  bottom: 2.5%;
  left: 8%;
  width: 84%;
  min-height: 0;
  color: #d0cccf;
  font: 500 clamp(9px, 2.15cqw, 12px)/1.2 var(--font);
  letter-spacing: .025em;
  text-shadow: 0 1px #000;
}
.titan-display .sfxbar { overflow: auto; }
:root[data-skin=titan] .radio .stage .sfxbar { position: absolute; bottom: 9%; left: 14%; width: 72%; overflow: auto hidden; }

:root[data-skin=titan] .radio .actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  flex: none;
  height: 19.859cqw;
  min-height: 62px;
  margin: 0;
  padding: 1.3% 4.3% 2.5%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: url(../img/walkies/titan/actions.webp) center / 100% 100% no-repeat;
}
:root[data-skin=titan] .radio .actions .action {
  position: relative;
  height: 100%;
  min-width: 0;
  min-height: 0;
  width: 100%;
  padding: 0 2px;
  gap: 4px;
  justify-content: center;
  color: var(--k-text);
  border: 0;
  background: none;
  box-shadow: none;
}
:root[data-skin=titan] .radio .actions .action > .iconbtn { width: auto; height: auto; border: 0; box-shadow: none; background: none; color: inherit; }
:root[data-skin=titan] .radio .actions .icon svg { width: clamp(19px, 5cqw, 29px); height: auto; }
:root[data-skin=titan] .radio .actions .actlbl { margin: 0; font-size: clamp(10px, 2.65cqw, 15px); white-space: normal; }
:root[data-skin=titan] .radio .actions .action.on { color: var(--k-acc); }
:root[data-skin=titan] .radio .actions .action.off { color: #ffb5aa; }
:root[data-skin=titan] .radio .actions .action.on::after {
  content: '';
  position: absolute;
  top: 12%;
  right: 15%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--k-hi);
  box-shadow: 0 0 5px 2px var(--k-glow);
}
:root[data-skin=titan] .radio > .howto { display: none; }
:root[data-skin=titan] .radio :is(.head, .titan-controls, .titan-preset-panel) button:focus-visible { outline: 2px solid var(--k-hi); outline-offset: -4px; }
:root[data-skin=titan] .radio .ptt:focus-visible { box-shadow: inset 0 0 0 3px var(--k-hi); }

/* The same five native navigation controls, including Create, on the bottom
   bank of keys. On desktop the shared navigation rail supplies these. */
:root[data-skin=titan]:not(.desk) #app.shell > .tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  height: calc(clamp(85px, 27.262vw, 150px) + env(safe-area-inset-bottom, 0px));
  padding: 2.2vw 4.8% calc(8vw + env(safe-area-inset-bottom, 0px));
  border: 0;
  background: url(../img/walkies/titan/nav.webp) center / 100% 100% no-repeat;
  box-shadow: none;
}
:root[data-skin=titan]:not(.desk) #app.shell > .tabs > .tabs-shape { display: none; }
:root[data-skin=titan]:not(.desk) #app.shell > .tabs > :is(.tab, .tabplus) {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--k-text);
  transform: none;
  text-shadow: none;
}
:root[data-skin=titan]:not(.desk) #app.shell > .tabs > .tabplus > span { color: inherit; display: grid; place-items: center; width: 100%; height: 100%; background: none; border: 0; box-shadow: none; }
:root[data-skin=titan]:not(.desk) #app.shell > .tabs .tabplus .icon svg { width: 30px; height: 30px; }
:root[data-skin=titan]:not(.desk) #app.shell > .tabs > .tab.active { color: var(--k-acc); }
:root[data-skin=titan]:not(.desk) #app.shell > .tabs > .tab .icon { color: inherit; filter: none; }
:root[data-skin=titan]:not(.desk) #app.shell > .tabs > .tab .icon svg { width: clamp(21px, 6.3vw, 34px); height: auto; }
:root[data-skin=titan]:not(.desk) #app.shell > .tabs > .tab .tab-label { font-size: clamp(10px, 2.8vw, 15px); }
:root[data-skin=titan]:not(.desk) #app.shell > .tabs > .tab::after { display: none; }
:root[data-skin=titan]:not(.desk) #app.shell > .tabs > .tab.active::after { display: block; content: ''; position: absolute; bottom: 5px; height: 3px; width: 34%; border-radius: 4px; background: var(--k-hi); box-shadow: 0 0 7px var(--k-glow); }
:root[data-skin=titan]:not(.desk) #app.shell > .tabs.guesttabs { grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--look-header); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }

.skinpic.sp-titan { background: #101614 url(../img/walkies/titan/talk.webp) center 20% / cover no-repeat; box-shadow: inset 0 0 0 1px #687b71; }
.skinpic.sp-titan > :is(i, b, u) { display: none; }
@media (prefers-reduced-motion: reduce) {
  :root[data-skin=titan] .radio .stage::after,
  :root[data-skin=titan] .radio .ptt { transition: none; }
}

.titan-volume { display: flex; gap: 12px; align-items: center; min-height: 44px; }
.titan-volume input { flex: 1; min-width: 0; }

/* The two media switches stay usable over a live video. The pager covers
   the whole glass when opened, including this status row. */
.titan-status { position: relative; z-index: 31; pointer-events: none; }
.titan-status :is(.titan-media, .replay, .unavail button) { pointer-events: auto; }
:root[data-skin=titan] .titan-display .vmon:not(.big) .vmon-off {
  top: calc(var(--gt, 0%) + 25%);
  left: calc(var(--gl, 0%) + var(--gw, 100%) - 7%);
  translate: -100% 0;
}
