.cycle-page {
  min-height: 100vh;
  background: #08110e;
  color: #f1eee5;
}

.cycle-shell,
.cycle-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.cycle-shell {
  padding: 28px 0 52px;
}

.cycle-home-link {
  color: #f0cf72;
  font-size: 14px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.cycle-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 38px;
  border: 1px solid #4d5e55;
  border-radius: 8px 8px 0 0;
  background: #172d25;
}

.cycle-kicker,
.cycle-section-heading > span {
  display: block;
  margin-bottom: 7px;
  color: #dcb45c;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cycle-intro h1 {
  color: #f7f2e8;
  font-size: 42px;
}

.cycle-intro p {
  max-width: 650px;
  margin: 12px 0 0;
  color: #d4d0c5;
  font-size: 17px;
}

.cycle-base-status {
  flex: 0 0 auto;
  padding-left: 26px;
  border-left: 1px solid #53635b;
  text-align: right;
}

.cycle-base-status span,
.cycle-base-status strong {
  display: block;
}

.cycle-base-status span {
  color: #aaa79e;
  font-size: 12px;
}

.cycle-base-status strong {
  margin-top: 5px;
  color: #f0cf72;
  font-size: 18px;
}

.cycle-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid #4d5e55;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #0f1d19;
}

.cycle-stats div {
  min-width: 0;
  padding: 18px 16px;
  border-right: 1px solid #405047;
  text-align: center;
}

.cycle-stats div:last-child {
  border-right: 0;
}

.cycle-stats strong,
.cycle-stats span {
  display: block;
}

.cycle-stats strong {
  color: #f0cf72;
  font-size: 25px;
}

.cycle-stats span {
  margin-top: 4px;
  color: #aaa79e;
  font-size: 11px;
  text-transform: uppercase;
}

.cycle-view-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 26px;
  padding: 4px;
  border: 1px solid #405047;
  border-radius: 7px;
  background: #0b1512;
}

.cycle-view-switch a {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #aaa79e;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.cycle-view-switch a:hover,
.cycle-view-switch a:focus-visible {
  color: #f7f2e8;
  background: #172d25;
}

.cycle-view-switch a.is-active {
  border-color: #a47b28;
  background: #2a2414;
  color: #f0cf72;
  box-shadow: inset 0 1px 0 rgba(255, 238, 179, 0.08);
}

.draw-analysis,
.cycle-disclaimer {
  margin-top: 26px;
  border: 1px solid #4d5e55;
  border-radius: 8px;
  background: #101b18;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.draw-analysis {
  padding: 28px;
}

.cycle-search-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #34443d;
}

.cycle-search-form {
  display: grid;
  gap: 7px;
}

.cycle-search-title,
.cycle-search-form label span {
  color: #d4d0c5;
  font-size: 12px;
  font-weight: 800;
}

.cycle-search-fields {
  display: grid;
  grid-template-columns: repeat(2, 160px) auto;
  align-items: end;
  gap: 8px;
}

.cycle-search-fields label {
  display: grid;
  gap: 7px;
}

.cycle-search-form input[type="number"] {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #53635b;
  border-radius: 5px;
  outline: 0;
  background: #08110e;
  color: #f7f2e8;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.cycle-search-form input[type="number"]:focus {
  border-color: #dcb45c;
  box-shadow: 0 0 0 3px rgba(220, 180, 92, 0.13);
}

.cycle-search-form input[type="number"]::placeholder {
  color: #78827d;
}

.cycle-search-form button {
  width: auto;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid #c99a38;
  border-radius: 5px;
  background: #2a2414;
  color: #f0cf72;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

.cycle-search-form button:hover,
.cycle-search-form button:focus-visible {
  background: #3a3018;
  color: #ffe49b;
  transform: none;
}

.cycle-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid #776b4c;
  border-radius: 5px;
  background: #20251f;
  color: #f0cf72;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.cycle-search-clear:hover,
.cycle-search-clear:focus-visible {
  border-color: #c99a38;
  background: #2a2f27;
  color: #ffe49b;
}

.cycle-search-empty {
  margin-top: 20px;
  padding: 28px 24px;
  border: 1px solid #665b3e;
  border-radius: 6px;
  background: #191a13;
  text-align: center;
}

.cycle-search-empty strong {
  color: #f0cf72;
  font-size: 17px;
}

.cycle-search-empty p {
  margin: 7px 0 0;
  color: #aaa79e;
  font-size: 12px;
}

.draw-analysis-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cycle-section-heading h2 {
  color: #f7f2e8;
  font-size: 25px;
}

.page-size-form {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aaa79e;
  font-size: 12px;
}

.page-size-form select {
  min-height: 38px;
  padding: 0 30px 0 10px;
  border: 1px solid #665b3e;
  border-radius: 5px;
  background: #0b1512;
  color: #f7f2e8;
}

.indicator-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 12px;
  color: #aaa79e;
  font-size: 11px;
}

