@font-face {
  font-family: "Geist";
  src: url("assets/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color: #0a0a0a;
  background: #fff;
  font-family: "Geist", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body,
h2,
p {
  margin: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

.page-shell {
  position: relative;
  display: flex;
  min-height: 100vh;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: url("assets/bgyes-small.png") center / cover fixed no-repeat;
}

.banner {
  display: flex;
  width: 100%;
  margin-top: 2.5rem;
  align-items: center;
  justify-content: center;
}

.banner img {
  width: 100%;
  min-width: min(24rem, 100%);
  height: auto;
  cursor: pointer;
}

.main-content {
  display: flex;
  width: 100%;
  max-width: 72rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.navigation-column {
  display: flex;
  width: 85%;
  align-items: center;
  justify-content: center;
}

.navigation-panel {
  display: flex;
  width: 100%;
  height: 300px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem;
}

.navigation-card {
  width: 100%;
  height: 3rem;
  padding: 0.25rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.625rem;
}

.navigation-card__inner {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  border: 2px solid #e5e5e5;
  border-radius: 0.5rem;
  background: linear-gradient(to bottom, #3c405e, #292b3f);
}

.navigation-card h2,
.latency {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.75rem;
}

.navigation-card h2 {
  color: #fff;
}

.latency {
  min-width: 4.3rem;
  text-align: center;
}

.latency--fast {
  color: #008138;
}

.latency--medium {
  color: #1447e6;
}

.latency--slow {
  color: #a36100;
}

.latency--very-slow {
  color: #fb2c36;
}

.divider {
  display: block;
  width: 1px;
  height: 1.5rem;
  background: #d1d5dc;
}

.go-link {
  position: relative;
  display: inline-flex;
  width: 100px;
  height: 1.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: linear-gradient(to bottom, #1abbdb, #1598b3);
  color: #fafafa;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  text-decoration: none;
  transition: background 150ms ease;
}

.go-link:hover {
  background: linear-gradient(to bottom, #ffa60e, #ff574c);
}

.go-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.fire-icon {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 2rem;
  height: 2rem;
  animation: fire 1.5s infinite;
}

.go-link:not(.go-link--fast) .fire-icon {
  display: none;
}

.winner-column {
  width: 80%;
}

.winner-showcase {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
  background: transparent;
}

.winner-track {
  display: flex;
  flex-direction: column;
  animation: scroll-up 30s linear infinite;
}

.winner-card {
  display: flex;
  min-height: 50px;
  margin: 0 0.5rem 0.5rem;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: 0.375rem;
  background: linear-gradient(to bottom, #585c88, #292b3f);
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
}

.winner-card__image {
  width: 2rem;
  height: 2rem;
  border-radius: 0.25rem;
}

.winner-card strong,
.winner-card p {
  font-size: 0.75rem;
  line-height: 1rem;
}

.winner-card__game {
  font-weight: 600;
}

.winner-card__amount {
  color: #fac800;
}

.winner-card__bet {
  color: #fff;
  font-size: 0.75rem;
}

.lottery-results {
  display: flex;
  width: 80%;
  max-width: 72rem;
  margin-bottom: 2.5rem;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem;
}

.lottery-grid {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 0.5rem;
}

.lottery-card {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(to bottom, #1abbdb, #306d99);
  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.lottery-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
}

.lottery-card__result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lottery-icon {
  width: 2rem;
  height: 2rem;
}

.number-list {
  display: flex;
  min-width: 0;
  justify-content: center;
  gap: 0.25rem;
}

.number-ball {
  display: flex;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
}

.number-ball span {
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #d9d9d9;
  color: #18181b;
  font-weight: 700;
}

.latest-draw {
  display: none;
  justify-content: center;
  color: #d1d5dc;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
}

.latest-draw span {
  margin-left: 0.25rem;
}

.lottery-card__footer {
  display: flex;
  height: 30px;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  border-radius: 0 0 1rem 1rem;
  background: #292b3f;
  color: #fff;
}

.countdown,
.next-draw {
  align-items: center;
  font-size: 0.75rem;
  line-height: 1rem;
}

.countdown {
  display: flex;
  gap: 0.25rem;
}

.countdown svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.next-draw {
  display: none;
}

@keyframes scroll-up {
  from {
    transform: translateY(0%);
  }
  to {
    transform: translateY(-50%);
  }
}

@keyframes fire {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .winner-track,
  .fire-icon {
    animation: none;
  }
}

@media (max-width: 22.5rem) {
  .navigation-card__inner {
    padding-inline: 0.75rem;
  }

  .latency {
    min-width: 3.75rem;
  }

  .go-link {
    width: 84px;
  }

  .lottery-results {
    width: 90%;
  }

  .lottery-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .number-list {
    gap: 0.125rem;
  }

  .number-ball {
    width: 22px;
    height: 22px;
  }

  .number-ball span {
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
  }

  .lottery-card__footer {
    padding-inline: 0.5rem;
  }

  .countdown {
    font-size: 0.625rem;
  }
}

@media (min-width: 40rem) {
  .lottery-card {
    height: 150px;
  }

  .lottery-icon {
    width: 3rem;
    height: 3rem;
  }

  .number-ball {
    width: 34px;
    height: 34px;
  }

  .number-ball span {
    width: 28px;
    height: 28px;
  }

  .latest-draw {
    display: flex;
  }

  .lottery-card__footer {
    height: 50px;
  }

  .next-draw {
    display: block;
  }
}

@media (min-width: 48rem) {
  .banner img,
  .main-content {
    width: 80%;
  }

  .lottery-results {
    gap: 2rem;
  }

  .lottery-card__content {
    padding: 1rem;
  }
}

@media (min-width: 64rem) {
  .banner img {
    width: 65%;
  }

  .main-content {
    flex-direction: row;
  }

  .navigation-column,
  .winner-column {
    width: auto;
    flex: 1 1 0%;
  }

  .navigation-panel {
    height: 400px;
  }

  .navigation-card {
    height: 3.75rem;
  }

  .divider,
  .go-link {
    height: 2rem;
  }

  .winner-showcase {
    height: 360px;
  }

  .winner-card {
    min-height: 72px;
  }

  .winner-card__image {
    width: 2.5rem;
    height: 2.5rem;
  }

  .winner-card strong,
  .winner-card p,
  .countdown,
  .next-draw,
  .latest-draw {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .lottery-card__content {
    padding: 0.5rem;
  }

  .lottery-icon {
    width: 4rem;
    height: 4rem;
  }

  .number-ball {
    width: 40px;
    height: 40px;
  }

  .number-ball span {
    width: 34px;
    height: 34px;
  }
}

@media (min-width: 80rem) {
  .banner img {
    width: 55%;
  }
}

@media (min-width: 96rem) {
  .banner img {
    width: 40%;
  }
}
