:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #5d6a61;
  --line: #d8ded8;
  --panel: #ffffff;
  --panel-2: #f4f7f3;
  --accent: #0e7c66;
  --accent-2: #9b4d22;
  --gold: #b98521;
  --danger: #a13d48;
  --shadow: 0 14px 35px rgba(23, 32, 27, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #eef2ee;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}
.top-nav a,
.side-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.top-nav a { padding: 8px 10px; white-space: nowrap; }
.top-nav a:hover,
.side-nav a:hover { background: var(--panel-2); color: var(--ink); }
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 24px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px;
}
.side-nav {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 3px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.side-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.side-nav a { padding: 8px 10px; }
.content {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.hero {
  min-height: 260px;
  display: grid;
  align-items: end;
  padding: 42px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(20, 31, 26, 0.9), rgba(20, 31, 26, 0.52)),
    url("assets/arena-match.png") center / cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}
.hero p {
  max-width: 780px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}
.kicker {
  margin: 0 0 10px !important;
  color: #b7f2df !important;
  font-size: 13px !important;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #fff;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}
.button.secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
section {
  min-width: 0;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
h2 { margin: 0 0 14px; font-size: 24px; letter-spacing: 0; }
h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: 0; }
p { color: var(--muted); }
.stat-grid,
.feature-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.stat-card,
.feature {
  display: block;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}
.stat-card strong {
  display: block;
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
}
.stat-card span {
  display: block;
  margin-top: 6px;
  font-weight: 900;
}
.stat-card p,
.feature p { margin-bottom: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}
th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
thead th {
  position: sticky;
  top: 64px;
  z-index: 1;
  background: #e9eee8;
  color: #2a342e;
  font-size: 12px;
  text-transform: uppercase;
}
tbody tr:nth-child(even) td,
tbody tr:nth-child(even) th { background: #fafbf9; }
td a,
th a { color: var(--accent); font-weight: 800; text-decoration: none; }
.tech-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.tech-card {
  padding: 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.tech-card p { margin: 0 0 10px; }
.tech-card ul { margin: 0; padding-left: 18px; }
.note {
  border-color: #d5b35d;
  background: #fff9e7;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.mark {
  display: inline-flex;
  justify-content: center;
  min-width: 70px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.mark.base { background: #dcefe8; color: #075c4c; }
.mark.unlock { background: #fde9cc; color: #814307; }
.mark.ship { background: #e6e2ff; color: #423094; }
.mark.transform { background: #ffe1e6; color: #8d2535; }
.mark.none { background: #eef0ee; color: #7d857f; }
.availability-grid th:first-child,
.availability-grid td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
}
ol { color: var(--muted); }
li + li { margin-top: 6px; }

@media (max-width: 880px) {
  .site-header { align-items: flex-start; flex-direction: column; padding: 10px 14px; }
  .top-nav { width: 100%; }
  .shell { display: block; padding: 14px; }
  .side-nav { position: static; display: flex; margin-bottom: 14px; overflow-x: auto; }
  .side-title { display: none; }
  .side-nav a { white-space: nowrap; }
  .content { gap: 14px; }
  .hero { min-height: 230px; padding: 24px; }
  .hero p { font-size: 16px; }
  section { padding: 16px; }
  table { min-width: 680px; }
  th, td { padding: 9px 10px; }
}
