.cz-home {
  color-scheme: dark;
  --cz-background: #07111f;
  --cz-card: #101e31;
  --cz-elevated: #16283f;
  --cz-surface: #182d49;
  --cz-border: #30445f;
  --cz-hairline: #223650;
  --cz-ink: #eaf2ff;
  --cz-muted: #a8bad2;
  --cz-brand: #edf5ff;
  --cz-link: #8eb7ff;
  --cz-primary: #1554d1;
  --cz-lime: #d4f568;
  --cz-lime-ink: #344a08;
  --cz-focus: #99beff;
  background: var(--cz-background);
  color: var(--cz-ink);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  isolation: isolate;
}
.cz-home[data-courtza-theme="light"] {
  color-scheme: light;
  --cz-background: #f7f9fc;
  --cz-card: #ffffff;
  --cz-elevated: #eaf1ff;
  --cz-surface: #eaf1ff;
  --cz-border: #bfd0eb;
  --cz-hairline: #dce5f5;
  --cz-ink: #142b50;
  --cz-muted: #4e6280;
  --cz-brand: #10354f;
  --cz-link: #1764d9;
  --cz-focus: #1554d1;
}
.cz-home *, .cz-home *::before, .cz-home *::after { box-sizing: border-box; }
.cz-home body { margin: 0; }
.cz-home :is(h1, h2, h3, p) { margin: 0; }
.cz-home a { color: inherit; text-decoration: none; }
.cz-home button { font: inherit; color: inherit; }
.cz-home button:enabled { cursor: pointer; }
.cz-home :is(a, button):focus-visible { outline: 2px solid var(--cz-focus); outline-offset: 3px; }
.cz-home [hidden] { display: none !important; }
.cz-home .cz-wrap { width: min(100% - 72px, 1160px); margin-inline: auto; }
.cz-home .cz-skip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 12px;
  border-radius: 8px;
  background: var(--cz-card);
  transform: translateY(-150%);
}
.cz-home .cz-skip:focus { transform: none; }

