:root {
  --bg: #14100b;
  --bg2: #1c1710;
  --panel: #211a12;
  --border: #4a3c28;
  --border-soft: #332a1c;
  --text: #e9dfc7;
  --muted: #a6966f;
  --gold: #cda43c;
  --gold-bright: #e6c35c;
  --red: #8a2a2a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "EB Garamond", Georgia, serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at top, rgba(205,164,60,0.06), transparent 55%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.25) 0px, rgba(0,0,0,0.25) 1px, transparent 1px, transparent 3px);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); text-decoration: underline; }
h1, h2, h3, .crest-title { font-family: "Cinzel", Georgia, serif; letter-spacing: 0.03em; }

header.topbar { background: linear-gradient(180deg, #221a10, #19140d); border-bottom: 2px solid var(--border); box-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.topbar-inner { max-width: 980px; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; height: 58px; }
.crest { display: flex; align-items: center; gap: 10px; }
.crest-badge { width: 30px; height: 30px; border: 2px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: "Cinzel", serif; font-weight: 700; color: var(--gold); font-size: 14px; background: radial-gradient(circle, #2a2013, #15110b); }
.crest-title { font-size: 19px; font-weight: 700; color: var(--gold-bright); text-transform: uppercase; }
.topbar nav { display: flex; gap: 22px; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.topbar nav a { color: var(--muted); }
.topbar nav a.active, .topbar nav a:hover { color: var(--gold-bright); text-decoration: none; }

.stripe { background: #0f0c08; border-bottom: 1px solid var(--border-soft); font-size: 12.5px; color: var(--muted); font-family: "EB Garamond", serif; }
.stripe .wrap { display: flex; justify-content: space-between; padding: 7px 22px; flex-wrap: wrap; gap: 6px; }
.stripe b { color: var(--gold); font-weight: 600; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 440px; margin: 0 auto; padding: 0 22px; }

main { padding: 44px 0 70px; }

.login-card { background: var(--panel); border: 1px solid var(--border); border-radius: 4px; padding: 34px 32px; margin-top: 30px; box-shadow: 0 4px 24px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(205,164,60,0.06); }
.login-card h1 { font-size: 21px; margin: 0 0 6px; color: var(--gold-bright); text-align: center; }
.login-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 24px; text-align: center; font-style: italic; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.05em; }
.field input { width: 100%; padding: 10px 11px; border: 1px solid var(--border); border-radius: 3px; font-size: 15px; font-family: inherit; background: #15110b; color: var(--text); }
.field input:focus { outline: none; border-color: var(--gold); }
.row-between { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin: 10px 0 20px; color: var(--muted); }

button.btn-login { width: 100%; padding: 11px; border: 1px solid var(--gold); border-radius: 3px; background: linear-gradient(180deg, #3a2e14, #241b0d); color: var(--gold-bright); font-family: "Cinzel", serif; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; cursor: pointer; }
button.btn-login:hover { background: linear-gradient(180deg, #4a3a18, #2e2310); }

.error-box { display: none; background: #2a1414; border: 1px solid #6b2626; color: #d98888; font-size: 13.5px; padding: 10px 12px; border-radius: 3px; margin-bottom: 16px; }
.error-box.show { display: block; }
.info-box { display: none; background: #14221c; border: 1px solid #2e5c47; color: #8fcbad; font-size: 13.5px; padding: 10px 12px; border-radius: 3px; margin-bottom: 16px; }
.info-box.show { display: block; }

.card-footer { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border-soft); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.panel { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 4px; padding: 26px 28px; margin-bottom: 20px; }
.panel h2 { font-size: 19px; margin: 0 0 14px; color: var(--gold-bright); }
.panel h3 { font-size: 15px; margin: 20px 0 8px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.04em; }
.panel p { margin: 0 0 11px; font-size: 15.5px; }
.panel ol, .panel ul { margin: 0 0 11px; padding-left: 24px; font-size: 15.5px; }
.panel li { margin-bottom: 7px; }

table.roster { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 10px 0; }
table.roster th, table.roster td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border-soft); }
table.roster th { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 0.04em; }
.tag-kill { color: #7fbf8f; font-size: 12.5px; }
.tag-wait { color: var(--muted); font-size: 12.5px; }
.tag-prog { color: var(--gold); font-size: 12.5px; }

.class-pill { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 3px; border: 1px solid var(--border); color: var(--muted); }

footer { border-top: 1px solid var(--border-soft); padding: 20px 0 40px; color: var(--muted); font-size: 12.5px; text-align: center; }

@media (max-width: 620px) {
  .topbar nav { display: none; }
  .stripe .wrap { flex-direction: column; }
}
