body[data-page='home'] {
  background: #f3f6fa;
  color: #12203b;
}
.dh {
  max-width: 1920px;
  margin: auto;
  padding: 18px 3.4% 0;
}
.hero-row {
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 16px;
}
.hero {
  min-height: 155px;
  background: #c80025 url('../img/brand/home-banner-wide.webp') center/cover;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero > div {
  background: linear-gradient(90deg, #b10025f5, #b10025d9, transparent);
  padding: 22px 32px;
  width: 100%;
  color: white;
}
.hero h1 {
  font-size: clamp(25px, 2.5vw, 44px);
  margin: 0 0 8px;
  line-height: 1.2;
}
.hero p {
  margin: 0;
  font-size: 17px;
}
.today,
.detail,
.news,
.guide {
  background: white;
  border: 1px solid #e8ecf2;
  border-radius: 14px;
  padding: 16px;
}
.today h2,
.news h2,
.guide h2 {
  font-size: 18px;
  margin: 0 0 10px;
}
.today-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff0f3;
  border-radius: 7px;
  padding: 4px 8px;
  margin-bottom: 5px;
  font-size: 14px;
}
.today-row img {
  width: 48px;
  height: 24px;
  object-fit: contain;
}
.today-row time {
  margin-left: auto;
  font-weight: 700;
}
.today > a {
  font-size: 13px;
  color: #e90032;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 17px 0 10px;
}
.heading h2 {
  font-size: 27px;
  margin: 0;
}
.heading span {
  font-size: 12px;
  color: #708096;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(310px, 1fr);
  gap: 16px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.product {
  border: 1px solid #e7dfef;
  position: relative;
  border-radius: 13px;
  padding: 15px;
  min-height: 218px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px #26344d16;
}
.product.selected {
  outline: 2px solid #ed0033;
  outline-offset: -2px;
}
.product.keno {
  background: linear-gradient(120deg, #fff19d, #ffcc22);
}
.product.bingo {
  background: linear-gradient(120deg, #fff5e8, #ffe3c2);
}
.product.power {
  background: linear-gradient(120deg, #e50036, #ae0024);
  color: white;
  border-color: #d70029;
}
.product.mega,
.product.lotto {
  background: linear-gradient(125deg, #f7f6fd, #edeafa);
}
.product.max3d {
  background: linear-gradient(125deg, #fcebf6, #efd2ed);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 9px;
}
.product-logo {
  width: 112px;
  height: 60px;
  object-fit: contain;
  object-position: left center;
}
.status {
  font-size: 11px;
  line-height: 1.2;
  border-radius: 20px;
  padding: 6px 8px;
  background: #e00030;
  color: white;
  font-weight: 700;
  white-space: nowrap;
}
.status.open {
  background: #dcf7e4;
  color: #096630;
}
.status.soon {
  background: #e4e7ed;
  color: #5a6173;
}
.product .meta {
  font-size: 12px;
  margin-bottom: 6px;
}
.prize-label {
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}
.amount {
  font-size: clamp(18px, 1.65vw, 31px);
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.7px;
  color: #e50032;
  margin: 3px 0 8px;
  font-variant-numeric: tabular-nums;
}
.power .amount {
  color: #fff0aa;
}
.max3d .amount {
  color: #c40883;
}
.closing {
  font-size: 12px;
  font-weight: 600;
}
.card-links {
  display: flex;
  gap: 18px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 600;
}
.card-links a {
  color: inherit;
}
.chips {
  display: flex;
  gap: 5px;
  margin: 8px 0;
}
.chips a {
  flex: 1;
  text-align: center;
  border-radius: 7px;
  padding: 5px 3px;
  background: #ffffffa8;
  color: #c6002b;
  font-size: 12px;
  border: 1px solid #ffffff;
}
.timer {
  font-size: 33px;
  font-weight: 800;
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
}
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.detail-top img {
  width: 125px;
  height: 62px;
  object-fit: contain;
}
.detail-jp {
  padding: 15px;
  border-radius: 11px;
  background: linear-gradient(120deg, #b90027, #f3003b);
  color: white;
  margin: 10px 0;
}
.detail-jp small {
  font-size: 13px;
}
.detail-jp strong {
  display: block;
  font-size: clamp(23px, 2vw, 36px);
  white-space: nowrap;
  letter-spacing: -1px;
  margin-top: 6px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #edf0f5;
  font-size: 13px;
  gap: 10px;
}
.detail h3 {
  font-size: 14px;
  margin: 15px 0 10px;
}
.prizes {
  display: flex;
  gap: 6px;
}
.prizes div {
  background: #f3f5f9;
  border-radius: 7px;
  padding: 9px 3px;
  flex: 1;
  text-align: center;
  font-size: 11px;
}
.prizes b {
  display: block;
  color: #e60032;
  font-size: 14px;
  margin-top: 4px;
}
.balls {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}
.balls span {
  display: grid;
  place-items: center;
  border: 1px solid #ffb9c8;
  background: #fff5f7;
  color: #de002c;
  border-radius: 50%;
  width: 37px;
  height: 37px;
  font-size: 16px;
  font-weight: 700;
}
.primary {
  display: block;
  background: #ed0033;
  color: white;
  text-align: center;
  padding: 11px;
  border-radius: 9px;
  font-weight: 700;
  margin-top: 12px;
}
.detail-link {
  font-size: 12px;
  color: #da0030;
  display: block;
  margin-top: 8px;
  text-align: center;
}
.utilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 13px 0;
}
.utilities > a {
  background: white;
  border: 1px solid #e9edf4;
  border-radius: 11px;
  padding: 12px;
  min-height: 67px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.utilities > a:nth-child(2) {
  flex-direction: row;
  align-items: center;
  gap: 7px;
}
.utilities img {
  width: 48px;
  height: 45px;
  object-fit: contain;
}
.utilities b {
  font-size: 14px;
}
.utilities span {
  display: block;
  font-size: 11px;
  color: #7a8396;
  margin-top: 5px;
}
.news {
  padding: 13px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.news-grid a {
  border: 1px solid #edf0f4;
  border-radius: 8px;
  overflow: hidden;
}
.news-grid > a > img,
.news-art {
  width: 100%;
  height: 75px;
  object-fit: cover;
}
.news-art {
  background: #ecfae9;
  display: grid;
  place-items: center;
}
.news-art img {
  max-height: 62px;
  width: 120px;
  object-fit: contain;
}
.red-art {
  background: #fff0f3;
  color: #d4002e;
  font-weight: 700;
  font-size: 15px;
}
.news-grid b,
.news-grid span {
  display: block;
  padding: 5px 8px 0;
  font-size: 12px;
}
.news-grid span {
  font-size: 11px;
  color: #76849a;
  padding-bottom: 8px;
}
.guide {
  margin-top: 12px;
}
.guide a {
  display: block;
  border: 1px solid #edf0f5;
  padding: 9px 10px;
  margin-top: 6px;
  border-radius: 6px;
  font-size: 13px;
}
.dfooter {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  font-size: 11px;
  color: #778297;
}
.dh a {
  text-decoration: none;
}
.dh button {
  font: inherit;
}
.home-mobile-tabs,
.bottom-nav,
.lucky-float,
.tt-float {
  display: none !important;
}
body[data-page='home'] .header .wrap {
  max-width: 1920px;
}
@media (min-width: 1600px) {
  .product {
    min-height: 238px;
  }
  .product-logo {
    width: 130px;
    height: 68px;
  }
  .meta,
  .closing {
    font-size: 14px !important;
  }
  .status {
    font-size: 12px;
  }
  .detail {
    padding: 20px;
  }
}
@media (max-width: 1150px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero h1 {
    font-size: 30px;
  }
  .amount {
    font-size: 23px;
  }
  .utilities {
    grid-template-columns: 1fr;
  }
  .utilities > a {
    min-height: 50px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-grid > a {
    display: grid;
    grid-template-columns: 100px 1fr;
  }
  .news-grid span {
    grid-column: 2;
  }
  .news-grid img,
  .news-art {
    grid-row: span 2;
    height: 75px;
  }
}
@media (max-width: 760px) {
  .dh {
    padding: 10px 12px;
  }
  .hero-row,
  .workspace {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 120px;
  }
  .hero h1 {
    font-size: 26px;
  }
  .today {
    display: none;
  }
  .heading {
    align-items: start;
    gap: 10px;
  }
  .heading h2 {
    font-size: 22px;
  }
  .heading span {
    max-width: 110px;
  }
  .product {
    padding: 12px;
    min-height: 205px;
  }
  .product-logo {
    width: 82px;
    height: 52px;
  }
  .card-top {
    flex-wrap: wrap;
  }
  .status {
    font-size: 9px;
  }
  .amount {
    font-size: 19px;
    letter-spacing: -1px;
  }
  .workspace > aside {
    display: contents;
  }
  .detail {
    grid-row: 2;
  }
  .utilities {
    grid-template-columns: 1fr;
  }
  .dfooter {
    flex-wrap: wrap;
  }
  .detail-jp strong {
    font-size: 30px;
  }
  .closing {
    font-size: 11px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .hero > div {
    padding: 18px;
  }
  .chips a {
    font-size: 10px;
  }
}
body[data-page='home'] .tier-chip {
  display: none !important;
}
.hero {
  background-position: right center;
}
.hero > div {
  max-width: 76%;
}
.dh .amount {
  line-height: 1.2;
}
.detail-jp strong {
  line-height: 1.25;
}
