/* Public website. Same palette and type as the app ("Night-lantern archive"); colour is kept for rarity. */
:root {
  --ink-0: #0d0919; --ink-1: #120d24; --ink-2: #1b1433; --ink-3: #271d47;
  --line: rgba(236, 228, 255, 0.16); --line-2: rgba(236, 228, 255, 0.28);
  --text: #f6efe4; --muted: #b9afd0;
  --accent: #ffb454; --accent-2: #ffd08a; --accent-ink: #2a1606;
  --r-common: #9d98ad; --r-rare: #3fc6d8; --r-epic: #cf62f2; --r-legendary: #e7b64c; --r-mythic: #ff5470;
  --font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; color: var(--text); font: 16px/1.55 var(--font-body);
  background: linear-gradient(180deg, #1e1540 0%, var(--ink-1) 320px); background-color: var(--ink-1); }
a { color: var(--accent-2); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 960px; margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--ink-3); color: var(--text); font-weight: 700; text-decoration: none; text-align: center; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.small { min-height: 40px; padding: 0 16px; }

main { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px 40px; }
main.doc { max-width: 720px; }
.muted { color: var(--muted); }

.doc h1 { font-size: clamp(28px, 6vw, 38px); margin: 18px 0 6px; }
.doc h2 { font-size: 21px; margin: 30px 0 8px; }
.doc p, .doc li { max-width: 65ch; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th:first-child { text-align: left; }
thead th { color: var(--muted); font-weight: 600; font-size: 13px; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tfoot th, tfoot td { border-top: 1px solid var(--line-2); border-bottom: 0; }
tr.r-common th { color: var(--r-common); } tr.r-rare th { color: var(--r-rare); } tr.r-epic th { color: var(--r-epic); }
tr.r-legendary th { color: var(--r-legendary); } tr.r-mythic th { color: var(--r-mythic); }

.foot { width: 100%; max-width: 960px; margin: 0 auto; padding: 20px 16px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { color: var(--text); padding: 6px 0; }
.foot nav a[aria-current] { color: var(--accent-2); }
.foot p { margin: 12px 0 0; }

}
