* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  font-family: Inter, Arial, sans-serif;
  color: #f7f8ff;
  background: radial-gradient(circle at 20% 0%, #26336d 0, #11162d 38%, #070a14 100%);
}

.game {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
  padding: clamp(12px, 2.5vw, 20px) clamp(14px, 3vw, 24px);
  background: rgba(4, 7, 15, 0.56);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

h1 {
  margin: 0;
  min-width: 0;
  font-size: clamp(20px, 4.6vw, 28px);
  line-height: 1.1;
}

.stats {
  display: flex;
  justify-content: flex-end;
  gap: clamp(8px, 2vw, 12px);
  flex-wrap: wrap;
  min-width: 0;
}

.stats span {
  padding: clamp(8px, 1.8vw, 10px) clamp(10px, 2.4vw, 14px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(13px, 2.8vw, 16px);
  font-weight: 700;
  white-space: nowrap;
}

.stats strong {
  color: #ffffff;
}

.arena {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

#target {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 50%;
  top: 50%;
  width: clamp(64px, 16vmin, 92px);
  height: clamp(64px, 16vmin, 92px);
  border: 0;
  padding: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  cursor: pointer;
  box-shadow: 0 clamp(14px, 4vmin, 24px) clamp(36px, 10vmin, 80px) rgba(50, 213, 66, 0.32);
}

.target-token {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.status-message {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#target:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 520px) {
  .topbar {
    align-items: flex-start;
  }

  .stats {
    width: 100%;
    justify-content: flex-start;
  }

}
