:root {
  --bg: #07111d;
  --bg-2: #0d1725;
  --panel: #111b2b;
  --panel-2: #17243a;
  --panel-3: #0d1523;
  --line: #263650;
  --line-2: #344862;
  --text: #eef4ff;
  --muted: #93a1b8;
  --lime: #b4ff39;
  --lime-2: #8ed82f;
  --blue: #54a8ff;
  --orange: #ff8a4d;
  --red: #ff5d67;
  --purple: #b98cff;
  --pink: #ff78ad;
  --gold: #ffd166;
  --shadow: 0 18px 48px rgba(0, 0, 0, .34);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(84, 168, 255, .09), transparent 280px),
    linear-gradient(180deg, var(--bg-2), var(--bg) 42%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

::selection {
  background: var(--lime);
  color: #07111d;
}

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

button {
  border: 0;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(180, 255, 57, .13);
}

select option {
  background: #111b2b;
  color: var(--text);
}

textarea {
  resize: vertical;
  min-height: 86px;
}

.public-site {
  min-height: 100vh;
  color: var(--text);
}

.public-nav {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 20px 24px;
}

.public-brand {
  color: var(--text);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

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

.public-nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.public-nav-actions a,
.text-link {
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.text-link { border-bottom: 1px solid var(--lime); padding: 0 0 4px; }

.public-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  background-image: linear-gradient(90deg, rgba(7, 17, 29, .96) 0%, rgba(7, 17, 29, .72) 42%, rgba(7, 17, 29, .17) 100%), url('https://images.unsplash.com/photo-1626224583764-f87db24ac4ea?auto=format&fit=crop&w=1800&q=85');
  background-position: center;
  background-size: cover;
}

.public-hero-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 140px 24px 72px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-hero h1,
.public-section h2 {
  margin: 0;
  font-family: Rajdhani, Inter, sans-serif;
  text-transform: uppercase;
}

.public-hero h1 { font-size: 64px; line-height: .9; }
.public-hero p:not(.eyebrow) { max-width: 480px; margin: 16px 0 0; color: #d7e1ef; line-height: 1.6; }

.public-section {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 56px 24px;
}

.public-alt {
  width: 100%;
  padding-right: max(24px, calc((100% - 1132px) / 2));
  padding-left: max(24px, calc((100% - 1132px) / 2));
  background: var(--panel-3);
}

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

.public-section h2 { font-size: 32px; }

.public-rating-grid,
.public-post-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.public-rating-card,
.post-card,
.public-activity,
.timeline-item,
.suggestion-item,
.club-event {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.public-rating-card { min-height: 130px; padding: 18px; }
.public-rating-card h3 { margin: 18px 0 4px; }
.public-rating-card p { margin: 0; color: var(--muted); font-size: 13px; }

.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #07111d;
  background: var(--lime);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 16px;
  font-weight: 800;
}
.grade-C { background: var(--muted); }
.grade-C- { background: #6b7280; }
.grade-C-plus { background: var(--blue); }
.grade-B- { background: #7dd3fc; }
.grade-B { background: var(--lime); }
.grade-B-plus { background: var(--orange); }
.grade-A { background: var(--gold); }

.team-link .chevron {
  font-size: .72em;
}

.privacy-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.privacy-setting-row h3 {
  margin: 0 0 5px;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 18px;
}

.privacy-setting-row p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.toggle-control {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
}

.toggle-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle-track {
  position: relative;
  display: block;
  width: 46px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  transition: background .16s ease, border-color .16s ease;
}

.toggle-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  content: '';
  transition: transform .16s ease, background .16s ease;
}

.toggle-control input:checked + .toggle-track {
  border-color: var(--lime);
  background: rgba(180, 255, 57, .18);
}

.toggle-control input:checked + .toggle-track::after {
  transform: translateX(20px);
  background: var(--lime);
}

.toggle-control input:focus-visible + .toggle-track {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

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

.public-activity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.public-club-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.public-club-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.public-club-card h3 { margin: 0 0 7px; font-family: Rajdhani, Inter, sans-serif; font-size: 20px; }
.public-club-card p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.public-activity { display: grid; grid-template-columns: 112px 1fr; overflow: hidden; }
.public-activity img { width: 112px; height: 100%; min-height: 128px; object-fit: cover; }
.public-activity > div { padding: 17px; }
.public-activity h3, .timeline-item h3, .post-card h3 { margin: 0 0 7px; }
.public-activity p:not(.eyebrow), .timeline-item p:not(.eyebrow), .post-card p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.post-card { position: relative; overflow: hidden; }
.post-card > img, .post-cover-empty { width: 100%; height: 155px; object-fit: cover; background: var(--panel-2); }
.post-cover-empty { display: grid; place-items: center; color: var(--muted); }
.post-card-body { padding: 16px; }
.post-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }

.icon-button { display: inline-grid; width: 34px; height: 34px; place-items: center; padding: 0; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.icon-button svg { width: 16px; height: 16px; }
.icon-button.danger { color: var(--red); }

.suggestion-list, .club-match-list, .activity-timeline { display: grid; gap: 11px; margin-top: 18px; }
.suggestion-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px; }
.suggestion-item p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.suggestion-meta { display: flex; align-items: center; gap: 10px; }

.club-draft-games { display: grid; gap: 9px; }
.club-draft-row { display: grid; grid-template-columns: 104px repeat(2, minmax(130px, 1fr)) repeat(2, minmax(125px, 1fr)) 70px 34px; align-items: center; gap: 8px; padding: 10px; background: var(--panel-3); border: 1px solid var(--line); border-radius: var(--radius); }
.club-draft-row strong { display: grid; gap: 3px; }
.club-draft-row strong small { color: var(--lime); font-size: 10px; font-weight: 700; }
.club-event { overflow: hidden; }
.club-event-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px; background: var(--panel-3); }
.club-event-head h3 { margin: 0; font-family: Rajdhani, Inter, sans-serif; font-size: 21px; }
.club-event-head h3 span { color: var(--lime); }
.club-game-list { display: grid; }
.club-game { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 17px; border-top: 1px solid var(--line); }
.club-game p { margin: 4px 0 0; font-size: 13px; }
.club-score { display: grid; grid-template-columns: repeat(2, 76px); gap: 5px; }
.club-score input { min-height: 34px; padding: 6px; font-size: 11px; }
.club-score button { grid-column: span 2; }
.club-game-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.club-game-editor { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 8px; width: 100%; padding: 12px; border-top: 1px dashed var(--line); }
.club-game-editor input, .club-game-editor select { min-height: 36px; }

.timeline-item { display: grid; grid-template-columns: 108px 1fr; overflow: hidden; }
.timeline-item img { width: 108px; height: 100%; min-height: 110px; object-fit: cover; }
.timeline-item > div:last-child { padding: 16px; }
.timeline-mark { display: grid; place-items: center; color: var(--lime); background: var(--panel-3); }


.is-hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.center {
  text-align: center;
}

.login-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(180, 255, 57, .06), transparent 36%),
    var(--bg);
  z-index: 100;
}

.login-panel {
  width: min(100%, 390px);
  padding: 28px;
  background: rgba(17, 27, 43, .96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: panelIn .32s ease both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-brand,
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
}

.login-brand {
  justify-content: center;
  margin-bottom: 18px;
}

.brand-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 16px rgba(180, 255, 57, .8);
  animation: pulseDot 2.3s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 10px rgba(180, 255, 57, .65);
  }
  50% {
    opacity: .74;
    box-shadow: 0 0 20px rgba(180, 255, 57, .95);
  }
}

