@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800&family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg: #0b0d10;
  --bg-soft: #14181f;
  --ink: #f3f1ec;
  --ink-soft: #d4d0c6;
  --muted: #8a877e;
  --muted-2: #6d7077;
  --line: rgba(243, 241, 236, 0.14);
  --line-soft: rgba(243, 241, 236, 0.1);
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: #14181f;
  --accent: #c8f542;
  --blood: #ff4d3a;
  --good: #63e6a5;
  --bad: #ff6b6b;
  --on-dark: #0b0d10;
  --hero-ink: #f3f1ec;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius: 2px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(243, 241, 236, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(243, 241, 236, 0.028) 1px, transparent 1px),
    var(--bg);
  background-size: 34px 34px, 26px 26px, auto;
  color: var(--ink);
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

.backdrop {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  min-height: 76px;
  padding: 14px clamp(16px, 3vw, 40px);
  background: rgba(11, 13, 16, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-bar {
  width: 10px;
  height: 38px;
  background: var(--blood);
  flex-shrink: 0;
}

.brand img,
.admin-login img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius);
}

.tabs {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  gap: 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tabs a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  white-space: nowrap;
  transition: color 160ms ease;
}

.tabs a:hover,
.tabs a.active {
  color: var(--ink);
}

.tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blood);
}

.nav-cta {
  margin-left: auto;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

main.home-main {
  width: 100%;
  margin: 0;
}

.hero-bleed {
  position: relative;
  min-height: calc(100vh - 76px - 180px);
  display: grid;
  align-items: end;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 56px) clamp(36px, 5vw, 72px);
  overflow: hidden;
  color: var(--hero-ink);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    center / cover no-repeat url("/assets/bloodmc-arena.jpg"),
    #12141a;
  transform: scale(1.02);
  animation: media-drift 18s ease-in-out infinite alternate;
}

.hero-shade {
  background: linear-gradient(
    180deg,
    rgba(18, 20, 26, 0.9) 0%,
    rgba(18, 20, 26, 0.52) 48%,
    rgba(18, 20, 26, 0.18) 100%
  );
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(790px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(200, 245, 66, 0.55);
  animation: pulse 1.4s ease-in-out infinite;
}

.hero-bleed .eyebrow {
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.92;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 96px);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 48px);
}

h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
}

.lede {
  max-width: min(560px, 100%);
  margin-bottom: 28px;
  color: rgba(243, 241, 236, 0.82);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.5;
}

.section .lede,
.register-form .lede {
  color: var(--muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 241, 236, 0.64);
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(11, 13, 16, 0.78);
  color: var(--hero-ink);
}

.live-chip .live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}

.live-chip strong {
  color: var(--accent);
  font-weight: 700;
}

.hero-actions,
.dialog-actions,
.panel-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-dark);
}

.button.ghost {
  background: transparent;
}

.hero-bleed .button.ghost {
  border-color: var(--hero-ink);
  background: rgba(11, 13, 16, 0.66);
  color: var(--hero-ink);
}

.nav-cta.button {
  background: var(--accent);
  color: var(--on-dark);
  border-color: var(--accent);
  min-width: 140px;
}

.nav-cta.button.active {
  background: var(--blood);
  border-color: var(--blood);
  color: var(--hero-ink);
}

.prize-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  padding: clamp(22px, 3vw, 36px) clamp(16px, 4vw, 56px);
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.prize-strip .eyebrow {
  color: var(--blood);
  margin-bottom: 8px;
}

.prize-strip .eyebrow::before {
  display: none;
}

.prize-strip h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1;
}

.prize-divider {
  width: 1px;
  align-self: stretch;
  background: var(--ink);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-grid div {
  padding: 8px 0;
}

.stat-grid strong,
.stat-grid span {
  display: block;
}

.stat-grid strong {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.stat-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 56px 0;
}

.page-head {
  min-height: calc(100vh - 76px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head .eyebrow {
  color: var(--blood);
}

.section-head .eyebrow::before {
  display: none;
}

.section-head h1 {
  margin-bottom: 0;
  font-size: clamp(42px, 6vw, 60px);
}

.roster-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roster-status .live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}

.roster-status strong {
  color: var(--accent);
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 14px;
}

.team-card,
.match-card,
.tool-panel,
.admin-login,
dialog,
.player-fieldset,
.captcha-box,
.admin-team,
.member-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: none;
}

.team-card {
  padding: 16px;
  background: var(--panel);
}

.team-card h3 {
  margin-bottom: 12px;
}

.player-row,
.match-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}

.player-row span,
.muted {
  color: var(--muted);
}

.member-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  min-height: 96px;
  background: var(--panel);
  overflow: hidden;
}

.member-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--blood);
}

.member-card.compact {
  grid-template-columns: 68px minmax(0, 1fr);
  min-height: 78px;
  padding: 9px;
}

.member-skin {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
}

.member-card.compact .member-skin {
  width: 58px;
  height: 58px;
}

.member-skin img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: pixelated;
}

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

.member-main strong,
.member-main > span {
  display: block;
}

.member-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.member-main > span {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.member-discord {
  justify-self: start;
  margin-top: 8px;
  min-width: 0;
  text-align: left;
}

.member-discord span,
.member-discord strong {
  display: block;
}

.member-discord span {
  color: var(--muted);
  font-size: 12px;
}

.member-discord strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--good);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 150px;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: rgba(31, 138, 76, 0.12);
  color: var(--good);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discord-pill.warn {
  color: #9a6b00;
  background: rgba(200, 245, 66, 0.22);
}

.role-badge {
  display: inline-flex;
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: var(--radius);
  background: rgba(255, 77, 58, 0.12);
  color: var(--blood);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.captain-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(200, 245, 66, 0.28);
  color: var(--ink);
  font-family: var(--font-mono);
}

