@import url("../main.css");

body::before {
  display: none;
}

.tournament-main {
  width: 100%;
  padding: 40px 16px 64px;
}

.tournament-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  width: 100%;
  max-width: 1200px;
  margin: 24px auto 0;
  gap: 24px;
}

.tournament-content {
  min-width: 0;
}

.tournament-overview {
  width: 100%;
  margin-top: 0;
  overflow: hidden;
  border: 1px solid #2e2e2e;
  border-radius: 24px;
}

.tournament-overview-header {
  display: flex;
  flex-direction: column;
  min-height: 225px;
  padding: 28px;
  gap: 8px;
  background: #0a0a0a;
}

.tournament-registration-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
}

.tournament-registration-open {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-weight: 500;
}

.tournament-status-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 4px;
  background: #22c55e;
  box-shadow: 0 0 4px #16a34a;
}

.tournament-time-remaining {
  color: #a3a3a3;
  font-weight: 400;
}

.tournament-overview-header h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 48px;
  font-style: normal;
  font-weight: 800;
  line-height: 72px;
  letter-spacing: 0;
}

.tournament-overview-format {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 155px;
  padding: 24px 24px 32px;
  background: #171717;
}

.tournament-overview-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 155px;
  padding: 24px 24px 32px;
  background: #242424;
}

.tournament-stat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.tournament-stat-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  color: #ffffff;
}

.tournament-stat-icon > i {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  font-size: 24px;
}

.tournament-stat-icon--image img {
  display: block;
  width: 40px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
}

.tournament-stat-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
  gap: 4px;
  text-align: center;
}

.tournament-stat-copy > span {
  color: #d4d4d4;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
}

.tournament-stat-copy > strong,
.tournament-stat-copy > a {
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
  letter-spacing: 0;
  text-decoration: none;
}

.tournament-location {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.tournament-location i {
  font-size: 14px;
}

.tournament-introduction {
  display: flex;
  width: 100%;
  flex-direction: column;
  margin-top: 48px;
  gap: 24px;
}

.tournament-introduction-heading h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
  line-height: 36px;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
}

.tournament-rules {
  display: flex;
  width: 100%;
  flex-direction: column;
  margin-top: 48px;
  gap: 20px;
}

.tournament-rules h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
  line-height: 36px;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
}

.tournament-rules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tournament-rule {
  overflow: hidden;
  border: 1px solid #404040;
  border-radius: 16px;
  background: #171717;
}

.tournament-rule summary {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 20px 16px;
  gap: 8px;
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  cursor: pointer;
  list-style: none;
}

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

.tournament-rule:not([open]) summary {
  min-height: 60px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.tournament-rule-marker {
  width: 4px;
  height: 12px;
  flex: none;
  border-radius: 4px;
  background: #525252;
}

.tournament-rule-chevron {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: #525252;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.tournament-rule.is-expanded .tournament-rule-chevron {
  transform: rotate(180deg);
}

.tournament-rule-content {
  padding: 20px;
  border-top: 1px solid #2e2e2e;
  background: #2e2e2e;
  color: #e5e5e5;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.tournament-rule-content:empty {
  display: none;
}

.tournament-rule-content ol {
  margin: 0;
  padding-left: 24px;
}

.tournament-rule-content li + li {
  margin-top: 8px;
}

.tournament-rule-content p {
  margin: 0;
}

.tournament-rule-content p + p {
  margin-top: 8px;
}

.tournament-introduction-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tournament-introduction-copy h3,
.tournament-introduction-extra h3 {
  margin: 0;
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
  text-align: left;
}

.tournament-introduction-copy p {
  margin: 0;
  color: #e5e5e5;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
}

.tournament-introduction-extra {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tournament-sponsors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 12px;
}

.tournament-sponsor-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px;
  gap: 16px;
  border: 1px solid #404040;
  border-radius: 16px;
  background: #171717;
}

.tournament-sponsor-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.tournament-sponsor-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  flex: none;
}

.tournament-sponsor-logo--eboard img {
  display: block;
  width: auto;
  max-width: 52px;
  height: 36px;
  object-fit: contain;
}

.tournament-sponsor-logo--vng img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.tournament-sponsor-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tournament-sponsor-socials a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: #2e2e2e;
  color: #ffffff;
  text-decoration: none;
}

.tournament-sponsor-socials i {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.tournament-sponsor-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tournament-sponsor-info h4 {
  margin: 0;
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
  letter-spacing: 0;
}

.tournament-sponsor-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.tournament-sponsor-tags span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 24px;
  background: #2e2e2e;
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
}

.tournament-sidebar {
  width: 384px;
}

.tournament-registration-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  padding-bottom: 20px;
  gap: 21px;
  overflow: hidden;
  border: 1px solid #404040;
  border-radius: 24px;
  background: #171717;
}

