:root {
  --bg: #070606;
  --panel: #120e0e;
  --line: #5a3030;
  --red: #b71c1c;
  --red-2: #8e1515;
  --red-hot: #e23b3b;
  --gold: #c9a44c;
  --gold-2: #e6d7a8;
  --cream: #efe8dc;
  --muted: #8d8479;
  --text: #ddd4c8;
  --ok: #4caf70;
  --font: "DM Sans", "Segoe UI", sans-serif;
  --font-display: "Cinzel", serif;
  --font-serif: "Cormorant Garamond", serif;
  --font-script: "Great Vibes", cursive;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #0a0808;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.banner {
  position: relative;
  height: 108px;
  overflow: hidden;
  border-bottom: 1px solid #5a2424;
  background:
    linear-gradient(90deg, rgba(5, 4, 4, 0.35), transparent 18%, transparent 82%, rgba(5, 4, 4, 0.35)),
    url("../img/header-art.png") center 40% / cover no-repeat;
  box-shadow: inset 0 -18px 28px rgba(0, 0, 0, 0.5);
}

.banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: inherit;
}

.crown {
  width: 52px;
  height: 20px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(201, 164, 76, 0.45));
}

.crown svg { width: 100%; height: 100%; display: block; }

.brand-name {
  display: flex;
  gap: 0.28em;
  line-height: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  text-shadow: 0 2px 0 #1a0c0c, 0 10px 24px rgba(0, 0, 0, 0.7);
}

.word-infamous {
  color: #ece6dc;
  background: linear-gradient(#fff, #cfc6b8 55%, #8f877a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.word-society {
  color: #d42424;
  text-shadow: 0 2px 0 #3a0808, 0 8px 18px rgba(0, 0, 0, 0.7);
}

.brand-tag {
  margin-top: 4px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.trust {
  position: absolute;
  right: 28px;
  top: 50%;
  z-index: 3;
  margin: 0;
  transform: translateY(-40%);
  font-family: var(--font-script);
  font-size: 28px;
  color: #f6efe4;
  text-shadow: 0 2px 12px #000;
  pointer-events: none;
}

.auth {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 48px) 16px;
}

.auth-box {
  width: min(420px, 100%);
  margin: 0;
  padding: 0;
}

.auth-body {
  position: relative;
  z-index: 2;
  padding: 16px 18px 18px;
}

.auth-brand {
  margin: 0 0 4px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ece6dc;
}

.auth-brand span {
  color: #d41818;
}

.auth-lead {
  margin: 0 0 16px;
  text-align: center;
  color: #8d8479;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 14px;
  border: 1px solid #2e2e2e;
}

.auth-switch a {
  text-align: center;
  padding: 8px 0;
  color: #a8a098;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-right: 1px solid #2e2e2e;
  background: #0c0c0c;
}

.auth-switch a:last-child { border-right: 0; }

.auth-switch a.on {
  color: #fff;
  background: #8e1212;
}

.auth-switch a:hover { color: #fff; }

.field { display: block; margin-bottom: 10px; }
.field span {
  display: block;
  margin-bottom: 5px;
  color: #a8a098;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #2e2e2e;
  background: #0a0a0a;
  color: #f0ebe3;
  font: 500 13px var(--font);
  outline: none;
}
.field input:focus {
  border-color: #4a4a4a;
  box-shadow: inset 0 0 0 1px #333;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  color: #a8a098;
  font-size: 12px;
}
.check a { color: #d8cdc0; text-decoration: underline; }
.check a:hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border: 1px solid #6e1a1a;
  background: #8e1212;
  color: #fff4e8;
  font: 700 12px var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: #a01616; }

.text-link {
  display: inline-block;
  margin-top: 10px;
  color: #c8c0b6;
  font-size: 12px;
}
.text-link:hover { color: #fff; }

.auth-stats {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #222;
  color: #8d8479;
  font-size: 11px;
  text-align: center;
}

.auth-note {
  margin: 0 0 12px;
  color: #8d8479;
  font-size: 12px;
  line-height: 1.4;
}

.btn-alt {
  margin-top: 8px;
  background: #1a1a1a;
  border-color: #333;
  color: #c8c0b6;
}
.btn-alt:hover {
  background: #222;
  color: #fff;
}

.flash {
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid #2e2e2e;
  background: #101010;
  font-size: 13px;
}
.flash.bad { border-color: #5a2020; color: #e8b0b0; }
.flash.ok { border-color: #3d5a32; color: #c7e0b8; }

/* Login page shares in-game texture + chrome */
body.login-page,
body.login-page .site {
  background-color: #050505;
  background-image: url("../img/page-bg.png");
  background-repeat: repeat;
  background-size: 262px 30px;
}

body.login-page .foot {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 14px 14px;
  background: transparent;
  border: 0;
  border-top: 1px solid #222;
}

body.login-page .foot a:hover { color: #fff; }

.page {
  width: min(720px, calc(100% - 32px));
  margin: 28px auto 48px;
  border: 1px solid #3a2c2c;
  background: var(--panel);
}
.page h1 {
  margin: 0;
  padding: 10px 14px;
  background: linear-gradient(#8f1c1c, #5c1010);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
}
.page p, .page form {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-top: 1px solid #3a2020;
  background: #0c0909;
  color: var(--muted);
  font-size: 12px;
}
.foot nav { display: flex; gap: 14px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--gold); }

.hidden { display: none; }
.ico { width: 14px; height: 14px; flex: 0 0 14px; }
