:root {
  --ink: #182032;
  --muted: #728099;
  --line: #e9edf3;
  --paper: #f7f8fb;
  --purple: #6747ed;
  --orange: #ff8952;
  --blue: #30a7e9;
  --green: #2abf91;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, Arial, sans-serif;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 248px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 27px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none;
  font-size: 18px;
  margin: 0 10px 43px;
}
.brand span span {
  color: var(--purple);
}
.brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: DM Mono;
  font-size: 16px;
}
.nav-label,
.eyebrow {
  font:
    500 10px 'DM Mono',
    monospace;
  letter-spacing: 1.15px;
  color: #9aa5b8;
}
.nav-label {
  margin: 0 12px 10px;
}
.nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 11px 12px;
  text-align: left;
  color: #657189;
  font: 500 14px Outfit;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  margin: 2px 0;
}
.nav-item span {
  font-size: 17px;
  width: 18px;
  text-align: center;
}
.nav-item b {
  font: 500 10px 'DM Mono';
  margin-left: auto;
  background: #ece8ff;
  color: var(--purple);
  padding: 2px 6px;
  border-radius: 8px;
}
.nav-item.active,
.nav-item:hover {
  background: #f0edff;
  color: var(--purple);
}
.side-bottom {
  margin-top: auto;
}
.help-card {
  background: #f1efff;
  border-radius: 11px;
  padding: 14px 12px;
  color: #5540be;
  display: flex;
  gap: 10px;
  margin: 0 4px 15px;
}
.help-card > span {
  font-size: 18px;
}
.help-card strong {
  display: block;
  font-size: 12px;
}
.help-card small {
  font-size: 10px;
  line-height: 1.35;
  display: block;
  margin-top: 4px;
  color: #8175bf;
}
main {
  margin-left: 248px;
  max-width: 1450px;
  width: 100%;
  padding: 0 48px 60px;
}
header {
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.7px;
  margin-top: 5px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 19px;
}
.today {
  color: #778398;
  font-size: 13px;
}
.avatar {
  border: 0;
  border-radius: 50%;
  height: 35px;
  width: 35px;
  background: #dce9fa;
  color: #3d6a9b;
  font: 600 11px Outfit;
}
.hero {
  min-height: 260px;
  border-radius: 18px;
  background: #1e1b3e;
  padding: 32px 38px;
  position: relative;
  color: #fff;
  overflow: hidden;
  display: flex;
}
.hero .eyebrow {
  color: #aaa2e0;
}
.hero h2 {
  font-size: 33px;
  line-height: 1.04;
  letter-spacing: -1.1px;
  margin: 11px 0;
}
.hero-copy {
  color: #c4c2d7;
  font-size: 13px;
  line-height: 1.5;
  max-width: 295px;
}
.primary {
  background: var(--purple);
  border: 0;
  border-radius: 8px;
  color: white;
  font: 600 13px Outfit;
  padding: 11px 16px;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: 0 5px 11px #352a7c55;
}
.primary:hover {
  background: #5333dd;
}
.balls {
  position: absolute;
  right: 3%;
  top: 0;
  width: 450px;
  height: 100%;
}
.ball {
  font: 600 35px 'DM Mono';
  font-style: normal;
  position: absolute;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 155px;
  height: 155px;
  color: white;
  box-shadow:
    inset -16px -18px 25px #0004,
    7px 10px 15px #0005;
}
.b1 {
  background: #f0b900;
  right: 44px;
  top: -47px;
}
.b2 {
  background: #222;
  right: 164px;
  bottom: -82px;
  color: #ddd;
}
.b3 {
  background: #ea3f3f;
  right: -64px;
  bottom: -4px;
}
.b4 {
  width: 92px;
  height: 92px;
  background: #f5d431;
  right: 217px;
  top: 54px;
  font-size: 22px;
}
.cue {
  height: 10px;
  width: 430px;
  transform: rotate(-31deg);
  position: absolute;
  background: linear-gradient(90deg, #b17935 0 86%, #f3e4bd 86%);
  right: -190px;
  bottom: 28px;
  border-radius: 5px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 22px 0;
}
.stat-grid article,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stat-grid article {
  min-height: 105px;
  padding: 19px;
  display: flex;
  gap: 13px;
}
.stat-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
}
.purple {
  background: #eeeaff;
  color: var(--purple);
}
.orange {
  background: #fff0e9;
  color: var(--orange);
}
.blue {
  background: #e8f6fd;
  color: var(--blue);
}
.green {
  background: #e8faf3;
  color: var(--green);
}
.stat-grid small {
  font: 500 9px 'DM Mono';
  letter-spacing: 0.7px;
  color: #9aa5b8;
  display: block;
}
.stat-grid strong {
  display: block;
  font-size: 25px;
  line-height: 1.15;
  margin: 3px 0;
}
.stat-grid em {
  font-style: normal;
  font-size: 11px;
  color: #8995a9;
}
.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}
.panel {
  padding: 21px;
}
.panel-head,
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.panel h3 {
  font-size: 18px;
  margin-top: 5px;
}
.text-btn {
  border: 0;
  background: none;
  color: var(--purple);
  font: 600 12px Outfit;
  cursor: pointer;
}
.empty-state {
  font-size: 13px;
  color: #9aa5b8;
  padding: 35px 4px 10px;
  text-align: center;
}
.night-item {
  display: flex;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  gap: 13px;
}
.night-item:last-child {
  border: 0;
}
.day-box {
  width: 42px;
  text-align: center;
  background: #f2f3f7;
  border-radius: 8px;
  padding: 6px;
  color: var(--purple);
}
.day-box b {
  display: block;
  font-size: 15px;
}
.day-box small {
  font: 500 9px 'DM Mono';
  color: #8490a4;
}
.night-info {
  flex: 1;
}
.night-info strong {
  font-size: 13px;
}
.night-info span {
  display: block;
  color: #8a96a9;
  font-size: 11px;
  margin-top: 2px;
}
.pill {
  font: 500 10px 'DM Mono';
  padding: 4px 7px;
  border-radius: 8px;
  background: #e8faf3;
  color: #178c68;
}
.standing-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.standing-row:last-child {
  border: 0;
}
.rank {
  font: 500 11px 'DM Mono';
  color: #a0aabb;
  width: 13px;
}
.mini-avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ede9ff;
  color: #6747ed;
  font-size: 10px;
  font-weight: bold;
}
.standing-row strong {
  font-size: 12px;
  flex: 1;
}
.standing-row b {
  font: 600 12px 'DM Mono';
  font-size: 11px;
}
.view {
  display: none;
}
.active-view {
  display: block;
}
.section-head {
  margin: 12px 0 26px;
}
.section-head h2 {
  font-size: 29px;
  letter-spacing: -0.8px;
  margin: 5px 0;
}
.section-head > div > p:last-child {
  font-size: 13px;
  color: var(--muted);
}
.section-head .primary {
  margin: 16px 0 0;
}
.filter-row {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}
.filter {
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  color: #728099;
  padding: 7px 11px;
  font: 500 12px Outfit;
  cursor: pointer;
}
.filter.selected {
  background: #eeeaff;
  border-color: #dcd3ff;
  color: var(--purple);
}
.league-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.league-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.card-top {
  height: 7px;
  background: var(--purple);
}
.league-card:nth-child(3n + 2) .card-top {
  background: var(--orange);
}
.league-card:nth-child(3n) .card-top {
  background: var(--blue);
}
.card-body {
  padding: 18px;
}
.league-card h3 {
  font-size: 18px;
  margin: 10px 0 4px;
}
.league-card p {
  font-size: 12px;
  color: #7d899d;
}
.card-meta {
  border-top: 1px solid var(--line);
  margin-top: 17px;
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  font: 500 10px 'DM Mono';
  color: #8a96aa;
}
.league-card button {
  border: 0;
  background: none;
  color: var(--purple);
  font: 600 12px Outfit;
  cursor: pointer;
  padding: 0;
}
.table-wrap {
  padding: 0;
  overflow: hidden;
}
.players-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.players-table th {
  background: #f8f9fb;
  color: #98a2b3;
  font: 500 10px 'DM Mono';
  letter-spacing: 0.7px;
  padding: 14px 19px;
}
.players-table td {
  padding: 14px 19px;
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.person {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}
.schedule-list {
  display: grid;
  gap: 12px;
}
.schedule-day {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 15px;
}
.schedule-day h3 {
  font-size: 16px;
}
.schedule-day p {
  font-size: 11px;
  color: #8793a7;
  margin-top: 3px;
}
.fixture {
  border-left: 3px solid var(--purple);
  padding-left: 13px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fixture strong {
  font-size: 13px;
}
.fixture span {
  color: #8793a7;
  font-size: 11px;
}
.modal {
  position: fixed;
  inset: 0;
  background: #12142b99;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  overflow-y: auto;
}
.modal.hidden {
  display: none;
}
.modal-card {
  width: min(480px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 15px;
  padding: 27px;
  position: relative;
  box-shadow: 0 15px 60px #0005;
}
/* Scrollbar polish for modal content */
.modal-card::-webkit-scrollbar {
  width: 6px;
}
.modal-card::-webkit-scrollbar-thumb {
  background: #dce1e9;
  border-radius: 4px;
}
.close {
  position: absolute;
  right: 15px;
  top: 12px;
  border: 0;
  background: none;
  font-size: 25px;
  color: #718096;
  cursor: pointer;
}
.modal-card h2 {
  font-size: 23px;
  margin-bottom: 5px;
}
.modal-card > div > p {
  font-size: 13px;
  color: #718096;
  margin-bottom: 20px;
}
.form-grid {
  display: grid;
  gap: 13px;
}
.form-grid label {
  font-size: 12px;
  font-weight: 600;
  color: #536177;
}
.form-grid input,
.form-grid select {
  width: 100%;
  display: block;
  border: 1px solid #dce1e9;
  border-radius: 7px;
  padding: 10px;
  margin-top: 5px;
  font: 13px Outfit;
  color: var(--ink);
  background: #fff;
}
.form-grid .primary {
  margin-top: 5px;
  width: 100%;
}
.mobile-menu {
  display: none;
}
@media (max-width: 900px) {
  .sidebar {
    width: 65px;
    padding: 24px 8px;
  }
  .brand {
    margin-left: 9px;
    margin-bottom: 40px;
  }
  .brand > span:last-child,
  .nav-label,
  .nav-item:not(.active) {
    font-size: 0;
  }
  .nav-item {
    justify-content: center;
    padding: 12px;
  }
  .nav-item span {
    font-size: 18px;
  }
  .nav-item b,
  .help-card {
    display: none;
  }
  main {
    margin-left: 65px;
    padding: 0 24px;
  }
  .league-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .balls {
    opacity: 0.55;
  }
}
@media (max-width: 600px) {
  main {
    margin: 0;
    padding: 0 16px;
  }
  .sidebar {
    display: none;
  }
  header {
    height: 88px;
  }
  .mobile-menu {
    display: block;
    border: 0;
    background: none;
    font-size: 20px;
  }
  .today {
    display: none;
  }
  .hero {
    padding: 29px 24px;
  }
  .balls {
    display: none;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-grid,
  .league-grid {
    grid-template-columns: 1fr;
  }
  .schedule-day {
    grid-template-columns: 1fr;
  }
  .section-head {
    gap: 12px;
  }
  .section-head .primary {
    white-space: nowrap;
  }
  .stat-grid article {
    padding: 13px;
  }
  .hero h2 {
    font-size: 29px;
  }
}