.indicator-legend b {
  color: #f0cf72;
}

.movement-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 18px 0 14px;
  color: #aaa79e;
  font-size: 11px;
}

.movement-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.movement-sample {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #405047;
  border-radius: 4px;
  font-style: normal;
  font-weight: 800;
}

.movement-sample.is-present {
  border-color: #ba892b;
  background: linear-gradient(145deg, #196144, #0c3b2d);
  color: #f6d77b;
}

.movement-sample.is-absent {
  border-color: #e3bd61;
  background: linear-gradient(145deg, #f0cf72, #c28a22);
  color: #142019;
  font-size: 19px;
}

.movement-sample.is-cycle-end {
  position: relative;
  background: #13211c;
}

.movement-sample.is-cycle-end::after {
  position: absolute;
  right: 3px;
  bottom: 3px;
  left: 3px;
  height: 3px;
  border-radius: 2px;
  background: #dcb45c;
  content: "";
}

.movement-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #405047;
  border-radius: 6px;
  background: #08110e;
  scrollbar-color: #8d6b27 #13211c;
  scrollbar-width: thin;
}

.movement-table {
  width: max-content;
  min-width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  color: #d8d4ca;
  font-variant-numeric: tabular-nums;
}

.movement-table th,
.movement-table td {
  min-width: 34px;
  height: 38px;
  padding: 0 4px;
  border-right: 1px solid #2c3b34;
  border-bottom: 1px solid #2c3b34;
  text-align: center;
  white-space: nowrap;
}

.movement-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 42px;
  background: #172d25;
  color: #f0cf72;
  font-size: 10px;
  font-weight: 800;
}

.movement-contest-head,
.movement-contest {
  left: 0;
  min-width: 92px !important;
  width: 92px;
}

.movement-contest-head {
  z-index: 4 !important;
}

.movement-contest {
  position: sticky;
  z-index: 1;
  padding: 6px 10px !important;
  background: #101b18;
  text-align: left !important;
  box-shadow: 3px 0 7px rgba(0, 0, 0, 0.22);
}

.movement-contest strong,
.movement-contest small,
.movement-cycle strong,
.movement-cycle small,
.movement-position strong,
.movement-position small {
  display: block;
}

.movement-contest strong {
  color: #f7f2e8;
  font-size: 13px;
}

.movement-contest small {
  margin-top: 2px;
  color: #8f968f;
  font-size: 9px;
  font-weight: 500;
}

