.lotto-special-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.lotto-special-row>.lotto-section{min-width:0}
.lotto-special-row .lotto-grid{grid-template-columns:minmax(0,1fr)}
.lotto-primary-row>.lotto-section{min-width:0}
.lotto-secondary-row>.lotto-section{min-width:0}
@media(min-width:1200px){
  .lotto-primary-row{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);gap:20px}
  body .lotto-primary-row #thai .lotto-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  body .lotto-primary-row #lao .lotto-grid{grid-template-columns:minmax(0,1fr)}
  .lotto-secondary-row{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);gap:20px}
  body .lotto-secondary-row #hanoi .lotto-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  body .lotto-secondary-row #yeekee .lotto-grid{grid-template-columns:minmax(0,1fr)}
}
@media(min-width:1200px) and (max-width:1500px){
  body .lotto-primary-row .lotto-card{padding:12px;gap:9px}
  body .lotto-primary-row .lotto-card img{width:46px;height:46px}
  body .lotto-primary-row .lotto-card strong{font-size:14px}
  body .lotto-secondary-row .lotto-card{padding:12px;gap:9px}
  body .lotto-secondary-row .lotto-card img{width:46px;height:46px}
  body .lotto-secondary-row .lotto-card strong{font-size:14px}
}
/* Slow emerald and gold shimmer on category navigation. */
:is(.category-nav .category,.side-nav a[href*="#"]){
  position:relative;isolation:isolate;overflow:hidden;
  --glow-delay:0s;
  animation:mm-category-glow 5.2s ease-in-out var(--glow-delay) infinite;
}
:is(.category-nav .category,.side-nav a[href*="#"])::before{
  content:"";position:absolute;z-index:2;pointer-events:none;inset:-70% -100%;
  background:linear-gradient(112deg,transparent 38%,#e9c66800 42%,#ffe5a14d 47%,#fff6ce99 50%,#e9c66833 53%,transparent 59%);
  transform:translateX(-45%);
  animation:mm-category-sheen 6.5s ease-in-out var(--glow-delay) infinite;
}
:is(.category-nav .category,.side-nav a[href*="#"])::after{
  content:"";position:absolute;z-index:3;pointer-events:none;inset:0;border-radius:inherit;
  background:radial-gradient(ellipse 1px 6px at 84% 20%,#fff8d4 0%,#fff1ad99 42%,transparent 100%),radial-gradient(ellipse 6px 1px at 84% 20%,#fff8d4 0%,#fff1ad99 42%,transparent 100%),radial-gradient(ellipse 1px 4px at 15% 79%,#ffe9a9 0%,transparent 100%),radial-gradient(ellipse 4px 1px at 15% 79%,#ffe9a9 0%,transparent 100%);
  animation:mm-category-sparkle 4.5s ease-in-out var(--glow-delay) infinite;
}
.category-nav .category:nth-child(2n){--glow-delay:-2.1s}
.category-nav .category:nth-child(3n){--glow-delay:-4.2s}
.side-nav a:nth-child(2n){--glow-delay:-1.4s}
.side-nav a:nth-child(3n){--glow-delay:-3.8s}
@keyframes mm-category-sheen{0%,12%{transform:translateX(-45%);opacity:0}20%{opacity:.9}65%{opacity:.9}78%,100%{transform:translateX(45%);opacity:0}}
@keyframes mm-category-sparkle{0%,100%{opacity:.18}50%{opacity:1}}
@keyframes mm-category-glow{0%,100%{border-color:#cba44c;box-shadow:inset 0 0 14px #13a66a18,0 0 6px #e7bf5010}50%{border-color:#ffe6a0;box-shadow:inset 0 0 24px #25db9338,0 0 15px #e7bf5045}}
body .category.active{outline:2px solid #e4bc58;outline-offset:2px}
@media(prefers-reduced-motion:reduce){
  :is(.category-nav .category,.side-nav a[href*="#"]),:is(.category-nav .category,.side-nav a[href*="#"])::before,:is(.category-nav .category,.side-nav a[href*="#"])::after{animation:none!important}
}
@media(min-width:1200px){
  body .category-nav{grid-template-columns:repeat(8,minmax(0,1fr));gap:12px;margin-bottom:26px}
  body .category{height:126px;border-radius:17px;font-size:16px}
  body .category img{width:62px;height:62px}
  body .category.active span{padding:2px 9px;white-space:nowrap}
}
@media(min-width:701px) and (max-width:1199px){
  body .category-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  body .category{height:116px;font-size:15px}
  body .category img{width:58px;height:58px}
}
@media(max-width:700px){
  body .category-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:8px 2px 18px}
  body .category{height:76px;border-radius:13px;font-size:12px;line-height:1.35;padding:6px 2px;gap:2px}
  body .category img{width:40px;height:40px;margin:0}
  body .category.active{border-width:2px;box-shadow:0 0 0 2px #c6a243}
  body .category.active span{padding:1px 5px;white-space:nowrap}
  body .lotto-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .lotto-grid>.lotto-card:last-child:nth-child(odd){grid-column:1/-1}
  .lotto-special-row{grid-template-columns:minmax(0,1fr);gap:0}
  body .lotto-special-row .lotto-grid{grid-template-columns:minmax(0,1fr)}
}
