:root {
  --bg-0: #050608;
  --bg-1: #0a0c10;
  --surface-1: #0e1117;
  --surface-2: rgba(255, 255, 255, 0.035);
  --surface-3: rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --text-primary: #f4f7fb;
  --text-secondary: rgba(244, 247, 251, 0.72);
  --text-muted: rgba(244, 247, 251, 0.52);
  --brand-cyan: #00e6ff;
  --brand-cyan-dark: #1bb6c9;
  --focus-ring: rgba(0, 230, 255, 0.38);
  --success-green: #2fbf71;
  --tier-yellow: #f2c94c;
  --tier-red: #eb5757;
  --tier-brown: #8b5e3c;
  --tier-black: #111318;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-brand: 0 18px 55px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg-0);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text-primary);
  background:
    linear-gradient(130deg, rgba(0, 230, 255, 0.09), transparent 24%),
    linear-gradient(235deg, rgba(47, 191, 113, 0.08), transparent 30%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 34%),
    var(--bg-0);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(112deg, transparent 0 56px, rgba(0, 230, 255, 0.06) 57px, transparent 59px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 86%);
  animation: drift-lines 16s linear infinite;
}

body::after {
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 34vh;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.brand-wordmark,
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(0, 230, 255, 0.5);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(0, 230, 255, 0.22), rgba(255, 255, 255, 0.03));
  box-shadow: 0 0 24px rgba(0, 230, 255, 0.16);
  color: var(--brand-cyan);
  font-family: Teko, Inter, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  transform: skew(-9deg);
}

.brand-name,
.brand-lockup span:last-child {
  font-family: Teko, Inter, sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
  transform: skew(-8deg);
}

.login-view {
  min-height: 100vh;
  padding: 22px;
}

.login-view.auth-exit {
  animation: auth-exit 360ms ease forwards;
}

.public-topbar,
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1160px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  padding: 12px 0;
  backdrop-filter: blur(18px);
}

.public-nav,
.topbar-tools,
.topbar-nav,
.topbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-nav a {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.topbar-nav a:hover {
  border-color: rgba(0, 230, 255, 0.34);
  color: var(--brand-cyan);
  background: rgba(0, 230, 255, 0.07);
}

.login-stage {
  display: grid;
  width: min(1120px, 100%);
  min-height: calc(100vh - 112px);
  margin: 0 auto;
  padding: 46px 0;
  place-items: center;
}

.login-panel {
  position: relative;
  width: min(580px, 100%);
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(14, 17, 23, 0.86);
  box-shadow: var(--shadow-brand);
}

.login-panel::before {
  position: absolute;
  top: 0;
  left: -15%;
  width: 130%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--brand-cyan), transparent);
  opacity: 0.85;
}

.login-kicker,
.section-kicker {
  margin: 0 0 8px;
  color: var(--brand-cyan);
  font-family: Teko, Inter, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  transform: skew(-8deg);
}

.login-title,
.login-panel h1,
.page-title,
.feature-title {
  margin: 0;
  font-family: Teko, Inter, sans-serif;
  font-size: 4.6rem;
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
}

.login-copy,
.login-panel > p:not(.section-kicker),
.page-copy {
  max-width: 54ch;
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

label {
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 700;
}

select,
input,
textarea {
  min-height: 52px;
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(5, 6, 8, 0.68);
  color: var(--text-primary);
  padding: 0 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

textarea {
  min-height: 180px;
  padding: 14px;
  line-height: 1.55;
  resize: vertical;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brand-cyan) 50%),
    linear-gradient(135deg, var(--brand-cyan) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 23px,
    calc(100% - 13px) 23px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

input::placeholder {
  color: rgba(244, 247, 251, 0.4);
}

.step {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  filter: blur(9px);
  transform: translateY(18px);
  transition:
    grid-template-rows 900ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 780ms ease,
    transform 900ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 900ms ease;
  pointer-events: none;
}

.step > * {
  overflow: hidden;
}

.otp-step {
  transition-delay: 120ms;
}

.step.is-visible {
  grid-template-rows: 1fr;
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  pointer-events: auto;
}

.helper-text {
  min-height: 20px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-message.error {
  color: #ff9f9f;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  border-color: rgba(0, 230, 255, 0.44);
  background: rgba(0, 230, 255, 0.09);
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-cyan-dark));
  color: #061014;
  box-shadow: 0 12px 38px rgba(0, 230, 255, 0.2);
}

.button.danger {
  border-color: rgba(235, 87, 87, 0.5);
  background: rgba(235, 87, 87, 0.12);
  color: #ffb2b2;
}

.button.danger:hover {
  border-color: rgba(235, 87, 87, 0.78);
  background: rgba(235, 87, 87, 0.18);
}

.button.ghost {
  background: transparent;
}

.button.small {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.84rem;
}

.dev-note,
.dev-chip {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(242, 201, 76, 0.35);
  border-radius: 999px;
  padding: 0 10px;
  color: #f8df8c;
  background: rgba(242, 201, 76, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
}

.app-page,
.app-shell {
  min-height: 100vh;
  padding-bottom: 42px;
}

.app-shell-bare {
  padding-bottom: 18px;
}

.legal-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
}

.legal-footer p {
  margin: 0;
}

.legal-footer p + p {
  margin-top: 3px;
}

.legal-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--brand-cyan);
}

.cookie-consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(760px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid rgba(0, 230, 255, 0.24);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(0, 230, 255, 0.12), transparent 42%),
    rgba(10, 12, 16, 0.96);
  box-shadow: var(--shadow-brand);
  backdrop-filter: blur(18px);
}

.cookie-consent strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 0.96rem;
}

