:root {
  color-scheme: light;
  --paper: #f7f5f1;
  --card: #fffdfa;
  --ink: #21192a;
  --muted: #635b68;
  --purple: #4a237b;
  --violet: #efe7f8;
  --line: #dfd8e2;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  font: 16px/1.55 "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--purple); text-underline-offset: .2em; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a378d4; outline-offset: 4px; }
.wrap { width: min(100% - 40px, 1000px); margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--card); }
.site-header .bar { min-height: 72px; }
.brand {
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -.075em;
  text-decoration: none;
}
.brand span { color: var(--purple); margin-left: .12em; }
.brand small { margin-left: .7em; font: 700 10px var(--mono); letter-spacing: .06em; }
nav { display: flex; flex-wrap: wrap; gap: 6px clamp(12px, 3vw, 32px); }
nav a { color: var(--ink); font-size: .9rem; font-weight: 650; text-decoration: none; }
nav a:hover, .text-link:hover { text-decoration: underline; }

.hero {
  margin-top: 30px;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-left: 5px solid var(--purple);
  border-radius: 0 14px 14px 0;
  background:
    radial-gradient(circle, #7242a526 1px, transparent 1.5px) right top / 12px 12px,
    linear-gradient(110deg, #f1e9fa 62%, #e7d6f6);
}
h1, h2 { margin: 0; line-height: 1.08; letter-spacing: -.045em; }
h1 { font-size: clamp(2rem, 5.5vw, 4.45rem); font-weight: 850; }
h1 > span { display: block; color: var(--purple); }
h1 small {
  display: block;
  margin-top: 19px;
  font: 700 clamp(.78rem, 1.8vw, 1rem)/1.5 var(--mono);
  letter-spacing: 0;
}
h1 small span { color: var(--purple); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); }
p { margin: .8em 0 0; }
.hero p { max-width: 62ch; }
.section { margin-top: 42px; scroll-margin-top: 16px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; }
.text-link { font-weight: 750; text-decoration: none; }
.panel { margin-top: 22px; padding: clamp(16px, 3vw, 28px); border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.notice { padding: 10px 13px; border-left: 3px solid #8a5abd; background: var(--violet); font-size: .9rem; }
.evidence, .empty { color: var(--muted); }
.evidence { font-size: .85rem; }
.empty { padding: 13px 0; }

.code-table { border-spacing: 0; width: 100%; margin-top: 16px; text-align: left; font-size: .9rem; }
.code-table thead { color: var(--muted); }
.code-table th, .code-table td { padding: 12px 10px; vertical-align: top; border-bottom: 1px solid var(--line); }
.code-table th:first-child { padding-left: 0; }
.code-table td:last-child { padding-right: 0; }
.code-table time { white-space: nowrap; }
.code-table small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.45; }
code, kbd { padding: .15em .35em; border-radius: 4px; color: var(--purple); background: var(--violet); font-family: var(--mono); }
code { overflow-wrap: anywhere; }
.status { display: inline-block; padding: 3px 8px; color: #235836; background: #e1efdf; border-radius: 6px; font-size: .78rem; font-weight: 750; }
.status--review { color: #754715; background: #f8ead0; }
.status--expired { color: #514a56; background: #eee9ef; }
button[data-copy] {
  min-width: 82px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--purple);
  border-radius: 7px;
  color: white;
  background: var(--purple);
  font: inherit;
  font-size: .85rem;
  font-weight: 750;
}
button[data-copy]:hover { background: #33165b; }
.steps { margin: 15px 0 0; padding-left: 1.7em; }
.steps li { padding: 6px 0 6px .35em; }
.steps li::marker { color: var(--purple); font-weight: 800; }
.archive { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
summary { padding: 14px 18px; font-weight: 750; }
summary span { margin-left: .45em; color: var(--purple); font-family: var(--mono); }
.archive-content { padding: 0 18px 14px; }
.updates, .status-guide { margin-top: 14px; font-size: .9rem; }
.updates summary, .status-guide summary { padding: 7px 0; color: var(--purple); }
.updates ul { margin: 0; padding-left: 1.3em; }
.status-guide .reward-list { margin: 4px 0; }
.reward-list dt { margin-top: 10px; font-weight: 750; }
.reward-list dd { margin: 2px 0 0; max-width: 78ch; }
.table-scroll { margin-top: 12px; overflow-x: auto; }
.rarity-table { width: 100%; min-width: 425px; border-spacing: 0; text-align: left; font-size: .9rem; }
.rarity-table caption { padding: 0 0 8px; color: var(--muted); text-align: left; }
.rarity-table th, .rarity-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rarity-table thead { background: var(--violet); }
.rarity-table tbody { background: var(--card); }
.faq { margin-top: 14px; border-top: 1px solid var(--line); }
.faq details { padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.faq summary { padding-inline: 0; }
.faq p { margin: 0 0 14px; max-width: 76ch; }
.guide-figure { max-width: 750px; margin: 22px 0 0; }
.guide-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.guide-figure figcaption { margin-top: 5px; color: var(--muted); font-size: .85rem; }
.community { padding: 20px; background: var(--violet); border-radius: 10px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-weight: 700; }
.links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.site-footer { margin-top: 42px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.site-footer .bar { flex-wrap: wrap; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 1; padding: 8px 12px; background: white; }

@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .site-header .bar { flex-wrap: wrap; gap: 0 14px; padding-block: 8px; min-height: 60px; }
  nav { gap: 0 12px; }
  nav a { padding-block: 12px; font-size: .8rem; }
  .hero { margin-top: 19px; padding-block: 23px; }
  .section { margin-top: 29px; }
}

@media (max-width: 800px) {
  .code-table, .code-table tbody { display: block; }
  .code-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .code-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .code-table tbody :is(th, td) { border: 0; padding: 0; min-width: 0; }
  .code-table tbody th, .code-table td { grid-column: 1 / -1; }
  .code-table td[data-label="Reward"]::before, .code-table td[data-label="New server?"]::before, .code-table td[data-label="Last verified"]::before { content: attr(data-label) " · "; color: var(--muted); }
  .code-table tr:has(.copy-cell) th { grid-column: 1; grid-row: 1; align-self: center; }
  .code-table .copy-cell { grid-column: 2; grid-row: 1; }
  .code-table .copy-cell:has(button[hidden]) { display: none; }
}