.cz-home .cz-header { border-bottom: 1px solid var(--cz-hairline); }
.cz-home .cz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}
.cz-home .cz-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cz-brand);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1.3px;
  flex-shrink: 0;
}
.cz-home .cz-brand img { border-radius: 10px; display: block; }
.cz-home .cz-main-nav, .cz-home .cz-nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.cz-home .cz-main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cz-muted);
  font-size: 13px;
  font-weight: 650;
}
.cz-home .cz-main-nav a:is([aria-current], :hover) { color: var(--cz-ink); }
.cz-home .cz-nav-actions { gap: 8px; }
.cz-home .cz-mode {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--cz-link);
}
.cz-home .cz-mode:hover { background: var(--cz-surface); }
.cz-home .cz-mode span { font-size: 22px; line-height: 1; }
.cz-home[data-courtza-theme="dark"] .cz-sun,
.cz-home[data-courtza-theme="light"] .cz-moon { display: none; }
.cz-home .cz-sign-in {
  min-height: 40px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
  border: 1px solid var(--cz-border);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.cz-home .cz-sign-in:hover { background: var(--cz-surface); }

.cz-home .cz-content { padding-top: 24px; }
.cz-home .cz-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 348px;
  border: 1px solid #263f5d;
  border-radius: 23px;
  overflow: hidden;
  color: #f2f7ff;
  background: #0b1b30;
}
.cz-home .cz-hero-photo {
  position: absolute;
  inset: 0 0 0 39%;
  overflow: hidden;
}
.cz-home .cz-hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 69% 48%;
}
.cz-home .cz-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b1b30 0%, rgb(11 27 48 / .72) 16%, rgb(11 27 48 / .06) 52%);
}
.cz-home .cz-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 3% 115%, rgb(16 53 95 / .88), transparent 60%);
}
.cz-home .cz-hero-copy {
  position: relative;
  z-index: 1;
  width: min(590px, 75%);
  padding: 30px 38px 36px;
}
.cz-home .cz-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c6d7ed;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 15px;
}
.cz-home .cz-hero h1 {
  font-size: clamp(44px, 6.4vw, 73px);
  line-height: .98;
  font-weight: 825;
  letter-spacing: -.065em;
}
.cz-home .cz-hero h1 span { color: var(--cz-lime); }
.cz-home .cz-hero p {
  color: #c8d9ef;
  max-width: 330px;
  font-size: 15px;
  line-height: 1.52;
  margin-top: 16px;
}
.cz-home .cz-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px 17px;
  margin-top: 23px;
}
.cz-home .cz-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 750;
  font-size: 13px;
}
.cz-home .cz-primary {
  color: #fff;
  background: var(--cz-primary);
  border-color: #4f88ec;
}
.cz-home .cz-primary:hover { background: #1b61e1; }
.cz-home .cz-hero-link { padding-inline: 0; color: #eaf2ff; }
.cz-home .cz-hero-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.cz-home .cz-schedule { margin-top: 29px; scroll-margin-top: 12px; }
.cz-home .cz-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
}
.cz-home h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 800;
}
.cz-home .cz-section-note {
  margin-top: 6px;
  color: var(--cz-muted);
  font-size: 13px;
}
.cz-home :is(.cz-section-note, .cz-rank-copy) a {
  color: var(--cz-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cz-home .cz-segment {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--cz-border);
  border-radius: 12px;
  background: var(--cz-card);
}
.cz-home .cz-segment button {
  min-height: 35px;
  min-width: 65px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cz-muted);
  font-weight: 720;
  font-size: 12px;
}
.cz-home .cz-segment button[aria-pressed="true"] { background: var(--cz-surface); color: var(--cz-ink); }
.cz-home .cz-segment button:hover { color: var(--cz-ink); }
.cz-home .cz-segment button:disabled { opacity: .64; }
.cz-home .cz-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1px 16px;
  border-bottom: 1px solid var(--cz-hairline);
  margin-top: 9px;
}
.cz-home .cz-filter button {
  min-height: 44px;
  margin-bottom: -1px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--cz-muted);
  font-weight: 675;
  font-size: 13px;
  white-space: nowrap;
}
.cz-home .cz-filter button[aria-pressed="true"] { border-bottom-color: var(--cz-link); color: var(--cz-ink); }
.cz-home .cz-filter button:hover { color: var(--cz-ink); }
.cz-home .cz-events {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.cz-home .cz-event {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 186px;
  padding: 13px 14px 10px;
  border: 1px solid var(--cz-border);
  border-radius: 14px;
  background: var(--cz-card);
}
.cz-home .cz-event:hover, .cz-home .cz-event:focus-within { border-color: var(--cz-link); }
.cz-home .cz-event-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cz-home .cz-kind, .cz-home .cz-open {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 740;
}
.cz-home .cz-kind { color: var(--cz-link); }
.cz-home .cz-open {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--cz-lime);
  color: var(--cz-lime-ink);
}
.cz-home .cz-closed { background: var(--cz-surface); color: var(--cz-muted); }
.cz-home :is(.cz-venue, .cz-event h3, .cz-player strong, .cz-game-detail p) { overflow-wrap: anywhere; }
.cz-home .cz-event h3 {
  color: var(--cz-ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.18;
}
.cz-home .cz-event p {
  margin-top: 4px;
  color: var(--cz-muted);
  font-size: 12px;
}
.cz-home .cz-venue {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
}
.cz-home .cz-venue-logo {
  flex: 0 0 22px;
  border-radius: 5px;
  object-fit: contain;
}
.cz-home .cz-approved-image:not(.cz-image-ready) { opacity: 0; }
.cz-home .cz-meta {
  margin: 10px 0 8px;
  display: grid;
  gap: 4px;
  color: var(--cz-muted);
  font-size: 12px;
}
.cz-home .cz-meta div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cz-home .cz-meta .cz-fee { color: var(--cz-ink); font-weight: 700; }
.cz-home :is(.cz-calendar-icon, .cz-coin-icon) {
  position: relative;
  flex: 0 0 13px;
  height: 12px;
  color: var(--cz-link);
}
.cz-home .cz-calendar-icon {
  border: 1px solid;
  border-top-width: 3px;
  border-radius: 3px;
}
.cz-home .cz-coin-icon::before, .cz-home .cz-coin-icon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid;
  border-radius: 50%;
}
.cz-home .cz-coin-icon::before { top: 0; left: 0; }
.cz-home .cz-coin-icon::after {
  bottom: 0;
  right: 0;
  background: var(--cz-card);
}
.cz-home .cz-view-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 5px 1px 0;
  margin-top: auto;
  border: 0;
  border-top: 1px solid var(--cz-hairline);
  background: transparent;
  color: var(--cz-link);
  font-size: 12px;
  font-weight: 750;
  text-align: left;
}
.cz-home .cz-view-event:hover { text-decoration: underline; text-underline-offset: 3px; }
.cz-home .cz-game-detail {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--cz-border);
  border-radius: 14px;
  background: var(--cz-card);
}
.cz-home .cz-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.cz-home .cz-detail-head h3 {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.cz-home .cz-game-detail p { margin-top: 8px; color: var(--cz-muted); }
.cz-home .cz-game-detail a { margin-top: 12px; }
.cz-home .cz-close-detail {
  flex: 0 0 44px;
  height: 44px;
  margin-top: -8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--cz-link);
  font-size: 24px;
}
.cz-home .cz-close-detail:hover { background: var(--cz-surface); }
.cz-home .cz-status {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 70px;
  padding: 14px;
  color: var(--cz-muted);
}
.cz-home .cz-events > .cz-status {
  border: 1px solid var(--cz-border);
  border-radius: 14px;
  background: var(--cz-card);
}
.cz-home .cz-retry {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--cz-border);
  border-radius: 8px;
  background: var(--cz-surface);
  color: var(--cz-link);
}

