:root {
  --bg: #060608;
  --ink: #0b0d12;
  --panel: rgba(15, 18, 24, .92);
  --panel-solid: #121722;
  --panel-soft: rgba(23, 20, 19, .76);
  --line: rgba(222, 170, 77, .28);
  --line-soft: rgba(255, 255, 255, .08);
  --gold: #d7a84c;
  --gold-light: #f3d991;
  --ember: #9b3523;
  --wine: #401018;
  --text: #f4efe5;
  --muted: #b6bdc8;
  --good: #64e09a;
  --bad: #ee7777;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(6, 6, 8, .38), #060608 720px),
    radial-gradient(ellipse at 50% 0, rgba(116, 40, 22, .34), transparent 520px),
    linear-gradient(90deg, rgba(0, 0, 0, .72), transparent 22%, transparent 78%, rgba(0, 0, 0, .72)),
    #060608;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("/assets/img/west-uo-logo.png") center 108px / 620px no-repeat;
  opacity: .13;
  filter: saturate(.85);
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
main { width: min(1200px, calc(100% - 32px)); margin: 0 auto 56px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 82px;
  padding: 12px min(36px, 4vw);
  background: rgba(5, 6, 9, .88);
  border-bottom: 1px solid rgba(222, 170, 77, .2);
  box-shadow: 0 18px 50px rgba(0,0,0,.32);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}
.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.55));
}
.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
}
.brand em {
  display: block;
  margin-top: 2px;
  color: var(--gold-light);
  font-style: normal;
  font-size: 12px;
}
nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  color: #dce0e8;
}
nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  color: rgba(244, 239, 229, .86);
}
nav a:hover {
  color: var(--gold-light);
  border-color: rgba(215, 168, 76, .28);
  background: rgba(255,255,255,.04);
}
.server-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(12, 15, 20, .9);
  color: var(--muted);
  white-space: nowrap;
  box-shadow: inset 0 0 24px rgba(215,168,76,.06);
}
.server-pill.online { color: var(--good); }
.server-pill.offline { color: var(--bad); }

.flash {
  width: min(1200px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: rgba(17, 21, 28, .96);
}
.flash.success { border-color: rgba(100, 224, 154, .52); color: var(--good); }
.flash.error { border-color: rgba(238, 119, 119, .55); color: var(--bad); }

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  padding: 54px 0 34px;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 28px -32px 0;
  z-index: -1;
  border-top: 1px solid rgba(215,168,76,.22);
  border-bottom: 1px solid rgba(215,168,76,.12);
  background:
    linear-gradient(180deg, rgba(91, 22, 20, .18), transparent 46%),
    linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.16) 48%, rgba(0,0,0,.78)),
    url("/assets/img/west-uo-logo.png") center / 760px no-repeat;
  opacity: .9;
}
.hero-stage {
  display: grid;
  grid-template-columns: 300px 1fr 260px;
  gap: 30px;
  align-items: center;
}
.hero-emblem {
  min-height: 360px;
  display: grid;
  place-items: center;
}
.hero-emblem img {
  width: 300px;
  max-width: 100%;
  filter: drop-shadow(0 28px 40px rgba(0,0,0,.76));
}
.hero-copy {
  max-width: 680px;
  text-shadow: 0 3px 20px #000;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 800;
}
h1 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  line-height: .94;
  font-weight: 700;
}
h2 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
}
h3 { margin: 0 0 10px; font-size: 20px; }
.hero-lede,
.hero p {
  color: #e4d9c8;
  font-size: 18px;
  line-height: 1.7;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 132px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(20, 24, 32, .92);
  color: #f7ecd7;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.btn.primary {
  background: linear-gradient(180deg, #f2cc74, #bd812d);
  color: #160f08;
  border-color: #f1d587;
}
.btn.ghost {
  background: rgba(0,0,0,.28);
}
.btn:hover { filter: brightness(1.12); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: rgba(244,239,229,.78);
}
.hero-meta span {
  padding: 8px 10px;
  border: 1px solid rgba(215,168,76,.18);
  background: rgba(0,0,0,.24);
  font-size: 13px;
}

.status-card,
.panel,
.card,
.notice,
.ranking,
.home-strip article {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0,0,0,.36);
}
.status-card {
  padding: 22px;
  align-self: center;
}
.hero-status {
  background:
    linear-gradient(180deg, rgba(83, 24, 22, .58), rgba(12, 15, 21, .94)),
    var(--panel);
}
.status-card span,
.account-grid span {
  display: block;
  color: var(--muted);
}
.status-card strong {
  display: block;
  margin: 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
}
.status-card small {
  display: block;
  color: var(--muted);
}
.status-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(243,217,145,.5);
}
.good { color: var(--good); }
.bad { color: var(--bad); }

