*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0f172a, #020617);
  color: #e5e7eb;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.app {
  width: 100%;
  max-width: 960px;
  margin: 24px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.header h1 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.header p {
  margin: 0;
  color: #cbd5f5;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}

.info-item .label {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-right: 4px;
}

.info-item .value {
  font-weight: 600;
  color: #f9fafb;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.btn.primary {
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: #022c22;
  box-shadow: 0 8px 16px rgba(34, 197, 94, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.45);
}

.btn.secondary {
  background: transparent;
  border: 1px solid #4b5563;
  color: #e5e7eb;
}

.btn.secondary:hover {
  background: rgba(31, 41, 55, 0.8);
}

.play-area-wrapper {
  border-radius: 16px;
  padding: 16px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.15), transparent);
}

.play-area {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  overflow: hidden;
}

.target {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fbbf24, #ea580c);
  box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.3), 0 14px 30px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.target::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.9);
}

.target.hidden {
  display: none;
}

.hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  padding: 0 16px;
  text-align: center;
}

.rules h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.rules ul {
  margin: 0;
  padding-left: 20px;
  color: #d1d5db;
}

.rules li + li {
  margin-top: 4px;
}

.footer {
  font-size: 0.9rem;
  color: #9ca3af;
}

@media (max-width: 640px) {
  .app {
    margin: 12px;
    padding: 16px;
  }

  .play-area {
    height: 260px;
  }

  .controls {
    flex-direction: column;
    align-items: flex-start;
  }
}