.movement-present {
  border-color: #276649 !important;
  background: linear-gradient(145deg, #196144, #0c3b2d);
  color: #f6d77b;
  font-size: 11px;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.movement-absent {
  border-color: #aa7b22 !important;
  background: linear-gradient(145deg, #e4bd5d, #bd8120);
  color: #142019;
  font-size: 17px;
  font-weight: 900;
}

.movement-cycle-head,
.movement-cycle {
  min-width: 66px !important;
  border-left: 2px solid #665b3e;
}

.movement-position-head,
.movement-position {
  min-width: 88px !important;
}

.movement-cycle,
.movement-position {
  background: #18231f;
}

.movement-cycle strong,
.movement-position strong {
  color: #f0cf72;
  font-size: 12px;
}

.movement-cycle small,
.movement-position small {
  color: #8f968f;
  font-size: 8px;
  text-transform: uppercase;
}

.movement-table tr.movement-cycle-end > * {
  border-bottom: 3px solid #d0a447;
}

.movement-table tbody tr:hover .movement-absent,
.movement-table tbody tr:focus-within .movement-absent {
  background: linear-gradient(145deg, #f1d17b, #cb922e);
}

.movement-scroll-note {
  display: none;
  margin: 9px 0 0;
  color: #8f968f;
  font-size: 10px;
}

.draw-list {
  display: grid;
  gap: 10px;
}

.draw-card {
  position: relative;
  padding: 18px;
  border: 1px solid #405047;
  border-radius: 6px;
  background: #0b1512;
}

.draw-card-contest span,
.draw-card-contest strong,
.draw-card-contest small {
  display: block;
}

.draw-card-contest span {
  color: #dcb45c;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.draw-card-contest strong {
  margin-top: 2px;
  color: #f7f2e8;
  font-size: 21px;
}

.draw-card-contest small {
  margin-top: 2px;
  color: #8f968f;
  font-size: 10px;
}

.draw-number-list {
  display: grid;
  grid-template-columns: repeat(15, 32px);
  gap: 8px;
  margin-top: 14px;
}

.draw-number-list span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #916b2a;
  border-radius: 50%;
  background: linear-gradient(180deg, #9d6615 0%, #3d2b10 100%);
  color: #f8df9a;
  font-size: 10px;
  font-weight: 800;
}

.draw-cycle-summary {
  display: flex;
  align-items: center;
  width: max-content;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #405047;
  border-radius: 5px;
  background: #101f1a;
}

.draw-cycle-summary strong,
.draw-cycle-summary span,
.draw-cycle-summary small {
  padding: 8px 11px;
  font-size: 11px;
}

.draw-cycle-summary strong,
.draw-cycle-summary span {
  border-right: 1px solid #405047;
}

.draw-cycle-summary strong {
  color: #f0cf72;
}

.draw-cycle-summary span {
  color: #f7f2e8;
}

.draw-cycle-summary small {
  color: #aaa79e;
}

.draw-details summary {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 9px 12px;
  border: 1px solid #916b2a;
  border-radius: 5px;
  background: #17271f;
  color: #f0cf72;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.draw-details summary::-webkit-details-marker {
  display: none;
}

.draw-details summary::after {
  content: "+";
  margin-left: 8px;
}

.draw-details[open] summary {
  background: #dcb45c;
  color: #142019;
}

.draw-details[open] summary::after {
  content: "-";
}

.draw-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #53635b;
  border-radius: 5px;
  background: #17271f;
}

.draw-detail-grid span,
.draw-detail-grid b {
  display: block;
}

.draw-detail-grid span {
  color: #d4d0c5;
  font-size: 11px;
}

.sequence-detail {
  grid-column: span 2;
  min-width: 0;
  color: #d4d0c5;
  font-size: 11px;
}

.sequence-detail .sequence-count {
  margin-bottom: 6px;
}

.sequence-detail .sequence-group-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sequence-group-list i {
  padding: 4px 7px;
  border: 1px solid #53635b;
  border-radius: 4px;
  background: #0b1512;
  color: #f7f2e8;
  font-style: normal;
  white-space: nowrap;
}

.draw-detail-grid b {
  margin-bottom: 3px;
  color: #f0cf72;
  font-size: 10px;
  text-transform: uppercase;
}

.cycle-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.cycle-pagination a {
  color: #f0cf72;
  font-size: 13px;
  font-weight: 800;
}

.cycle-pagination a:last-child {
  text-align: right;
}

.cycle-pagination strong {
  color: #aaa79e;
  font-size: 12px;
}

.indicator-dictionary {
  margin-top: 26px;
  border: 1px solid #4d5e55;
  border-radius: 8px;
  background: #101b18;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.indicator-dictionary summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  color: #f0cf72;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  list-style: none;
}

.indicator-dictionary summary::-webkit-details-marker {
  display: none;
}

.indicator-dictionary summary::after {
  content: "+";
  font-size: 22px;
}

.indicator-dictionary[open] summary {
  border-bottom: 1px solid #405047;
}

.indicator-dictionary[open] summary::after {
  content: "-";
}

.indicator-dictionary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
  padding: 12px 24px 4px;
}

.indicator-dictionary-grid div {
  padding: 12px 0;
  border-bottom: 1px solid #34443d;
}

.indicator-dictionary-grid dt {
  color: #f0cf72;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.indicator-dictionary-grid dd {
  margin: 4px 0 0;
  color: #d4d0c5;
  font-size: 13px;
  line-height: 1.45;
}

.indicator-dictionary > p {
  margin: 14px 24px 20px;
  color: #aaa79e;
  font-size: 12px;
}

.cycle-disclaimer {
  padding: 20px 24px;
  border-color: #665b3e;
  background: #2a2414;
}

.cycle-disclaimer strong {
  color: #f0d88f;
}

.cycle-disclaimer p {
  margin: 6px 0 0;
  color: #d5c693;
  font-size: 13px;
}

.cycle-purchase-cta {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 42px;
  align-items: center;
  min-height: 106px;
  margin-top: 26px;
  padding: 16px 22px;
  border: 1px solid #e3bd61;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffe596 0%, #e2ae3b 56%, #a8660c 100%);
  color: #142019;
  text-align: center;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 206, 0.7),
    0 12px 26px rgba(213, 170, 75, 0.2);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.cycle-purchase-cta:hover,
.cycle-purchase-cta:focus-visible {
  background: linear-gradient(135deg, #ffecae 0%, #edbd52 56%, #b97716 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 222, 0.82),
    0 16px 32px rgba(213, 170, 75, 0.3);
  transform: translateY(-1px);
}

.cycle-purchase-cta .cycle-purchase-copy,
.cycle-purchase-cta small,
.cycle-purchase-cta strong {
  display: block;
}

.cycle-purchase-cta .cycle-purchase-copy {
  width: 100%;
}

.cycle-purchase-cta .cta-brand-mark {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 1px solid rgba(20, 32, 25, 0.38);
  border-radius: 50%;
  background: #0d3a2f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(51, 35, 4, 0.2);
}

.cycle-purchase-cta .cta-brand-mark img {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.cycle-purchase-cta small {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.cycle-purchase-cta strong {
  margin-top: 4px;
  font-size: 22px;
}

.cycle-purchase-cta .cta-arrow {
  justify-self: end;
  font-size: 32px;
  line-height: 1;
}

.cycle-footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 0 30px;
  border-top: 1px solid #34443d;
}

@media (max-width: 920px) {
  .cycle-intro {
    align-items: start;
  }

  .draw-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .cycle-shell,
  .cycle-footer {
    width: min(calc(100% - 24px), 1180px);
  }

  .cycle-home-link {
    max-width: 120px;
    text-align: right;
    font-size: 12px;
  }

  .cycle-intro,
  .draw-analysis-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .cycle-intro {
    padding: 28px 22px;
  }

  .cycle-intro h1 {
    font-size: 36px;
  }

  .cycle-base-status {
    padding: 15px 0 0;
    border-top: 1px solid #53635b;
    border-left: 0;
    text-align: left;
  }

  .cycle-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cycle-stats div {
    border-right: 1px solid #405047;
    border-bottom: 1px solid #405047;
  }

  .cycle-stats div:nth-child(2n) {
    border-right: 0;
  }

  .cycle-stats div:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .draw-analysis {
    padding: 20px 16px;
  }

  .cycle-search-row {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .cycle-search-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cycle-search-form input[type="number"] {
    width: 100%;
    min-width: 0;
  }

  .cycle-search-fields button {
    grid-column: 1 / -1;
  }

  .cycle-search-clear {
    align-self: start;
  }

  .cycle-view-switch {
    margin-top: 18px;
  }

  .cycle-view-switch a {
    min-height: 48px;
    padding-inline: 8px;
    font-size: 11px;
    line-height: 1.25;
  }

  .movement-legend {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .movement-table th,
  .movement-table td {
    min-width: 34px;
    height: 36px;
  }

  .movement-contest-head,
  .movement-contest {
    min-width: 84px !important;
    width: 84px;
  }

  .movement-scroll-note {
    display: block;
  }

  .draw-card {
    padding: 14px;
  }

  .draw-number-list {
    grid-template-columns: repeat(5, 32px);
    justify-content: space-between;
    margin-top: 18px;
  }

  .draw-cycle-summary {
    width: 100%;
  }

  .draw-cycle-summary strong,
  .draw-cycle-summary span,
  .draw-cycle-summary small {
    flex: 1 1 0;
    padding-inline: 6px;
    text-align: center;
  }

  .draw-details summary {
    top: 14px;
    right: 14px;
  }

  .draw-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }

  .indicator-dictionary summary {
    padding: 16px 18px;
  }

  .indicator-dictionary-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 18px;
  }

  .indicator-dictionary > p {
    margin-inline: 18px;
  }

  .cycle-purchase-cta {
    grid-template-columns: 52px minmax(0, 1fr) 28px;
    min-height: 92px;
    padding: 14px 12px;
  }

  .cycle-purchase-cta .cta-brand-mark {
    width: 46px;
    height: 46px;
  }

  .cycle-purchase-cta .cta-brand-mark img {
    width: 38px;
    height: 38px;
  }

  .cycle-purchase-cta .cta-arrow {
    font-size: 26px;
  }

  .page-size-form {
    justify-content: space-between;
  }

  .cycle-pagination {
    grid-template-columns: 1fr 1fr;
  }

  .cycle-pagination strong {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }
}
