:root {
  color-scheme: dark;
  --night: #100b0c;
  --navy: #211416;
  --panel: #2b1a1c;
  --panel-light: #392023;
  --line: rgb(224 207 200 / 16%);
  --gold: #c43d3d;
  --gold-light: #ef7770;
  --ink: #f1ece8;
  --muted: #b8aaa5;
  --blue: #d47b73;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 4%, rgb(133 38 43 / 34%), transparent 43rem),
    linear-gradient(180deg, var(--navy), var(--night) 680px);
  color: var(--ink);
  font-family: var(--sans);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.site-header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(20px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
  background: rgb(13 9 10 / 78%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 0.13em;
}

.brand-crest,
.footer-crest,
.faction-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--serif);
  font-weight: 700;
}

.brand-crest {
  width: 36px;
  height: 42px;
  clip-path: polygon(50% 0, 95% 15%, 88% 70%, 50% 100%, 12% 70%, 5% 15%);
  background: linear-gradient(145deg, #713034, #351b20);
  font-size: 20px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 12px;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-email {
  max-width: 230px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-banner {
  margin-top: 24px;
  padding: 11px 14px;
  border: 1px solid rgb(196 61 61 / 38%);
  background: rgb(196 61 61 / 10%);
  color: var(--gold-light);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: clamp(62px, 10vw, 122px) 0 52px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1,
.access-panel h1 {
  margin: 0;
  color: #f4f0e2;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 400;
  line-height: 1.04;
  text-shadow: 0 3px 26px rgb(0 0 0 / 30%);
}

.hero h1 em,
.access-panel h1 em {
  color: var(--gold-light);
  font-weight: 400;
}

.hero > p:last-child,
.access-panel > p:not(.eyebrow) {
  max-width: 550px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.release-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 34px;
  padding: 22px clamp(20px, 4vw, 36px);
  border-color: rgb(196 61 61 / 38%);
  background:
    radial-gradient(ellipse at 12% 50%, rgb(133 38 43 / 22%), transparent 55%),
    linear-gradient(145deg, rgb(55 30 33 / 96%), rgb(31 19 21 / 97%));
}

.release-copy .eyebrow {
  margin-bottom: 6px;
}

.release-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(18px, 3vw, 23px);
  font-weight: 400;
}

.release-copy > p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.countdown {
  display: flex;
  flex: 0 0 auto;
  gap: clamp(8px, 2vw, 20px);
}

.countdown > div {
  min-width: 55px;
  text-align: center;
}

.countdown span,
.countdown small {
  display: block;
}

.countdown span {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 31px);
  font-variant-numeric: tabular-nums;
}

.countdown small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.release-live {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 20px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: start;
  gap: 20px;
  padding-bottom: 55px;
}

.panel,
.access-panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgb(55 30 33 / 96%), rgb(31 19 21 / 97%));
  box-shadow: 0 18px 50px rgb(0 0 0 / 18%);
}

.panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 31px);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.section-heading .eyebrow {
  margin-bottom: 7px;
  font-size: 9px;
}

.section-heading h2 {
  margin: 0;
  color: #f3eee0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.button-gold {
  background: var(--gold);
  color: #211216;
}

.button-gold:hover:not(:disabled) {
  background: var(--gold-light);
}

.button-outline {
  border-color: rgb(196 61 61 / 58%);
  background: transparent;
  color: var(--gold-light);
}

.button-outline:hover:not(:disabled) {
  background: rgb(196 61 61 / 11%);
}

.button-small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 10px;
  white-space: nowrap;
}

.text-link {
  color: var(--gold-light);
  font-size: 11px;
  text-decoration-color: rgb(239 119 112 / 50%);
  text-underline-offset: 3px;
  white-space: nowrap;
}

.news-list,
.character-list {
  display: grid;
  gap: 12px;
}

.news-card,
.character-card {
  border: 1px solid rgb(224 207 200 / 12%);
  background: rgb(16 10 11 / 38%);
}

.news-card {
  padding: 16px 17px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
}

.news-tag,
.character-game {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.news-card h3,
.character-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
}

.news-card h3 a {
  color: inherit;
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--gold-light);
}

.news-card > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.character-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.character-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
}

.character-details {
  flex: 1;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
}

.faction-mark {
  grid-row: 1 / span 6;
  width: 30px;
  height: 36px;
  clip-path: polygon(50% 0, 95% 15%, 88% 70%, 50% 100%, 12% 70%, 5% 15%);
  background: #3c2025;
  font-size: 15px;
}

.faction-mark.horde {
  border-color: #c43d3d;
  color: #ef7770;
}

.character-game {
  margin-bottom: 4px;
  font-size: 8px;
}

.character-card h3 {
  font-size: 18px;
}

