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

.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));
}

.storm-play-again {
  flex-flow: wrap;
  justify-content: center;
  align-items: center;
  display: flex;
}

.storm-dashboard__high__period {
  border-radius: var(---ui-roundness, 7px);
  flex-flow: column;
  display: flex;
}

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

.storm-dashboard__high__period {
  border: 1px solid var(--c-border);
}

.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);
  }
}

@keyframes play-shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}

.storm-play-again {
  letter-spacing: .4em;
  padding: 1em 0;
  font-size: 1.5em;
}

@media (min-width: 499.3px) {
  .storm-play-again {
    padding: 1em 2em;
    font-size: 2em;
  }
}

@media (min-width: 799.3px) {
  .storm-play-again {
    letter-spacing: .6em;
    justify-content: space-between;
  }

  .storm-play-again:before, .storm-play-again:after {
    content: " ";
    opacity: .8;
    background-image: url("../hashed/tornado-white.f21a1b50.svg");
    background-size: cover;
    width: 7rem;
    height: 7rem;
    transition: opacity .5s;
  }

  .storm-play-again[href]:hover:before, .storm-play-again[href]:hover:after {
    opacity: 1;
    animation: .82s cubic-bezier(.36, .07, .19, .97) both play-shake;
  }

  .storm-play-again[href]:hover:after {
    animation-delay: .1s;
  }
}

.storm-dashboard__high__periods {
  flex-flow: wrap;
  gap: 4%;
  display: flex;
}

@media (min-width: 499.3px) {
  .storm-dashboard__high__periods {
    flex-flow: row;
  }
}

.storm-dashboard__high__period {
  background: var(--c-bg-box);
  flex: auto;
  justify-content: center;
  align-items: center;
  min-width: 22%;
  padding: 3em 1em 1.5em;
}

@media (max-width: 499.29px) {
  .storm-dashboard__high__period {
    flex: 0 48%;
    margin-bottom: 1vh;
  }

  .storm-dashboard__high__period:nth-child(2) {
    margin-inline-end: 0;
  }
}

.storm-dashboard__high__period strong {
  font-family: storm;
  font-size: 3em;
  font-weight: normal;
}

@media (min-width: 499.3px) {
  .storm-dashboard__high__period strong {
    font-size: 5em;
  }
}

.highlight-alltime .storm-dashboard__high__period:first-child {
  background: linear-gradient(145deg, #ffffff4d 0%, transparent 45%) var(--c-brag);
  color: var(--c-over);
}

.highlight-alltime .storm-dashboard__high__period:first-child strong {
  font-size: 4em;
  line-height: .8em;
}

@media (min-width: 499.3px) {
  .highlight-alltime .storm-dashboard__high__period:first-child strong {
    font-size: 9em;
  }
}

.storm-dashboard__high__period:last-child {
  margin-inline-end: 0;
}

.storm-dashboard .storm-play-again {
  margin: 2vh 0;
}

.storm-dashboard__history {
  overflow: hidden;
}

.storm-dashboard__history th:not(:first-child), .storm-dashboard__history td:not(:first-child) {
  text-align: right;
}

.storm-dashboard__history {
  color: var(--c-font-dim);
}

.storm-dashboard__history number {
  font-family: storm;
  font-size: 2em;
}

.storm-dashboard__history number.score {
  color: var(--c-brag);
}

@media (max-width: 799.29px) {
  .storm-dashboard__history td:nth-child(3), .storm-dashboard__history td:nth-child(5), .storm-dashboard__history td:nth-child(6), .storm-dashboard__history th:nth-child(3), .storm-dashboard__history th:nth-child(5), .storm-dashboard__history th:nth-child(6) {
    display: none;
  }
}

@media (max-width: 499.29px) {
  .storm-dashboard__history td:nth-child(3), .storm-dashboard__history td:nth-child(4), .storm-dashboard__history td:nth-child(5), .storm-dashboard__history td:nth-child(6), .storm-dashboard__history td:nth-child(7), .storm-dashboard__history th:nth-child(3), .storm-dashboard__history th:nth-child(4), .storm-dashboard__history th:nth-child(5), .storm-dashboard__history th:nth-child(6), .storm-dashboard__history th:nth-child(7) {
    display: none;
  }
}
