/* ---------- 菜单 ---------- */
#menu {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-bg { position: absolute; inset: 0; background-position: center; background-size: cover; }
.menu-shade { position: absolute; inset: 0; background: rgba(4, 10, 6, 0.32); }
.menu-card {
  position: relative;
  width: 680px;
  max-width: 88vw;
  padding: 34px;
  border-radius: 28px;
  background: rgba(6, 14, 8, 0.74);
  border: 2px solid rgba(190, 255, 170, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.game-title {
  margin: 0;
  font-size: 64px;
  letter-spacing: 4px;
  color: #eaffd6;
  -webkit-text-stroke: 7px #0a170c;
  paint-order: stroke fill;
}
.versus { display: flex; align-items: center; gap: 14px; }
.menu-avatar { width: 68px; height: 68px; object-fit: contain; }
.big {
  font-size: 60px;
  line-height: 1;
  -webkit-text-stroke: 9px #0a170c;
  paint-order: stroke fill;
}
.plant-text { color: #8bff6a; }
.zombie-text { color: #b892ff; }
.vs {
  font-size: 34px;
  color: #fff;
  -webkit-text-stroke: 6px #0a170c;
  paint-order: stroke fill;
}
.hint {
  margin: 0;
  font-size: 16px;
  color: rgba(232, 248, 226, 0.82);
  text-align: center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}
.grade-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.grade-label {
  font-size: 16px;
  color: rgba(232, 248, 226, 0.85);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}
.grade-picker { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.grade-btn {
  cursor: pointer;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid rgba(190, 255, 170, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #eaf7e4;
  font-size: 18px;
  transition: background 0.15s, border-color 0.15s, transform 0.08s;
}
.grade-btn:hover { background: rgba(255, 255, 255, 0.16); }
.grade-btn:active { transform: translateY(1px); }
.grade-btn.selected {
  background: linear-gradient(180deg, #5ccb41, #3f9e2c);
  border-color: #2f7a20;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 16px rgba(0, 0, 0, 0.25);
}
#startBtn, #docBtn { width: 340px; }
#docBtn { min-height: 46px; font-size: 17px; }

/* ---------- 模式选择 ---------- */
#modeScreen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mode-card {
  position: relative;
  width: 640px;
  max-width: 90vw;
  padding: 32px;
  border-radius: 28px;
  background: rgba(6, 14, 8, 0.78);
  border: 2px solid rgba(190, 255, 170, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
#modeLocalBtn, #modeOnlineBtn { width: 360px; }
#modeOnlineBtn { background: linear-gradient(180deg, #6a79d6, #4a56a8); border-color: #3a4386; }
#menuBackBtn { width: 340px; min-height: 46px; font-size: 17px; }
