@font-face {
  font-family: "Geist";
  src: url("geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.205 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.541 0.247 293.009);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.371 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.606 0.25 292.717);
  color-scheme: dark;
}

.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

html {
  scrollbar-gutter: stable;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.topbar {
  position: relative;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 64rem;
  height: 3.5rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  background: #000;
  border-radius: 6px;
}

.brand:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
  border-radius: 4px;
}

.topbar-sep {
  width: 1px;
  height: 1.25rem;
  background: var(--border);
}

.tabs-nav {
  display: flex;
  align-self: stretch;
  gap: 1.25rem;
}

.tabs-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: -1px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

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

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

.tabs-nav a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
  border-radius: 4px;
}

.topbar .btn {
  margin-left: auto;
}

.stage {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
}

.panel {
  width: 100%;
  min-width: 0;
  max-width: 27rem;
  padding: 2.5rem 2rem 2.25rem;
  text-align: center;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.stage > .panel {
  transition: opacity 0.15s ease-out;
}

.stage[data-entering] > .panel {
  opacity: 0;
}

.panel h1[tabindex="-1"]:focus {
  outline: none;
}

.panel-logo {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
}

.panel h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.panel p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.panel .btn {
  margin-top: 1.5rem;
}

.panel-wide {
  max-width: 56rem;
  padding: 2rem;
  text-align: left;
}

.panel.panel-wide h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.panel .page-sub {
  margin-top: 0.375rem;
  font-size: 0.875rem;
}

.rank-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.page-sub + .rank-label {
  margin-top: 1.75rem;
}

.rank-dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--rank);
  border-radius: 999px;
}

.rank-count {
  font-weight: 400;
  letter-spacing: 0;
  color: oklch(0.556 0 0);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.member-link {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 1rem;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border-radius: 0.75rem;
}

.member-nameplate {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 30%, #000 85%);
  mask-image: linear-gradient(to right, transparent 30%, #000 85%);
}

.member-link:hover {
  background: oklch(1 0 0 / 3%);
}

.member-link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.member-text {
  min-width: 0;
}

.member-face {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
}

.member-avatar {
  display: block;
  width: 44px;
  height: 44px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  object-fit: cover;
}

.member-decoration {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  max-width: none;
  height: 120%;
  pointer-events: none;
}

.member-status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 13px;
  height: 13px;
  background: #22c55e;
  border: 2.5px solid var(--background);
  border-radius: 999px;
}

.member-status[data-status="idle"] {
  background: #f59e0b;
}

.member-status[data-status="dnd"] {
  background: #ef4444;
}

.panel .roster-empty {
  margin-top: 1.75rem;
  font-size: 0.875rem;
}

.member-name {
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.member-since {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}


.pill {
  position: relative;
  align-self: center;
  margin-bottom: 4.25rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 30rem) {
  .topbar-inner {
    flex-wrap: wrap;
    row-gap: 0.25rem;
    height: auto;
    padding-top: 0.75rem;
  }

  .topbar-sep {
    display: none;
  }

  .tabs-nav {
    order: 3;
    flex: 1 0 100%;
    height: 2.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .panel {
    padding: 2rem 1.25rem;
  }

  .panel h1 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage > .panel {
    transition: none;
  }
}
