/* ---------- 竞技场 ---------- */
#arena {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr) 288px;
  gap: 12px;
  padding: 14px;
}

.panel {
  position: relative;
  border-radius: 22px;
  border: 3px solid;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.panel-plant { background: #dff3cd; border-color: #69a84e; color: #22361a; }
.panel-zombie { background: #e7e0f5; border-color: #8f7ab8; color: #2b2044; }
.panel-head { display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.avatar { width: 42px; height: 42px; object-fit: contain; flex: none; }
.panel-title { font-size: 17px; line-height: 1.2; }

.question-card {
  height: 92px;
  border-radius: 14px;
  border: 2px solid;
  background: rgba(255, 255, 255, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.panel-plant .question-card { border-color: rgba(105, 168, 78, 0.6); }
.panel-zombie .question-card { border-color: rgba(143, 122, 184, 0.6); }
.question { font-size: 34px; letter-spacing: 1px; }
.question.long { font-size: 26px; letter-spacing: 0; }

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.option {
  height: 52px;
  border-radius: 13px;
  border: 2px solid;
  background: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.08s, border-color 0.12s, opacity 0.12s;
}
.panel-plant .option { border-color: rgba(105, 168, 78, 0.65); color: #22361a; }
.panel-zombie .option { border-color: rgba(143, 122, 184, 0.65); color: #2b2044; }
.panel-plant .option:hover:not(:disabled) { border-color: #4caf50; transform: translateY(-1px); }
.panel-zombie .option:hover:not(:disabled) { border-color: #7e57c2; transform: translateY(-1px); }
.option:active:not(:disabled) { transform: translateY(0); }
.option:disabled { opacity: 0.42; cursor: default; }
.option:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.35); }
.panel-zombie .option:focus-visible { box-shadow: 0 0 0 2px rgba(126, 87, 194, 0.35); }

.feedback {
  height: 26px;
  line-height: 26px;
  text-align: center;
  font-size: 16px;
  position: relative;
  z-index: 2;
}
.score {
  text-align: center;
  font-size: 15px;
  opacity: 0.7;
  position: relative;
  z-index: 2;
}
.panel-spacer { flex: 1; position: relative; pointer-events: none; }
.watermark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.1;
}
.panel-flash {
  position: absolute;
  inset: 0;
  border-radius: 19px;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
}
.panel-flash.on { animation: panelFlash 0.45s ease-out forwards; }
@keyframes panelFlash {
  0% { opacity: 0.5; }
  100% { opacity: 0; }
}

/* 联机时对手侧的面板不可作答 */
.panel.remote .options { visibility: hidden; }
