@charset "UTF-8";

.winners {

  --win-bg: #ffffff;
  --win-ink: #191919;
  --win-ink-soft: #696969;
  --win-line: #e1e1e1;
  --win-surface: #f5f5f5;

  --win-pad: 20px;
  --win-max: 343px;

  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--win-ink);
}

.winners[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.winners__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--win-max);
  max-height: 100%;
  min-height: 0;
  border: 1px solid var(--win-line);
  background-color: var(--win-bg);
  outline: none;
}

.winners__topbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  height: 44px;
  padding-right: var(--s-8);
}

.winners__close {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--win-ink-soft);
  cursor: pointer;
}

.winners__close:hover {
  color: var(--win-ink);
}

.winners__close-icon {
  font-size: 22px;
  line-height: 1;
}

.winners__scroll {
  flex: 1 1 auto;
  min-height: 0;

  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--win-pad) var(--s-32);
}

.winners__head {
  text-align: center;
  padding-top: var(--s-8);
}

.winners__eyebrow {
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  line-height: var(--lh-base);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.winners__wordmark {
  margin-top: var(--s-4);
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.winners__title {
  margin-top: var(--s-8);
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}

.winners__lead {
  margin-top: var(--s-24);
  text-align: center;
  font-size: 14px;
  font-weight: var(--fw-bold);
  line-height: var(--lh-base);
}

.winners__list {
  margin-top: var(--s-16);
  max-height: 46vh;
  max-height: 46dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--win-line);

  outline-offset: -2px;
}

.winners__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
  line-height: var(--lh-base);
}

.winners__table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--win-surface);
  font-weight: var(--fw-bold);
}

.winners__table th,
.winners__table td {
  padding: 7px 6px;
  border: 1px solid var(--win-line);
  text-align: center;
  vertical-align: middle;

  word-break: keep-all;
  overflow-wrap: break-word;
}

.winners__table thead th:nth-child(1) { width: 44%; }
.winners__table thead th:nth-child(2) { width: 22%; }
.winners__table thead th:nth-child(3) { width: 34%; }

.winners__table tbody th {
  vertical-align: top;
  padding-top: 10px;
  font-weight: var(--fw-bold);
  background-color: var(--win-bg);
}

.winners__count {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: var(--fw-regular, 400);
  color: var(--win-ink-soft);
}

.winners__foot {
  margin-top: var(--s-24);
  text-align: center;
  color: var(--win-ink-soft);
}

.winners__thanks {
  font-size: 12px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.winners__signature {
  margin-top: var(--s-8);
  font-size: 11px;
  line-height: var(--lh-base);
}

@media (min-width: 1024px) {
  .winners {
    --win-pad: 32px;
    --win-max: 480px;
  }

  .winners__wordmark {
    font-size: 30px;
    font-weight: var(--fw-black);
    letter-spacing: -0.01em;
  }

  .winners__eyebrow {
    font-size: 15px;
  }

  .winners__list {
    max-height: 50vh;
    max-height: 50dvh;
  }

  .winners__table {
    font-size: 13px;
  }
}
