#tournament-calendar .timeline {
  width: 100%;
  height: 100%;
  position: absolute;
}

#tournament-calendar .tournament {
  flex-flow: wrap;
  align-items: center;
  display: flex;
}

#tournament-calendar group {
  flex-flow: column;
  display: flex;
}

#tournament-calendar .tournament {
  border-radius: var(---ui-roundness, 7px);
}

@media (min-width: 1259.3px) {
  #main-wrap {
    ---main-max-width: min(90vw, 100vw - 140px);
  }
}

main.box {
  overflow: visible;
}

#tournament-calendar {
  -webkit-user-select: none;
  user-select: none;
}

#tournament-calendar group {
  width: 100%;
  position: relative;
}

#tournament-calendar days {
  margin-top: 22px;
}

#tournament-calendar day {
  align-items: center;
  display: flex;
}

#tournament-calendar day:nth-child(2n) {
  background: var(--c-bg-zebra);
}

#tournament-calendar day date {
  flex: 0 0 40px;
  margin-inline: -55px 15px;
}

#tournament-calendar day lanes {
  flex: 100%;
  padding: 5px 0;
  overflow: hidden;
}

#tournament-calendar day lane {
  width: 100%;
  height: 2.3em;
  display: block;
  position: relative;
}

#tournament-calendar .tournament {
  color: #fff;
  white-space: nowrap;
  background-color: #303e43;
  padding: 4px 0;
  font-size: .9em;
  transition: filter .13s;
  position: absolute;
  top: 0;
  box-shadow: 0 3px 10px #00000080;
}

#tournament-calendar .tournament:hover {
  filter: brightness(1.08);
}

#tournament-calendar .tournament.hourly {
  background-color: #3d9333;
}

#tournament-calendar .tournament.daily, #tournament-calendar .tournament.eastern {
  background-color: #0072b2;
}

@keyframes animated-background {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 1000%;
  }
}

#tournament-calendar .tournament.weekly, #tournament-calendar .tournament.weekend, #tournament-calendar .tournament.monthly, #tournament-calendar .tournament.marathon, #tournament-calendar .tournament.yearly {
  text-shadow: 0 0 2px #000000b3;
  letter-spacing: 1px;
  background-image: url("../hashed/grain.91560814.png");
  animation: 50s linear infinite animated-background;
}

#tournament-calendar .tournament.weekly {
  background-color: #d55e00;
}

#tournament-calendar .tournament.monthly {
  background-color: #c93d3d;
}

#tournament-calendar .tournament.yearly, #tournament-calendar .tournament.weekend {
  background-color: var(--c-brag);
}

#tournament-calendar .tournament.marathon {
  background-color: #66558c;
}

#tournament-calendar .tournament.unique {
  background-color: var(--c-brag);
}

#tournament-calendar .tournament.max-rating {
  background-color: #6b55fc;
}

#tournament-calendar .tournament.yesterday {
  text-align: right;
  padding-inline-end: 5px;
}

#tournament-calendar .tournament .icon {
  margin: 0 2px 0 4px;
  font-size: 1.3em;
  line-height: 1;
}

#tournament-calendar .tournament .body {
  flex: 1 0;
  margin-inline-end: 0;
  overflow: hidden;
}

#tournament-calendar .timeline {
  border-top: 1px solid var(--c-border);
}

#tournament-calendar .timeheader {
  border-inline-start: 1px dashed var(--c-border);
  height: 100%;
  padding: 2px 5px;
  display: inline;
  position: absolute;
}

#tournament-calendar .timeheader:first-child {
  border: none;
}
