:root {
  --green-primary: #1B4332;
  --green-mid: #2D6A4F;
  --cream: #FFFEF5;
  --tan: #E5D9B6;
  --gold: #C9A84C;
  --bg: #0d1814;
  --card: #1a2e26;
  --card-soft: #234A3E;
  --ink: #FFFEF5;
  --muted: #a8b5ad;
  --primary: #2D6A4F;
  --primary-2: #3D8060;
  --emerald: #2D6A4F;
  --orange: #C9A84C;
  --pink: #c97a6c;
  --border: rgba(45, 106, 79, 0.35);
}
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Kalam', cursive, system-ui, sans-serif;
  background: #0d1814;
  color: var(--ink);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, select { font-family: 'DM Sans', sans-serif; font-weight: 600; }

.arena-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #fffef5;
  border-bottom: 1.5px solid #e5d9b6;
  backdrop-filter: none;
}
.arena-nav::before {
  content: "";
  position: absolute;
  left: 68px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: rgba(185, 28, 28, 0.2);
  pointer-events: none;
  z-index: 1;
}
.arena-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.arena-wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.arena-wordmark svg {
  display: block;
  height: auto;
  max-width: min(150px, 42vw);
}
.arena-suffix {
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(27, 67, 50, 0.72);
  white-space: nowrap;
}
.arena-home {
  position: relative;
  z-index: 2;
  font-family: "Kalam", cursive, sans-serif;
  color: rgba(27, 67, 50, 0.72);
  font-size: 0.82rem;
  font-weight: 500;
}
.arena-cta {
  position: relative;
  z-index: 2;
  font-family: "DM Sans", sans-serif;
  border: none;
  border-radius: 999px;
  background: #2D6A4F;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 16px;
  cursor: pointer;
}

.arena-hero {
  position: relative;
  padding: 54px 28px 34px;
  overflow: hidden;
}
.arena-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.7;
}
.glow-one {
  width: 280px; height: 280px;
  right: -80px; top: -50px;
  background: radial-gradient(circle, rgba(45,106,79,.5), transparent 70%);
}
.glow-two {
  width: 220px; height: 220px;
  left: -40px; bottom: -80px;
  background: radial-gradient(circle, rgba(201,168,76,.28), transparent 72%);
}
.arena-inner { position: relative; z-index: 2; max-width: 920px; margin: 0 auto; }
.arena-kicker {
  font-family: 'DM Sans', sans-serif;
  display: inline-flex;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: #E5D9B6;
  background: rgba(45,106,79,.28);
  border: 1px solid rgba(229,217,176,.35);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 14px;
}
.arena-hero h1 {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 2.8vw + 0.6rem, 3rem);
  line-height: 1.08;
  margin-bottom: 10px;
}
.arena-sub {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 780px;
}

.arena-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px 42px;
  display: grid;
  gap: 20px;
}
.arena-filters,
.mission-zone,
.play-zone {
  background: #1B4332;
  border: 1.5px solid #E5D9B6;
  border-radius: 18px;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.35);
  padding: 16px;
}

.arena-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.filter-box label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #E5D9B6;
  font-weight: 800;
  margin-bottom: 6px;
}
.filter-box select {
  width: 100%;
  min-height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(45,106,79,.32);
  background: var(--card);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 10px;
}

.zone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.zone-head h2 {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.zone-head p {
  font-size: 0.8rem;
  color: var(--muted);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.mission-card {
  border-radius: 14px;
  border: 1px solid rgba(45,106,79,.24);
  background: var(--card-soft);
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.mission-card:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 217, 176, 0.55);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.35);
}
.mission-badge {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.mission-badge.assess { background: rgba(45,106,79,.25); color: #E5D9B6; }
.mission-badge.learn { background: rgba(16,185,129,.18); color: #6ee7b7; }
.mission-badge.puzzle { background: rgba(249,115,22,.2); color: #fdba74; }
.mission-card h3 {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}
.mission-card p {
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.55;
}
.mission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.mission-tags span {
  border: 1px solid rgba(45,106,79,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: #E5D9B6;
  font-size: 0.64rem;
  padding: 3px 7px;
}
.mission-play {
  margin-top: auto;
  min-height: 35px;
  border-radius: 9px;
  border: 1px solid var(--primary);
  background: linear-gradient(135deg, rgba(45,106,79,.2), rgba(45,106,79,.1));
  color: #FFFEF5;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.empty-missions {
  margin-top: 10px;
  border: 1px dashed rgba(45,106,79,.34);
  border-radius: 12px;
  padding: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.launch-note {
  border-radius: 14px;
  border: 1.5px solid #E5D9B6;
  background: rgba(35, 74, 62, 0.9);
  color: #FFFEF5;
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 14px;
}

@media (max-width: 980px) {
  .mission-grid { grid-template-columns: 1fr 1fr; }
  .arena-filters { grid-template-columns: 1fr 1fr; }
  .filter-box:last-child { grid-column: span 2; }
}
@media (max-width: 700px) {
  .arena-nav { padding: 0 20px; }
  .arena-suffix { font-size: 0.78rem; }
  .arena-cta { display: none; }
  .arena-main { padding: 0 14px 28px; }
  .arena-hero { padding: 40px 14px 24px; }
  .arena-filters { grid-template-columns: 1fr; }
  .filter-box:last-child { grid-column: auto; }
  .mission-grid { grid-template-columns: 1fr; }
  .game-options { grid-template-columns: 1fr; }
}
