:root {
  color-scheme: dark;
  --ink: #f5efe1;
  --muted: #bdb3a0;
  --paper: #151412;
  --panel: #1d1b18;
  --panel-raised: #27231e;
  --line: #4a4237;
  --gold: #e3a72f;
  --gold-bright: #ffc857;
  --danger: #e3655b;
  --success: #71c47b;
  --focus: #8fd3ff;
  --shadow: 0 24px 70px rgb(0 0 0 / 34%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 18rem;
  background: #0d0c0b;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgb(227 167 47 / 14%), transparent 26rem),
    linear-gradient(155deg, #0b0a09 0%, #15130f 52%, #0e0d0b 100%);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a {
  color: var(--gold-bright);
}

a:hover {
  color: #ffe0a1;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--gold);
  border-radius: 0.55rem;
  padding: 0.68rem 1rem;
  color: #17120a;
  background: var(--gold);
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover {
  border-color: var(--gold-bright);
  color: #17120a;
  background: var(--gold-bright);
}

button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.button.secondary,
button.secondary {
  color: var(--ink);
  background: transparent;
}

.button.danger,
button.danger {
  border-color: var(--danger);
  color: #fff;
  background: #8f302b;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.5rem;
  left: 0.5rem;
  transform: translateY(-180%);
  border-radius: 0.35rem;
  padding: 0.65rem 0.85rem;
  color: #091016;
  background: var(--focus);
  font-weight: 800;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  display: flex;
  width: min(76rem, calc(100% - 2rem));
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand span {
  color: var(--gold);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
}

.site-nav a:not(.button) {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover:not(.button) {
  color: var(--ink);
}

main,
.page-shell {
  width: min(76rem, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(2.5rem, 7vw, 5rem);
}

.hero-copy {
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

h1 {
  max-width: 16ch;
  margin-bottom: 1rem;
  font-size: clamp(2.65rem, 7vw, 5.9rem);
  line-height: 0.91;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.25rem;
}

.lede {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.hero-art {
  position: relative;
  overflow: hidden;
  border: 1px solid #6b5b40;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transform: rotate(1.25deg);
}

.hero-art::after {
  position: absolute;
  inset: 0;
  border: 0.5rem solid rgb(0 0 0 / 20%);
  content: "";
  pointer-events: none;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

.panel,
.card {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgb(29 27 24 / 94%);
  box-shadow: 0 14px 38px rgb(0 0 0 / 18%);
}

.panel {
  padding: clamp(1.1rem, 3vw, 2rem);
}

.section-stack {
  display: grid;
  gap: 1.25rem;
  padding: 1rem 0 4rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
  gap: 1.25rem;
  align-items: start;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

label,
.field-label {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid #665c4e;
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: #100f0d;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input::placeholder {
  color: #8f877a;
}

.help,
.muted,
.meta {
  color: var(--muted);
}

.help {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.status {
  min-height: 1.5rem;
  color: var(--muted);
  line-height: 1.5;
}

.status[data-state="error"] {
  color: #ff958d;
}

.status[data-state="success"] {
  color: #9fe8a6;
}

.notice {
  border-left: 0.25rem solid var(--gold);
  border-radius: 0.35rem;
  padding: 0.85rem 1rem;
  color: var(--muted);
  background: #242017;
  line-height: 1.55;
}

.notice.danger {
  border-color: var(--danger);
  background: #2b1715;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.cards,
.result-list,
.rating-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
}

.card {
  padding: 1.15rem;
}

.member-card {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}

.member-card:hover {
  border-color: var(--gold);
  color: inherit;
  transform: translateY(-2px);
}

.avatar {
  display: grid;
  width: 4.25rem;
  height: 4.25rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid #665c4e;
  border-radius: 0.65rem;
  color: var(--gold-bright);
  background: #0e0d0b;
  font-weight: 900;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-name {
  overflow-wrap: anywhere;
  font-size: 1.1rem;
}

.steam-id,
.break-anywhere {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #665c4e;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  color: var(--muted);
  background: #12110f;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge.premium {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.profile-heading {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.profile-heading .avatar {
  width: 6.5rem;
  height: 6.5rem;
}

.profile-heading h1 {
  margin-bottom: 0.45rem;
  font-size: clamp(2.1rem, 6vw, 4.3rem);
  overflow-wrap: anywhere;
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 0;
}

.definition-grid div {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.definition-grid dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.definition-grid dd {
  margin: 0.3rem 0 0;
  overflow-wrap: anywhere;
}

.rating-value {
  color: var(--gold-bright);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2.25rem;
}

.check-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.25rem 0;
}

.check-row {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
}

.check-row input {
  width: 1.1rem;
  min-height: 1.1rem;
  margin: 0.2rem 0 0;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}

.field {
  min-width: 0;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 1rem;
}

legend {
  padding: 0 0.4rem;
  font-weight: 900;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.danger-zone {
  border-color: #7c3d36;
}

.legal-document {
  max-width: 52rem;
  padding: 3rem 0 5rem;
}

.legal-document h1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
}

.legal-document h2 {
  margin-top: 2.4rem;
  font-size: 1.65rem;
}

.legal-document p,
.legal-document li {
  color: #d4ccbe;
  line-height: 1.75;
}

.legal-links,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.15rem;
}

.site-footer {
  width: min(76rem, calc(100% - 2rem));
  margin: 2rem auto 0;
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.75rem 0 0;
}

.hidden,
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 47rem) {
  .site-header,
  .hero,
  .split-layout,
  .profile-heading {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
    padding: 0.9rem 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-art {
    max-width: 24rem;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .profile-heading .avatar {
    width: 5rem;
    height: 5rem;
  }

  th,
  td {
    min-width: 8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
