.lotto {
  margin-top: 16px;
}

.lotto__container {
  max-width: 1260px;
  margin: auto;
  background: #fff;
  border-radius: 8px;
  display: flex;
}

.lotto__grid {
  display: grid;
  grid-template-columns: 25% 1fr 1fr;
  gap: 16px;
  width: 100%;
  padding-right: 16px;
}

/* Hero image */
.lotto__hero {
  flex: 0 0 250px;
  border-radius: 16px;
  background-image: url('../images/image-55-1.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  min-height: 180px;
  height: 219px;
}

/* Title */
.lotto__title {
  font-size: 16px;
  font-weight: 600;
}

/* Panel */
.lotto__panel {
  background: linear-gradient(270deg, #FFF1F1 0%, #F8F8F8 100%);
  padding: 16px;
  text-align: center;
  margin: 16px 0px;
  border-radius: 8px;
}
.lotto__panel .lotto__title {
  color: #981616;
}

.lotto__panel--alt {
  border-radius: 8px;
  background: linear-gradient(270deg, #FFF2D7 0%, #F8F8F8 100%);
  padding: 16px;
}
.lotto__panel--alt .lotto__title {
  color: #DA783D;
}

/* Numbers */
.lotto__nums {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 0px;
  padding: 0px;
}

.lotto__pill {
  height: 54px;
  width: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  user-select: none;
  margin-left: 0 !important;
  margin-bottom: 0 !important;
}
.lotto__pill--red {
  background: #9b0e0e;
}
.lotto__pill--orange {
  background: #e8873a;
}

/* Tablet (≤1024px): ẩn hero, 2 panel bằng nhau ngang full màn */
@media (max-width: 1024px) {
   .lotto__container {
    padding: 0px 12px;
    background: none;
  }
  .lotto__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    padding-right: 0;
  }

  .lotto__hero {
    display: none;
  }

  .lotto__panel {
    flex: 1;
    margin: 0;
    min-width: 0;
    padding: 8px;
  }
}

/* Mobile (≤640px) */
@media (max-width: 640px) {
  .lotto__container {
    padding: 0px 12px;
    background: none;
  }
  .lotto__grid {
    gap: 4px;
    flex-direction: row; /* 👉 Giữ ngang chia đôi màn hình */
  }
  /* Nếu muốn xếp dọc: đổi thành flex-direction: column; */

  .lotto__title {
    font-size: 12px;
  }

  .lotto__nums {
    padding: 4px;
    gap: 4px;
  }

  .lotto__pill {
    width: 24px;
    height: 24px;
    font-size: 10px;
    font-weight: 800;
  }
}
