/* Usurp the Shadow Throne palette */
:root {
  --bg: #2e2747;
  --bg-deep: #1f1a33;
  --card: #3a3259;
  --border: #52477a;
  --fg: #efe7f3;
  --muted: #b7abc8;
  --accent: #c689c5;
  --accent-hover: #d6a3d5;
  --on-accent: #2e2747;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #3d3460 0%, var(--bg) 45%, var(--bg-deep) 100%) fixed;
  background-color: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}

main { max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; }

.hero { text-align: center; }
.hero img { width: min(100%, 440px); height: auto; }

h1, .subheading, legend, .count { font-family: "Cinzel", Georgia, serif; }
h1 { color: var(--accent); font-size: clamp(2rem, 7vw, 2.75rem); font-weight: 700; letter-spacing: 0.04em; line-height: 1.15; margin: 8px 0 0; text-align: center; }
.subheading { text-align: center; font-size: 1.15rem; font-weight: 600; letter-spacing: 0.06em; margin: 4px 0 24px; }

a { color: var(--accent); }
.event ul { padding-left: 20px; }
.event li { margin: 4px 0; }
.event em { color: var(--accent); font-style: normal; font-weight: 600; }

.host { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 24px 0; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.host img { width: 200px; height: auto; }

.card { background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 12px; padding: 24px; margin: 24px 0; }
.count { font-size: 1.2rem; font-weight: 600; margin-top: 0; }
.count strong { color: var(--accent); }
.fine, .optional { color: var(--muted); font-size: 0.875rem; font-weight: normal; font-family: system-ui, sans-serif; }
.flash { background: var(--card); border-left: 3px solid var(--accent); border-radius: 8px; padding: 12px 16px; }

.you { display: flex; align-items: center; gap: 12px; }
.you img { width: 40px; height: 40px; border-radius: 50%; }

fieldset { border: 0; padding: 0; margin: 16px 0; }
legend { font-weight: 600; margin-bottom: 8px; }
.choice { display: block; padding: 4px 0; cursor: pointer; }
input[type="radio"] { accent-color: var(--accent); }
.field { display: block; font-weight: 600; margin-bottom: 16px; }
.field input { display: block; width: 100%; margin-top: 6px; padding: 10px; font: inherit; font-weight: normal; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-deep); color: var(--fg); }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

button, .discord { font: inherit; cursor: pointer; }
.discord, .primary {
  display: inline-block; border: 0; border-radius: 8px; padding: 12px 20px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none;
}
.discord:hover, .primary:hover { background: var(--accent-hover); }
.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; }
.subtle { color: var(--muted); font-size: 0.875rem; margin-top: 16px; }
form.inline { display: inline; }

footer { text-align: center; color: var(--muted); font-size: 0.875rem; margin-top: 32px; }
footer a, footer .link { color: var(--muted); }

.tally { padding-left: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