.login-brand h1,
.brand-lockup h1,
.section-title h2 {
  font-family: Rajdhani, Inter, sans-serif;
  text-transform: uppercase;
  margin: 0;
}

.login-brand h1 {
  font-size: 27px;
}

.login-brand span,
.brand-lockup span {
  color: var(--lime);
}

.auth-mode label {
  margin-top: 12px;
}

.login-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--red);
  font-size: 12px;
  text-align: center;
}

.login-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.banner {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 17, 29, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.banner-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px 24px 0;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand-lockup h1 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.brand-lockup p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-top: 18px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 14px 11px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border-bottom: 3px solid transparent;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.tab-btn svg {
  width: 16px;
  height: 16px;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-card {
  min-height: 92px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.summary-card.summary-lime { border-top: 3px solid var(--lime); }
.summary-card.summary-blue { border-top: 3px solid var(--blue); }
.summary-card.summary-orange { border-top: 3px solid var(--orange); }
.summary-card.summary-purple { border-top: 3px solid var(--purple); }

.summary-card .summary-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-card .summary-value {
  margin-top: 9px;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
}

.summary-card .summary-value.compact {
  overflow: hidden;
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-card .summary-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn .18s ease both;
}

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

.panel-card {
  margin-bottom: 16px;
  padding: 20px;
  background: rgba(17, 27, 43, .98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

.checkin-intro { margin: -4px 0 18px; line-height: 1.5; }
.checkin-player-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.checkin-player { min-height: 72px; padding: 12px; cursor: pointer; color: var(--text); text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); }
.checkin-player strong, .checkin-player span { display: block; }
.checkin-player strong { font-size: 14px; }
.checkin-player span { margin-top: 6px; color: var(--lime); font-size: 12px; font-weight: 700; }
.checkin-player:hover { border-color: var(--lime); }
.checkin-player:disabled { cursor: default; opacity: .62; }
.checkin-player.is-checked-in span { color: var(--muted); }
.checkin-waitlist { display: grid; gap: 10px; }
.checkin-queue + .checkin-queue { margin-top: 20px; }
.checkin-queue h3 { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.checkin-waiting { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid var(--lime); border-radius: var(--radius); }
.checkin-waiting strong { font-size: 15px; }
.checkin-waiting p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.checkin-waiting.is-overdue { border-color: rgba(255, 93, 103, .8); border-left-color: var(--red); background: rgba(255, 93, 103, .08); }
.checkin-waiting.is-overdue p { color: #ffc1c5; }

.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.section-title h2 {
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
}

.title-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--lime);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.member-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-grade-select {
  min-width: 64px;
  min-height: 34px;
  padding: 5px 8px;
}

.form-row.single {
  grid-template-columns: minmax(180px, 260px);
}

.field {
  min-width: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 16px;
}

.team-block {
  padding: 15px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.team-a {
  border-left: 4px solid var(--blue);
}

.team-b {
  border-left: 4px solid var(--orange);
}

.team-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  margin-bottom: 12px;
  gap: 8px;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.score-board {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
}

.score-row {
  display: grid;
  grid-template-columns: 80px 84px 32px 84px auto;
  align-items: center;
  gap: 10px;
}

.score-row label {
  margin: 0;
}

.score-row .vs {
  color: var(--muted);
  font-family: Rajdhani, Inter, sans-serif;
  font-weight: 700;
  text-align: center;
}

.score-num {
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: var(--radius);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform .12s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:active {
  transform: scale(.98);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
}

.btn-primary {
  color: #07111d;
  background: var(--lime);
}

.btn-primary:hover {
  background: var(--lime-2);
  box-shadow: 0 0 18px rgba(180, 255, 57, .28);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-2);
}

.btn-ghost:hover {
  border-color: var(--muted);
  background: rgba(255, 255, 255, .035);
}

.btn-danger {
  color: var(--red);
  background: transparent;
  border: 1px solid rgba(255, 93, 103, .7);
}

.btn-danger:hover {
  color: #fff;
  background: var(--red);
}

.btn-small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}

.wide {
  width: 100%;
  margin-top: 14px;
}

.cat-tabs,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cat-tab {
  min-height: 34px;
  padding: 7px 15px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: Rajdhani, Inter, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.cat-tab.active {
  color: #07111d;
  background: var(--lime);
  border-color: var(--lime);
}

.filter-bar input {
  max-width: 240px;
}

.filter-bar select {
  width: auto;
  min-width: 190px;
}

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

.table-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  padding: 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

th.sortable {
  cursor: pointer;
  user-select: none;
}

th.sortable::after {
  content: "^v";
  display: inline-block;
  margin-left: 7px;
  color: var(--line-2);
  font-size: 11px;
}

th.sortable.sort-asc::after {
  content: "^";
  color: var(--lime);
}

th.sortable.sort-desc::after {
  content: "v";
  color: var(--lime);
}

th.sortable:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}

td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(38, 54, 80, .8);
  vertical-align: middle;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--lime);
}

tbody tr:hover td {
  background: rgba(255, 255, 255, .025);
}

.num {
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-member,
.badge-menang {
  color: var(--lime);
  background: rgba(180, 255, 57, .13);
}

.badge-bulanan {
  color: var(--blue);
  background: rgba(84, 168, 255, .14);
}

.badge-nonmember {
  color: var(--muted);
  background: rgba(147, 161, 184, .12);
}

.badge-kalah {
  color: var(--red);
  background: rgba(255, 93, 103, .13);
}

.badge-draw {
  color: var(--gold);
  background: rgba(255, 209, 102, .14);
}

.badge-putra {
  color: var(--blue);
  background: rgba(84, 168, 255, .14);
}

.badge-putri {
  color: var(--pink);
  background: rgba(255, 120, 173, .14);
}

.badge-campuran {
  color: var(--purple);
  background: rgba(185, 140, 255, .14);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel-2);
  font-family: Rajdhani, Inter, sans-serif;
  font-weight: 700;
}

.rank-badge.gold {
  color: #4a3900;
  background: var(--gold);
}

.rank-badge.silver {
  color: #202935;
  background: #c8d0db;
}

.rank-badge.bronze {
  color: #42230c;
  background: #df9f68;
}

.diff-pos {
  color: var(--lime);
}

.diff-neg {
  color: var(--red);
}

.winrate-bar {
  width: 78px;
  height: 6px;
  margin-top: 5px;
  overflow: hidden;
  background: var(--panel-2);
  border-radius: 999px;
}

.winrate-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lime), var(--blue));
  border-radius: 999px;
  transition: width .7s cubic-bezier(.2, .75, .2, 1);
}

