/* Common imports for all CSS modules */
/*
 * This source is generated by bin/gen/licon.py. Run licon.py after changing public/font/lichess.sfd
 *
 * Constant names and values are pulled from private use characters defined in the sfd file.
 *
 * Character names can be edited in fontforge's "glyph info" dialog, or by editing the StartChar: line that
 * begins each character chunk in lichess.sfd
 *
 * To make these characters visible in your editor, install the lichess.ttf font (which is also generated by
 * licon.py) and then add it to your editor's font list.
 */
/* Uniboard: keep the same page layout across pages */
.storm-dashboard__high__period, .slist thead {
  font-family: Roboto, sans-serif;
  font-weight: 300;
}

/* text printed directly on the page background deserves special treatment (transp theme) */
.slist thead {
  box-shadow: inset 0 2px 3px -2px hsl(0, 0%, 45%), inset 0 -4px 6px -3px var(--m-body-gradient--lighten-3);
}
html.light .slist thead, .slist html.light thead {
  box-shadow: inset 0 3px 3px -2px #fff, inset 0 -4px 6px -3px var(--m-body-gradient--lighten-5);
}
.slist thead {
  background-image: linear-gradient(to bottom, var(--c-metal-top), var(--c-metal-bottom));
}

.storm-play-again {
  /* extends %flex-center */
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
}

.storm-dashboard__high__period {
  display: flex;
  flex-flow: column;
}

.storm-dashboard__high__period {
  border-radius: 7px;
}

/* helps with clipping background into border-radius */
.storm-dashboard__high__period {
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.08), 0 3px 1px -2px rgba(0, 0, 0, 0.18), 0 1px 5px 0 rgba(0, 0, 0, 0.1);
}

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

.slist {
  width: 100%;
  border-bottom: 1px solid var(--c-border);
}
.slist thead th {
  border-bottom: 1px solid var(--c-border);
  padding: 0.5rem 0.8rem;
}
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: 0.8rem;
}
.slist tbody tr:nth-child(even) {
  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(even) {
  background: none;
}

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

/* requires each td to have a data-label attribute */
@media (max-width: 649.29px) {
  .slist.slist-resp {
    border-collapse: collapse;
    table-layout: fixed;
  }
  .slist.slist-resp thead {
    border: none;
    clip-path: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  .slist.slist-resp tr {
    display: block;
    border-top: 1px solid var(--c-border);
  }
  .slist.slist-resp td {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem var(---box-padding);
    border-top: 1px solid var(--c-border);
  }
  .slist.slist-resp td::before {
    /* aria-label has no advantage, it won't be read inside a table
       content: attr(aria-label); */
    content: attr(data-label);
  }
}

@media (max-width: 499.29px) {
  .stack-row {
    display: flex;
    flex-direction: column;
  }
  .stack-row td {
    width: 100%;
    padding-inline-start: var(---box-padding);
    padding-inline-end: 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 {
  font-size: 1.5em;
  letter-spacing: 0.4em;
  padding: 1em 0;
}
@media (min-width: 499.3px) {
  .storm-play-again {
    font-size: 2em;
    padding: 1em 2em;
  }
}
@media (min-width: 799.3px) {
  .storm-play-again {
    justify-content: space-between;
    letter-spacing: 0.6em;
  }
  .storm-play-again::before, .storm-play-again::after {
    content: " ";
    width: 7rem;
    height: 7rem;
    background-image: url("../hashed/tornado-white.f21a1b50.svg");
    background-size: cover;
    opacity: 0.8;
    transition: opacity 0.5s;
  }
  .storm-play-again[href]:hover::before, .storm-play-again[href]:hover::after {
    opacity: 1;
    animation: play-shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  }
  .storm-play-again[href]:hover::after {
    animation-delay: 0.1s;
  }
}

.storm-dashboard__high__periods {
  display: flex;
  flex-flow: row wrap;
  gap: 4%;
}
@media (min-width: 499.3px) {
  .storm-dashboard__high__periods {
    flex-flow: row nowrap;
  }
}
.storm-dashboard__high__period {
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 22%;
  background: var(--c-bg-box);
  padding: 3em 1em 1.5em 1em;
}
@media (max-width: 499.29px) {
  .storm-dashboard__high__period {
    flex: 48% 0;
    margin-bottom: 1vh;
  }
  .storm-dashboard__high__period:nth-child(2) {
    margin-inline-end: 0;
  }
}
.storm-dashboard__high__period strong {
  font-family: storm;
  font-weight: normal;
  font-size: 3em;
}
@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, rgba(255, 255, 255, 0.3) 0%, transparent 45%) var(--c-brag);
  color: var(--c-over);
}
.highlight-alltime .storm-dashboard__high__period:first-child strong {
  font-size: 4em;
  line-height: 0.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) {
  text-align: right;
}
.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;
  }
}

/*# sourceMappingURL=storm.dashboard.css.map */
