:root {
  --bg: #000000;
  --surface: #0b0b0b;
  --surface-2: #161616;
  --border: #242424;
  --text: #ededed;
  --text-2: #c4c4c4;
  --muted: #8a8a8a;
  --accent: #ffffff;
  --discord: #2b2b2b;
  --roblox: #2b2b2b;
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: min(100%, 1440px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  filter: grayscale(1);
  background: url("../assets/banner.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 90%), linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 90%), linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-composite: intersect;
}

.banner video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.site-header {
  position: relative;
  z-index: 2;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.tabs {
  display: flex;
  gap: 4px;
}

.tabs a {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
  padding: 0 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
}

.tabs a:hover {
  color: var(--text);
}

.tabs a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.count {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 12px;
  line-height: 1;
}

main.wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  padding-top: 112px;
  padding-bottom: 64px;
}

.profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

.sidebar h1 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
}

.role {
  display: inline-block;
  margin: 0;
  padding: 2px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}

.bio {
  margin: 14px 0 20px;
  color: var(--text-2);
}

.accounts {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.accounts li + li {
  border-top: 1px solid var(--border);
}

.account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
}

.account:hover {
  background: var(--surface-2);
}

.tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.tile img {
  display: block;
  width: 18px;
  height: 18px;
}

.tile-discord {
  background: var(--discord);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.tile-roblox {
  background: var(--roblox);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.account-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.account-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.account-value {
  font-weight: 500;
}

.idbox {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.idrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

#discord-id {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.btn {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--muted);
}

.btn:focus-visible,
a:focus-visible,
.shot:focus-visible,
.close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.stats {
  display: flex;
  gap: 24px;
  margin: 16px 0 0;
}

.stats dt {
  color: var(--muted);
  font-size: 12px;
}

.stats dd {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.card {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card + .card {
  margin-top: 16px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--text-2);
}

.notice {
  border-left: 3px solid var(--accent);
}

.verify {
  display: block;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.02em;
  overflow-x: auto;
}

.steps {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.card p.more {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.vouches-head h1 {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
}

.vouches-head p {
  margin: 0 0 24px;
  color: var(--muted);
}

.vouch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  align-items: start;
}

.vouch {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.vouch-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vouch-head .tile {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.vouch-head .tile img {
  width: 16px;
  height: 16px;
}

.vouch-name {
  display: block;
  font-weight: 600;
  line-height: 1.3;
}

.vouch-date {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.vouch-text {
  margin: 12px 0 0;
  color: var(--text-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.shot {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  overflow: hidden;
  cursor: zoom-in;
}

.vouch > .shot:first-child {
  margin-top: 0;
}

.shot img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: top;
}

.empty {
  padding: 48px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 20px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

dialog {
  position: fixed;
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

dialog::backdrop {
  background: rgba(5, 8, 12, 0.88);
}

dialog img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  margin: 0 auto;
  border-radius: 6px;
}

.close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 760px) {
  .header-inner,
  .tabs a {
    height: 56px;
  }

  .tabs {
    gap: 0;
  }

  main.wrap {
    padding-top: 72px;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .vouch-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner video {
    display: none;
  }
}