.cookie-consent p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.55;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.app-topbar {
  width: min(1180px, calc(100% - 32px));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.club-switcher {
  display: inline-flex;
  max-width: 260px;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0 8px 0 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 900;
}

.club-switcher span {
  flex: 0 0 auto;
  color: var(--brand-cyan);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.club-switcher select {
  width: auto;
  min-width: 108px;
  max-width: 158px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px 0 0;
  background-color: transparent;
  background-position:
    calc(100% - 12px) 12px,
    calc(100% - 7px) 12px;
  background-size: 5px 5px;
  box-shadow: none;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-overflow: ellipsis;
}

.club-switcher:hover,
.club-switcher:focus-within {
  border-color: rgba(0, 230, 255, 0.34);
  background: rgba(0, 230, 255, 0.07);
}

.chip-row,
.status-chip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip,
.status-chip span,
.home-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: capitalize;
}

.status-chip span:first-child,
.home-meta span:first-child {
  border-color: rgba(0, 230, 255, 0.36);
  color: var(--brand-cyan);
  background: rgba(0, 230, 255, 0.08);
}

.status-chip span:last-child,
.home-meta span:last-child {
  border-color: rgba(47, 191, 113, 0.4);
  color: #8ff0b9;
  background: rgba(47, 191, 113, 0.08);
}

.chip.cyan {
  border-color: rgba(0, 230, 255, 0.36);
  color: var(--brand-cyan);
  background: rgba(0, 230, 255, 0.08);
}

.chip.green {
  border-color: rgba(47, 191, 113, 0.4);
  color: #8ff0b9;
  background: rgba(47, 191, 113, 0.08);
}

.account-menu {
  position: relative;
}

.account-menu summary,
.account-trigger {
  display: flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 230, 255, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(0, 230, 255, 0.08);
  color: var(--brand-cyan);
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-panel,
.account-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  display: grid;
  width: 280px;
  gap: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(8, 10, 14, 0.98);
  box-shadow: var(--shadow-brand);
}

.account-name,
.account-summary strong {
  margin: 0;
  font-weight: 900;
}

.account-email,
.account-role,
.account-summary span {
  display: block;
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.eqid-pill,
.account-summary .eqid-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin: 0;
  border: 1px solid rgba(0, 230, 255, 0.44);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(0, 230, 255, 0.1);
  color: var(--text-primary);
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.eqid-pill span,
.account-summary .eqid-pill span {
  display: inline;
  margin: 0;
  color: var(--brand-cyan);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eqid-pill strong,
.account-summary .eqid-pill strong {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 950;
}

a.eqid-pill {
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

a.eqid-pill:hover,
a.eqid-pill:focus-visible {
  border-color: rgba(0, 230, 255, 0.78);
  background: rgba(0, 230, 255, 0.17);
  outline: none;
  transform: translateY(-1px);
}

.eqid-pill.small {
  gap: 5px;
  padding: 3px 7px;
}

.eqid-pill.small span {
  font-size: 0.58rem;
}

.eqid-pill.small strong {
  font-size: 0.72rem;
}

.eqid-pill.inline {
  vertical-align: middle;
}

.account-panel .button,
.account-popover .button,
.account-popover button,
.account-popover a {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.account-popover a {
  display: inline-flex;
  align-items: center;
}

.account-popover button:hover,
.account-popover a:hover {
  border-color: rgba(0, 230, 255, 0.34);
  background: rgba(0, 230, 255, 0.08);
}

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

.social-match-board-main {
  padding-top: 18px;
}

.home-enter .app-topbar,
.home-enter .home-hero,
.home-enter .actions-section,
.home-enter .below-grid {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(26px);
  animation: home-section-enter 1100ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.home-enter .app-topbar {
  animation-delay: 120ms;
}

.home-enter .home-hero {
  animation-delay: 300ms;
}

.home-enter .actions-section {
  animation-delay: 560ms;
}

.home-enter .below-grid {
  animation-delay: 800ms;
}

.home-enter .action-tile {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(18px);
  animation: home-section-enter 900ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.home-enter .action-tile:nth-child(1) {
  animation-delay: 720ms;
}

.home-enter .action-tile:nth-child(2) {
  animation-delay: 820ms;
}

.home-enter .action-tile:nth-child(3) {
  animation-delay: 920ms;
}

.home-enter .action-tile:nth-child(4) {
  animation-delay: 1020ms;
}

.home-enter .action-tile:nth-child(5) {
  animation-delay: 1120ms;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.home-intro,
.club-panel,
.club-status-panel,
.activity-panel,
.tool-panel,
.feature-panel,
.page-panel,
.policy-shell {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(14, 17, 23, 0.78);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
}

.home-intro,
.club-panel,
.club-status-panel,
.activity-panel,
.tool-panel,
.page-panel {
  padding: 22px;
}

.home-title {
  margin: 0;
  font-family: Teko, Inter, sans-serif;
  font-size: 3.7rem;
  font-weight: 700;
  line-height: 0.92;
  text-transform: uppercase;
}

.home-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.rating-visibility {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  border-left: 3px solid var(--brand-cyan);
  padding-left: 14px;
}

.rating-visibility strong {
  font-size: 0.9rem;
}

.rating-visibility span {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.45;
}

.player-rating-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.rating-stat-button {
  display: grid;
  gap: 7px;
  min-height: 92px;
  border: 1px solid rgba(0, 230, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(0, 230, 255, 0.065);
  color: var(--text-primary);
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.rating-stat-button:hover {
  border-color: rgba(0, 230, 255, 0.52);
  background: rgba(0, 230, 255, 0.1);
  transform: translateY(-1px);
}

.rating-stat-button span {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rating-stat-button strong {
  color: var(--brand-cyan);
  font-family: Teko, Inter, sans-serif;
  font-size: 3rem;
  line-height: 0.9;
}

.eqid-home-stat {
  align-content: center;
}

.rating-stat-button .eqid-pill {
  align-self: start;
}

.rating-stat-button .eqid-pill span,
.rating-stat-button .eqid-pill strong {
  font-family: Inter, sans-serif;
  line-height: 1;
}

.rating-stat-button .eqid-pill span {
  color: var(--brand-cyan);
  font-size: 0.64rem;
}

.rating-stat-button .eqid-pill strong {
  color: var(--text-primary);
  font-size: 0.94rem;
}

.club-panel,
.club-status-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.club-roster-button {
  align-self: end;
  margin-top: 6px;
}

.club-panel h2,
.club-status-panel h2,
.activity-panel h2,
.below-grid h2 {
  margin: 0;
  font-size: 1rem;
}

.stat-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.stat-line strong {
  color: var(--text-primary);
  text-align: right;
}

.actions-section {
  margin-top: 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.actions-section > h2,
.below-grid h2 {
  margin: 0;
  font-family: Teko, Inter, sans-serif;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
  transform: skew(-8deg);
}

.actions-section > p {
  margin: 4px 0 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.section-heading h2 {
  margin: 0;
  font-family: Teko, Inter, sans-serif;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
  transform: skew(-8deg);
}

.section-heading p:not(.section-kicker) {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.action-tile {
  position: relative;
  display: grid;
  grid-template-rows: 42px minmax(44px, auto) minmax(56px, 1fr) 30px;
  gap: 10px;
  min-height: 188px;
  align-content: stretch;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.action-badge {
  position: absolute;
  z-index: 2;
  top: -9px;
  right: -9px;
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(0, 230, 255, 0.72);
  border-radius: 999px;
  padding: 0 8px;
  color: #021014;
  background: var(--brand-cyan);
  box-shadow:
    0 0 0 4px rgba(0, 230, 255, 0.12),
    0 10px 26px rgba(0, 230, 255, 0.28);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.action-tile:hover {
  border-color: rgba(0, 230, 255, 0.44);
  background: rgba(0, 230, 255, 0.08);
  transform: translateY(-2px);
}

.action-tile.locked {
  opacity: 0.58;
}

.action-tile.locked:hover {
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.035);
  transform: none;
}

.tile-top {
  display: grid;
  gap: 12px;
}

.tile-glyph,
.tile-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(0, 230, 255, 0.3);
  border-radius: var(--radius-sm);
  color: var(--brand-cyan);
  background: rgba(0, 230, 255, 0.07);
  font-family: Teko, Inter, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  transform: skew(-8deg);
}

.action-tile h3 {
  align-self: start;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.18;
}

.action-tile p {
  align-self: start;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.45;
}

.tile-status {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  align-self: end;
  border: 1px solid rgba(0, 230, 255, 0.28);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--brand-cyan);
  background: rgba(0, 230, 255, 0.07);
  font-size: 0.78rem;
  font-weight: 900;
}

.action-tile.locked .tile-status {
  border-color: rgba(242, 201, 76, 0.34);
  color: #f8df8c;
  background: rgba(242, 201, 76, 0.08);
}

.access-section {
  margin-top: 26px;
}

.flash-message {
  min-height: 38px;
  border: 1px solid rgba(0, 230, 255, 0.24);
  border-radius: var(--radius-sm);
  margin: 0 0 12px;
  padding: 10px 12px;
  background: rgba(0, 230, 255, 0.07);
  color: var(--brand-cyan);
  font-size: 0.88rem;
  font-weight: 800;
}

.access-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(360px, 1.36fr) minmax(260px, 0.92fr);
  gap: 12px;
  align-items: start;
}

.tool-panel {
  display: grid;
  gap: 12px;
  min-height: 100%;
}

.tool-panel h3,
.tool-panel h4 {
  margin: 0;
}

.tool-panel h3 {
  font-size: 1.08rem;
}

.tool-panel h4 {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.tool-panel p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.admin-panel {
  gap: 16px;
}

.collapsed-admin {
  align-content: start;
}

.collapsed-admin summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  cursor: pointer;
  list-style: none;
}

.collapsed-admin summary::-webkit-details-marker {
  display: none;
}

.collapsed-admin summary strong {
  display: block;
  margin-top: 4px;
  font-size: 1.08rem;
}

.summary-indicator {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(0, 230, 255, 0.24);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--brand-cyan);
  background: rgba(0, 230, 255, 0.07);
  font-size: 0.76rem;
  font-weight: 900;
}

.collapsed-admin[open] .summary-indicator {
  color: var(--text-primary);
}

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

.admin-tool-button {
  display: grid;
  gap: 5px;
  min-height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.admin-tool-button:hover {
  border-color: rgba(0, 230, 255, 0.42);
  background: rgba(0, 230, 255, 0.08);
}

.admin-tool-button:active {
  transform: translateY(1px);
}

.admin-tool-button span {
  font-weight: 900;
}

.admin-tool-button small {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.35;
}

.admin-tool-button.danger {
  border-color: rgba(235, 87, 87, 0.34);
}

.admin-tool-button.danger:hover {
  border-color: rgba(235, 87, 87, 0.72);
  background: rgba(235, 87, 87, 0.1);
}

.admin-tool-button:disabled {
  opacity: 0.48;
  transform: none;
}

.member-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.member-list li {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.member-list strong {
  color: var(--brand-cyan);
  font-size: 0.78rem;
  white-space: nowrap;
}

.idle-list li {
  border-style: dashed;
  opacity: 0.72;
}

.restricted-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.below-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.activity-panel,
.below-grid > div {
  min-height: 160px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(14, 17, 23, 0.68);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
}

.recent-match-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.announcement-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.announcement-pill {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(0, 230, 255, 0.18);
  border-radius: 999px;
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgba(0, 230, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(5, 6, 8, 0.34);
  color: var(--text-primary);
  text-align: left;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.announcement-pill:hover {
  border-color: rgba(0, 230, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(0, 230, 255, 0.12), rgba(255, 255, 255, 0.05)),
    rgba(5, 6, 8, 0.44);
  transform: translateY(-1px);
}

.announcement-pill span,
.announcement-pill em {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.announcement-pill strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-match-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(0, 230, 255, 0.045), transparent 48%),
    rgba(255, 255, 255, 0.035);
}

.recent-match-content {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.recent-match-action {
  display: grid;
  align-self: stretch;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  justify-items: end;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 12px;
}

.recent-match-action .button {
  min-width: 86px;
  align-self: center;
}

.completed-match-score {
  display: grid;
  min-width: 86px;
  gap: 4px;
  justify-items: end;
  padding: 2px 0;
}

.completed-match-score span {
  color: var(--brand-cyan);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.completed-match-score strong {
  color: var(--brand-cyan);
  font-family: Teko, Inter, sans-serif;
  font-size: 2rem;
  line-height: 0.82;
}

.completed-match-score em {
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.starting-score-tooltip-wrap {
  width: fit-content;
}

.starting-score-strip {
  display: inline-grid;
  min-width: 94px;
  min-height: 32px;
  grid-template-columns: minmax(28px, 1fr) auto minmax(28px, 1fr);
  gap: 7px;
  align-items: center;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.starting-score-strip em {
  color: currentColor;
  font-style: normal;
  opacity: 0.58;
}

.starting-score-strip.green {
  border-color: rgba(47, 191, 113, 0.45);
  background: rgba(47, 191, 113, 0.1);
  color: #8ff0b9;
}

.starting-score-strip.yellow {
  border-color: rgba(242, 201, 76, 0.5);
  background: rgba(242, 201, 76, 0.11);
  color: #f8df8c;
}

.starting-score-strip.red {
  border-color: rgba(235, 87, 87, 0.5);
  background: rgba(235, 87, 87, 0.12);
  color: #ffb2b2;
}

.starting-score-strip.brown {
  border-color: rgba(139, 94, 60, 0.62);
  background: rgba(139, 94, 60, 0.18);
  color: #d9b08c;
}

.starting-score-strip.black,
.starting-score-strip.double-black,
.starting-score-strip.triple-black {
  border-color: rgba(255, 255, 255, 0.92);
  background: #ffffff;
  color: #050608;
}

.recent-match-players,
.recent-match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.recent-match-meta {
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.recent-match-players .match-player-name {
  color: var(--brand-cyan);
  font-weight: 900;
}

.recent-match-players .eqid-pill {
  margin-left: -2px;
}

.recent-match-players .eqid-pill span {
  color: var(--brand-cyan);
  font-size: 0.58rem;
}

.recent-match-players .eqid-pill strong {
  color: var(--text-primary);
  font-size: 0.72rem;
}

.recent-match-players em {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.match-versus {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.match-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.match-start-pill {
  gap: 4px;
  overflow: visible;
}

.match-start-pill .match-player-name {
  color: var(--brand-cyan);
}

.player-pill {
  min-height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--brand-cyan);
  font-size: 0.9rem;
}

.code-pill {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.status-pill.incomplete {
  border-color: rgba(242, 201, 76, 0.48);
  background: rgba(242, 201, 76, 0.12);
  color: #f8df8c;
}

.status-pill.complete {
  border-color: rgba(47, 191, 113, 0.45);
  background: rgba(47, 191, 113, 0.12);
  color: #8ff0b9;
}

.status-pill.idle {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}

.club-pill {
  border-color: rgba(0, 230, 255, 0.22);
  background: rgba(0, 230, 255, 0.07);
  color: var(--text-secondary);
}

.type-pill.social {
  border-color: rgba(0, 230, 255, 0.32);
  background: rgba(0, 230, 255, 0.08);
  color: var(--brand-cyan);
}

.type-pill.competition {
  border-color: rgba(235, 87, 87, 0.48);
  background: rgba(235, 87, 87, 0.12);
  color: #ffb2b2;
}

.start-pill {
  border-color: rgba(47, 191, 113, 0.4);
  background: rgba(47, 191, 113, 0.1);
  color: #8ff0b9;
}

.empty-state {
  display: grid;
  min-height: 104px;
  align-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  margin-top: 14px;
  padding: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.social-setup-panel {
  display: grid;
  gap: 18px;
}

.social-session-list {
  display: grid;
  gap: 12px;
}

.social-session-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(0, 230, 255, 0.055), transparent 48%),
    rgba(255, 255, 255, 0.035);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.social-session-card:hover {
  border-color: rgba(0, 230, 255, 0.3);
  background:
    linear-gradient(145deg, rgba(0, 230, 255, 0.09), transparent 48%),
    rgba(255, 255, 255, 0.052);
}

.social-session-card.ended {
  opacity: 0.56;
  filter: grayscale(0.34);
}

.social-session-link {
  display: grid;
  min-width: 0;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.social-session-link h2 {
  margin: 0;
  font-family: Teko, Inter, sans-serif;
  font-size: 2.1rem;
  line-height: 0.9;
  text-transform: uppercase;
  transform: skew(-8deg);
}

.social-session-link p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-weight: 800;
}

.social-session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-session-meta.detail {
  margin: 16px 0;
}

.session-admin-pill {
  max-width: 100%;
}

.social-session-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.court-pill {
  border-color: rgba(0, 230, 255, 0.4);
  background: rgba(0, 230, 255, 0.1);
  color: var(--brand-cyan);
}

.social-session-header {
  align-items: flex-start;
  margin-bottom: 22px;
}

.social-session-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.social-session-header + .social-session-panel,
.social-session-grid + .social-session-panel,
.social-session-grid + .social-session-panel + .social-session-panel,
.social-session-panel + .social-session-panel,
.social-match-board-main .social-session-panel + .social-session-panel {
  margin-top: 24px;
}

.social-session-grid > .social-session-panel {
  margin-top: 0;
}

.social-session-grid > .social-roster-panel,
.social-session-grid > .social-produce-panel {
  min-height: 300px;
}

.event-page-actions {
  align-items: flex-start;
}

.event-management-actions {
  align-items: center;
}

.social-session-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(14, 17, 23, 0.68);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.social-session-panel h2,
.section-heading.compact h2 {
  margin: 0;
  font-family: Teko, Inter, sans-serif;
  font-size: 1.85rem;
  line-height: 1;
  text-transform: uppercase;
  transform: skew(-8deg);
}

.section-heading.compact {
  align-items: center;
  margin-bottom: 0;
}

.social-roster-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.social-roster-summary::-webkit-details-marker {
  display: none;
}

.social-roster-summary::after {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid rgba(0, 230, 255, 0.28);
  border-radius: var(--radius-sm);
  color: var(--brand-cyan);
  background: rgba(0, 230, 255, 0.07);
  content: "+";
  font-family: Teko, Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

details.social-roster-panel[open] .social-roster-summary::after {
  content: "-";
}

.social-roster-body {
  display: grid;
  gap: 12px;
}

details.social-roster-panel:not([open]) .social-roster-body {
  display: none;
}

.social-roster-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.social-session-grid > .social-roster-panel {
  height: var(--social-roster-panel-height, auto);
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
}

.social-session-grid > .social-roster-panel .social-roster-body {
  display: flex;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
}

.social-roster-search {
  min-width: 0;
}

.social-session-grid > .social-roster-panel .social-player-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.roster-actions {
  justify-content: flex-start;
}

.social-player-list,
.social-match-list {
  display: grid;
  gap: 10px;
}

.social-match-filter {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.45fr);
  gap: 12px;
  align-items: end;
}

.social-match-filter.tournament-match-filter {
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 0.35fr) minmax(120px, 0.28fr);
}

.league-type-grid,
.box-round-list,
.ladder-list,
.box-round-review-list {
  display: grid;
  gap: 14px;
}

.event-adhoc-builder {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  border: 1px solid rgba(0, 230, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(0, 230, 255, 0.035);
}

.event-adhoc-builder h3,
.box-round-section h3 {
  margin: 0;
  font-family: Teko, Inter, sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
  transform: skew(-8deg);
}

.event-adhoc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-adhoc-pill {
  gap: 8px;
}

.event-adhoc-pill button {
  border: 0;
  padding: 0;
  color: var(--brand-cyan);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.box-round-review-card,
.box-round-section {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.fixture-preview-list {
  display: grid;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.compact-round-list {
  gap: 10px;
}

.box-round-bye {
  gap: 6px;
  width: fit-content;
  margin: 0;
  border-style: dashed;
}

.box-round-bye .match-player-name {
  color: var(--brand-cyan);
}

.league-summary-panel {
  display: grid;
  gap: 14px;
}

.ladder-player-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(10, 12, 18, 0.72);
}

.ladder-player-row.is-draggable {
  grid-template-columns: 28px 44px minmax(0, 1fr) auto;
  cursor: grab;
}

.ladder-player-row.is-dragging {
  opacity: 0.54;
  cursor: grabbing;
}

.ladder-player-row.is-drag-over {
  border-color: rgba(0, 230, 255, 0.5);
  box-shadow: inset 0 3px 0 rgba(0, 230, 255, 0.72);
}

.ladder-player-row.is-drag-over.drop-after {
  box-shadow: inset 0 -3px 0 rgba(0, 230, 255, 0.72);
}

.ladder-drag-handle {
  display: grid;
  width: 26px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--brand-cyan);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
}

.ladder-rank-pill {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(0, 230, 255, 0.32);
  border-radius: var(--radius-sm);
  color: var(--brand-cyan);
  background: rgba(0, 230, 255, 0.08);
  font-family: Teko, Inter, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.ladder-player-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ladder-player-main strong {
  font-size: 1rem;
}

.ladder-player-main span {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.ladder-player-main .ladder-player-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ladder-player-main em {
  color: var(--brand-cyan);
  font-style: normal;
  font-weight: 900;
}

.ladder-player-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.warning-pill {
  border-color: rgba(242, 201, 76, 0.32);
  color: var(--brand-yellow);
  background: rgba(242, 201, 76, 0.08);
}

.social-player-card,
.social-match-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.social-player-card > div:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.social-player-heading {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.social-player-card strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-player-heading strong {
  min-width: 0;
}

.social-player-card span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.social-player-card .social-player-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 0.94rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-player-card .eqid-pill {
  flex: 0 0 auto;
}

.social-player-card .eqid-pill span {
  color: var(--brand-cyan);
  font-size: 0.58rem;
}

.social-player-card .eqid-pill strong {
  color: var(--text-primary);
  font-size: 0.72rem;
}

.social-player-card-meta,
.social-match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.social-match-card.complete {
  background:
    linear-gradient(145deg, rgba(47, 191, 113, 0.055), transparent 52%),
    rgba(255, 255, 255, 0.03);
}

.social-matchup-form {
  display: grid;
  gap: 12px;
}

.social-player-picker {
  margin-top: 10px;
}

.modal-panel.tournament-modal {
  width: min(980px, 100%);
}

.modal-panel.tournament-team-modal {
  width: min(1160px, 100%);
}

.tournament-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tournament-team-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.tournament-team-summary-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tournament-team-card,
.tournament-team-summary-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.tournament-player-picker {
  max-height: 190px;
}

.tournament-adhoc-form {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) minmax(120px, 0.9fr) minmax(90px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
}

.tournament-adhoc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tournament-adhoc-list .match-pill {
  gap: 8px;
}

.tournament-adhoc-list button {
  border: 0;
  padding: 0;
  color: var(--brand-cyan);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 900;
}

.tournament-team-summary-card h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
}

.tournament-team-summary-card ol {
  display: grid;
  gap: 8px;
  padding-left: 22px;
  margin: 0;
}

.tournament-team-summary-card li {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.tournament-team-summary-card li::marker {
  color: var(--brand-cyan);
  font-weight: 900;
}

.tournament-player-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tournament-player-line {
  display: inline-flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.tournament-player-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-team-summary-card .eqid-pill {
  flex: 0 0 auto;
}

.tournament-team-summary-card .eqid-pill span {
  color: var(--brand-cyan);
  font-size: 0.58rem;
}

.tournament-team-summary-card .eqid-pill strong {
  color: var(--text-primary);
  font-size: 0.72rem;
}

.tournament-team-summary-card li strong {
  flex: 0 0 auto;
  color: var(--text-primary);
  font-size: 0.8rem;
}

.tournament-construction-rosters {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.tournament-construction-rosters summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
}

.tournament-construction-rosters summary::-webkit-details-marker {
  display: none;
}

.tournament-construction-rosters .tournament-team-summary-grid {
  margin-top: 10px;
}

.tournament-live-summary {
  gap: 14px;
}

.tournament-live-summary summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-primary);
  list-style: none;
  cursor: pointer;
}

.tournament-live-summary summary::-webkit-details-marker {
  display: none;
}

.tournament-live-summary summary::after {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 230, 255, 0.32);
  border-radius: 999px;
  color: var(--brand-cyan);
  content: "+";
  display: inline-grid;
  font-weight: 900;
  place-items: center;
}

.tournament-live-summary[open] summary::after {
  content: "-";
}

.tournament-live-summary summary span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.tournament-live-summary summary strong {
  font-size: 1.05rem;
}

.tournament-live-summary summary em {
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.4;
}

.tournament-summary-sections {
  display: grid;
  gap: 18px;
}

.tournament-summary-sections section {
  display: grid;
  gap: 10px;
}

.tournament-summary-sections h2 {
  margin: 0;
  font-size: 1rem;
}

.tournament-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.tournament-summary-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(0, 230, 255, 0.045), transparent 56%),
    rgba(255, 255, 255, 0.035);
}

.tournament-summary-card > div:first-child {
  display: grid;
  gap: 3px;
}

.tournament-summary-card strong {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.tournament-summary-card span {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tournament-summary-card .eqid-pill {
  width: fit-content;
}

.tournament-summary-card .eqid-pill span {
  color: var(--brand-cyan);
  font-size: 0.58rem;
}

.tournament-summary-card .eqid-pill strong {
  color: var(--text-primary);
  font-size: 0.72rem;
}

.tournament-summary-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.tournament-summary-card dl div {
  display: grid;
  gap: 3px;
}

.tournament-summary-card dt {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tournament-summary-card dd {
  margin: 0;
  color: var(--brand-cyan);
  font-size: 0.86rem;
  font-weight: 900;
}

.tournament-matchup-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tournament-round-list {
  display: grid;
  gap: 14px;
}

.tournament-round-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(0, 230, 255, 0.055), transparent 56%),
    rgba(255, 255, 255, 0.03);
}

.tournament-round-card h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
}

.tournament-pairing-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 0.28fr);
  gap: 12px;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.tournament-pairing-selects {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.tournament-versus {
  align-self: center;
  padding-top: 22px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tournament-pairing-teams {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tournament-pairing-teams strong {
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.feature-panel {
  display: grid;
  min-height: 360px;
  align-content: center;
  justify-items: start;
  padding: 30px;
}

.feature-title {
  font-size: 4rem;
}

.feature-panel .button {
  margin-top: 22px;
}

.match-page {
  display: grid;
  gap: 18px;
}

.match-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.match-setup-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
  align-items: start;
}

.match-player-card,
.player-card,
.match-setup-panel,
.match-form,
.restriction-panel {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(14, 17, 23, 0.78);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
}

.match-player-card,
.player-card,
.match-setup-panel,
.match-form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.match-player-card span,
.player-card span {
  color: var(--brand-cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.match-player-card strong,
.player-card strong {
  font-family: Teko, Inter, sans-serif;
  font-size: 3rem;
  line-height: 0.9;
  text-transform: uppercase;
}

.match-player-card p,
.player-card p {
  margin: 0;
  color: var(--text-secondary);
}

.page-header {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.page-header > div,
.page-header > p {
  max-width: 720px;
}

.page-header .feature-title {
  margin-top: 0;
}

.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.page-panel {
  display: grid;
  gap: 14px;
}

.match-rating-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(0, 230, 255, 0.28);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(0, 230, 255, 0.08);
  color: var(--brand-cyan);
  font-weight: 900;
}

.match-opponent-panel {
  display: grid;
  gap: 12px;
}

.ad-hoc-name {
  margin-top: 12px;
}

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

.match-form-actions {
  display: flex;
  justify-content: flex-end;
}

.match-preview-modal {
  width: min(720px, 100%);
}

.match-preview-score {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.match-preview-score > div {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(0, 230, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(0, 230, 255, 0.065);
}

.match-preview-score span {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.match-preview-score em {
  color: var(--brand-cyan);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.match-preview-score strong {
  color: var(--brand-cyan);
  font-family: Teko, Inter, sans-serif;
  font-size: 4rem;
  line-height: 0.82;
}

.match-preview-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.match-preview-details div {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.match-preview-details span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.match-preview-details strong {
  color: var(--text-primary);
  font-size: 0.86rem;
}

.restriction-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.restriction-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.restriction-rule-list {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  margin: 0;
  color: var(--brand-cyan);
  line-height: 1.55;
}

.small-empty {
  min-height: auto;
  margin: 0;
}

.restriction-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.restriction-tooltip-wrap {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  cursor: pointer;
}

.player-rating-tooltip-wrap,
span.player-rating-tooltip-wrap {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 auto;
  gap: 0;
  align-items: center;
  justify-self: start;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.restriction-tooltip-wrap > .restriction-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 35;
  display: grid;
  width: min(320px, 74vw);
  gap: 8px;
  border: 1px solid rgba(0, 230, 255, 0.28);
  border-radius: var(--radius-sm);
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(0, 230, 255, 0.08), transparent 60%),
    rgba(7, 9, 13, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38), 0 0 28px rgba(0, 230, 255, 0.09);
  color: var(--brand-cyan);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.restriction-tooltip-wrap > .restriction-tooltip::after {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(0, 230, 255, 0.24);
  border-bottom: 1px solid rgba(0, 230, 255, 0.24);
  background: rgba(7, 9, 13, 0.98);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.restriction-tooltip-wrap:hover .restriction-tooltip,
.restriction-tooltip-wrap:focus-within .restriction-tooltip,
.restriction-tooltip-wrap[data-open="true"] .restriction-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.restriction-tooltip strong {
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.restriction-tooltip ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  margin: 0;
  line-height: 1.45;
}

.restriction-tooltip p {
  margin: 0;
  line-height: 1.45;
}

.restriction-tooltip-wrap > .player-rating-tooltip {
  width: max-content;
  min-width: 0;
  max-width: min(220px, calc(100vw - 28px));
  justify-items: start;
  text-align: left;
}

.restriction-tooltip-wrap > .player-rating-tooltip strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.restriction-tooltip-wrap > .player-rating-tooltip p {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.restriction-tooltip-wrap > .player-rating-tooltip em {
  justify-self: start;
  color: var(--brand-cyan);
  font-family: Teko, Inter, sans-serif;
  font-size: 2.4rem;
  font-style: normal;
  font-weight: 700;
  line-height: 0.85;
}

.restriction-badge.green {
  border-color: rgba(47, 191, 113, 0.45);
  background: rgba(47, 191, 113, 0.12);
  color: #8ff0b9;
}

.restriction-badge.yellow {
  border-color: rgba(242, 201, 76, 0.5);
  background: rgba(242, 201, 76, 0.12);
  color: #f8df8c;
}

.restriction-badge.red {
  border-color: rgba(235, 87, 87, 0.5);
  background: rgba(235, 87, 87, 0.13);
  color: #ffb2b2;
}

.restriction-badge.brown {
  border-color: rgba(139, 94, 60, 0.62);
  background: rgba(139, 94, 60, 0.2);
  color: #d9b08c;
}

.restriction-badge.black,
.restriction-badge.double-black,
.restriction-badge.triple-black {
  border-color: rgba(255, 255, 255, 0.32);
  background: var(--tier-black);
  color: var(--text-primary);
}

.score-page {
  display: grid;
  gap: 14px;
}

.score-summary,
.score-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.score-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.score-player-column,
.score-complete-banner,
.score-pending-banner {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(14, 17, 23, 0.78);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
}

.score-player-column {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.score-player-header {
  display: grid;
  gap: 7px;
}

.score-player-header > span,
.current-score-box span,
.score-complete-banner span,
.score-pending-banner span {
  color: var(--brand-cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.score-player-header h2 {
  margin: 0;
  font-family: Teko, Inter, sans-serif;
  font-size: 2.45rem;
  line-height: 0.9;
  text-transform: uppercase;
}

.score-games-pill {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.07);
}

.score-games-pill span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.score-games-pill strong {
  color: var(--text-primary);
  font-family: Teko, Inter, sans-serif;
  font-size: 2rem;
  line-height: 0.9;
}

.score-restriction {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(0, 230, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: rgba(0, 230, 255, 0.045);
}

.score-restriction.muted {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.025);
}

.score-restriction p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.score-restriction ul {
  display: grid;
  gap: 7px;
  padding-left: 20px;
  margin: 0;
  color: var(--brand-cyan);
  font-size: 0.86rem;
  line-height: 1.5;
}

.current-score-box {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(0, 230, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  background: rgba(0, 230, 255, 0.065);
}

.current-score-box strong {
  color: var(--brand-cyan);
  font-family: Teko, Inter, sans-serif;
  font-size: 4.55rem;
  line-height: 0.78;
}

.score-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.score-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 230, 255, 0.3);
  border-radius: var(--radius-md);
  background: rgba(0, 230, 255, 0.08);
  color: var(--brand-cyan);
  font-family: Teko, Inter, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.score-button:hover {
  border-color: rgba(0, 230, 255, 0.6);
  background: rgba(0, 230, 255, 0.14);
}

.score-button.minus {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-secondary);
}

.score-button:active {
  transform: translateY(1px);
}

.score-complete-banner,
.score-pending-banner {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.score-complete-banner {
  border-color: rgba(47, 191, 113, 0.4);
}

.score-pending-banner {
  border-color: rgba(242, 201, 76, 0.38);
}

.score-handoff-banner {
  border-color: rgba(0, 230, 255, 0.38);
}

.score-complete-banner strong,
.score-pending-banner strong {
  font-size: 1.05rem;
}

.score-complete-banner p {
  margin: 0;
  color: var(--text-secondary);
}

.locked-panel {
  border-color: rgba(242, 201, 76, 0.28);
}

.policy-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.policy-shell {
  padding: 28px;
}

.policy-shell h1 {
  margin: 0;
  font-family: Teko, Inter, sans-serif;
  font-size: 4rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.policy-shell h2 {
  margin: 30px 0 10px;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.policy-shell p,
.policy-shell li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.policy-shell ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.policy-shell a {
  color: var(--brand-cyan);
  text-decoration: none;
}

.policy-shell a:hover {
  text-decoration: underline;
}

.policy-table-wrap {
  overflow-x: auto;
  margin: 18px 0 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.policy-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.policy-table th,
.policy-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.policy-table th {
  color: var(--text-primary);
  background: rgba(0, 230, 255, 0.07);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.policy-table tr:last-child td {
  border-bottom: 0;
}

.policy-table code {
  color: var(--brand-cyan);
}

.policy-updated {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.not-found {
  display: grid;
  min-height: 60vh;
  place-items: center;
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(14px);
}

.modal-panel {
  display: grid;
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 22px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(8, 10, 14, 0.98);
  box-shadow: var(--shadow-brand);
}

.modal-panel h2 {
  margin: 0;
  font-family: Teko, Inter, sans-serif;
  font-size: 2.6rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.records-modal {
  width: min(820px, 100%);
}

.trajectory-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(0, 230, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(0, 230, 255, 0.065);
}

.trajectory-summary span {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trajectory-summary strong {
  color: var(--brand-cyan);
  font-family: Teko, Inter, sans-serif;
  font-size: 3rem;
  line-height: 0.9;
}

.compact-summary {
  margin-top: 12px;
}

.trajectory-chart {
  width: 100%;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.trajectory-chart line {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
}

.trajectory-chart path {
  fill: none;
  stroke: var(--brand-cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.trajectory-chart circle {
  fill: var(--brand-cyan);
  stroke: #061014;
  stroke-width: 2;
}

.trajectory-chart.interactive circle {
  cursor: pointer;
  transition: fill 180ms ease, stroke 180ms ease, stroke-width 180ms ease, filter 180ms ease;
}

.trajectory-chart.interactive circle:hover,
.trajectory-chart.interactive circle:focus-visible,
.trajectory-chart.interactive circle[data-active="true"] {
  fill: #ffffff;
  stroke: var(--brand-cyan);
  stroke-width: 5;
  filter: drop-shadow(0 0 8px rgba(0, 230, 255, 0.9));
  outline: none;
}

.trajectory-chart text {
  fill: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.trajectory-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.trajectory-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  color: var(--text-secondary);
}

.trajectory-list strong {
  color: var(--text-primary);
}

.profile-hero {
  align-items: center;
}

.profile-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.profile-hero-meta > span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 900;
}

.eqid-pill.profile {
  min-height: 32px;
  padding: 0 10px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.profile-rating-panel {
  align-content: start;
}

.compact-profile-history:empty {
  display: none;
}

.profile-rating-row {
  align-items: center;
  cursor: default;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.profile-rating-row[data-profile-rating-clickable="true"] {
  cursor: pointer;
}

.profile-rating-row:hover,
.profile-rating-row:focus-visible,
.profile-rating-row[data-active="true"] {
  border-color: rgba(0, 230, 255, 0.48);
  background: rgba(0, 230, 255, 0.085);
  box-shadow: 0 0 0 1px rgba(0, 230, 255, 0.12), 0 12px 34px rgba(0, 0, 0, 0.18);
  outline: none;
  transform: translateY(-1px);
}

.profile-rating-row > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.profile-rating-row > span:first-child {
  justify-items: start;
}

.profile-rating-row em {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
}

.profile-rating-row-score {
  justify-items: end;
  text-align: right;
}

.profile-rating-row-score strong {
  color: var(--brand-cyan);
  font-family: Teko, Inter, sans-serif;
  font-size: 1.55rem;
  line-height: 0.9;
}

.profile-section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.profile-section-heading h2 {
  margin: 0;
  font-family: Teko, Inter, sans-serif;
  font-size: 2.1rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.profile-section-heading span {
  color: var(--brand-cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.profile-club-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.profile-club-row strong,
.profile-club-row > div:first-child span,
.profile-club-row em {
  display: block;
}

.profile-club-row strong {
  color: var(--text-primary);
  font-size: 0.94rem;
}

.profile-club-row > div:first-child span,
.profile-club-row em {
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.profile-club-meta {
  display: grid;
  min-width: 118px;
  gap: 7px;
  justify-items: end;
  text-align: right;
}

.profile-status-pill {
  display: inline-flex !important;
  min-height: 30px;
  min-width: 76px;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px;
  line-height: 30px;
  text-align: center;
  text-transform: capitalize;
}

.profile-status-pill.active {
  border-color: rgba(47, 191, 113, 0.45);
  background: rgba(47, 191, 113, 0.12);
  color: #8ff0b9;
}

.profile-match-panel {
  margin-top: 16px;
}

.profile-match-list .recent-match-card {
  scroll-margin-top: 96px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.profile-match-list .recent-match-card[data-profile-active="true"] {
  border-color: rgba(0, 230, 255, 0.62);
  background:
    linear-gradient(145deg, rgba(0, 230, 255, 0.095), transparent 54%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 1px rgba(0, 230, 255, 0.16), 0 18px 48px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.club-roster-panel {
  gap: 16px;
}

.club-roster-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.club-roster-toolbar > div {
  display: grid;
  gap: 3px;
}

.club-roster-toolbar-summary {
  min-width: 180px;
}

.club-roster-toolbar strong {
  color: var(--text-primary);
  font-size: 1rem;
}

.club-roster-toolbar span {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 800;
}

.club-roster-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  justify-content: flex-end;
}

.club-roster-search,
.club-roster-sort {
  display: flex;
  gap: 8px;
  align-items: center;
}

.club-roster-search span,
.club-roster-sort span {
  color: var(--brand-cyan);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.club-roster-search input {
  min-height: 40px;
  width: min(260px, 36vw);
}

.club-roster-sort select {
  min-height: 40px;
  min-width: 190px;
}

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

.club-roster-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background:
    linear-gradient(145deg, rgba(0, 230, 255, 0.045), transparent 48%),
    rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.club-roster-row:hover,
.club-roster-row:focus-visible {
  border-color: rgba(0, 230, 255, 0.32);
  background:
    linear-gradient(145deg, rgba(0, 230, 255, 0.08), transparent 52%),
    rgba(255, 255, 255, 0.055);
  outline: none;
  transform: translateY(-1px);
}

.club-roster-player {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.club-roster-player strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-roster-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(82px, auto));
  gap: 10px;
  align-items: center;
}

.club-roster-meta > div {
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: right;
}

.club-roster-meta span {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.club-roster-meta strong {
  color: var(--brand-cyan);
  font-family: Teko, Inter, sans-serif;
  font-size: 2rem;
  line-height: 0.86;
}

.announcement-modal {
  width: min(680px, 100%);
}

.announcement-manager-modal {
  width: min(860px, 100%);
}

.announcement-manager-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.announcement-manager-head > div {
  display: grid;
  gap: 3px;
}

.announcement-manager-head strong {
  color: var(--text-primary);
  font-size: 0.96rem;
}

.announcement-manager-head span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.announcement-manage-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.announcement-manage-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.announcement-manage-title strong {
  min-width: 0;
  color: var(--text-primary);
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.announcement-manage-meta,
.announcement-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.announcement-manage-meta {
  margin-top: 8px;
}

.announcement-manage-meta span {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.announcement-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.announcement-detail-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(0, 230, 255, 0.24);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--brand-cyan);
  background: rgba(0, 230, 255, 0.07);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.announcement-rendered {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  line-height: 1.65;
}

.announcement-rendered p,
.announcement-rendered ul,
.announcement-rendered blockquote,
.announcement-rendered h3,
.announcement-rendered h4,
.announcement-rendered h5 {
  margin: 0;
}

.announcement-rendered h3,
.announcement-rendered h4,
.announcement-rendered h5 {
  color: var(--text-primary);
  line-height: 1.1;
}

.announcement-rendered ul {
  display: grid;
  gap: 6px;
  padding-left: 20px;
}

.announcement-rendered blockquote {
  border-left: 3px solid var(--brand-cyan);
  padding-left: 12px;
  color: var(--text-primary);
}

.announcement-rendered code {
  border-radius: 6px;
  padding: 2px 5px;
  background: rgba(0, 230, 255, 0.1);
  color: var(--brand-cyan);
}

.announcement-rendered a {
  color: var(--brand-cyan);
  font-weight: 800;
}

.modal-copy {
  display: grid;
  gap: 10px;
}

.modal-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.modal-form-grid .record-wide {
  grid-column: 1 / -1;
}

.event-settings-grid {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(96px, 0.56fr) minmax(96px, 0.56fr);
  gap: 12px;
  align-items: start;
}

.social-session-modal {
  width: min(720px, 100%);
}

.switch-field {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.switch-field input {
  appearance: none;
  position: relative;
  width: 48px;
  min-width: 48px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.switch-field input::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
  transition: transform 180ms ease;
}

.switch-field input:checked {
  border-color: rgba(0, 230, 255, 0.72);
  background: linear-gradient(135deg, var(--brand-cyan), #2ff5b7);
  box-shadow: 0 0 0 3px rgba(0, 230, 255, 0.12), inset 0 1px 4px rgba(0, 0, 0, 0.14);
}

.switch-field input:checked::before {
  transform: translateX(20px);
}

.switch-field input:focus-visible {
  outline: 2px solid rgba(0, 230, 255, 0.8);
  outline-offset: 3px;
}

.switch-field span {
  display: grid;
  gap: 4px;
}

.switch-field strong {
  color: var(--text-primary);
  font-size: 0.9rem;
}

.switch-field em,
.multi-select-option em {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.35;
}

.multi-select-list {
  display: grid;
  max-height: 220px;
  overflow: auto;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: rgba(5, 6, 8, 0.36);
}

.multi-select-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.035);
}

.multi-select-option input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--brand-cyan);
}

.multi-select-option span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.multi-select-option .eqid-pill {
  display: inline-flex;
  min-width: auto;
  gap: 5px;
  vertical-align: middle;
}

.multi-select-option .eqid-pill span {
  display: inline;
  min-width: auto;
  margin: 0;
  color: var(--brand-cyan);
}

.multi-select-option strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-select-option .eqid-pill strong {
  overflow: visible;
  color: var(--text-primary);
  font-size: 0.72rem;
  text-overflow: clip;
}

.modal-error {
  min-height: 20px;
  margin: 0;
  color: #ff9f9f;
  font-size: 0.86rem;
  font-weight: 800;
}

.modal-tool-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.club-record-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.club-record-card > div {
  display: grid;
  gap: 3px;
}

.club-record-card .record-wide {
  grid-column: span 2;
}

.club-record-card dt {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.club-record-card dd {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.club-record-card .button {
  align-self: end;
}

.records-search {
  display: grid;
  gap: 8px;
}

.records-search input {
  min-height: 46px;
}

.records-section {
  display: grid;
  gap: 10px;
}

.records-section h3 {
  margin: 0;
  font-size: 1rem;
}

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

.records-empty {
  margin: 0;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--text-secondary);
}

.member-record {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

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

.member-record span {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.member-record dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.member-record dl div {
  display: grid;
  gap: 3px;
}

.member-record .record-wide {
  grid-column: span 2;
}

.member-record dt {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.member-record dd {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.84rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@keyframes drift-lines {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(84px, 0, 0);
  }
}

@keyframes auth-exit {
  from {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
  to {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.985);
  }
}

@keyframes home-section-enter {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

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

  .login-view.auth-exit,
  .home-enter .app-topbar,
  .home-enter .home-hero,
  .home-enter .actions-section,
  .home-enter .below-grid,
  .home-enter .action-tile {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@media (max-width: 980px) {
  .topbar-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .club-switcher {
    min-width: 180px;
  }

  .home-hero,
  .below-grid,
  .match-setup-grid,
  .social-session-grid {
    grid-template-columns: 1fr;
  }

  .score-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

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

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

  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-preview-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-session-card {
    grid-template-columns: 1fr;
  }

  .social-session-actions {
    justify-content: flex-start;
  }

  .social-player-card,
  .social-match-card {
    grid-template-columns: 1fr;
  }

  .tournament-team-grid,
  .tournament-team-summary-grid,
  .tournament-adhoc-form,
  .tournament-pairing-row,
  .tournament-pairing-selects {
    grid-template-columns: 1fr;
  }

  .tournament-versus {
    padding-top: 0;
  }

  .social-player-card-meta,
  .social-match-actions {
    justify-content: flex-start;
  }

}

@media (max-width: 680px) {
  .login-view {
    padding: 18px;
  }

  .public-topbar,
  .app-topbar,
  .shell-main,
  .policy-page,
  .legal-footer {
    width: min(100%, calc(100% - 36px));
  }

  .public-topbar,
  .app-topbar {
    position: relative;
    align-items: flex-start;
    padding-top: 8px;
  }

  .app-topbar {
    flex-direction: column;
  }

  .topbar-tools {
    width: 100%;
    justify-content: stretch;
  }

  .club-switcher {
    flex: 1 1 100%;
  }

  .chip-row {
    flex: 1;
  }

  .account-menu {
    margin-left: auto;
  }

  .account-panel {
    right: 0;
    width: min(280px, calc(100vw - 36px));
  }

  .cookie-consent {
    right: 18px;
    bottom: 18px;
    grid-template-columns: 1fr;
    gap: 14px;
    width: calc(100% - 36px);
    padding: 15px;
  }

  .cookie-consent-actions {
    justify-content: stretch;
    white-space: normal;
  }

  .cookie-consent-actions .button {
    flex: 1;
    width: auto;
    min-height: 42px;
  }

  .login-stage {
    min-height: auto;
    padding-top: 26px;
  }

  .login-panel,
  .policy-shell,
  .feature-panel {
    padding: 20px;
  }

  .login-title,
  .policy-shell h1 {
    font-size: 3.35rem;
  }

  .home-title,
  .feature-title {
    font-size: 3rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .public-nav .button,
  .feature-panel .button,
  .restricted-actions .button,
  .modal-actions .button {
    width: auto;
  }

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

  .action-tile {
    grid-template-rows: 42px minmax(28px, auto) minmax(42px, 1fr) 30px;
    min-height: 150px;
  }

  .recent-match-card {
    grid-template-columns: 1fr;
  }

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

  .profile-club-row,
  .profile-section-heading {
    align-items: stretch;
  }

  .profile-club-row {
    display: grid;
  }

  .profile-club-meta {
    justify-items: start;
    text-align: left;
  }

  .club-roster-toolbar,
  .club-roster-controls,
  .club-roster-search,
  .club-roster-sort {
    align-items: stretch;
  }

  .club-roster-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .club-roster-row {
    grid-template-columns: 1fr;
  }

  .club-roster-controls,
  .club-roster-search,
  .club-roster-sort {
    display: grid;
    justify-content: stretch;
  }

  .club-roster-search input,
  .club-roster-sort select {
    width: 100%;
    min-width: 0;
  }

  .club-roster-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .club-roster-meta > div {
    justify-items: start;
    text-align: left;
  }

  .announcement-pill {
    grid-template-columns: 1fr;
    border-radius: var(--radius-sm);
  }

  .announcement-pill span,
  .announcement-pill em,
  .announcement-pill strong {
    white-space: normal;
  }

  .announcement-manage-card {
    grid-template-columns: 1fr;
  }

  .announcement-manage-actions .button {
    width: 100%;
  }

  .recent-match-action {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
    padding-left: 0;
    justify-items: stretch;
  }

  .recent-match-action .button {
    width: 100%;
  }

  .starting-score-tooltip-wrap,
  .starting-score-strip {
    width: 100%;
  }

  .completed-match-score {
    width: 100%;
    justify-items: center;
  }

  .social-session-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .social-session-actions .button {
    width: 100%;
  }

  .social-player-card-meta,
  .social-match-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .social-match-filter {
    grid-template-columns: 1fr;
  }

  .social-match-filter.tournament-match-filter {
    grid-template-columns: 1fr;
  }

  .ladder-player-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .ladder-player-row.is-draggable {
    grid-template-columns: 28px 38px minmax(0, 1fr);
  }

  .ladder-player-meta {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .ladder-player-meta .button,
  .ladder-player-meta .match-pill {
    width: 100%;
    justify-content: center;
  }

  .social-player-card-meta .button,
  .social-match-actions .button {
    width: 100%;
  }

  .section-heading {
    display: block;
  }

  .social-roster-summary.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .social-roster-summary .match-pill {
    width: fit-content;
    margin-top: 10px;
  }

  .social-roster-summary::after {
    grid-column: 2;
    grid-row: 1;
  }

  .section-heading p:not(.section-kicker) {
    margin-top: 6px;
  }

  .match-header {
    display: grid;
  }

  .page-header {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
  }

  .page-header-actions {
    justify-content: flex-start;
  }

  .score-page .feature-title {
    font-size: 2.65rem;
  }

  .shell-main.score-page {
    padding-top: 18px;
  }

  .score-page .page-header .button {
    width: auto;
    min-height: 40px;
    justify-self: start;
  }

  .match-options-grid,
  .match-preview-score,
  .match-preview-details {
    grid-template-columns: 1fr;
  }

  .score-player-column {
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius-md);
  }

  .score-player-header h2 {
    font-size: 1.72rem;
    overflow-wrap: anywhere;
  }

  .score-player-header {
    gap: 5px;
  }

  .score-player-header > span,
  .current-score-box span,
  .score-games-pill span {
    font-size: 0.66rem;
  }

  .score-player-column .match-rating-pill {
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.8rem;
  }

  .score-restriction {
    gap: 5px;
    border-radius: var(--radius-sm);
    padding: 7px 8px;
  }

  .score-restriction p,
  .score-restriction ul {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .score-restriction ul {
    gap: 4px;
    padding-left: 15px;
  }

  .score-games-pill {
    display: grid;
    min-height: 46px;
    gap: 3px;
    border-radius: var(--radius-sm);
    padding: 8px;
  }

  .score-games-pill strong {
    font-size: 1.55rem;
  }

  .current-score-box {
    border-radius: var(--radius-sm);
    padding: 8px;
  }

  .current-score-box strong {
    font-size: 3rem;
  }

  .score-controls {
    gap: 6px;
  }

  .score-button {
    min-height: 44px;
    border-radius: var(--radius-sm);
    font-size: 2.2rem;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

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

  .event-settings-grid {
    grid-template-columns: 1fr;
  }

  .modal-tool-list,
  .member-record dl,
  .tournament-summary-card dl {
    grid-template-columns: 1fr;
  }

  .member-record .record-wide {
    grid-column: auto;
  }

  .modal-actions .button {
    width: 100%;
  }
}

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

  .score-board-grid {
    gap: 7px;
  }

  .score-player-column {
    gap: 7px;
    padding: 8px;
  }

  .score-player-header h2 {
    font-size: 1.45rem;
  }

  .score-player-header > span,
  .current-score-box span,
  .score-games-pill span {
    font-size: 0.6rem;
  }

  .score-player-column .match-rating-pill {
    min-height: 28px;
    padding: 0 7px;
    font-size: 0.74rem;
  }

  .score-restriction {
    padding: 6px;
  }

  .score-restriction p,
  .score-restriction ul {
    font-size: 0.66rem;
  }

  .current-score-box strong {
    font-size: 2.55rem;
  }

  .score-button {
    min-height: 40px;
    font-size: 1.95rem;
  }
}