.team-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--lime);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.team-link:hover {
  color: var(--lime-2);
}

.team-detail-row td {
  padding: 0;
  background: var(--panel-3);
}

.team-detail-inline {
  padding: 12px 14px 16px;
}

.team-detail-inline table {
  min-width: 560px;
  font-size: 12px;
}

.rating-detail-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.rating-member-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--lime);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.rating-member-trigger:hover {
  color: var(--lime-2);
}

.rating-detail-trigger:hover .grade-badge,
.rating-detail-trigger:focus-visible .grade-badge {
  box-shadow: 0 0 0 3px rgba(183, 255, 0, .28);
}

.rating-points-trigger {
  color: var(--lime);
  font-weight: 800;
}

.rating-detail-row td {
  padding: 0;
  background: var(--panel-3);
}

.rating-detail-inline {
  padding: 14px;
}

.rating-detail-inline p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.tool-band {
  padding: 15px;
  background: var(--panel-3);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
}

.tool-band p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.empty {
  padding: 34px 18px;
  color: var(--muted);
  text-align: center;
}

.empty .big {
  margin-bottom: 4px;
  color: var(--text);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 300;
  max-width: min(92vw, 520px);
  padding: 12px 18px;
  color: #07111d;
  background: var(--lime);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.err {
  color: #fff;
  background: var(--red);
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, .62);
}

