:root {
  --hs-blue: #003f5f;
  --hs-blue-deep: #03111f;
  --hs-blue-panel: #0a2a42;
  --hs-blue-card: #0c314d;
  --hs-yellow: #ffd719;
  --hs-text: #f4f9ff;
  --hs-muted: #a9bfd1;
  --hs-line: rgba(180, 206, 225, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  zoom: 0.9;
  color: var(--hs-text);
  font-family: "Inter", "SF Pro Display", "Segoe UI", sans-serif;
  background: #e1e1e1;
}

a {
  color: inherit;
}

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

.hs-tournament-hub {
  min-height: 100dvh;
  padding: clamp(12px, 2.2vw, 28px);
}

.hs-hub-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.hs-hub-hero,
.hs-hub-status-row,
.hs-hub-toolbar,
.hs-tournament-card,
.hs-hub-empty {
  border: 1px solid var(--hs-line);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(0, 63, 95, 0.44) 0%, rgba(0, 63, 95, 0.08) 45%, rgba(4, 23, 40, 0.88) 100%),
    rgba(4, 25, 42, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hs-hub-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: clamp(16px, 2.4vw, 26px) clamp(12px, 1.9vw, 22px);
  overflow: hidden;
  text-align: center;
}

.hs-hub-brand-center {
  --hs-hub-logo-size: clamp(118px, 8vw, 136px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 760px);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  text-align: center;
}

.hs-hub-logo-crop {
  display: block;
  width: var(--hs-hub-logo-size);
  height: calc(var(--hs-hub-logo-size) - 40px);
  overflow: hidden;
  margin: 0 auto;
}

.hs-hub-brand-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  transform: translateY(-20px);
}

.hs-hub-slogan {
  margin: 2px 0 0;
  color: var(--hs-yellow);
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 850;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
}

.hs-hub-features-center {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hs-hub-features-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hs-hub-feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hs-text);
  font-size: clamp(20px, 1.7vw, 25px);
  font-weight: 680;
  line-height: 1.1;
  white-space: nowrap;
}

.hs-hub-feature::before {
  content: "‧";
  color: var(--hs-yellow);
  font-size: 1.45em;
  line-height: 0.8;
}

.hs-hub-feature-sub {
  align-self: baseline;
  display: inline;
  font-size: 1em;
  font-weight: 400;
  line-height: inherit;
  margin-bottom: 0;
  white-space: nowrap;
}

.hs-hub-mini-stat {
  grid-area: stat;
  align-self: center;
  justify-self: end;
  min-width: clamp(102px, 12.5vw, 132px);
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 25, 0.48);
  background: rgba(255, 215, 25, 0.1);
  padding: 7px 9px;
  text-align: center;
}

.hs-hub-mini-stat strong {
  display: block;
  color: var(--hs-yellow);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1;
}

.hs-hub-mini-stat span {
  color: #deebf5;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hs-hub-toolbar {
  padding: 14px;
}

.hs-hub-status-row {
  padding: 12px 14px;
}

.hs-hub-search {
  position: relative;
}

.hs-hub-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #99b3c5;
  pointer-events: none;
}

.hs-hub-search input {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(173, 202, 223, 0.28);
  background: rgba(2, 20, 36, 0.84);
  color: var(--hs-text);
  padding: 0 14px 0 42px;
  font-size: 15px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.hs-hub-search input::placeholder {
  color: rgba(163, 188, 206, 0.82);
}

.hs-hub-search input:focus {
  border-color: rgba(255, 215, 25, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 215, 25, 0.18);
}

.hs-hub-status-pills {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  gap: 9px;
  overflow-x: hidden;
}

.hs-hub-status-pill {
  flex: 1 1 0;
  min-width: 0;
  min-height: 36px;
  border: 1px solid rgba(255, 215, 25, 0.34);
  border-radius: 999px;
  background: rgba(255, 215, 25, 0.08);
  color: #eaf4ff;
  padding: 0 14px;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.hs-hub-status-pill > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hs-hub-status-count {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.13);
  color: inherit;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
}

.hs-hub-status-pill.is-active .hs-hub-status-count {
  background: rgba(0, 38, 59, 0.12);
}

.hs-hub-status-pill:hover,
.hs-hub-status-pill:focus-visible {
  border-color: rgba(255, 215, 25, 0.7);
  background: rgba(255, 215, 25, 0.14);
  outline: none;
}

.hs-hub-status-pill.is-active {
  border-color: var(--hs-yellow);
  background: var(--hs-yellow);
  color: #00263b;
  transform: translateY(-1px);
}

.hs-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hs-tournament-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  box-shadow: 0 14px 30px rgba(0, 10, 20, 0.35);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.hs-tournament-card::before {
  content: none;
}

.hs-tournament-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 25, 0.5);
  box-shadow: 0 18px 34px rgba(0, 10, 20, 0.42);
}