.captain-code strong {
  letter-spacing: 0.08em;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  background: var(--bg-soft);
  font: inherit;
}

.bracket-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.bracket-controls label {
  min-width: 180px;
}

.bracket-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.bracket-column {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 280px;
}

.bracket-column h3 {
  color: var(--blood);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.match-card {
  position: relative;
  overflow: hidden;
  padding: 12px;
  background: var(--panel);
}

.match-card::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 14px;
  height: 2px;
  background: var(--accent);
  opacity: 0.9;
}

.match-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.match-logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

.match-logo-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: var(--radius);
}

.match-slot {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  justify-content: start;
  min-height: 70px;
  padding: 8px;
}

.match-slot.winner {
  color: var(--good);
}

.match-slot.eliminated {
  color: var(--bad);
}

.match-bust {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: visible;
}

.match-bust img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 1px;
  image-rendering: pixelated;
}

.match-slot.winner .match-bust {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.match-slot.eliminated .match-bust {
  border-color: var(--blood);
  background: rgba(255, 77, 58, 0.08);
}

.match-slot.eliminated .match-bust img {
  filter: grayscale(0.55) saturate(0.8);
  opacity: 0.72;
}

.winner-crown {
  position: absolute;
  z-index: 2;
  top: -12px;
  left: 50%;
  width: 30px;
  height: 19px;
  transform: translateX(-50%);
  background:
    linear-gradient(135deg, transparent 0 16%, var(--accent) 16% 34%, transparent 34% 48%, var(--accent) 48% 65%, transparent 65% 78%, var(--accent) 78%) top / 100% 11px no-repeat,
    linear-gradient(var(--accent), #9fbf2d) bottom / 100% 8px no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.match-team-text {
  min-width: 0;
}

.match-team-text strong,
.match-team-text span {
  display: block;
}

.match-team-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
}

.match-team-text span {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.winner-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.winner-actions button {
  width: 100%;
  padding: 8px;
}

.rules-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.rules-list li {
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blood);
  background: var(--panel);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.5;
}

.register-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.register-aside {
  padding: clamp(22px, 3vw, 32px);
  background: #08090c;
  color: var(--hero-ink);
  border: 1px solid var(--line);
}

.register-aside .eyebrow {
  color: var(--accent);
}

.register-aside h1 {
  color: var(--hero-ink);
  font-size: clamp(40px, 5vw, 56px);
  margin-bottom: 16px;
}

.register-aside .lede {
  color: rgba(243, 241, 236, 0.66);
  margin-bottom: 24px;
}

.register-meta {
  display: grid;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid rgba(243, 241, 236, 0.2);
  border-bottom: 1px solid rgba(243, 241, 236, 0.2);
  margin-bottom: 18px;
}

.register-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.register-meta strong {
  color: var(--accent);
}

.register-aside .prize-label {
  margin: 0 0 8px;
  color: var(--blood);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.register-aside .prize-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
}

.register-form,
.stack-form,
.dialog-form {
  display: grid;
  gap: 16px;
}

.register-form {
  max-width: none;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  background: var(--bg-soft);
  font: inherit;
  text-transform: none;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(200, 245, 66, 0.7);
  border-color: var(--ink);
}

.players-fields {
  display: grid;
  gap: 12px;
}

.captcha-box {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 180px) auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.captcha-box strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
}

.bot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.player-fieldset {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.player-fieldset h3 {
  margin: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.player-fieldset label {
  gap: 6px;
}

.form-message {
  min-height: 24px;
  color: var(--blood);
  font-family: var(--font-mono);
  font-size: 13px;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.admin-login {
  width: min(430px, 100%);
  margin: 8vh auto;
  padding: 28px;
  background: var(--panel-strong);
}

.admin-login img {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
}

.hidden {
  display: none !important;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 16px;
}

.tool-panel {
  padding: 18px;
  background: var(--panel);
}

.tool-panel.wide {
  grid-column: 1 / -1;
}

.panel-title-row {
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-team {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--panel);
}

.captain-member-card {
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
}

.captain-member-card .member-skin {
  grid-row: span 4;
}

.admin-team-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: auto;
}

dialog {
  width: min(760px, calc(100% - 24px));
  color: var(--ink);
  padding: 20px;
  background: var(--bg);
}

dialog::backdrop {
  background: rgba(18, 20, 26, 0.55);
}

.reveal {
  animation: rise 620ms ease both;
}

.delay-1 {
  animation-delay: 120ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(200, 245, 66, 0.45);
  }
  50% {
    transform: scale(1.35);
    opacity: 0.65;
    box-shadow: 0 0 0 8px rgba(200, 245, 66, 0);
  }
}

@keyframes media-drift {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.06) translateY(-1.5%);
  }
}

@media (max-width: 960px) {
  .prize-strip,
  .register-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .prize-divider {
    width: 100%;
    height: 1px;
  }

  .player-fieldset {
    grid-template-columns: 1fr;
  }

  .player-fieldset h3 {
    width: fit-content;
    padding: 0 12px;
  }
}

@media (max-width: 820px) {
  .topbar,
  .admin-header {
    align-items: flex-start;
  }

  .tabs {
    width: 100%;
    justify-content: flex-start;
    order: 3;
    flex: 1 1 100%;
    gap: 16px;
  }

  .nav-cta {
    margin-left: 0;
  }

  .hero-bleed {
    min-height: calc(100vh - 140px);
    align-items: center;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  main,
  .admin-shell {
    width: min(calc(100% - 24px), 100%);
  }

  .stat-grid,
  .captcha-box {
    grid-template-columns: 1fr;
  }

  .member-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .member-discord {
    grid-column: 2;
  }
}
