.game-wrap {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.react-target {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 2px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  margin: 0 auto 20px;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: background 0.1s, border-color 0.1s;
  position: relative;
  overflow: hidden;
}

.react-target::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 200, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.react-target.ready {
  border-color: var(--border-soft);
}

.react-target.wait {
  background: rgba(255, 30, 60, 0.06);
  border-color: rgba(255, 30, 60, 0.4);
}

.react-target.fire {
  background: rgba(0, 255, 136, 0.1);
  border-color: #00ff88;
  animation: firePulse 0.3s ease;
}

.react-target.early {
  background: rgba(255, 30, 60, 0.12);
  border-color: var(--neon-red);
}

.react-target.done {
  border-color: var(--neon-blue);
}

@keyframes firePulse {
  0% {
    box-shadow: 0 0 0 rgba(0, 255, 136, 0);
  }
  50% {
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.4);
  }
  100% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
  }
}
.react-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.react-main {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.react-sub {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-top: 6px;
}

.react-time {
  font-size: 3rem;
  font-weight: 900;
  color: #00ff88;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

.react-rounds {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.react-round-dot {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-sub);
  transition: all 0.2s;
}

.react-round-dot.done {
  border-color: #00ff88;
  color: #00ff88;
  background: rgba(0, 255, 136, 0.07);
}

.react-round-dot.early {
  border-color: var(--neon-red);
  color: var(--neon-red);
  background: rgba(255, 30, 60, 0.07);
}

.react-round-dot.active {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  animation: dotPulse 0.8s infinite;
}

@keyframes dotPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(0, 200, 255, 0);
  }
  50% {
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
  }
}
.react-result {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 20px;
  margin-bottom: 20px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.react-result h2 {
  font-size: 1.2rem;
  margin: 0 0 12px;
  color: var(--neon-blue);
}

.react-result-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 4px 0;
  border-bottom: 1px solid var(--border-soft);
}

.react-result-row:last-child {
  border-bottom: none;
}

.react-result-row .label {
  color: var(--text-sub);
}

.react-result-row .val {
  font-weight: 700;
  color: var(--text-main);
}

.react-rank {
  font-size: 1.6rem;
  font-weight: 900;
  margin-top: 12px;
  letter-spacing: 0.06em;
}

.rank-elite {
  color: #ffcc00;
  text-shadow: 0 0 16px rgba(255, 204, 0, 0.6);
}

.rank-pro {
  color: #00ff88;
  text-shadow: 0 0 16px rgba(0, 255, 136, 0.5);
}

.rank-ama {
  color: var(--neon-blue);
}

.rank-rookie {
  color: var(--text-sub);
}

.hidden {
  display: none;
}

.back-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-sub);
  letter-spacing: 0.1em;
}

.back-link:hover {
  color: var(--neon-blue);
}