.tournament-registration-progress {
  display: flex;
  flex-direction: column;
  padding: 24px 20px 0;
  gap: 8px;
}

.tournament-progress-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #292623;
}

.tournament-progress-bar > span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(0deg, var(--brand, #fba924), var(--brand, #fba924)),
    radial-gradient(
      100% 434.81% at 0% 0%,
      #ffa033 0%,
      #ffc44d 48.71%,
      #ffd666 100%
    );
}

.tournament-registration-count {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  line-height: 20px;
}

.tournament-registered {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tournament-registered strong {
  font-weight: 700;
}

.tournament-registered > span,
.tournament-total-slots {
  font-weight: 500;
}

.tournament-registration-divider {
  width: 100%;
  height: 1px;
  background: #2e2e2e;
}

.tournament-registration-action {
  padding: 0 20px;
}

.tournament-registration-action button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 64px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: #fba924;
  color: #000000;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.tournament-timeline-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  margin-top: 12px;
  padding: 20px;
  gap: 20px;
  border: 1px solid #404040;
  border-radius: 24px;
  background: #171717;
}

.tournament-timeline-card h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
  line-height: 32px;
  letter-spacing: 0;
  text-align: left;
}

.tournament-timeline {
  display: flex;
  flex-direction: column;
}

.tournament-timeline-item {
  display: flex;
  min-height: 88px;
  gap: 8px;
}

.tournament-timeline-indicator {
  display: flex;
  width: 12px;
  height: 88px;
  flex: 0 0 12px;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}

.tournament-timeline-pill {
  width: 4px;
  height: 12px;
  flex: none;
  border-radius: 4px;
  background: #404040;
}

.tournament-timeline-line {
  width: 1px;
  height: 62px;
  flex: none;
  margin-top: 8px;
  background: #404040;
}

.tournament-timeline-item:last-child .tournament-timeline-line {
  display: none;
}

.tournament-timeline-item:last-child {
  min-height: 0;
}

.tournament-timeline-item:last-child .tournament-timeline-indicator {
  height: auto;
}

.tournament-timeline-item.is-active .tournament-timeline-pill {
  background: #22c55e;
  box-shadow: 0 0 4px #16a34a;
}

.tournament-timeline-item.is-active .tournament-timeline-line {
  background: #22c55e;
}

.tournament-timeline-item-content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.tournament-timeline-label {
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
}

.tournament-timeline-detail {
  color: #525252;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
}

.tournament-timeline-item.is-active .tournament-timeline-detail {
  color: #ffffff;
}

.tournament-timeline-remaining {
  color: #a3a3a3;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
}

.tournament-prizes-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  margin-top: 12px;
  padding: 20px;
  gap: 20px;
  border: 1px solid #404040;
  border-radius: 24px;
  background: #171717;
}

.tournament-prizes-card > h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
  line-height: 32px;
  letter-spacing: 0;
}

.tournament-prizes-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tournament-prize-item {
  overflow: hidden;
  border-radius: 4px;
  background: #242424;
}

.tournament-prize-item summary {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 16px;
  align-items: center;
  min-height: 60px;
  padding: 0 12px;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

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

.tournament-prize-rank {
  width: 100px;
  padding-left: 20px;
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
  line-height: 32px;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
}

.tournament-prize-item--first .tournament-prize-rank {
  color: #ffb031;
}

.tournament-prize-item--second .tournament-prize-rank {
  color: #cffafe;
}

.tournament-prize-item--third .tournament-prize-rank {
  color: #f9791f;
}

.tournament-prize-value {
  min-width: 0;
  color: #e5e5e5;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: 0;
  white-space: nowrap;
}

.tournament-prize-chevron {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.tournament-prize-chevron::before {
  width: 7px;
  height: 7px;
  border-right: 2px solid #525252;
  border-bottom: 2px solid #525252;
  transform: translateY(-2px) rotate(45deg);
  content: "";
}

.tournament-prize-item.is-expanded .tournament-prize-chevron {
  transform: rotate(180deg);
}

.tournament-prize-detail {
  display: flex;
  flex-direction: column;
  margin-top: -4px;
  padding: 0 44px 16px 128px;
  color: #a3a3a3;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
}

.tournament-support-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 12px;
  padding: 20px;
  gap: 8px;
  border: 1px solid #404040;
  border-radius: 8px;
  background: #171717;
}

.tournament-support-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.tournament-support-copy strong {
  font-weight: 600;
}

.tournament-support-copy span {
  font-weight: 400;
}

.tournament-support-links {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.tournament-support-links a,
.tournament-support-links img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.tournament-support-links img {
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.tournament-banner {
  width: 100%;
  max-width: 1200px;
  height: 450px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 900px) {
  .tournament-layout {
    grid-template-columns: 1fr;
  }

  .tournament-sidebar {
    width: 100%;
  }
}

