.handheld {
  display: grid;
  place-items: center;
  min-height: 650px;
  padding: clamp(20px, 4vw, 42px);
}

.device-body {
  width: min(520px, 100%);
  padding: 34px 30px 26px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 22%),
    linear-gradient(160deg, #31343a, #15171c);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.4), inset 0 0 0 8px rgba(255, 255, 255, 0.035);
}

.screen-wrap {
  position: relative;
  width: min(360px, 100%);
  margin: 0 auto;
  border: 14px solid #0c0d10;
  border-radius: 8px;
  overflow: hidden;
  background: #101418;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #101418;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  background: rgba(0, 0, 0, 0.38);
}

.game-overlay.hidden {
  display: none;
}

.game-overlay strong {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 650;
}

.game-overlay span {
  color: #f8e3b0;
}

.pad {
  display: grid;
  grid-template-columns: 84px 1fr 84px;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
}

.pad button {
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: #242831;
  cursor: pointer;
  font-weight: 700;
}

#startBtn {
  border-radius: 8px;
  background: linear-gradient(135deg, #d83a32, #8d1f21);
}

@media (max-width: 620px) {
  .handheld {
    min-height: 560px;
    padding: 16px;
  }

  .device-body {
    padding: 24px 18px 20px;
    border-radius: 24px;
  }

  .pad {
    grid-template-columns: 72px 1fr 72px;
    gap: 10px;
  }
}