.character-card p {
  margin-top: 3px;
  font-size: 10px;
}

.character-card p.character-spec {
  color: var(--gold-light);
}

.character-card p.character-owner {
  color: var(--muted);
}

.character-attunement {
  grid-column: 2;
  display: grid;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.character-attunement strong {
  color: var(--gold-light);
  font-size: 12px;
}

.character-attunement label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--ink);
}

.character-attunement input {
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.character-attunement a {
  color: var(--gold-light);
}

.character-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.addons-panel {
  margin-bottom: 24px;
}

.leveling-panel {
  margin-bottom: 24px;
}

.scoreboard-panel {
  margin-top: 24px;
}

.scoreboard-scroll {
  overflow-x: auto;
}

.scoreboard {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 14px;
  text-align: left;
}

.scoreboard th,
.scoreboard td {
  padding: 12px;
  border-top: 1px solid rgb(224 207 200 / 12%);
}

.scoreboard thead th {
  color: var(--gold-light);
  font-size: 12px;
}

.scoreboard tbody th {
  font-weight: 600;
}

.character-picker {
  display: grid;
  min-width: min(220px, 42%);
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.character-picker select {
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid rgb(224 207 200 / 25%);
  border-radius: 2px;
  background: #171011;
  color: var(--ink);
  font: inherit;
}

.leveling-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 12px;
}

.leveling-progress progress {
  width: min(300px, 60%);
  height: 8px;
  accent-color: var(--gold);
}

.leveling-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.leveling-group {
  padding: 15px;
  border: 1px solid rgb(224 207 200 / 12%);
  background: rgb(16 10 11 / 38%);
}

.leveling-group h3 {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
}

.leveling-task {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgb(224 207 200 / 10%);
  cursor: pointer;
}

.leveling-task input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.leveling-task-copy {
  display: grid;
  gap: 5px;
}

.leveling-task-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.leveling-task-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.leveling-task input:checked + .leveling-task-copy strong {
  color: var(--muted);
  text-decoration: line-through;
}

.build-tag {
  color: var(--gold-light);
  font-size: 10px;
  white-space: nowrap;
}

.addon-warning {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.addon-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.addon-card {
  padding: 14px;
  border: 1px solid rgb(224 207 200 / 12%);
  background: rgb(16 10 11 / 38%);
}

.addon-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
}

.addon-card h3 a,
.class-guides a {
  color: var(--gold-light);
  text-underline-offset: 3px;
}

.addon-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.class-guides {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.remove-character,
.edit-character {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #b9a7a3;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.remove-character:hover,
.edit-character:hover {
  color: #f2a99c;
}

.edit-character {
  color: var(--gold-light);
}

.character-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgb(16 10 11 / 48%);
}

.character-form label,
.sign-in-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.character-form input,
.character-form select,
.sign-in-form input {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgb(224 207 200 / 25%);
  border-radius: 2px;
  background: #171011;
  color: var(--ink);
  font-size: 12px;
}

.character-form input:focus,
.character-form select:focus,
.sign-in-form input:focus {
  outline: 2px solid rgb(196 61 61 / 36%);
  border-color: var(--gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-hint,
.status,
.page-note {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.form-hint {
  margin: -3px 0 0;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.status {
  margin: 0 0 12px;
}

.page-note {
  padding: 0 0 34px;
  text-align: center;
}

.access-panel {
  width: min(490px, 100%);
  margin: clamp(70px, 13vh, 140px) auto;
  padding: clamp(25px, 6vw, 44px);
  text-align: center;
}

.access-panel h1 {
  font-size: clamp(39px, 8vw, 54px);
}

.sign-in-form {
  display: grid;
  gap: 14px;
  margin-top: 25px;
  text-align: left;
}

.sign-in-form .button {
  justify-self: start;
  margin-top: 3px;
}

footer {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.footer-crest {
  width: 20px;
  height: 24px;
  clip-path: polygon(50% 0, 95% 15%, 88% 70%, 50% 100%, 12% 70%, 5% 15%);
  font-size: 11px;
}

@media (max-width: 760px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .release-countdown {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  .countdown {
    width: 100%;
    justify-content: center;
  }

  .addon-list {
    grid-template-columns: 1fr;
  }

  .leveling-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 38px;
  }
}

@media (max-width: 480px) {
  .site-header {
    min-height: 68px;
    flex-wrap: wrap;
    padding: 10px 18px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  main {
    width: calc(100% - 28px);
  }

  .hero {
    padding-top: 56px;
  }

  .panel {
    padding: 19px 15px;
  }

  .character-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .character-actions {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: start;
  }

  .character-actions .remove-character {
    justify-self: end;
  }

  .section-heading {
    align-items: center;
  }

  .section-heading h2 {
    font-size: 23px;
  }
}