.cz-home .cz-rankings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.62fr);
  align-items: stretch;
  margin-top: 29px;
  overflow: hidden;
  border: 1px solid var(--cz-border);
  border-radius: 16px;
  background: var(--cz-card);
  scroll-margin-top: 12px;
}
.cz-home .cz-rank-copy {
  display: grid;
  align-content: center;
  padding: 20px 19px;
  background: radial-gradient(ellipse at 10% 120%, var(--cz-elevated) 0%, var(--cz-card) 68%);
}
.cz-home .cz-rank-copy h2 { font-size: clamp(22px, 2.9vw, 29px); }
.cz-home .cz-rank-copy p {
  margin: 7px 0 14px;
  color: var(--cz-muted);
  font-size: 13px;
}
.cz-home .cz-ranking-list { padding: 8px 15px; border-left: 1px solid var(--cz-hairline); }
.cz-home .cz-rank-scroll {
  max-height: 420px;
  overflow-y: auto;
}
.cz-home .cz-rank-scroll:focus-visible {
  outline: 2px solid var(--cz-focus);
  outline-offset: -2px;
}
.cz-home .cz-ranking-list table { width: 100%; border-collapse: collapse; }
.cz-home .cz-ranking-list :is(th,td) {
  padding: 7px 6px;
  vertical-align: middle;
  text-align: left;
  border-bottom: 1px solid var(--cz-hairline);
}
.cz-home .cz-ranking-list th {
  position: sticky;
  top: 0;
  background: var(--cz-card);
  box-shadow: 0 1px var(--cz-hairline);
  color: var(--cz-muted);
  font-size: 11px;
  font-weight: 650;
}
.cz-home .cz-ranking-list td { font-size: 13px; }
.cz-home .cz-ranking-list tr:last-child td { border-bottom: 0; }
.cz-home .cz-ranking-list :is(th,td):last-child { text-align: right; }
.cz-home .cz-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cz-home .cz-initials {
  position: relative;
  flex: 0 0 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cz-surface);
  color: var(--cz-link);
  font-size: 10px;
  font-weight: 800;
}
.cz-home .cz-player-photo {
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.cz-home .cz-ranking-list tr:first-child .cz-initials { background: var(--cz-lime); color: var(--cz-lime-ink); }
.cz-home .cz-player strong, .cz-home .cz-player small { display: block; line-height: 1.23; }
.cz-home .cz-player small { color: var(--cz-muted); font-size: 11px; }
.cz-home .cz-rating {
  color: var(--cz-link);
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}
.cz-home .cz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 0 19px;
  font-size: 11px;
  color: var(--cz-muted);
}
.cz-home .cz-footer span:first-child {
  letter-spacing: -.03em;
  font-size: 15px;
  font-weight: 800;
  color: var(--cz-brand);
}
.cz-home .cz-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
}
.cz-home .cz-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.cz-home .cz-footer a:hover { color: var(--cz-link); }
.cz-home .cz-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 780px) {
  .cz-home .cz-wrap { width: calc(100% - 42px); }
  .cz-home .cz-nav { gap: 10px; }
  .cz-home .cz-main-nav { gap: 14px; }
  .cz-home .cz-hero-copy { padding-inline: 26px; }
  .cz-home .cz-hero-photo { left: 34%; }
  .cz-home .cz-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cz-home .cz-wrap { width: calc(100% - 28px); }
  .cz-home .cz-nav {
    min-height: 61px;
    flex-wrap: wrap;
    gap: 0 10px;
  }
  .cz-home .cz-main-nav {
    order: 1;
    width: 100%;
    gap: 22px;
  }
  .cz-home .cz-brand { font-size: 23px; }
  .cz-home .cz-brand img { width: 31px; height: 31px; }
  .cz-home .cz-nav-actions, .cz-home .cz-brand { min-height: 52px; }
  .cz-home .cz-content { padding-top: 13px; }
  .cz-home .cz-hero { align-items: flex-start; border-radius: 16px; }
  .cz-home .cz-hero-photo { inset: 0; }
  .cz-home .cz-hero-photo img { object-position: 65% 45%; }
  .cz-home .cz-hero-photo::after { background: linear-gradient(90deg, #07182e 0%, rgb(7 24 46 / .79) 49%, rgb(7 24 46 / .47) 100%), linear-gradient(0deg, rgb(7 17 31 / .67), transparent 68%); }
  .cz-home .cz-hero-copy { width: 100%; padding: 24px 17px; }
  .cz-home .cz-hero h1 { font-size: clamp(42px, 11vw, 58px); }
  .cz-home .cz-hero p { font-size: 14px; }
  .cz-home .cz-hero-actions { gap: 4px 13px; margin-top: 16px; }
  .cz-home .cz-section-head { align-items: flex-start; flex-wrap: wrap; }
  .cz-home .cz-schedule { margin-top: 23px; }
  .cz-home .cz-filter { column-gap: 10px; }
  .cz-home .cz-filter button { padding-inline: 1px; font-size: 12px; }
  .cz-home .cz-events { grid-template-columns: minmax(0, 1fr); }
  .cz-home .cz-event { min-height: 0; }
  .cz-home .cz-rankings { grid-template-columns: minmax(0, 1fr); }
  .cz-home .cz-ranking-list {
    border-left: 0;
    border-top: 1px solid var(--cz-hairline);
    padding-inline: 10px;
  }
  .cz-home .cz-rank-copy { padding: 16px 14px; }
}
@media (pointer: coarse) {
  .cz-home .cz-segment button, .cz-home .cz-view-event,
  .cz-home .cz-sign-in { min-height: 44px; }
}
