.lottery-page {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-total, 80px) + 36px) 0 80px !important;
  color: #f4f1ea;
}

.lottery-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 8, 20, .78);
}

.lottery-page > .container {
  display: block !important;
  position: relative;
  z-index: 1;
  max-width: 1260px;
  margin-right: auto;
  margin-left: auto;
}

.lottery-layout {
  display: block !important;
  position: relative;
  width: 100%;
  border-top: 3px solid #d4aa52;
  background: #110d18;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

.lottery-heading {
  display: flex;
  align-items: flex-end;
  gap: 30px;
  padding: 34px 38px 28px;
  border: 1px solid #514129;
  border-top: 0;
}

.lottery-kicker,
.lottery-board-head span {
  color: #d4aa52;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.lottery-heading h1 {
  margin: 7px 0 5px;
  color: #fff;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1;
}

.lottery-heading p {
  margin: 0;
  color: #aaa3b2;
  font-size: 16px;
}

.lottery-announcement {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
  border: 1px solid #514129;
  border-top: 0;
  background: #15101c;
}

.lottery-announcement-lead {
  padding: 30px 38px 27px;
  border-right: 1px solid #3a3041;
}

.lottery-announcement-lead > span,
.lottery-draw-date > span {
  display: block;
  margin-bottom: 8px;
  color: #d4aa52;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.lottery-announcement h2 {
  max-width: 760px;
  margin: 0 0 15px;
  color: #fff;
  font-size: 28px;
  line-height: 1.2;
}

.lottery-announcement h3 {
  margin: 0 0 15px;
  color: #fff;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.lottery-announcement p {
  margin: 0 0 12px;
  color: #b7afbe;
  font-size: 14px;
  line-height: 1.65;
}

.lottery-announcement p:last-child {
  margin-bottom: 0;
}

.lottery-announcement p strong {
  color: #eee9f1;
}

.lottery-prizes {
  padding: 30px 30px 24px;
}

.lottery-prizes ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lottery-prizes li {
  display: grid;
  grid-template-columns: 30px 1fr;
  padding: 12px 0;
  border-top: 1px solid #342b3c;
}

.lottery-prizes li b {
  grid-row: 1 / 3;
  font-size: 19px;
}

.lottery-prizes li span,
.lottery-prizes li strong {
  display: block;
}

.lottery-prizes li span {
  color: #817a89;
  font-size: 11px;
  text-transform: uppercase;
}

.lottery-prizes li strong {
  margin-top: 2px;
  color: #e2ba64;
  font-size: 15px;
}

.lottery-howto {
  padding: 25px 38px;
  border-top: 1px solid #3a3041;
  border-right: 1px solid #3a3041;
}

.lottery-draw-date {
  padding: 25px 30px;
  border-top: 1px solid #3a3041;
  background: #0e0b13;
}

.lottery-draw-date strong {
  display: block;
  margin-bottom: 7px;
  color: #e2ba64;
  font-size: 18px;
  line-height: 1.35;
}

.lottery-draw-date p {
  color: #d1c9d6;
}

.lottery-own span {
  display: block;
  color: #8e8798;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.lottery-rules {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid #302839;
  border-top: 0;
}

.lottery-rules div {
  min-height: 92px;
  padding: 20px;
  border-right: 1px solid #302839;
}

.lottery-rules div:last-child {
  border-right: 0;
}

.lottery-rules b {
  display: block;
  margin-bottom: 5px;
  color: #e1bb68;
  font-size: 22px;
}

.lottery-rules span {
  color: #bbb4c2;
  font-size: 13px;
  line-height: 1.45;
}

.lottery-own {
  display: grid;
  grid-template-columns: .8fr 1.5fr .8fr;
  margin: 22px 0;
  border: 1px solid #765e32;
  background: #19131f;
}

.lottery-own div {
  padding: 17px 22px;
  border-right: 1px solid #3b3042;
}

.lottery-own div:last-child {
  border-right: 0;
}

.lottery-own strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 22px;
}

.lottery-own div:first-child strong,
.lottery-own div:last-child strong {
  color: #e5bd68;
}

