.slist thead {
  font-family: Roboto, sans-serif;
  font-weight: 300;
}

.tour-home__side {
  text-shadow: 0 1px 0 var(--c-font-shadow);
}

.slist thead {
  box-shadow: inset 0 1px 3px -2px #737373, inset 0 -4px 8px -3px hsl(from var(--c-body-gradient) h s calc(l + 3)/.8);
}

:where(html.light) .slist thead, .slist :where(html.light) thead {
  box-shadow: inset 0 3px 3px -2px #fff6, inset 0 -4px 8px -3px hsl(from var(--c-body-gradient) h s calc(l + 5)/.8);
}

.slist thead {
  background-image: linear-gradient(to bottom, var(--c-metal-top), var(--c-metal-bottom));
}

.tsht .name, .tsht .body {
  white-space: nowrap;
}

.tsht .infos .text, .leaderboard .user-link, .tsht .name, .tsht .body {
  text-overflow: ellipsis;
  overflow: hidden;
}

.tsht {
  flex-flow: wrap;
  align-items: center;
  display: flex;
}

.scheduled a:hover, .tsht {
  border-radius: var(---ui-roundness, 7px);
}

.tsht {
  box-shadow: 0 2px 2px #00000014, 0 3px 1px -2px #0000002e, 0 1px 5px #0000001a;
}

