[data-screen="play"] { padding: 0; }
body[data-screen="play"] .topbar { display: none; }

.arena {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  background: var(--bg);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.side {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 24px;
  touch-action: manipulation;
  transition: background .15s ease;
}

.side.p1 {
  background: radial-gradient(circle at 30% 50%, rgba(56, 189, 248, 0.18), rgba(37, 99, 235, 0.08) 70%, transparent);
  border-right: 1px solid var(--line);
}
.side.p2 {
  background: radial-gradient(circle at 70% 50%, rgba(236, 72, 153, 0.18), rgba(168, 85, 247, 0.08) 70%, transparent);
  border-left: 1px solid var(--line);
}

.side.flash-win {
  background-color: rgba(34, 197, 94, 0.35) !important;
}
.side.flash-lose {
  background-color: rgba(239, 68, 68, 0.35) !important;
}

.player-hud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.who {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 3.2vmin, 32px);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.side.p1 .who { color: #38BDF8; }
.side.p2 .who { color: #EC4899; }

.score-pills {
  display: flex;
  gap: 6px;
}
.pill {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all .2s ease;
}
.side.p1 .pill.active {
  background: #38BDF8;
  box-shadow: 0 0 10px #38BDF8;
}
.side.p2 .pill.active {
  background: #EC4899;
  box-shadow: 0 0 10px #EC4899;
}

.player-score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 9vmin, 84px);
  line-height: 1;
  color: var(--ink);
}

.buzzer {
  position: relative;
  width: clamp(140px, 24vmin, 220px);
  height: clamp(140px, 24vmin, 220px);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  touch-action: manipulation;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  outline: none;
}

.side.p1 .buzzer {
  border: 4px solid #38BDF8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4), inset 0 2px 6px rgba(56, 189, 248, 0.4);
}
.side.p2 .buzzer {
  border: 4px solid #EC4899;
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.4), inset 0 2px 6px rgba(236, 72, 153, 0.4);
}

.buzzer:active, .buzzer.hit {
  transform: scale(0.92);
}

.buzzer-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.side.p1 .buzzer-inner {
  background: linear-gradient(135deg, #0284c7, #2563eb);
}
.side.p2 .buzzer-inner {
  background: linear-gradient(135deg, #db2777, #9333ea);
}

.buzzer-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 3.5vmin, 32px);
  color: #fff;
  letter-spacing: .05em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.feedback {
  min-height: 40px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 3vmin, 30px);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all .25s ease;
}
.feedback.show {
  opacity: 1;
  transform: translateY(0);
}
.feedback.plus { color: #4ade80; }
.feedback.minus { color: #f87171; }

/* Center Hub */
.center-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(220px, 36vmin, 320px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
  pointer-events: none;
}

.round-badge {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--line);
  padding: 4px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.target-card {
  width: 100%;
  background: rgba(15, 23, 42, 0.92);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.target-card.bounce {
  animation: cardPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes cardPop {
  0% { transform: scale(0.8); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.target-rule {
  font-size: clamp(12px, 1.8vmin, 15px);
  font-weight: 700;
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.target-visual {
  font-size: clamp(54px, 10vmin, 86px);
  line-height: 1;
  margin: 4px 0;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5));
}
.target-visual img, .target-visual svg {
  width: clamp(60px, 10vmin, 90px);
  height: clamp(60px, 10vmin, 90px);
  object-fit: contain;
}
.target-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(16px, 2.6vmin, 22px);
  color: var(--ink);
  letter-spacing: .03em;
}

.hub-timer-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.timer-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #38BDF8, #A855F7, #EC4899);
  border-radius: 999px;
  transition: width 0.05s linear;
}

/* Portrait layout: Split top/bottom, top player rotated 180deg */
@media (orientation: portrait) {
  .arena {
    flex-direction: column-reverse;
  }
  .side.p1 {
    border-right: none;
    border-top: 1px solid var(--line);
  }
  .side.p2 {
    border-left: none;
    border-bottom: 1px solid var(--line);
    transform: rotate(180deg);
  }
}
