html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.wrap::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(10, 79, 232, 0.14), transparent 70%);
  animation: scanPulse 2s ease-out infinite;
  z-index: -1;
}

.eyebrow {
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.08);
  color: #17141a;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 40px);
  grid-template-rows: repeat(3, 40px);
  gap: 4px;
}

.tile {
  border-radius: 8px;
  border: 2px solid rgba(23, 20, 26, 0.18);
  background: #fff7e6;
  transition: border-color 0.15s ease-out, background-color 0.15s ease-out;
}

.tile.isPicked {
  border-color: #0a4fe8;
  background: rgba(10, 79, 232, 0.12);
}

.hint {
  margin: 0;
  color: #17141a;
  font-weight: 600;
  font-size: 13px;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 8px 24px;
  background: #0a4fe8;
  color: #fff7e6;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.15s ease-out;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@keyframes scanPulse {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}
@media (max-width: 340px) {
  .wrap {
    gap: 4px;
  }
  .grid {
    grid-template-columns: repeat(3, 28px);
    grid-template-rows: repeat(3, 28px);
  }
  .hint {
    font-size: 11px;
  }
  .btn {
    font-size: 11px;
    padding: 4px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wrap::before {
    animation: none;
    opacity: 0.5;
  }
}
