:root {
  --mega-accent: #e32e2f;
  --power-accent: #bb1030;
  --keno-accent: #18744b;
  --max-accent: #2361be;
  --lotto-accent: #36842b;
}
body {
  background: #f5f7fa;
}
.dh {
  padding: 22px 3.5% 0;
  max-width: 1880px;
}
.hero-row {
  grid-template-columns: minmax(0, 2.6fr) minmax(270px, 1fr);
  gap: 20px;
}
.hero {
  position: relative;
  min-height: 282px;
  border-radius: 20px;
  background: #a40928 url('../img/brand/home-power-background.webp') right center/cover;
  box-shadow: 0 12px 28px #7d0a1e16;
}
.hero > div {
  position: relative;
  max-width: 100% !important;
  min-height: 282px;
  padding: 26px 32px;
  background: linear-gradient(90deg, #950020fa 0%, #a4072ae8 58%, #8e002433 100%);
}
.hero-label {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #fff3df;
}
.featured-pill {
  border: 1px solid #ffdea273;
  background: #ffffff13;
  border-radius: 30px;
  padding: 6px 10px;
}
.featured-logo {
  position: absolute;
  right: 35px;
  top: 55px;
  width: 125px;
  height: 85px;
  object-fit: contain;
}
.hero h1 {
  font-size: clamp(30px, 3.6vw, 62px);
  font-weight: 800;
  letter-spacing: -2px;
  color: #fff0c4;
  margin: 13px 0 10px;
  font-variant-numeric: tabular-nums;
}
.hero-live {
  align-items: center;
  gap: 30px !important;
}
.hero-live > span:first-child {
  border-right: 1px solid #ffffff40;
  padding-right: 28px;
}
.hero-live > span > b {
  font-size: 17px;
}
.hero-live #hero-countdown {
  display: flex;
  gap: 6px;
  margin-top: 5px;
}
.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 42px;
  border-radius: 7px;
  background: #ffffff12;
  padding: 4px 7px;
}
.time-unit > b {
  font-size: 21px !important;
  line-height: 1.1;
  margin: 0 !important;
}
.time-unit > small {
  font-size: 9px;
  opacity: 0.8;
}
.hero-actions {
  margin-top: 13px;
}
.hero-actions a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 9px;
}
.hero-clock-note {
  display: block;
  margin-top: 9px;
  opacity: 0.8;
  font-size: 10px;
}
.today {
  padding: 21px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.today h2 {
  font-size: 19px;
  margin-bottom: 15px;
}
.today-row {
  padding: 10px;
  margin-bottom: 8px;
  background: #f6f7fb;
  border-radius: 9px;
}
.today-row img {
  width: 55px;
  height: 30px;
}
.today > a {
  margin-top: 9px;
  min-height: 30px;
}
.heading {
  margin: 22px 0 13px;
}
.heading h2 {
  font-size: 26px;
  letter-spacing: -0.6px;
}
.workspace {
  gap: 20px;
  grid-template-columns: minmax(0, 2.6fr) minmax(310px, 1fr);
}
.product-grid {
  gap: 14px;
}
.product {
  min-height: 239px;
  border-radius: 15px;
  padding: 18px;
  border: 1px solid #e2e7ef;
  box-shadow: 0 2px 4px #18283e04;
}
.product-logo {
  width: 106px;
  height: 62px;
}
.product.mega {
  background: linear-gradient(125deg, #fff1eb, #ffe7e7);
  border-color: #f5c5bd;
}
.product.mega .amount {
  color: #cf202c;
}
.product.power {
  background: linear-gradient(120deg, #b81031, #860521);
  border-color: #be2843;
}
.product.power .amount {
  color: #ffdf8e;
}
.product.keno {
  background: linear-gradient(125deg, #e7f7ec, #bde8c9) !important;
  border-color: #9fd2b0;
}
.product.keno .timer {
  color: #14593a;
}
.product.keno .prize-label {
  color: #aa4406;
}
.product.keno .chips a {
  background: #fff7e7;
  color: #874015;
  border-color: #ffe0a7;
}
.product.max3d {
  background: linear-gradient(130deg, #edf5ff, #d9e9ff);
  border-color: #b6ccef;
}
.product.max3d .amount {
  color: #2057a6;
}
.product.max3d .chips a {
  color: #2157a0;
  background: #ffffffb8;
}
.product.lotto {
  background: linear-gradient(125deg, #f0faed, #def1d7);
  border-color: #bfdcb1;
}
.product.lotto .amount {
  color: #286b25;
}
.product.bingo {
  background: linear-gradient(125deg, #fff7e8, #ffe9c9);
  border-color: #f2d2a1;
}
.amount {
  font-size: clamp(19px, 1.8vw, 32px);
  line-height: 1.2;
  letter-spacing: -1px;
}
.status {
  font-size: 10px;
  padding: 6px 8px;
}
.detail {
  border-radius: 16px;
  padding: 19px;
  box-shadow: 0 6px 20px #17345406;
}
.detail-jp {
  background: linear-gradient(120deg, #bb002c, #e60039);
  padding: 16px;
}
.detail-jp strong {
  font-size: clamp(24px, 2.1vw, 37px);
}
.detail .info-row {
  padding: 11px 0;
}
.primary {
  min-height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.quick-checker {
  margin-top: 18px;
  border-radius: 15px;
  padding: 17px 20px;
  box-shadow: 0 4px 16px #142c4a05;
  gap: 10px;
}
.quick-checker > strong {
  font-size: 18px;
  min-width: 140px;
}
.quick-checker > strong small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #718096;
  margin-bottom: 5px;
}
.quick-checker select,
.quick-checker input {
  background: #f8f9fc;
  border-color: #dfe4ed;
  min-height: 46px;
}
.quick-checker button {
  min-height: 46px;
  font-weight: 650;
}
.quick-checker .quick-numbers {
  min-width: 220px;
}
#quick-result:not(:empty) {
  width: 100%;
  padding: 18px;
  background: #f5f8fc;
  border: 1px solid #dde6f0;
  border-radius: 10px;
  margin-top: 5px;
}
.quick-result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.quick-result-head span {
  font-size: 12px;
  color: #627086;
}
.checked-balls {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.checked-balls span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid #d5ddec;
  color: #52617a;
  font-weight: 700;
}
.checked-balls .match {
  background: #e70035;
  color: white;
  border-color: #e70035;
}
#quick-result p {
  font-size: 12px;
  color: #52617a;
}
#quick-result > a {
  font-size: 14px;
  color: #bd0030;
  font-weight: 650;
}
.utilities > a {
  min-height: 76px;
  padding: 14px;
  border-radius: 12px;
}
.utilities b {
  font-size: 14px;
}
.utilities span {
  font-size: 12px;
  line-height: 1.45;
}
.news,
.guide {
  border-radius: 15px;
}
.trust-row {
  margin: 22px 0 10px;
  gap: 16px;
}
.trust-row a {
  padding: 21px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #f9fbfd);
}
.trust-row small {
  font-size: 10px;
  color: #6c778a;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 11px;
}
.trust-row b {
  font-size: 17px;
  letter-spacing: -0.3px;
}
.trust-row span {
  font-size: 13px;
  line-height: 1.55;
  max-width: 370px;
}
.responsible-bar {
  background: #15223a;
  color: #f1f4fa;
  border: 0;
  box-shadow: 0 -4px 20px #15223a16;
}
.responsible-bar a,
.responsible-bar button {
  color: #fff;
}
.responsible-bar > span {
  color: #c2cddd;
}
.data-lenses {
  gap: 16px;
}
.data-lenses article {
  border: 1px solid #e2e7ef;
  border-radius: 13px;
  background: white;
  padding: 20px;
}
.data-lenses article:first-child {
  border-top: 3px solid #e94268;
}
.data-lenses article:nth-child(2) {
  border-top: 3px solid #4f7acb;
}
.data-lenses article:last-child {
  border-top: 3px solid #2c977d;
}
.data-lenses h3 {
  margin: 0 0 18px !important;
  font-size: 16px !important;
}
.data-lenses .lens-row {
  display: grid;
  grid-template-columns: 28px 1fr 45px;
  gap: 8px;
  align-items: center;
}
.lens-row > i {
  height: 7px;
  background: linear-gradient(90deg, #e94268 var(--fill), #f0f2f6 var(--fill));
  border-radius: 10px;
}
.data-lenses article:nth-child(2) .lens-row > i {
  background: linear-gradient(90deg, #4f7acb var(--fill), #f0f2f6 var(--fill));
}
.data-lenses p span {
  font-size: 12px;
}
.audit-panel {
  border-radius: 16px;
  box-shadow: 0 3px 12px #16294204;
}
.audit-table td {
  padding: 14px 12px;
}
.audit-table tbody tr:hover {
  background: #fbf4f6;
}
.audit-table td button {
  min-height: 40px;
}
.audit-next {
  background: linear-gradient(130deg, #fff3f6, #fff);
  padding: 24px;
}
.audit-controls button,
.audit-controls input,
.audit-controls select {
  min-height: 44px;
}
.selection-shortcuts {
  border-bottom: 1px solid #f0d9df;
  padding: 12px 3.5%;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 14px #1b294708;
}
.selection-shortcuts span {
  font-size: 13px;
  color: #5a6374;
  margin-right: auto;
}
.selection-shortcuts button {
  border-radius: 9px;
  font-size: 14px;
}
.dfooter {
  padding-bottom: 25px;
}
@media (max-width: 1200px) {
  .featured-logo {
    width: 86px;
    right: 20px;
    top: 20px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .amount {
    font-size: 24px;
  }
  .quick-checker > .quick-period {
    flex: 1;
  }
  .today h2 {
    font-size: 17px;
  }
}
@media (max-width: 760px) {
  .dh {
    padding: 12px;
  }
  .hero-row,
  .workspace {
    grid-template-columns: 1fr;
  }
  .hero,
  .hero > div {
    min-height: 265px;
  }
  .hero > div {
    padding: 22px;
  }
  .hero h1 {
    font-size: clamp(28px, 7vw, 43px);
    letter-spacing: -1.5px;
    margin-top: 28px;
  }
  .featured-logo {
    width: 65px;
    height: 45px;
    top: 14px;
    right: 14px;
  }
  .hero-label {
    gap: 6px;
    font-size: 9px;
  }
  .hero-actions a {
    flex: 1;
    padding: 10px;
    font-size: 14px;
  }
  .today {
    display: none;
  }
  .hero-live {
    gap: 18px !important;
  }
  .hero-live > span:first-child {
    padding-right: 16px;
  }
  .heading h2 {
    font-size: 23px;
  }
  .product {
    padding: 13px;
    min-height: 240px;
  }
  .product-logo {
    width: 89px;
    height: 50px;
  }
  .product .amount {
    font-size: clamp(16px, 4.3vw, 27px);
    letter-spacing: -1px;
  }
  .status {
    font-size: 9px;
  }
  .quick-checker {
    padding: 16px;
    gap: 9px;
  }
  .quick-checker > strong {
    width: 100%;
    margin-bottom: 3px;
  }
  .quick-checker > label {
    flex: 1;
    min-width: 0;
  }
  .quick-checker .quick-numbers {
    flex-basis: 100%;
    order: 2;
  }
  .quick-checker > button {
    order: 3;
    flex: 1;
  }
  #quick-result,
  #quick-error {
    order: 4;
  }
  .quick-checker select {
    width: 100%;
    max-width: 100%;
    font-size: 12px;
  }
  .quick-result-head {
    align-items: start;
    flex-direction: column;
  }
  .trust-row {
    grid-template-columns: 1fr;
  }
  .data-lenses {
    grid-template-columns: 1fr;
  }
  .selection-shortcuts {
    position: static;
    gap: 6px;
  }
  .selection-shortcuts > span {
    width: 100%;
  }
  .selection-shortcuts button {
    padding: 9px;
    font-size: 12px;
  }
  .detail-jp strong {
    font-size: 32px;
  }
  .responsible-bar {
    padding: 8px;
  }
  .responsible-bar a,
  .responsible-bar button {
    min-height: 36px;
  }
  .dh .product .meta,
  .dh .product .closing {
    font-size: 12px !important;
  }
}
@media (min-width: 1500px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero h1 {
    font-size: 54px;
  }
  .hero,
  .hero > div {
    min-height: 265px;
  }
  .product {
    min-height: 224px;
  }
  .product .meta,
  .product .closing {
    font-size: 12px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product:hover {
    transform: none;
  }
}
/* Compact hero: override the 500px legacy carousel height. */
body[data-page='home'] .dh .hero {
  height: 206px !important;
  min-height: 206px !important;
  max-height: 206px !important;
  aspect-ratio: auto;
  padding: 0;
  background: linear-gradient(110deg, #8b0623, #be0934 60%, #e32640) !important;
  display: block;
  isolation: isolate;
}
body[data-page='home'] .dh .hero > .hero-copy {
  height: 206px;
  min-height: 0 !important;
  max-width: 65% !important;
  width: 65%;
  padding: 16px 22px !important;
  background: none !important;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body[data-page='home'] .dh .hero h1 {
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.08;
  margin: 8px 0;
  letter-spacing: -1.4px;
}
body[data-page='home'] .dh .hero .featured-logo {
  display: none;
}
body[data-page='home'] .dh .hero-label {
  font-size: 10px;
  gap: 9px;
}
body[data-page='home'] .dh .featured-pill {
  padding: 4px 8px;
}
body[data-page='home'] .dh .hero-live {
  gap: 18px !important;
}
body[data-page='home'] .dh .hero-live > span {
  font-size: 10px;
}
body[data-page='home'] .dh .hero-live > span > b {
  font-size: 14px;
}
body[data-page='home'] .dh .time-unit {
  min-width: 32px;
  padding: 3px 5px;
}
body[data-page='home'] .dh .time-unit > b {
  font-size: 17px !important;
}
body[data-page='home'] .dh .hero-actions {
  margin-top: 8px;
  gap: 8px;
}
body[data-page='home'] .dh .hero-actions a {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13px;
}
body[data-page='home'] .dh .hero-clock-note {
  font-size: 9px;
  margin-top: 5px;
}
body[data-page='home'] .dh .hero > .hero-art {
  position: absolute;
  inset: 0 8px 0 auto;
  width: 34%;
  height: 100%;
  min-height: 0 !important;
  padding: 0 !important;
  background: none !important;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.hero-mascot {
  height: 181px;
  width: 52%;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: 50% 90%;
  animation: mascot-sway 3.6s ease-in-out infinite;
}
.hero-machine {
  width: 48%;
  height: 155px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-machine img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: machine-roll 4s ease-in-out infinite;
  transform-origin: 50% 55%;
}
.hero-machine:after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff4bf;
  box-shadow: 0 0 12px #ffdf7a;
  animation: draw-orbit 2.4s linear infinite;
}
.hero-motion-toggle {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 4;
  background: #ffffff20;
  color: white;
  border: 1px solid #ffffff50;
  border-radius: 20px;
  font-size: 10px;
  padding: 4px 9px;
  min-height: 28px;
  cursor: pointer;
}
.hero.motion-paused .hero-mascot,
.hero.motion-paused .hero-machine img,
.hero.motion-paused .hero-machine:after {
  animation-play-state: paused;
}
@keyframes mascot-sway {
  0%,
  100% {
    transform: rotate(-3deg) translateY(0);
  }
  50% {
    transform: rotate(3deg) translateY(-4px);
  }
}
@keyframes machine-roll {
  0%,
  100% {
    transform: rotate(-7deg);
  }
  50% {
    transform: rotate(7deg);
  }
}
@keyframes draw-orbit {
  0% {
    transform: translate(-24px, -16px);
  }
  25% {
    transform: translate(23px, -12px);
  }
  50% {
    transform: translate(24px, 18px);
  }
  75% {
    transform: translate(-20px, 21px);
  }
  100% {
    transform: translate(-24px, -16px);
  }
}
body[data-page='home'] .dh .today {
  height: 206px;
  min-height: 0;
  padding: 14px 18px;
  justify-content: start;
  overflow: auto;
}
body[data-page='home'] .dh .today h2 {
  font-size: 17px;
  margin: 0 0 8px;
}
body[data-page='home'] .dh .today-row {
  padding: 5px 8px;
  margin-bottom: 5px;
  font-size: 12px;
}
body[data-page='home'] .dh .today > a {
  font-size: 11px;
  margin-top: auto;
}
body[data-page='home'] .dh .quick-checker {
  margin-top: 12px;
  padding: 10px 14px;
}
body[data-page='home'] .dh .heading {
  margin: 14px 0 10px;
}
@media (max-width: 760px) {
  body[data-page='home'] .dh .hero {
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
  }
  body[data-page='home'] .dh .hero > .hero-copy {
    height: 210px;
    width: 70%;
    max-width: 70% !important;
    padding: 14px !important;
  }
  body[data-page='home'] .dh .hero h1 {
    font-size: clamp(23px, 5.9vw, 38px);
    letter-spacing: -1px;
  }
  body[data-page='home'] .dh .hero > .hero-art {
    width: 29%;
    right: 3px;
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }
  .hero-mascot {
    height: 120px;
    width: 100%;
  }
  .hero-machine {
    height: 66px;
    width: 86%;
    margin-top: -4px;
  }
  body[data-page='home'] .dh .hero-label > span:last-child {
    display: none;
  }
  body[data-page='home'] .dh .hero-live {
    gap: 8px !important;
  }
  body[data-page='home'] .dh .hero-live > span:first-child {
    padding-right: 8px;
  }
  body[data-page='home'] .dh .hero-live > span > b {
    font-size: 11px;
  }
  body[data-page='home'] .dh .hero-actions a {
    font-size: 11px;
    padding: 8px;
    min-height: 40px;
    white-space: nowrap;
  }
  .hero-motion-toggle {
    font-size: 8px;
    right: 4px;
    bottom: 5px;
    padding: 3px 6px;
  }
  body[data-page='home'] .dh .hero-clock-note {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mascot,
  .hero-machine img,
  .hero-machine:after {
    animation: none !important;
  }
}
/* Final campaign composition — product logos and full prize values remain live text. */
body[data-page='home'] .dh .hero {
  background:
    linear-gradient(105deg, #73041aed, #a0002dc9 65%, #b4102e85),
    url('../img/brand/home-power-background.webp') center/cover !important;
  height: 222px !important;
  min-height: 222px !important;
  max-height: 222px !important;
  border: 1px solid #e8bc674d;
}
body[data-page='home'] .dh .hero[data-featured='mega'] {
  background:
    linear-gradient(100deg, #950c20ef, #b7193bc9 60%, #d3263180),
    url('../img/brand/home-mega-background.webp') center/cover !important;
}
body[data-page='home'] .dh .hero[data-featured='lotto'] {
  background:
    linear-gradient(100deg, #145a33f5, #318444d9 65%, #439b5466),
    url('../img/brand/home-lotto-background.webp') center/cover !important;
}
body[data-page='home'] .dh .hero > .hero-copy {
  height: 222px;
  padding: 12px 28px 32px !important;
  max-width: 69% !important;
  width: 69%;
  justify-content: center;
}
body[data-page='home'] .dh .hero .hero-label {
  padding-left: 86px;
  min-height: 30px;
  align-items: center;
}
body[data-page='home'] .dh .hero .featured-logo {
  display: block;
  top: 12px;
  left: 26px;
  right: auto;
  height: 42px;
  width: 72px;
  object-fit: contain;
}
body[data-page='home'] .dh .hero .featured-pill {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(110deg, #ffeeb0, #cda449);
  color: #5a2b11;
  border: 1px solid #ffefc2;
  padding: 5px 14px;
  text-shadow: 0 1px #ffffff80;
}
body[data-page='home'] .dh .hero h1 {
  font-family: var(--app-font);
  font-weight: 900;
  font-size: clamp(30px, 3.3vw, 55px);
  color: #ffe6a0;
  text-shadow:
    0 2px 0 #a27827,
    0 4px 0 #5e310e,
    0 7px 13px #31001055;
  letter-spacing: -1.8px;
  margin: 5px 0 10px;
  line-height: 1.15;
}
body[data-page='home'] .dh .hero > .hero-art {
  right: 16px;
  width: 29%;
  filter: drop-shadow(0 8px 14px #47001433);
}
.hero-mascot {
  height: 192px;
  width: 61%;
  animation: mascot-sway 3s ease-in-out infinite;
}
.hero-machine {
  width: 39%;
  height: 146px;
  margin-left: -6px;
  margin-top: 18px;
}
.hero-machine img {
  animation: machine-roll 2.6s ease-in-out infinite;
}
.jackpot-slides {
  position: absolute;
  left: 28px;
  bottom: 7px;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.jackpot-slides button {
  border: 1px solid #ffffff45;
  background: #ffffff13;
  color: #fff;
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 10px;
  min-height: 25px;
  cursor: pointer;
}
.jackpot-slides button[aria-pressed='true'] {
  background: #ffedba;
  color: #713e15;
  border-color: #ffdf91;
  font-weight: 800;
}
body[data-page='home'] .dh .hero-clock-note {
  display: none;
}
.hero-motion-toggle {
  right: 12px;
  bottom: 7px;
  font-size: 9px;
  min-height: 25px;
}
body[data-page='home'] .dh .today {
  height: 222px;
}
body[data-page='home'] .dh .product-grid {
  align-items: start;
  grid-auto-rows: auto;
  gap: 12px;
}
body[data-page='home'] .dh .product {
  height: 224px !important;
  min-height: 224px !important;
  max-height: 224px !important;
  padding: 13px 15px;
  display: flex;
  isolation: isolate;
}
body[data-page='home'] .dh .product > *:not(.card-watermark) {
  position: relative;
  z-index: 1;
}
.card-watermark {
  position: absolute;
  z-index: 0;
  width: 150px;
  height: 130px;
  object-fit: contain;
  right: -20px;
  bottom: 10px;
  opacity: 0.095;
  transform: rotate(-15deg);
  pointer-events: none;
}
body[data-page='home'] .dh .product.power {
  background:
    linear-gradient(110deg, #a30025f5, #9b1023dc),
    url('../img/brand/home-power-background.webp') right center/cover;
}
body[data-page='home'] .dh .product.mega {
  background:
    linear-gradient(110deg, #fff2ecef, #ffe5e5e8),
    url('../img/brand/home-mega-background.webp') right center/cover;
}
body[data-page='home'] .dh .product.lotto {
  background:
    linear-gradient(110deg, #effbece8, #deeed8e8),
    url('../img/brand/home-lotto-background.webp') right center/cover;
}
body[data-page='home'] .dh .product .card-top {
  margin-bottom: 5px;
  min-height: 52px;
}
.product-logo {
  width: 110px;
  height: 53px;
}
body[data-page='home'] .dh .product .amount {
  font-weight: 900;
  font-size: clamp(20px, 1.85vw, 33px);
  margin: 3px 0 6px;
  letter-spacing: -1px;
}
body[data-page='home'] .dh .product .meta {
  margin-bottom: 4px;
  font-size: 12px !important;
}
body[data-page='home'] .dh .product .closing {
  font-size: 11px !important;
}
body[data-page='home'] .dh .product .card-links {
  padding-top: 6px;
  margin-top: auto;
  min-height: 24px;
  border-top: 1px solid #75829720;
  gap: 17px;
}
body[data-page='home'] .dh .product.power .card-links {
  border-color: #ffffff35;
}
.product .chips {
  margin: 6px 0;
}
.product .timer {
  font-size: 28px;
  line-height: 1.1;
}
.product.bingo p {
  font-size: 13px;
  line-height: 1.4;
  margin: 8px 0;
}
.product.bingo:after {
  content: '';
  position: absolute;
  right: 14px;
  bottom: 40px;
  width: 98px;
  height: 98px;
  background: url('../img/brand/bingo-thantai.webp') center/contain no-repeat;
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}
body[data-page='home'] .dh .utilities > a:nth-child(2) {
  background: linear-gradient(105deg, #fff4dc, #fff);
  position: relative;
  overflow: hidden;
  border-color: #efd4a0;
}
.utilities > a:nth-child(2) img {
  width: 66px;
  height: 61px;
  animation: mascot-sway 4s ease-in-out infinite;
  transform-origin: bottom;
}
.utilities > a:nth-child(2):after {
  content: '✦';
  position: absolute;
  right: 12px;
  top: 8px;
  color: #d2a03e;
  font-size: 22px;
  animation: soft-glow 2.5s ease-in-out infinite;
}
.utilities > a:nth-child(2) b {
  color: #9e5108;
}
.utilities > a:nth-child(2) span {
  color: #7d684b;
}
@keyframes soft-glow {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}
@media (max-width: 760px) {
  body[data-page='home'] .dh .hero,
  body[data-page='home'] .dh .hero > .hero-copy {
    height: 226px !important;
    min-height: 226px !important;
    max-height: 226px !important;
  }
  body[data-page='home'] .dh .hero > .hero-copy {
    width: 73%;
    max-width: 73% !important;
    padding: 12px 12px 31px !important;
  }
  body[data-page='home'] .dh .hero .featured-logo {
    width: 47px;
    height: 34px;
    left: 12px;
    top: 10px;
  }
  body[data-page='home'] .dh .hero .hero-label {
    padding-left: 52px;
  }
  body[data-page='home'] .dh .hero .featured-pill {
    font-size: 10px;
    padding: 5px 7px;
  }
  body[data-page='home'] .dh .hero h1 {
    font-size: clamp(22px, 5.6vw, 37px);
    letter-spacing: -1px;
  }
  body[data-page='home'] .dh .hero > .hero-art {
    right: 1px;
    width: 26%;
    flex-direction: column;
  }
  .hero-mascot {
    width: 100%;
    height: 126px;
  }
  .hero-machine {
    width: 80%;
    height: 60px;
    margin: 0;
  }
  .jackpot-slides {
    left: 12px;
    gap: 4px;
  }
  .jackpot-slides button {
    font-size: 8px;
    padding: 4px 7px;
  }
  .hero-motion-toggle {
    font-size: 8px;
    right: 5px;
    padding: 3px 5px;
  }
  body[data-page='home'] .dh .product {
    height: 235px !important;
    min-height: 235px !important;
    max-height: 235px !important;
    padding: 12px;
  }
  .product-logo {
    width: 84px;
    height: 44px;
  }
  body[data-page='home'] .dh .product .amount {
    font-size: clamp(16px, 4.25vw, 25px);
  }
  .card-watermark {
    width: 100px;
    height: 90px;
  }
  .product.bingo:after {
    width: 65px;
    height: 65px;
  }
  .product .chips a {
    min-height: 30px;
    display: grid;
    place-items: center;
  }
  .product .card-links {
    font-size: 11px;
  }
  .product .status {
    font-size: 8px;
  }
  .product .card-top {
    flex-wrap: wrap;
  }
  .utilities > a:nth-child(2) img {
    height: 54px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mascot,
  .hero-machine img,
  .utilities > a:nth-child(2) img,
  .utilities > a:nth-child(2):after {
    animation: none !important;
  }
}

/* Larger brand mark at the leading edge; jackpot occupies central space. */
@media (min-width: 761px) {
  body[data-page='home'] .dh .hero > .hero-copy {
    width: 77%;
    max-width: 77% !important;
    padding: 16px 18px 32px 200px !important;
    justify-content: center;
  }
  body[data-page='home'] .dh .hero .featured-logo {
    left: 24px;
    top: 36px;
    width: 160px;
    height: 128px;
    object-fit: contain;
    filter: drop-shadow(0 4px 5px #37000030);
  }
  body[data-page='home'] .dh .hero .hero-label {
    padding-left: 0;
  }
  body[data-page='home'] .dh .hero .featured-pill {
    display: none;
  }
  body[data-page='home'] .dh .hero h1 {
    font-size: clamp(36px, 4.5vw, 78px);
    white-space: nowrap;
    letter-spacing: -2px;
    margin: 5px 0 12px;
  }
  body[data-page='home'] .dh .hero > .hero-art {
    width: 23%;
  }
  body[data-page='home'] .dh .hero-live {
    gap: 18px !important;
  }
  body[data-page='home'] .dh .hero-actions {
    position: absolute;
    left: 24px;
    bottom: 34px;
    gap: 6px;
    flex-direction: column;
  }
  body[data-page='home'] .dh .hero-actions a {
    min-height: 30px;
    padding: 5px 13px;
    font-size: 12px;
  }
  body[data-page='home'] .dh .hero .featured-logo {
    top: 10px;
    height: 105px;
  }
  body[data-page='home'] .dh .product .product-logo {
    width: 140px;
    height: 60px;
  }
  body[data-page='home'] .dh .product .amount {
    font-size: clamp(23px, 2.1vw, 37px);
    margin: 6px 0;
    letter-spacing: -1px;
  }
}
@media (max-width: 760px) {
  body[data-page='home'] .dh .hero .featured-logo {
    width: 82px;
    height: 48px;
    top: 8px;
  }
  body[data-page='home'] .dh .hero .hero-label {
    padding-left: 88px;
    min-height: 42px;
  }
  body[data-page='home'] .dh .hero .featured-pill {
    display: none;
  }
  body[data-page='home'] .dh .hero h1 {
    font-size: clamp(23px, 5.8vw, 40px);
  }
}

/* Product identity and consistent upcoming draw information. */
body[data-page='home'] .dh .product {
  height: auto !important;
  min-height: 280px !important;
  max-height: none !important;
  padding: 14px 16px !important;
  display: flex;
  flex-direction: column;
  gap: 0;
  color: #fff;
}
body[data-page='home'] .dh .product.mega {
  background:
    linear-gradient(110deg, #b90923ed, #eb2c3899),
    url('../img/brand/home-mega-background.webp') center/cover !important;
  border-color: #e02b39;
}
body[data-page='home'] .dh .product.power {
  background:
    linear-gradient(110deg, #920027ed, #be092f77),
    url('../img/brand/home-power-background.webp') center/cover !important;
  border-color: #af1032;
}
body[data-page='home'] .dh .product.lotto {
  background:
    linear-gradient(110deg, #176d2ded, #46993188),
    url('../img/brand/home-lotto-background.webp') center/cover !important;
  border-color: #398735;
}
body[data-page='home'] .dh .product.keno {
  background: linear-gradient(120deg, #087342, #27a35e) !important;
  border-color: #108d50;
}
body[data-page='home'] .dh .product.bingo {
  background: linear-gradient(120deg, #cf4c00, #f7941d) !important;
  border-color: #ea7917;
}
body[data-page='home'] .dh .product.max3d {
  background: linear-gradient(120deg, #ad087c, #e530a8) !important;
  border-color: #d6249e;
}
body[data-page='home'] .dh .product .amount {
  color: #fff2bc;
  font-size: clamp(22px, 2vw, 36px);
  margin: 2px 0 8px;
  line-height: 1.2;
}
body[data-page='home'] .dh .product .prize-label {
  color: #fff;
  font-size: 13px;
  margin: 0;
}
body[data-page='home'] .dh .product .card-top {
  min-height: 59px;
  margin-bottom: 4px;
}
body[data-page='home'] .dh .product .status {
  background: #ffffffeb;
  color: #92212d;
  font-size: 10px;
}
.draw-info {
  padding: 8px 10px;
  background: #00000019;
  border: 1px solid #ffffff30;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}
.round-head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.round-head b {
  font-size: 14px;
}
.round-head small {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.85;
}
.draw-info time {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin: 4px 0;
}
.round-clock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.round-clock b {
  font-size: 20px;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  color: #fff3bf;
}
body[data-page='home'] .dh .product .card-links {
  margin-top: auto;
  padding-top: 7px;
  border-color: #ffffff38;
  color: white;
}
body[data-page='home'] .dh .product .card-links a {
  color: white;
}
body[data-page='home'] .dh .product .chips {
  margin: 7px 0 0;
  gap: 5px;
}
body[data-page='home'] .dh .product .chips a {
  min-height: 27px;
  padding: 4px 7px;
  background: #fff;
  color: #4c2542;
  font-size: 12px;
}
.product.bingo:after {
  opacity: 0.2;
  pointer-events: none;
}
.card-watermark {
  opacity: 0.08;
}
@media (max-width: 760px) {
  body[data-page='home'] .dh .product {
    min-height: 290px !important;
  }
  .round-head {
    flex-wrap: wrap;
  }
  .round-head small {
    margin-left: 0;
  }
  .draw-info time {
    font-size: 13px;
  }
}
/* Place the muted campaign scene in the middle, clear behind the mascot. */
body[data-page='home'] .dh .hero {
  background: linear-gradient(110deg, #82091f, #ac1232 62%, #820b24) !important;
  isolation: isolate;
}
body[data-page='home'] .dh .hero[data-featured='mega'] {
  background: linear-gradient(110deg, #9c1024, #bb1835 62%, #920f29) !important;
}
body[data-page='home'] .dh .hero[data-featured='lotto'] {
  background: linear-gradient(110deg, #155c30, #268041 62%, #145a33) !important;
}
body[data-page='home'] .dh .hero:before {
  content: '';
  position: absolute;
  inset: 0 auto 0 8%;
  width: 65%;
  background: url('../img/brand/home-power-background.webp') right center/cover no-repeat;
  opacity: 0.2;
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
  pointer-events: none;
  z-index: 0;
}
body[data-page='home'] .dh .hero[data-featured='mega']:before {
  background-image: url('../img/brand/home-mega-background.webp');
}
body[data-page='home'] .dh .hero[data-featured='lotto']:before {
  background-image: url('../img/brand/home-lotto-background.webp');
}
body[data-page='home'] .dh .hero h1 {
  color: #efb62f;
  background: linear-gradient(180deg, #fff1a3 0%, #ffd35a 24%, #e7a51a 49%, #ffde70 53%, #d99711 78%, #ffcf4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.6px #ffdc70;
  text-shadow: none;
  filter: drop-shadow(0 2px 0 #95600c) drop-shadow(0 3px 0 #704008) drop-shadow(0 6px 5px #42081570);
  padding-bottom: 5px;
}
@media (max-width: 760px) {
  body[data-page='home'] .dh .hero:before {
    left: 0;
    width: 75%;
  }
  body[data-page='home'] .dh .hero h1 {
    -webkit-text-stroke: 0.3px #ffdc70;
  }
}
