:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at top, #1e2a45, #0a101d 62%);
  color: #e8ecff;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.target {
  width: min(760px, 100%);
  background: rgba(9, 14, 30, 0.84);
  border: 1px solid rgba(133, 157, 255, 0.35);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 18px 42px rgba(1, 3, 10, 0.55);
}

.target__header h1 {
  margin: 0;
  font-size: clamp(1.3rem, 3.4vw, 1.85rem);
}

.target__header p {
  margin: 8px 0 0;
  color: #b6c4ff;
}

.target__stats {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.target__stats p {
  margin: 0;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(38, 58, 120, 0.28);
  border: 1px solid rgba(133, 157, 255, 0.34);
  color: #dce4ff;
}

.target__restart {
  margin-top: 14px;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  color: #041329;
  padding: 0 16px;
  background: linear-gradient(135deg, #7fd7ff, #73a8ff);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.target__restart:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.target__field {
  margin-top: 16px;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(133, 157, 255, 0.34);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1123 0%, #111a34 100%);
}

.target__square {
  position: absolute;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(135deg, #ff7f8f, #ff5a78);
  box-shadow: 0 0 0 1px rgba(255, 186, 197, 0.35), 0 7px 18px rgba(255, 90, 120, 0.4);
  transition: transform 0.1s ease;
}

.target__square:active {
  transform: scale(0.92);
}

.target__status {
  margin: 12px 0 0;
  min-height: 1.6em;
  color: #dce4ff;
}

@media (max-width: 560px) {
  body {
    padding: 12px;
  }

  .target {
    border-radius: 16px;
    padding: 16px;
  }
}