.confirm-overlay.show {
  display: flex;
}

.confirm-card {
  width: min(100%, 360px);
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.confirm-card p {
  margin: 0 0 18px;
  color: var(--text);
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 820px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .brand-row {
    align-items: flex-start;
  }

  .score-row {
    grid-template-columns: 70px minmax(66px, 1fr) 30px minmax(66px, 1fr) auto;
  }

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

@media (max-width: 540px) {
  .banner-inner,
  .wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-row {
    flex-direction: column;
  }

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

  .panel-card,
  .login-panel {
    padding: 16px;
  }

  .privacy-setting-row {
    align-items: flex-start;
  }

  .filter-bar input,
  .filter-bar select {
    max-width: none;
    width: 100%;
  }

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

  .score-row label {
    grid-column: 1 / -1;
  }

  .score-row .vs {
    display: none;
  }

  .checkin-waiting { align-items: stretch; flex-direction: column; }
  .checkin-waiting .btn { width: 100%; justify-content: center; }
}

@media (max-width: 760px) {
  .public-nav { padding: 16px; }
  .public-nav-actions { gap: 10px; }
  .public-nav-actions a { display: none; }
  .public-hero { min-height: 490px; background-position: 62% center; }
  .public-hero-content { padding: 128px 20px 54px; }
  .public-hero h1 { font-size: 48px; }
  .public-section { padding: 42px 20px; }
  .public-alt { padding-right: 20px; padding-left: 20px; }
  .public-section h2 { font-size: 27px; }
  .public-rating-grid, .public-post-grid, .post-grid, .public-activity-list, .public-club-list { grid-template-columns: 1fr; }
  .club-draft-row { grid-template-columns: 1fr 1fr; }
  .club-draft-row strong { grid-column: span 2; }
  .club-draft-row .icon-button { justify-self: end; }
  .club-game { align-items: flex-start; flex-direction: column; }
  .club-score { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .club-game-editor { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 78px 1fr; }
  .timeline-item img { width: 78px; }
}