.lottery-account-note {
  margin: 22px 0;
  padding: 15px 18px;
  border-left: 3px solid #d4aa52;
  background: #18131e;
  color: #aaa3b2;
}

.lottery-account-note a {
  margin-left: 6px;
  color: #e1bb68;
  font-weight: 700;
}

.lottery-board {
  border: 1px solid #514129;
}

.lottery-board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 26px 20px;
  border-bottom: 1px solid #332a3a;
}

.lottery-board-head h2 {
  margin: 5px 0 0;
  color: #fff;
  font-size: 25px;
}

.lottery-board-head small {
  color: #8e8798;
}

.lottery-table-wrap {
  overflow-x: auto;
}

.lottery-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}

.lottery-table th {
  padding: 13px 15px;
  border-bottom: 1px solid #332a3a;
  background: #0d0a12;
  color: #777180;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.lottery-table th:not(:nth-child(2)),
.lottery-table td:not(:nth-child(2)) {
  text-align: center;
}

.lottery-table td {
  height: 64px;
  padding: 11px 15px;
  border-bottom: 1px solid #292230;
  color: #c9c3ce;
  font-size: 14px;
}

.lottery-table tr:last-child td {
  border-bottom: 0;
}

.lottery-table tbody tr:nth-child(even) {
  background: #141019;
}

.lottery-table tbody tr.is-own {
  background: #272015;
  box-shadow: inset 3px 0 #d4aa52;
}

.lottery-table td strong,
.lottery-table td small {
  display: block;
}

.lottery-table td strong {
  color: #fff;
  font-size: 15px;
}

.lottery-table td small {
  margin-top: 2px;
  color: #817a89;
  font-size: 11px;
}

.lottery-table td > span + small {
  color: #b9964f;
}

.lottery-rank,
.lottery-total {
  color: #e1bb68 !important;
  font-size: 18px !important;
  font-weight: 800;
}

.lottery-obscured {
  display: inline-block;
  min-width: 38px;
  color: #a49dab;
  filter: blur(5px);
  user-select: none;
}

.lottery-obscured-total {
  color: #d6b15e;
  font-size: 18px;
}

.lottery-state {
  max-width: 720px;
  margin: 12vh auto 0;
  padding: 44px;
  border: 1px solid #5b4729;
  border-top: 3px solid #d4aa52;
  background: #110d18;
  text-align: center;
}

.lottery-state b {
  color: #d4aa52;
  letter-spacing: .12em;
}

.lottery-state h1 {
  margin: 8px 0;
  color: #fff;
}

.lottery-state p {
  margin: 0;
  color: #aaa3b2;
}

@media (max-width: 900px) {
  .lottery-page {
    padding-top: calc(var(--header-total, 80px) + 22px) !important;
  }

  .lottery-heading {
    align-items: flex-start;
    padding: 27px 23px 23px;
  }

  .lottery-announcement {
    grid-template-columns: 1fr;
  }

  .lottery-announcement-lead,
  .lottery-howto {
    border-right: 0;
  }

  .lottery-prizes,
  .lottery-howto,
  .lottery-draw-date {
    border-top: 1px solid #3a3041;
  }

  .lottery-rules {
    grid-template-columns: repeat(2, 1fr);
  }

  .lottery-rules div {
    border-bottom: 1px solid #302839;
  }

  .lottery-own {
    grid-template-columns: 1fr;
  }

  .lottery-own div {
    border-right: 0;
    border-bottom: 1px solid #3b3042;
  }
}

@media (max-width: 560px) {
  .lottery-heading {
    display: block;
  }

  .lottery-announcement-lead,
  .lottery-prizes,
  .lottery-howto,
  .lottery-draw-date {
    padding: 22px 20px;
  }

  .lottery-announcement h2 {
    font-size: 22px;
  }

  .lottery-rules {
    grid-template-columns: 1fr;
  }

  .lottery-rules div {
    min-height: 0;
    border-right: 0;
  }

  .lottery-board-head {
    display: block;
  }

  .lottery-board-head small {
    display: block;
    margin-top: 10px;
  }
}
