* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
svg {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.15;
}
h2 {
  font-size: 42px;
  letter-spacing: -1.8px;
  font-weight: 600;
}
h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
p {
  color: var(--muted);
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1300px, calc(100% - 96px));
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -1.1px;
  white-space: nowrap;
}
.brand img {
  width: 39px;
  height: 39px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.8);
}
:root[data-theme='light'] .brand img {
  filter: grayscale(1) brightness(0.45);
}
.brand-soft {
  font-weight: 400;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  border: 1px solid transparent;
  padding: 12px 23px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 14px;
  transition:
    transform 0.2s,
    filter 0.2s;
  white-space: nowrap;
}
.button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.button.small {
  min-height: 40px;
  padding: 8px 15px;
  font-size: 13px;
}
.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.button.danger {
  color: var(--danger);
  border-color: var(--danger);
  background: transparent;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
}
.icon-button:hover {
  background: var(--surface-2);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.accent {
  color: var(--accent-text);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent-text);
}
.badge {
  font-size: 10px;
  line-height: 1.5;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border: 1px solid var(--line);
  font-weight: 600;
}
.badge.success {
  background: var(--success-soft);
  color: var(--success);
  border-color: transparent;
}
.badge.warning {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: transparent;
}
.status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}
.avatar {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.a1 {
  background: #d8efe4;
  color: #1d624a;
}
.a2 {
  background: #edc6af;
  color: #724927;
}
.a3 {
  background: #d9d9d9;
  color: #353535;
}
.a4 {
  background: #ecdca9;
  color: #745b19;
}
.avatar-stack {
  display: flex;
  align-items: center;
  padding-left: 7px;
}
.avatar-stack .avatar {
  margin-left: -7px;
  border: 3px solid var(--surface);
}
.link-button {
  padding: 0;
  background: none;
  color: var(--accent-text);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px;
  z-index: 1000;
}
.skip-link:focus {
  top: 12px;
}
.noscript-message {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: var(--surface);
  color: var(--ink);
  border-top: 1px solid var(--line);
  z-index: 80;
  text-align: center;
}
dialog {
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  max-width: 580px;
  width: calc(100% - 40px);
  box-shadow: 0 32px 140px #0007;
  max-height: 90vh;
}
dialog::backdrop {
  background: #051016bb;
  backdrop-filter: blur(5px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 26px 0;
  gap: 15px;
}
.dialog-head h2 {
  font-size: 24px;
  letter-spacing: -0.7px;
}
.dialog-body {
  padding: 22px 26px;
}
.dialog-body p {
  margin-bottom: 14px;
  font-size: 14px;
}
.dialog-body ul {
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.review-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.review-row span:first-child {
  color: var(--muted);
}
.review-row strong {
  text-align: right;
  overflow-wrap: anywhere;
}
.dialog-note {
  font-size: 12px !important;
  margin: 18px 0 0 !important;
  padding: 12px;
  background: var(--accent-soft);
  border-radius: 8px;
  color: var(--accent-text) !important;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  border: 1px solid var(--line);
  padding: 12px 20px;
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
  max-width: 90%;
  font-size: 13px;
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 48px);
  }
  h2 {
    font-size: 36px;
  }
}
@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 36px);
  }
  h2 {
    font-size: 31px;
    letter-spacing: -1.3px;
  }
  .button {
    padding: 11px 16px;
  }
  .brand {
    font-size: 21px;
  }
  .brand img {
    width: 33px;
    height: 33px;
  }
  .dialog-head,
  .dialog-body {
    padding-left: 20px;
    padding-right: 20px;
  }
  .dialog-actions {
    padding: 16px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
/* Shared brand imagery. Each server has the same image everywhere it appears. */
.server-avatar {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px #ffffff16;
}
.avatar-atlas {
  background-image: url('../img/atlas-avatar-v2.webp');
}
.avatar-nightshift {
  background-image: url('../img/nightshift-avatar-v2.webp');
}
.avatar-makers {
  background-image: url('../img/makers-avatar-v2.webp');
}
.module-symbol {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
}
.module-symbol.mint {
  background: var(--success-soft);
  color: var(--success);
}
.module-symbol svg {
  width: 23px;
  height: 23px;
}
