:root {
  --stone: #3e3529;
  --stone-dark: #1c1812;
  --stone-mid: #2a231a;
  --gold: #e8c56b;
  --gold-dim: #b8943a;
  --ink: #f0e6c8;
  --muted: #c4b48a;
  --slot: #2b241c;
  --line: #6a5a3a;
  --ags: #3d6b3a;
  --bgs: #6b4a1e;
  --up: #9fe07a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--stone-dark);
  color: var(--ink);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.frame {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

header {
  border: 2px solid var(--gold-dim);
  background: linear-gradient(#4a3f30, var(--stone));
  padding: 16px 18px 14px;
  box-shadow: inset 0 0 0 1px #2a2218, 0 4px 0 #14110c;
}

.kicker {
  margin: 0 0 4px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

h1, h2, h3 {
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 8px;
  text-shadow: 0 1px 0 #1a140c;
}

h1 { font-size: 26px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }

.cover, .lead {
  color: var(--muted);
  margin: 0 0 8px;
}

.cover { max-width: 72ch; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}

nav a {
  color: #1a140c;
  background: var(--gold);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid #8a7020;
  font-weight: 700;
}

nav a:hover { background: #f3d98a; }

section { margin: 24px 0; }

details.note-box {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

details.note-box summary {
  cursor: pointer;
  color: var(--gold-dim);
  font-weight: 700;
}

details.note-box p { margin: 8px 0 0; }

.scroll {
  overflow-x: auto;
  border: 2px solid var(--gold-dim);
  background: var(--stone);
  box-shadow: 0 4px 0 #14110c;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

table.rollout { min-width: 920px; }
table.dps { min-width: 720px; }

th, td {
  padding: 6px 8px;
  border-bottom: 1px solid #5a4a32;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: break-word;
}

th {
  background: #2f281e;
  color: var(--gold);
  font-family: Georgia, Palatino, "Times New Roman", serif;
  font-size: 12px;
  white-space: nowrap;
}

tbody tr:nth-child(even) { background: rgba(0, 0, 0, 0.18); }
tbody tr.wep-start { border-top: 2px solid #6a5a3a; }
tbody tr:hover { background: #4a3d2c; }

.icon {
  width: 44px;
  background: var(--slot);
  text-align: center;
}

.icon img {
  width: 36px;
  height: 32px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  object-fit: contain;
  vertical-align: middle;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

th.grade, td.grade, th.v, td.v {
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-left: 4px;
  padding-right: 4px;
}

.stat {
  color: var(--gold);
  font-family: Georgia, Palatino, "Times New Roman", serif;
  white-space: nowrap;
}

th.num { text-align: right; }

th.v, td.v {
  color: var(--gold);
  font-weight: 700;
  background: rgba(232, 197, 107, 0.16);
}

.id, .note {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff8dc;
  border: 1px solid #111;
}

.badge-ags { background: var(--ags); }
.badge-bgs { background: var(--bgs); }
.badge-no { background: #3a3530; color: var(--muted); font-weight: 500; }

.wep-dps { margin: 16px 0; }
.wep-dps h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}
.wep-dps h3 img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.up {
  color: var(--up);
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.up-sub {
  display: block;
  color: #c6dfa8;
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--gold);
  word-break: break-all;
}

ul.exclude { margin: 0; padding: 0 0 0 18px; }
ul.exclude li { margin: 0 0 6px; }

footer {
  margin-top: 24px;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

@media (max-width: 640px) {
  h1 { font-size: 22px; }
  .frame { padding: 12px 8px 28px; }
}
