.has-alphabet-panel {
  padding-bottom: var(--alphabet-panel-height, 0px);
}

html {
  transition: padding-bottom 220ms ease;
}

.alphabet-panel {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 95;
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
  will-change: transform, opacity;
}

.alphabet-panel--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.alphabet-panel__grid {
  display: grid;
  grid-template-columns: repeat(11, minmax(2.2rem, 1fr));
  grid-template-rows: repeat(3, 1fr);
  grid-auto-flow: row;
  gap: 0.45rem 0.65rem;
  align-items: center;
  justify-items: center;
}

.alphabet-panel__letter {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.96);
  user-select: none;
}

.alphabet-panel__letter--used {
  opacity: 0.25;
  text-decoration: line-through;
  text-decoration-thickness: 0.18em;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 480px) {
  .alphabet-panel {
    padding: 0.6rem 0.75rem;
  }
  .alphabet-panel__grid {
    grid-template-columns: repeat(11, minmax(1.9rem, 1fr));
    grid-template-rows: repeat(3, 1fr);
    grid-auto-flow: row;
    gap: 0.35rem 0.5rem;
  }
}
