/* #region (base) */
*, *::after, *::before {
  box-sizing: border-box;
}

* {
  font: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

ul, ol {
  list-style: none;
}
/* #endregion */

/* #region (experiment) */
main {
  background-color: #1A1917;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100dvh;
  font-family: Inter, system-ui, sans-serif;
}

.menu-wrapper {
  position: relative;
  width: 210px;
  background: #2A2A27;
  box-shadow: 0px 0px 0px 2px rgba(0, 0, 0, 0.15), 0px 68px 27px rgba(0, 0, 0, 0.04), 0px 38px 23px rgba(0, 0, 0, 0.13), 0px 17px 17px rgba(0, 0, 0, 0.22), 0px 4px 9px rgba(0, 0, 0, 0.26);
  border-radius: 8px;
  padding: 2px;
}

.menu-wrapper::after { /* gradient border */
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.1), hsla(0, 0%, 100%, 0)) border-box;
  mask: linear-gradient(black, black) padding-box, linear-gradient(black, black);
  mask-composite: exclude;
  border-radius: inherit;
  border: 1px solid transparent;
  pointer-events: none;
}

.menu {
  --btn-height: 34px;
  list-style: none;
  position: relative;
}

.menu-btn {
  height: var(--btn-height);
  border-radius: 6px;
  display: flex;
  gap: 8px;
  width: 100%;
  align-items: center;
  padding: 0 10px 0 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #DFDFDC;
  position: relative;
  z-index: 1;
  user-select: none;
  background: transparent;
}

.menu-btn:focus-visible {
  outline: 1.5px solid #7A8FF7;
}

.menu-hotkey {
  color: #5E5E55;
  margin-left: auto;
}

.menu-marker {
  background: #353531;
  border-radius: 6px;
  width: 100%;
  position: absolute;
  top: var(--marker-top, 0px);
  left: 0;
  height: 34px;
  opacity: 0;
  scale: 0.75;
  transition: opacity .1s, scale .1s;
  transition: top 0s .1s, opacity .1s, scale .1s, translate .1s;
}

@media (hover: hover) {
  .menu:hover .menu-marker {
    opacity: 1;
    scale: 1;
    transition: opacity .1s, scale .1s, translate .1s;
  }
}

.menu:has(li:nth-child(1):hover) {
  --marker-top: 0;
}

.menu:has(li:nth-child(2):hover) {
  --marker-top: var(--btn-height);
}

.menu:has(li:nth-child(3):hover) {
  --marker-top: calc(var(--btn-height)*2);
}

.menu:has(li:nth-child(4):hover) {
  --marker-top: calc(var(--btn-height)*3);
}

.menu:has(li:nth-child(5):hover) {
  --marker-top: calc(var(--btn-height)*4);
}

.menu:has(.menu-btn:active) .menu-marker {
  background: #3D3D38;
}

.menu-icon {
  --size: 24px;
  font-size: var(--size);
  height: 1em;
  width: 1em;
  display: inline-block;
  line-height: 1;
  flex-shrink: 0;
  max-width: initial;
}
/* #endregion */

/* #region (util) */
[style*="--sr: only"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
/* #endregion */