/* === GESTURE INFO OVERLAY === */
.gesture-info {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10005;
  transition: opacity 0.3s ease;
}

.gesture-info.hidden {
  opacity: 0;
  pointer-events: none;
}

.gesture-content {
  text-align: center;
  max-width: 90%;
  width: 400px;
}

.gesture-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0;
  text-align: left;
}

.gesture-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px;
  background: var(--ground-dark);
  border: 2px solid var(--panel-border);
}

.gesture-icon {
  font-size: 32px;
}

.gesture-item p {
  color: var(--text-light);
  font-size: 18px;
  margin: 0;
}

/* Short screens (phone landscape, ~375 px tall): two columns and tighter spacing so the
   whole panel, "Siap!" included, fits without scrolling (the page never scrolls). */
@media (max-height: 500px) {
  .gesture-info .gesture-content {
    width: 560px;
    padding: 12px 18px;
  }

  .gesture-info .gesture-content h2 {
    font-size: 22px;
    margin-bottom: 8px;
    padding-bottom: 6px;
  }

  .gesture-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px 0 12px;
  }

  .gesture-item {
    gap: 10px;
    padding: 6px;
  }

  .gesture-icon {
    font-size: 22px;
  }

  .gesture-item p {
    font-size: 16px;
  }
}
