﻿:root {
  color-scheme: dark;
  --bg: #111816;
  --panel: #1a221f;
  --deep: #0c1211;
  --line: #344039;
  --ink: #f0ece0;
  --soft: #b9c0b5;
  --gold: #d9b978;
  --muted: #89968a;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, "Segoe UI", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #f2cf82;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.07;
}
.wrap,
.mast,
.heroinner {
  width: min(1240px, calc(100% - 100px));
  margin: auto;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  top: -100px;
  background: var(--bg);
  padding: 8px;
  z-index: 4;
}
.skip:focus {
  top: 0;
}
header {
  background: #101514;
  border-bottom: 1px solid #57513c;
}
.mast {
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 78px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-size: 30px;
  line-height: 0.92;
  letter-spacing: -1.8px;
  color: #eee5c9;
}
.brand span {
  margin-top: 5px;
  font: 9px/1.1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 5px;
  padding-left: 5px;
  color: var(--gold);
}
nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 26px;
  margin: auto;
}
nav a {
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: #bec6bc;
  font-weight: 500;
  font-size: 14px;
}
nav a:hover,
nav a[aria-current] {
  color: #f5deb2;
  border-color: var(--gold);
}
.sign,
.outline,
.gold,
.plain,
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 43px;
  padding: 9px 18px;
  border: 1px solid #766a4b;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px;
}
.sign {
  min-height: 36px;
  padding: 5px 16px;
  color: var(--gold);
}
.hero {
  position: relative;
  overflow: hidden;
  background: #192025 url("/assets/realm.webp") 55% 49% / cover no-repeat;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 15, 18, 0.91),
      rgba(13, 20, 22, 0.66) 30%,
      rgba(12, 17, 20, 0.08) 69%
    ),
    linear-gradient(0deg, rgba(15, 22, 19, 0.55), transparent 25%);
}
.heroinner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 58vh, 635px);
  padding-block: 64px;
}
.hero-copy {
  max-width: 515px;
}
.hero h1 {
  font-size: clamp(74px, 7.7vw, 122px);
  line-height: 0.94;
  letter-spacing: -0.068em;
  text-shadow: 0 3px 24px #11202a8a;
  width: max-content;
  max-width: 100%;
}
.hero h1 span {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.26em;
  letter-spacing: 0.32em;
  line-height: 1.5;
  text-transform: uppercase;
  color: #e3c384;
  margin-top: 10px;
  padding-left: 0.35em;
}
.hero h1 i {
  width: 16%;
  height: 1px;
  background: #b99c67;
}
.hero-copy p {
  max-width: 420px;
  margin: 26px 0;
  color: #e1e2d8;
  font-size: 17px;
  line-height: 1.6;
}
.actions,
.inline,
.tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.gold {
  background: #ddc08a;
  color: #272319;
  border-color: #e8cfa0;
}
.gold:hover {
  background: #edd6a6;
}
.outline:hover,
.sign:hover,
.btn:hover,
.plain:hover {
  border-color: #ddc08a;
  background: #2a3026;
}
.outline {
  background: #121b1acf;
}
.hero-rule {
  height: 2px;
  background: linear-gradient(90deg, #4a4934, #d8bd84, #6f674a, #303b34);
}
.explore,
.workspace {
  padding-block: 46px 66px;
  min-height: 300px;
}
.section-title {
  display: flex;
  align-items: end;
  gap: 25px;
  margin-bottom: 22px;
}
.kicker,
.feature small,
.crumb {
  font: 600 11px/1.4 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-title h2,
.workspace h2,
dialog h2 {
  font-size: clamp(26px, 3vw, 39px);
  margin-top: 6px;
}
.rule {
  height: 1px;
  background: linear-gradient(90deg, #5b5b45, transparent);
  flex: 1;
  margin-bottom: 7px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  min-height: 205px;
  background-size: cover;
  background-position: center;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: start;
  overflow: hidden;
  padding: 24px;
  border: 1px solid #5e5c47;
  border-radius: 3px;
}
.feature:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #08100f04, #0e1716ab 55%, #0b1313f7);
}
.feature:hover {
  border-color: var(--gold);
}
.expedition {
  background-image: url("/assets/expedition.webp");
}
.abyss {
  background-image: url("/assets/abyss.webp");
}
.mirage {
  background-image: url("/assets/mirage.webp");
}
.feature h3 {
  font-size: 30px;
  margin: 5px 0 10px;
}
.feature span {
  font-size: 13px;
  color: #e2e3d9;
}
.feature b,
.actions b {
  color: var(--gold);
  margin-left: 5px;
}
.actions .gold b {
  color: #3b3321;
}
footer {
  background: var(--deep);
  border-top: 1px solid var(--line);
}
.foot {
  display: flex;
  align-items: center;
  gap: 23px;
  min-height: 92px;
  color: var(--muted);
  font-size: 13px;
}
.foot > a:last-child {
  margin-left: auto;
}
.tool-head {
  background:
    linear-gradient(90deg, #111b18f5, #111b18b3),
    url("/assets/realm.webp") center 35% / cover;
  border-bottom: 1px solid #534f3d;
  padding: 30px 0;
}
.tool-head h1 {
  font-size: clamp(40px, 6vw, 70px);
  margin: 15px 0 8px;
}
.tool-head p,
.muted,
.workspace p,
dialog p {
  color: var(--soft);
}
.workspace {
  padding-block: 32px 70px;
  min-height: 55vh;
}
.workspace h2 {
  font-size: 29px;
  margin: 0 0 13px;
}
.workspace h3,
dialog h3 {
  font-size: 22px;
  margin: 0 0 12px;
}
.box,
.list-row,
.package,
.skillset,
.catalog-item,
.note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px;
}
.note {
  margin: 10px 0;
  color: var(--soft);
}
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr));
}
.stack {
  display: grid;
  gap: 12px;
}
.stack > * {
  min-width: 0;
}
.inline {
  margin: 12px 0;
}
.workspace small,
dialog small {
  color: var(--muted);
}
.tabs {
  margin-bottom: 24px;
}
.tabs a {
  color: var(--soft);
  padding: 5px 3px;
  border-bottom: 1px solid var(--line);
}
.tabs a[aria-current] {
  color: var(--gold);
  border-color: var(--gold);
}
label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: #c4c9bf;
}
input,
select {
  background: #101714;
  color: var(--ink);
  border: 1px solid #566157;
  border-radius: 3px;
  padding: 9px;
  min-height: 42px;
  max-width: 100%;
}
.signin {
  max-width: 480px;
}
.signin button {
  justify-self: start;
}
.signin label {
  max-width: 400px;
}
.account-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}
.list-row strong,
.package strong {
  color: var(--ink);
}
.package {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: start;
}
.package strong {
  font-size: 25px;
}
.package button {
  margin-top: auto;
}
.packages {
  grid-template-columns: repeat(auto-fit, minmax(min(185px, 100%), 1fr));
}
.gap {
  margin-top: 25px;
}
.catalog {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(238px, 100%), 1fr));
}
.catalog-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
}
.catalog-item > div:last-child {
  grid-column: 1/-1;
}
.itemicon {
  width: 44px;
  height: 44px;
  object-fit: cover;
  display: inline-block;
  border: 1px solid #5a5948;
  border-radius: 3px;
}
.prices {
  font-weight: 600;
}
.skillsets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.skillset {
  padding: 14px;
}
.skillset select {
  width: 100%;
}
.skills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 14px;
}
.skill {
  aspect-ratio: 1;
  max-width: 63px;
  padding: 0;
  background: #101714;
  border: 1px solid #4e584b;
  border-radius: 2px;
  position: relative;
}
.skill img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.skill.locked img {
  filter: grayscale(1);
  opacity: 0.45;
}
.skill.selected {
  outline: 2px solid var(--gold);
  outline-offset: -1px;
}
.skill.selected:after {
  content: "✓";
  position: absolute;
  right: 0;
  bottom: 0;
  background: #1c3024;
  color: #fbe5a8;
  font-size: 12px;
  padding: 0 3px;
}
.builderbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.buildname {
  color: var(--gold);
  font: 27px var(--serif);
}
.tablewrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 7px;
}
th {
  color: var(--gold);
  font-size: 13px;
}
dialog {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid #72664b;
  border-radius: 4px;
  max-width: min(520px, 93vw);
  width: 100%;
  padding: 24px;
}
dialog::backdrop {
  background: #050a09c9;
}
.dialog-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.dialog-title h2 {
  font-size: 26px;
}
.dialog-title button {
  background: transparent;
  border: 0;
  color: var(--gold);
  font-size: 26px;
}
.feedback {
  color: #efd39d !important;
}
#toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #202b23;
  padding: 12px 18px;
  z-index: 8;
  border: 1px solid #6e755c;
  border-radius: 4px;
  max-width: 95vw;
}
@media (max-width: 850px) {
  .wrap,
  .mast,
  .heroinner {
    width: calc(100% - 42px);
  }
  .mast {
    gap: 16px;
    min-height: 68px;
  }
  nav {
    gap: 14px;
  }
  nav a {
    font-size: 12px;
  }
  .skillsets {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
  .features {
    gap: 12px;
  }
  .feature {
    padding: 16px;
    min-height: 180px;
  }
  .feature h3 {
    font-size: 24px;
  }
}
@media (max-width: 650px) {
  .mast {
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 15px;
    gap: 8px;
  }
  .mast nav {
    order: 3;
    flex-basis: 100%;
    overflow: auto;
    justify-content: space-between;
    gap: 12px;
  }
  nav a {
    padding: 10px 0;
    white-space: nowrap;
  }
  .brand {
    font-size: 26px;
  }
  .heroinner {
    min-height: 425px;
  }
  .hero:before {
    background:
      linear-gradient(90deg, #071011cb, #12201c70),
      linear-gradient(0deg, #1118169c, transparent 70%);
  }
  .hero {
    background-position: 61% 45%;
  }
  .hero h1 {
    font-size: 78px;
  }
  .hero-copy p {
    font-size: 15px;
    max-width: 330px;
  }
  .actions {
    gap: 8px;
  }
  .gold,
  .outline {
    font-size: 13px;
    padding: 8px 12px;
  }
  .explore {
    padding-block: 30px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .feature {
    min-height: 165px;
  }
  .skillsets {
    grid-template-columns: 1fr;
  }
  .foot {
    gap: 12px;
  }
  .account-head {
    align-items: start;
  }
  .wrap,
  .mast,
  .heroinner {
    width: calc(100% - 32px);
  }
}
@font-face {
  font-family: Cinzel;
  src: url("/assets/fonts/cinzel.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dmsans.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --serif: Cinzel, Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
body {
  font-size: 16px;
}
.kicker,
.feature small,
.crumb {
  font-size: 12px;
}
.hero h1 {
  letter-spacing: -0.08em;
}
.brand {
  letter-spacing: -0.09em;
}
.brand span {
  font-size: 10px;
}
.feature h3 {
  font-size: clamp(20px, 2.3vw, 30px);
}
select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, #d9b978 50%),
    linear-gradient(135deg, #d9b978 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.realm-links {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: 1.75rem 0;
}
.realm-links a, .realm-article a:not(.gold):not(.outline) {
  color: #e4c884; text-decoration: underline; text-underline-offset: .25em;
}
.realm-links a[aria-current=page] { color: #fff; }
.realm-article { max-width: 48rem; line-height: 1.7; }
.realm-article h2 { margin: 2rem 0 .4rem; font-family: var(--serif); }
.realm-article p { margin: .6rem 0 1rem; }
.realm-article .note { margin-top: 1.75rem; }
.timeline section { border-left: 2px solid #78623b; padding: .25rem 1.5rem 1rem; }
.timeline h2 { margin-top: .25rem; }
