/* Public entry points share the game's forest, parchment and brass palette. */
:root {
  color-scheme: dark;
  --site-bg: #101713;
  --site-text: #eee4ce;
  --site-muted: #b3b5a6;
  --site-gold: #d9bd80;
  --site-edge: #bba06a30;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 50% 0, #29352a, var(--site-bg) 70%); color: var(--site-text); font: 14px/1.7 var(--font-ui); }
main { max-width: 1040px; margin: auto; padding: 56px 28px; }
h1 { margin: 20px 0 12px; color: #f0dfb8; font: 700 clamp(28px, 5vw, 40px)/1.25 var(--font-display); letter-spacing: .025em; }
p { color: var(--site-muted); }
a { color: var(--site-gold); text-underline-offset: 4px; }
button, select, .btn { min-height: 44px; padding: 10px 16px; border: 1px solid #545849; border-radius: 5px; background: #263027; color: var(--site-text); font: inherit; }
button, .btn { cursor: pointer; transition: background-color 140ms, border-color 140ms, transform 120ms cubic-bezier(.23,1,.32,1); }
button:disabled { opacity: .5; cursor: wait; }
button[aria-pressed=true] { background: #d9bd8018; color: #f5dfb0; border-color: #d9bd8080; box-shadow: inset 0 -2px var(--site-gold); }
:focus-visible { outline: 2px solid #f3d89a; outline-offset: 4px; }
nav, .filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 28px 0; }
.filters { padding: 16px 0; border-block: 1px solid var(--site-edge); }
.filters label { margin-right: 8px; color: var(--site-muted); font-size: 12px; }
.filters select { max-width: 100%; min-width: 160px; }
#refresh { margin-left: auto; }
#back { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.table { overflow: auto; border: 1px solid var(--site-edge); border-radius: 6px; background: #111914; }
table { border-collapse: collapse; width: 100%; text-align: left; font-variant-numeric: tabular-nums; }
th, td { padding: 16px 20px; border-bottom: 1px solid var(--site-edge); }
th { color: var(--site-muted); background: #ffffff05; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
td:first-child { color: var(--site-gold); }
td:nth-child(2) { overflow-wrap: anywhere; min-width: 140px; }
th:nth-last-child(-n+2), td:nth-last-child(-n+2) { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
#status { min-height: 24px; font-size: 12px; }
footer { margin-top: 24px; max-width: 720px; color: var(--site-muted); font-size: 12px; line-height: 1.8; }

body.landing { display: grid; place-items: center; }
.landing main { width: min(100%, 520px); padding: 40px 28px; text-align: center; }
.landing h1 { font-size: clamp(40px, 9vw, 56px); letter-spacing: .08em; margin: 0 0 24px; }
.landing main > p { margin: 0 0 28px; line-height: 1.85; }
.landing .btn { display: flex; justify-content: center; align-items: center; margin: 12px 0; padding: 14px 18px; text-decoration: none; font-size: 13px; font-weight: 500; }
.landing #play { background: linear-gradient(#e0c58e, #c9ab6d); border-color: #e2c991; color: #182019; }
.landing .btn.quiet { background: transparent; border-color: transparent; color: var(--site-muted); }
.landing #realms { margin: 24px 0 16px; padding: 16px; text-align: left; border: 1px solid var(--site-edge); border-radius: 6px; background: #10171380; }
.landing #realms:empty { display: none; }
.landing small { display: block; margin-top: 24px; color: var(--site-muted); font-size: 11px; }
.landing .rg .rg-t { font-size: 11px; letter-spacing: .12em; color: var(--site-muted); border-color: var(--site-edge); padding-bottom: 12px; }
.landing .rg .rg-r { background: #ffffff04; border-color: transparent; box-shadow: none; border-radius: 4px; }
.landing .rg .rg-r.cur { border-color: #d9bd8066; background: #d9bd8010; }
.landing .rg .rg-r .nm { font-size: 12px; letter-spacing: .02em; }
.landing .rg .rg-n, .landing .rg-spawn p { color: var(--site-muted); }
.landing .rg-spawn { border: 0; padding: 0; margin: 18px 0; }
@media (hover: hover) and (pointer: fine) {
  button:not(:disabled):hover, .btn:hover { border-color: var(--site-gold); background-color: #344033; }
  .landing #play:hover { background: #ecd5a4; }
  .landing .btn.quiet:hover { background: #ffffff06; color: var(--site-gold); border-color: transparent; }
  .landing .rg .rg-r:hover { border-color: #d9bd8066; }
  tbody tr:hover { background: #ffffff03; }
}
button:not(:disabled):active, .btn:active { transform: scale(.98); }
@media (max-width: 600px) {
  main { padding: 24px 16px; }
  .landing main { padding: 32px 24px; }
  .filters { gap: 10px; }
  .filters label { flex-basis: 100%; }
  th, td { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  button, .btn { transition: none; }
  button:not(:disabled):active, .btn:active { transform: none; }
}