:where(html.transp) .tsht {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.slist {
  border-bottom: 1px solid var(--c-border);
  width: 100%;
}

.slist thead th {
  border-bottom: 1px solid var(--c-border);
  padding: .5rem .8rem;
}

:where(html.light) .slist thead th {
  border-top: 1px solid var(--c-border);
}

.slist thead th.large {
  font-size: 1.2rem;
}

.slist td {
  padding: 1rem;
}

.slist td .label {
  font-family: monospace;
  font-size: .8rem;
}

.slist tbody tr:nth-child(2n) {
  background: var(--c-bg-zebra);
}

.slist td:first-child, .slist th:first-child {
  padding-inline-start: 1.5rem;
}

.slist-pad td:first-child, .slist-pad th:first-child {
  padding-inline-start: var(---box-padding);
}

.slist-pad td:last-child, .slist-pad th:last-child {
  padding-inline-end: var(---box-padding);
}

.slist-invert tbody tr:nth-child(odd) {
  background: var(--c-bg-zebra);
}

.slist-invert tbody tr:nth-child(2n) {
  background: none;
}

.slist-wrapper {
  max-width: calc(100vw - var(---box-padding) * 2);
  scrollbar-width: thin;
  min-width: auto;
  overflow-x: auto;
}

.slist-wrapper:has(.slist-pad) {
  max-width: 100vw;
}

ol .slist-wrapper, ul .slist-wrapper {
  max-width: calc(100vw - var(---box-padding) * 2 - 30px);
}

ol .slist-wrapper .slist, ul .slist-wrapper .slist {
  margin-top: 0;
}

@media (max-width: 649.29px) {
  .slist-wrapper .slist {
    min-width: calc(max(100vw, 650px) - var(---box-padding) * 2);
  }

  .slist.slist-resp {
    border-collapse: collapse;
    table-layout: fixed;
  }

  .slist.slist-resp thead {
    clip-path: rect(0 0 0 0);
    border: none;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
  }

  .slist.slist-resp tr {
    border-top: 1px solid var(--c-border);
    display: block;
  }

  .slist.slist-resp td {
    padding: .5rem var(---box-padding);
    border-top: 1px solid var(--c-border);
    flex-flow: wrap;
    justify-content: space-between;
    align-items: center;
    display: flex;
  }

  .slist.slist-resp td:before {
    content: attr(data-label);
  }
}

@media (max-width: 499.29px) {
  .stack-row {
    flex-direction: column;
    display: flex;
  }

  .stack-row td {
    width: 100%;
    padding-inline: var(---box-padding);
  }
}

.tour-home {
  display: grid;
}

.tour-home__side {
  margin: 0 var(---block-gap);
  grid-area: side;
}

.tour-home__schedule {
  grid-area: schedule;
}

.tour-home__list {
  grid-area: list;
  display: none;
}

.tour-home {
  gap: var(---block-gap);
  grid-template-areas: "schedule"
                       "side";
}

@media (min-width: 979.3px) {
  .tour-home {
    grid-template-columns: minmax(200px, 300px);
    grid-template-areas: "side schedule"
                         "side list"
                         "side .";
  }

  .tour-home__side {
    margin: 0;
  }

  .tour-home__list {
    display: block;
  }
}

.tour-home__side h2 {
  border-bottom: 1px solid var(--c-border);
  margin-top: 30px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  font-size: 1.5em;
}

.tour-home__side h2 a {
  color: var(--c-font);
}

.tour-home__side h2 a:hover {
  color: var(--c-link);
}

.leaderboard li {
  white-space: nowrap;
  flex-flow: row;
  justify-content: space-between;
  width: 100%;
  padding: .4em 0;
  transition: all .15s;
  display: flex;
}

.leaderboard li:hover a {
  color: var(--c-link);
}

.leaderboard a {
  color: var(--c-font);
}

.leaderboard .user-link {
  margin: 0 5px 0 -3px;
}

.tour__links {
  margin-top: 1em;
  line-height: 1.5;
}

.tour__links a {
  color: var(--c-font);
  transition: all .15s;
}

.tour__links a:hover {
  color: var(--c-link);
}

.scheduled {
  margin-bottom: 6px;
}

.scheduled a {
  padding-inline: 2.7em 0;
  color: var(--c-font);
  min-height: 48px;
  padding-top: .5em;
  padding-bottom: .5em;
  line-height: 1.2;
  transition: all .15s;
  display: block;
  position: relative;
}

.scheduled a:hover {
  background: color-mix(in oklab, var(--c-brag) 20%, var(--c-bg-page));
  padding-inline-start: 3.2rem;
}

html:not([dir="rtl"]) .scheduled a:hover:before {
  left: .5rem;
}

html[dir="rtl"] .scheduled a:hover:before {
  right: .5rem;
}

.scheduled a:hover:before {
  opacity: 1;
}

.scheduled strong {
  color: var(--c-font-dim);
  display: block;
}

.scheduled a:before {
  transition: all .15s;
}

html:not([dir="rtl"]) .scheduled a:before {
  left: 0;
}

html[dir="rtl"] .scheduled a:before {
  right: 0;
}

.scheduled a:before {
  opacity: .6;
  color: var(--c-brag);
  font-size: 2.2em;
  position: absolute;
  top: .3rem;
}

.tour-chart {
  -webkit-user-select: none;
  user-select: none;
  min-height: 400px;
  position: relative;
}

.tour-chart .spinner {
  opacity: .7;
  width: 120px;
  height: 120px;
  padding-top: 120px;
}

.tour-chart__inner {
  border-top: 1px solid var(--c-border);
  cursor: move;
  padding-top: 2.3em;
  position: relative;
  overflow-x: scroll;
}

.tour-chart .timeline {
  height: 100%;
  position: absolute;
  top: 0;
}

.tour-chart .tournamentline {
  height: 4em;
  position: relative;
}

.tour-chart .timeheader {
  border-inline-start: 1px dashed var(--c-border);
  height: 100%;
  padding: 5px 6px;
  display: inline;
  position: absolute;
}

.tour-chart .timeheader.hour {
  border-inline-start-style: solid;
  font-weight: bold;
}

.tour-chart .timeheader.now {
  border-inline-start: 3px dashed var(--c-accent);
  height: calc(100% - 2em);
  margin-inline-start: 1px;
  top: 24px;
}

.tour-chart .timeheader.now:after {
  content: "";
  position: absolute;
  top: -24px;
}

html:not([dir="rtl"]) .tour-chart .timeheader.now:after {
  left: -10px;
}

html[dir="rtl"] .tour-chart .timeheader.now:after {
  right: -10px;
}

.tour-chart .timeheader.now:after {
  border-left: 8px solid #0000;
  border-right: 8px solid #0000;
  border-top: 8px solid var(--c-accent);
  width: 0;
  height: 0;
}

.tsht {
  white-space: nowrap;
  color: #fff;
  background-color: #303e43;
  padding: 4px 0;
  position: absolute;
}

.tsht:hover, .tsht:focus {
  color: #fff;
}

.tsht-joinable:hover {
  filter: brightness(1.08);
}

.tsht-finished {
  opacity: .4;
  box-shadow: inset 0 0 10px #0000004d;
}

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

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

@keyframes tour-bg-up {
  from {
    background-position: 0 0;
  }

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

.tsht-weekly, .tsht-weekend, .tsht-monthly, .tsht-marathon, .tsht-yearly {
  text-shadow: 0 0 2px #000000b3;
  letter-spacing: 1px;
  background-image: url("../hashed/grain.91560814.png");
}

.tsht-weekly {
  background-color: #d55e00;
}

.tsht-monthly {
  background-color: #c93d3d;
}

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

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

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

.tsht-variant {
  background-color: #7c5133;
}

.tsht-user-created {
  background-color: var(--c-primary);
}

.tsht-unique {
  background-color: var(--c-brag);
}

.tsht-short.tsht-thematic {
  letter-spacing: -1px;
}

.tsht span {
  margin-inline-end: 4px;
}

.tsht icon {
  margin: 0 .2em;
  font-size: 2.4em;
  line-height: 1;
}

.tsht icon:before {
  vertical-align: middle;
}

.tsht .name {
  vertical-align: top;
  max-width: none;
  display: flex;
}

.tsht .body {
  flex: 1 0;
  margin-inline-end: 0;
}

.tsht .infos {
  display: inline-flex;
}

.tsht .infos .text {
  flex: 1;
}

.tsht .infos .nb-players {
  flex: none;
}

@media (max-width: 649.29px) {
  .arena-list .slist .date {
    display: none;
  }
}

@media (max-width: 499.29px) {
  .arena-list .slist .players {
    display: none;
  }
}

.arena-list .slist td > span, .arena-list .slist td > a > span {
  margin: .25em 0;
  display: block;
}

.arena-list .slist td.players {
  white-space: nowrap;
}

.arena-list .slist td icon {
  color: var(--c-brag);
}

.arena-list .slist .header {
  letter-spacing: 2px;
  cursor: pointer;
  padding: 0;
  transition: all .15s;
}

.arena-list .slist .header:hover {
  transform: translateX(3px);
}

.arena-list .slist .header a {
  padding: 1em;
  display: block;
}

.arena-list .slist a {
  color: var(--c-font);
}

.arena-list .slist a:hover {
  color: var(--c-link-hover);
}

.arena-list .slist .name {
  font-size: 1.5em;
  display: block;
}

.arena-list .icon {
  width: 0;
}

.arena-list .icon icon {
  color: var(--c-brag);
  opacity: .8;
  font-size: 3em;
}
