/* High-relief metallic practice keys; keeps each existing label intact. */
:root {
  --key-red: #ff3048;
  --key-cyan: #84efff;
  --key-amber: #ffe2ad;
}

body #practiceMenu .mission,
body.wide-workspace #practiceMenu .mission {
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 122px !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 0 15px !important;
  padding: 59px 11px 24px !important;
  overflow: visible !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  text-overflow: clip !important;
  text-align: center !important;
  color: var(--key-amber) !important;
  font-family: "Arial Narrow", "Roboto Condensed", system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.36 !important;
  letter-spacing: .035em !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 1px #1b0d06, 0 3px 4px #000, 0 0 8px #ffb65a66 !important;
  border: 3px solid #17242b !important;
  border-top-color: #f4ffff !important;
  border-left-color: #b1cbd0 !important;
  border-right-color: #172329 !important;
  border-bottom-color: #070c10 !important;
  border-radius: 12px !important;
  background:
    linear-gradient(90deg, var(--key-red) 0 6px, transparent 6px 100%),
    repeating-linear-gradient(166deg, #ffffff0b 0 1px, transparent 1px 5px, #00000018 5px 6px, transparent 6px 11px),
    linear-gradient(150deg, #81949a 0%, #596d74 13%, #394e56 31%, #263a42 55%, #1b2b32 69%, #53676d 100%) !important;
  box-shadow:
    inset 0 2px 1px #ffffffb0,
    inset 2px 0 2px #e7ffff48,
    inset 0 -6px 9px #02080df0,
    0 1px 0 #e5f9fa,
    0 4px 0 #9aadb0,
    0 7px 0 #3b4b50,
    0 10px 0 #1b272c,
    0 14px 18px #000e,
    0 0 13px #51dfff35 !important;
  transform: perspective(900px) rotateX(6deg) translateZ(0) !important;
  transform-origin: center bottom !important;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease !important;
}

/* Preserve the menu's existing pictogram while turning its window into a raised glass bezel. */
body.wide-workspace #practiceMenu .mission::before {
  left: 50% !important;
  top: 8px !important;
  bottom: auto !important;
  width: 45px !important;
  height: 39px !important;
  transform: translateX(-50%) !important;
  display: grid !important;
  place-items: center !important;
  border: 2px solid #d8fbff !important;
  border-right-color: #44636d !important;
  border-bottom-color: #152b34 !important;
  border-radius: 8px !important;
  background: linear-gradient(145deg, #91b9c1 0%, #47727f 25%, #1e4a5b 55%, #102932 59%, #3c6b78 100%) !important;
  box-shadow: inset 0 2px 2px #fff, inset 0 -4px 5px #061014e6, 0 2px 0 #769298, 0 5px 0 #17282e, 0 0 13px #55eaffad !important;
  color: #e8fdff !important;
  text-shadow: 0 1px 2px #001116, 0 0 7px #a8f8ff !important;
}

body.wide-workspace #practiceMenu .mission::after {
  content: "" !important;
  left: 22% !important;
  right: 22% !important;
  top: auto !important;
  bottom: 5px !important;
  height: 4px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: linear-gradient(90deg, transparent, #50dfff 15%, #edffff 50%, #50dfff 85%, transparent) !important;
  box-shadow: 0 0 9px #58e5ff, 0 0 17px #50dfff99 !important;
  opacity: 1 !important;
}

body.wide-workspace #practiceMenu .mission.active,
body.wide-workspace #practiceMenu .mission[aria-current],
body.wide-workspace #practiceMenu .mission[aria-pressed="true"] {
  border-color: #ff6576 !important;
  border-top-color: #fff4f5 !important;
  background:
    linear-gradient(90deg, #ff3048 0 7px, transparent 7px 100%),
    repeating-linear-gradient(166deg, #ffffff0b 0 1px, transparent 1px 5px, #00000018 5px 6px, transparent 6px 11px),
    linear-gradient(150deg, #a9666f 0%, #75434c 23%, #51333b 53%, #37242c 74%, #70444b 100%) !important;
  box-shadow: inset 0 2px 1px #fff, inset 0 -6px 9px #10070be6, 0 1px 0 #ffc3c8, 0 4px 0 #b65b66, 0 7px 0 #4d272e, 0 10px 0 #221519, 0 0 19px #ff3048bd, 0 14px 18px #000e !important;
}

body.wide-workspace #practiceMenu .mission:hover,
body.wide-workspace #practiceMenu .mission:focus-visible {
  z-index: 3 !important;
  filter: brightness(1.18) saturate(1.12) !important;
  transform: perspective(900px) rotateX(3deg) translateY(-3px) translateZ(3px) !important;
  box-shadow: inset 0 2px 1px #fff, inset 0 -6px 9px #02080df0, 0 1px 0 #fff, 0 4px 0 #aab8ba, 0 7px 0 #473138, 0 10px 0 #21171c, 0 0 0 2px #ff30486e, 0 0 20px #ff3048a6, 0 14px 18px #000e !important;
}

body.wide-workspace #practiceMenu .mission:active {
  transform: perspective(900px) rotateX(1deg) translateY(5px) !important;
  box-shadow: inset 0 4px 8px #000c, 0 1px 0 #728589, 0 3px 0 #172328, 0 6px 9px #000c !important;
}

body.wide-workspace #practiceMenu .mission:focus-visible {
  outline: 3px solid var(--key-cyan) !important;
  outline-offset: 4px !important;
}

@media (max-width: 700px) {
  body.wide-workspace #practiceMenu .mission {
    min-height: 112px !important;
    padding: 53px 8px 22px !important;
    font-size: 14px !important;
    line-height: 1.38 !important;
    transform: none !important;
  }
  body.wide-workspace #practiceMenu .mission::before { top: 7px !important; width: 42px !important; height: 36px !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.wide-workspace #practiceMenu .mission { transition: none !important; }
}
