:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, system-ui, sans-serif;
  color: #eaf0f1;
  background: #0c141b;
  --line: #33414b;
  --panel: #152029;
  --gold: #efd398;
  --skill: #f2bde0;
  --effect: #a4dcf0;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1040px; margin: auto; padding: 20px clamp(16px, 4vw, 44px) 60px; }
a { color: var(--gold); text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
header { padding: 22px clamp(20px, 4vw, 48px); border-radius: 8px; background-size: cover; background-position: center 34%; }
header p { margin: 64px 0 0; color: var(--gold); }
h1, h2, h3 { line-height: 1.32; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 5vw, 3.5rem); margin: 4px 0 10px; }
small { color: #c4b7bf; font-size: .86em; font-weight: 400; }
h1 small { font-size: .48em; white-space: nowrap; }
.intro { margin: 18px 0; }
nav { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 0; }
nav a { font-size: .94rem; }
section { border-top: 1px solid var(--line); padding: 28px 0; scroll-margin-top: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 16px; }
h3 { font-size: 1.04rem; color: var(--gold); margin: 22px 0 10px; }
p, li, dd { line-height: 1.65; }
p { max-width: 82ch; }
dl, .stats, .rotation { display: grid; gap: 10px; margin: 0; padding: 0; }
dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
dl > div, .rotation li { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 14px; }
dt { display: flex; align-items: center; gap: 12px; font-weight: 650; }
dt img { border-radius: 5px; flex: none; }
dt small { display: block; }
dd { margin: 10px 0 0; color: #d2dce1; }
.stats { grid-template-columns: repeat(3, 1fr); margin: 20px 0 6px; }
.stat { border-top: 2px solid #9c825a; background: var(--panel); padding: 12px; }
.stat strong { display: block; color: var(--gold); font-size: clamp(1.2rem, 3vw, 1.8rem); }
.stat span { display: block; font-size: .9rem; margin-top: 4px; }
.rotation { list-style: none; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rotation img { width: 32px; height: 32px; display: block; margin-bottom: 7px; border-radius: 4px; }
.rotation b, .rotation span { display: block; }
.rotation span { font-size: .92rem; color: #cbd5db; margin-top: 3px; }
.skill, dt span, .rotation b { color: var(--skill); }
.resource { color: var(--gold); }
.effect { color: var(--effect); }
ol:not(.rotation) { padding-left: 24px; }
li + li { margin-top: .4em; }
.rotation li { margin: 0; }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; padding: 8px 0; color: var(--gold); }
th, td { padding: 8px; text-align: left; border-bottom: 1px solid var(--line); }
iframe { width: 100%; aspect-ratio: 16/9; border: 0; }
@media (max-width: 620px) {
  dl { grid-template-columns: 1fr; }
  .rotation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { gap: 5px; }
  .stat { padding: 8px; }
  .stat span { font-size: .85rem; }
  th, td { padding: 6px 4px; }
}