.home-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: -20px 0 44px;
}
.home-strip article {
  min-height: 92px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(215,168,76,.07), rgba(14,16,22,.94)),
    rgba(14,16,22,.94);
}
.home-strip span {
  display: block;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.home-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.grid.two {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
}
.home-content {
  align-items: start;
}
.cards {
  display: grid;
  gap: 16px;
}
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two-col { grid-template-columns: repeat(2, 1fr); }
.card {
  padding: 22px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 217, 145, .48);
  background: rgba(21, 24, 31, .98);
}
.card span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
}
.card p,
.notice p,
.muted {
  color: var(--muted);
  line-height: 1.65;
}
.notice-list {
  display: grid;
  gap: 14px;
}
.notice {
  position: relative;
  padding: 18px 18px 18px 22px;
  background: linear-gradient(90deg, rgba(126, 34, 29, .18), rgba(15, 18, 24, .92));
}
.notice::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: var(--gold);
}

.panel {
  padding: 30px;
  margin-top: 34px;
}
.panel.narrow {
  width: min(540px, 100%);
  margin: 54px auto;
}
.article {
  max-width: 860px;
  margin-inline: auto;
}
.article h1 {
  font-size: 54px;
}
.form {
  display: grid;
  gap: 14px;
}
.form.inline {
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
}
label {
  display: grid;
  gap: 7px;
  color: #dfe3ea;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(214,162,74,.28);
  border-radius: 4px;
  background: #0e1118;
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}
textarea {
  min-height: 150px;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(215,168,76,.12);
}
.account-grid,
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0 28px;
}
.account-grid div {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
}
.ranking-grid {
  grid-template-columns: repeat(2, 1fr);
}
.ranking {
  padding: 18px;
}
.ranking div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}
.codebox {
  margin-top: 20px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: #050608;
  color: var(--gold-light);
  font-family: Consolas, monospace;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px min(36px, 4vw);
  color: var(--muted);
  border-top: 1px solid rgba(222, 170, 77, .2);
  background: rgba(5, 6, 9, .92);
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}

@media (max-width: 1100px) {
  .hero-stage {
    grid-template-columns: 230px 1fr;
  }
  .hero-status {
    grid-column: 1 / -1;
    width: min(360px, 100%);
    justify-self: end;
  }
  .hero-emblem {
    min-height: 300px;
  }
  .hero-emblem img {
    width: 230px;
  }
  h1 {
    font-size: 58px;
  }
}

@media (max-width: 860px) {
  main { width: min(100% - 24px, 1200px); }
  .site-header {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .brand { min-width: 0; }
  nav {
    justify-content: flex-start;
  }
  .server-pill {
    justify-self: start;
  }
  .hero {
    min-height: auto;
    padding: 38px 0 26px;
  }
  .home-hero::before {
    inset: 12px -12px 0;
    background-size: 520px;
  }
  .hero-stage,
  .grid.two,
  .cards.three,
  .cards.two-col,
  .home-strip,
  .account-grid,
  .ranking-grid,
  .form.inline {
    grid-template-columns: 1fr;
  }
  .hero-emblem {
    min-height: 210px;
  }
  .hero-emblem img {
    width: 210px;
  }
  .hero-status {
    justify-self: stretch;
    width: auto;
  }
  .home-strip {
    margin-top: 0;
  }
  h1 {
    font-size: 44px;
    line-height: 1;
  }
  h2 {
    font-size: 28px;
  }
  .article h1 {
    font-size: 40px;
  }
  body::after {
    background-size: 420px;
    background-position: center 170px;
  }
}

@media (max-width: 520px) {
  .brand img {
    width: 48px;
    height: 48px;
  }
  nav a {
    padding: 0 9px;
  }
  .btn {
    width: 100%;
  }
  .panel {
    padding: 22px;
  }
  h1 {
    font-size: 36px;
  }
}