.hs-tournament-content {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(138px, 31%, 168px);
  align-items: center;
  gap: 14px;
}

.hs-tournament-layout {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.hs-tournament-logo {
  width: 90px;
  height: 82px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.97);
  color: var(--hs-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
}

.hs-tournament-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hs-tournament-info {
  min-width: 0;
  display: grid;
  gap: 7px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.hs-tournament-club {
  margin: 0;
  color: var(--hs-yellow);
  font-size: 24px;
  line-height: 0.94;
  text-transform: uppercase;
  font-weight: 980;
  letter-spacing: 0.02em;
}

.hs-tournament-title-block h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  font-weight: 910;
}

.hs-tournament-title-block p {
  margin: 6px 0 0;
  color: var(--hs-muted);
  font-size: 14px;
}

.hs-tournament-details {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.hs-tournament-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #f2f7ff;
  font-size: 15.5px;
  line-height: 1.15;
  font-weight: 700;
}

.hs-tournament-detail svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--hs-yellow);
}

.hs-tournament-actions {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hs-hub-btn {
  min-height: 38px;
  border-radius: 11px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 880;
  transition: transform 120ms ease, filter 120ms ease;
}

.hs-hub-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

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

.hs-hub-btn-main {
  width: 100%;
  min-height: 72px;
  border: 1px solid #ffd719;
  background: #ffd719;
  color: #00263b;
  box-shadow: 0 10px 20px rgba(255, 215, 25, 0.2);
  text-align: center;
  line-height: 1.12;
  white-space: nowrap;
  flex-direction: column;
  gap: 5px;
  font-size: 15px;
  opacity: 1;
  visibility: visible;
}

.hs-hub-btn-main span {
  color: inherit;
  opacity: 1;
  visibility: visible;
}

.hs-hub-btn-label,
.hs-hub-btn-sub {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-hub-btn-label {
  font-size: 1em;
  font-weight: 920;
}

.hs-hub-btn-sub {
  font-size: 0.82em;
  font-weight: 950;
  letter-spacing: 0.02em;
  opacity: 0.82;
}

.hs-hub-btn-main:hover {
  background: #efc900;
  border-color: #efc900;
  color: #001d2d;
}

.hs-hub-btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.hs-hub-empty {
  border-style: dashed;
  text-align: center;
  padding: 26px;
}

.hs-hub-empty h2 {
  margin: 0;
  font-size: 22px;
}

.hs-hub-empty p {
  margin: 8px 0 0;
  color: var(--hs-muted);
  font-size: 14px;
}

.hs-hub-empty-search {
  margin-top: -6px;
}

@media (max-width: 980px) {
  .hs-hub-grid {
    grid-template-columns: 1fr;
  }

  .hs-hub-brand-logo {
    width: 100%;
  }

  .hs-hub-feature {
    font-size: clamp(17px, 2.25vw, 21px);
  }
}

@media (max-width: 760px) {
  .hs-hub-hero {
    padding: 14px 12px;
    overflow: hidden;
  }

  .hs-hub-brand-center {
    --hs-hub-logo-size: 118px;
    width: 100%;
    min-width: 0;
  }

  .hs-hub-brand-logo {
    width: 100%;
  }

  .hs-hub-slogan {
    max-width: 100%;
    margin-top: 1px;
    font-size: 16px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .hs-hub-features-center {
    margin-top: 12px;
    gap: 6px;
  }

  .hs-hub-features-row {
    width: 100%;
    gap: 10px 14px;
    flex-wrap: wrap;
  }

  .hs-hub-feature {
    min-width: 0;
    max-width: 100%;
    font-size: 13.75px;
    line-height: 1.12;
    gap: 4px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hs-hub-feature::before {
    font-size: 1.35em;
  }

.hs-tournament-card {
    padding: 11px;
  }

  .hs-tournament-content {
    grid-template-columns: minmax(0, 1fr) clamp(124px, 29%, 148px);
    gap: 10px;
  }

  .hs-tournament-layout {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
  }

  .hs-tournament-logo {
    width: 92px;
    height: 92px;
  }

  .hs-tournament-club {
    font-size: 19px;
  }

  .hs-tournament-title-block h2 {
    font-size: 18px;
    line-height: 1;
  }

  .hs-tournament-details {
    gap: 8px;
  }

  .hs-tournament-detail {
    gap: 6px;
    font-size: 12.8px;
  }

  .hs-tournament-detail svg {
    width: 15px;
    height: 15px;
  }

  .hs-hub-btn {
    min-height: 60px;
    border-radius: 10px;
    font-size: 12.5px;
    padding: 8px;
    gap: 6px;
  }

  .hs-hub-btn svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 560px) {
  .hs-tournament-hub {
    padding: 10px;
  }

  .hs-hub-hero,
  .hs-hub-status-row,
  .hs-hub-toolbar,
  .hs-tournament-card,
  .hs-hub-empty {
    border-radius: 18px;
  }

  .hs-hub-hero {
    padding: 12px 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hs-hub-brand-center,
  .hs-hub-features-center,
  .hs-hub-features-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hs-hub-brand-logo {
    width: 100%;
  }

  .hs-hub-slogan {
    font-size: 15.5px;
    line-height: 1.1;
  }

  .hs-hub-features-row {
    max-inline-size: 100%;
    gap: 7px 8px;
    flex-wrap: wrap;
  }

  .hs-hub-feature {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    font-size: 13.25px;
    line-height: 1.1;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hs-hub-toolbar {
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 8;
    background:
      linear-gradient(120deg, rgba(0, 63, 95, 0.56) 0%, rgba(0, 63, 95, 0.14) 52%, rgba(4, 23, 40, 0.95) 100%),
      rgba(4, 25, 42, 0.95);
  }

  .hs-hub-status-row {
    padding: 9px 10px;
  }

  .hs-hub-status-pills {
    gap: 7px;
  }

  .hs-hub-status-pill {
    min-height: 34px;
    gap: 5px;
    padding: 0 5px;
    font-size: 9.8px;
  }

  .hs-hub-status-count {
    min-width: 19px;
    height: 19px;
    font-size: 10px;
  }

  .hs-hub-search input {
    height: 44px;
    border-radius: 12px;
    font-size: 16px;
  }

  .hs-tournament-card {
    padding: 12px;
  }

  .hs-tournament-content {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 9px;
  }

  .hs-tournament-layout {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 8px;
  }

  .hs-tournament-logo {
    width: 70px;
    height: 70px;
  }

  .hs-tournament-club {
    font-size: 15.5px;
  }

  .hs-tournament-title-block h2 {
    font-size: 15px;
  }

  .hs-tournament-title-block p {
    font-size: 13px;
  }

  .hs-tournament-info {
    gap: 5px;
    justify-items: center;
    text-align: center;
  }

  .hs-tournament-detail {
    gap: 6px;
    font-size: 11.4px;
  }

  .hs-tournament-detail svg {
    width: 14px;
    height: 14px;
  }

  .hs-hub-btn {
    min-height: 56px;
    border-radius: 10px;
    font-size: 11px;
    padding: 7px;
    gap: 3px;
  }

  .hs-hub-btn svg {
    width: 13px;
    height: 13px;
  }

  .hs-hub-empty {
    padding: 22px 16px;
  }

  .hs-hub-empty h2 {
    font-size: 20px;
  }
}

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