/* Sạp lô tô đầu chợ — gam màu hội quê, dành riêng cho mini game lô tô.
   Scope #loto-modal keeps the other minigames and app shell unchanged. */
#loto-modal {
  background: rgba(33, 22, 15, .71);
  backdrop-filter: blur(7px);
}
#loto-modal .loto-paper {
  width: min(688px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
  padding: 97px 26px 19px;
  border: 5px solid #84502d;
  border-radius: 28px 28px 24px 24px;
  color: #56381f;
  background:
    radial-gradient(circle at 11% 22%, #fffaf17b 0 15%, transparent 42%),
    radial-gradient(circle at 100% 89%, #f4c27975 0 9%, transparent 40%),
    repeating-linear-gradient(0deg, #9f713208 0 2px, transparent 2px 23px),
    linear-gradient(140deg, #fff1cc 0%, #ffebbf 54%, #f4dca9 100%);
  box-shadow: 0 9px 0 #56321f, 0 20px 40px #1e0f089e, inset 0 0 0 5px #fff9dfba;
  scrollbar-width: thin;
  scrollbar-color: #c99c68 transparent;
}
#loto-modal .loto-paper::after {
  content: '';
  position: absolute;
  inset: 84px 9px 9px;
  border: 1px dashed #c6976340;
  border-radius: 13px;
  pointer-events: none;
  z-index: -1;
}
#loto-modal .loto-awning {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  gap: 1px;
  padding: 9px 16px;
  color: #fff4ce;
  text-shadow: 0 2px #954c37;
  font-size: 18px;
  background: repeating-linear-gradient(90deg, #bc5c49 0 49px, #f4d28e 49px 98px, #739354 98px 147px);
  border-bottom: 4px solid #9f612e;
  box-shadow: inset 0 4px #fff8d673, 0 4px 0 #6d3e261f;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 97% 100%, 93% 78%, 89% 100%, 85% 78%, 81% 100%, 77% 78%, 73% 100%, 69% 78%, 65% 100%, 61% 78%, 57% 100%, 53% 78%, 49% 100%, 45% 78%, 41% 100%, 37% 78%, 33% 100%, 29% 78%, 25% 100%, 21% 78%, 17% 100%, 13% 78%, 9% 100%, 5% 78%, 2% 100%, 0 78%);
}
#loto-modal .loto-sign {
  position: absolute;
  top: 21px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%) rotate(-1deg);
  min-width: 282px;
  padding: 9px 23px 7px;
  border: 3px solid #633c25;
  border-radius: 10px 12px 11px 10px;
  background: linear-gradient(155deg, #92542f, #683d2c);
  color: #ffecb5;
  font: 700 20px/1.15 Patrick, 'Segoe UI', Tahoma, sans-serif;
  white-space: nowrap;
  letter-spacing: 1.5px;
  text-align: center;
  box-shadow: inset 0 0 0 2px #cd9258, 0 5px 0 #412b22;
}
#loto-modal .loto-sign-flower { color: #f6c578; padding: 0 4px; }
#loto-modal .loto-close {
  top: 64px;
  right: 17px;
  z-index: 8;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 2px solid #a97049;
  border-radius: 50%;
  background: #fff5d8;
  box-shadow: 0 3px 0 #c4945c;
  font: 28px/1.15 Arial, sans-serif;
  color: #7c4930;
}
#loto-modal .loto-heading { margin-bottom: 13px; text-align: center; }
#loto-modal .loto-heading .book-eyebrow {
  display: inline-block;
  padding: 4px 13px;
  background: #f8daa08f;
  border-radius: 20px;
  font: 700 12px/1.25 'Segoe UI', Tahoma, sans-serif;
  letter-spacing: 2px;
  color: #7f5130;
}
#loto-modal .loto-heading h2 {
  margin: 6px auto 0;
  font-size: clamp(27px, 4vw, 39px);
  font-weight: 400;
  line-height: 1.15;
  color: #613924;
  text-shadow: 0 2px #fff8dc;
}
#loto-modal .loto-body { margin: 0; }
#loto-modal .loto-paper-footer {
  margin-top: 15px;
  font: 700 12px/1.25 'Segoe UI', Tahoma, sans-serif;
  letter-spacing: 2px;
  color: #765636;
  text-align: center;
  opacity: .75;
}
#loto-modal .loto-note {
  margin: 2px 0 13px;
  padding: 0 8px;
  color: #745138;
  font: 15px/1.5 'Segoe UI', Tahoma, sans-serif;
  text-align: center;
}
#loto-modal .loto-note b { color: #70442a; }
#loto-modal .loto-intro-note {
  padding: 13px 15px;
  border: 1.5px solid #d1a978;
  border-radius: 13px;
  background: #fff9eab8;
}
#loto-modal .loto-section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 2px 0;
  font: 800 12px/1.25 'Segoe UI', sans-serif;
  letter-spacing: 1.25px;
  color: #805532;
}
#loto-modal .loto-section-label span { font-weight: 600; letter-spacing: 0; font-size: 12px; color: #725737; }
#loto-modal .loto-stakes { margin: 10px 0 12px; gap: 10px; }
#loto-modal .loto-stakes button {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  padding: 9px 7px 10px;
  border: 2px solid #a67b4f;
  border-radius: 15px;
  background: linear-gradient(#fff9e6, #eedab6);
  box-shadow: 0 4px 0 #96643c8c, inset 0 0 0 2px #fff8e1ad;
  color: #69452f;
  transition: transform .15s ease, background .15s ease;
}
#loto-modal .loto-stakes button:nth-child(2) { border-color: #6c8850; background: linear-gradient(#f6f7d8, #deebbb); }
#loto-modal .loto-stakes button:nth-child(3) { border-color: #ad7349; background: linear-gradient(#ffe9c6, #f4c998); }
#loto-modal .loto-stakes button:hover:not(:disabled),
#loto-modal .loto-ticket:hover:not(:disabled) { transform: translateY(-3px); }
#loto-modal .loto-stake-icon { font: 28px/1.15 Georgia, serif; color: #8b9e55; }
#loto-modal .loto-stakes button b { font: 700 27px/1.15 Patrick, 'Segoe UI', sans-serif; }
#loto-modal .loto-stakes button small {
  font: 700 12px/1.25 'Segoe UI', sans-serif;
  letter-spacing: 1.25px;
  color: #775535;
}
#loto-modal .loto-stakes button:disabled { opacity: .45; filter: grayscale(.35); }
#loto-modal .loto-tickets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 15px 0 6px; }
#loto-modal .loto-ticket {
  min-width: 0;
  display: block;
  padding: 10px 9px 9px;
  border: 2px dashed #bb8751;
  border-radius: 13px;
  background: linear-gradient(#fffdf1, #f6e2b9);
  box-shadow: 0 5px 0 #b0804c5e;
  text-align: left;
  transition: transform .15s ease;
}
#loto-modal .loto-ticket-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
#loto-modal .loto-ticket-top b { font: 800 12px/1.25 'Segoe UI', sans-serif; letter-spacing: 1.4px; color: #7e512c; }
#loto-modal .loto-ticket-top > span { color: #829c55; font-size: 18px; }
#loto-modal .loto-mini { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; }
#loto-modal .loto-mini i {
  padding: 4px 0;
  border: 1px solid #d7b483;
  border-radius: 5px;
  background: #fff7e6;
  color: #69442a;
  text-align: center;
  font: 600 12px/1.25 'Segoe UI', sans-serif;
}
#loto-modal .loto-ticket-pick {
  display: block;
  margin-top: 10px;
  padding: 7px 0 5px;
  border-radius: 7px;
  background: #78934f;
  color: #fff6da;
  font: 800 12px/1.25 'Segoe UI', sans-serif;
  letter-spacing: 1px;
  text-align: center;
}
#loto-modal .loto-call {
  display: grid;
  grid-template-columns: 73px minmax(0,1fr) 91px;
  align-items: center;
  gap: 11px;
  min-height: 123px;
  padding: 12px 15px;
  border: 2px solid #b67d47;
  border-radius: 18px;
  background: linear-gradient(116deg, #f0dfb4 0%, #fff7dc 42%, #f8e2b9 100%);
  box-shadow: 0 5px 0 #ba8a5580, inset 0 0 0 3px #fff9e5;
}
#loto-modal .loto-call.revealed {
  border-color: #7e9e52;
  background: linear-gradient(115deg, #e8efca, #fff9df 52%, #e3ebc4);
}
#loto-modal .loto-host { position: relative; width: 70px; height: 81px; flex: none; }
#loto-modal .loto-host-face {
  position: absolute;
  width: 52px;
  height: 51px;
  left: 8px;
  top: 28px;
  border: 2px solid #b17d48;
  border-radius: 45% 45% 49% 49%;
  background: #f5c58c;
  box-shadow: inset 0 -8px #eeb37b, 0 2px 0 #935b36;
}
#loto-modal .loto-host-face::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 13px;
  width: 5px;
  height: 6px;
  border-radius: 50%;
  background: #563d29;
  box-shadow: 19px 0 #563d29;
}
#loto-modal .loto-host-face::after {
  content: '';
  position: absolute;
  top: 29px;
  left: 18px;
  width: 15px;
  height: 8px;
  border-bottom: 3px solid #9b603d;
  border-radius: 50%;
}
#loto-modal .loto-host-face i {
  position: absolute;
  top: 25px;
  left: 5px;
  height: 6px;
  width: 7px;
  border-radius: 50%;
  background: #eea47a;
  box-shadow: 35px 0 #eea47a;
}
#loto-modal .loto-hat {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  height: 38px;
  width: 70px;
  background: linear-gradient(120deg,#f5d88e,#c79a52);
  clip-path: polygon(48% 1%, 96% 83%, 100% 89%, 50% 100%, 0 89%, 4% 83%);
  filter: drop-shadow(0 2px 1px #77532c);
}
#loto-modal .loto-hat::after { content: ''; position: absolute; inset: 25px 4px 4px; border-top: 2px solid #976932; }
#loto-modal .loto-host-scarf {
  position: absolute;
  bottom: -2px;
  left: 23px;
  width: 25px;
  height: 12px;
  border-radius: 3px 3px 9px 9px;
  background: #cd715b;
  border: 2px solid #ad5846;
}
#loto-modal .loto-recital { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
#loto-modal .loto-phase {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: 0 0 5px;
  padding: 4px 9px 3px;
  border-radius: 8px;
  background: #c7754c;
  color: #fff9e7;
  font: 800 12px/1.25 'Segoe UI',sans-serif;
  letter-spacing: 1.4px;
}
#loto-modal .loto-call.revealed .loto-phase { background: #74964b; }
#loto-modal .loto-call p {
  margin: 0;
  min-height: 54px;
  font: 17px/1.32 Patrick, 'Segoe UI', Tahoma, sans-serif;
  color: #70482c;
  overflow-wrap: anywhere;
}
#loto-modal .loto-verse-reveal {
  display: inline-block;
  white-space: nowrap;
}
/* Số kết câu rao được nhấn như con dấu hội chợ, vẫn giữ quả lô tô '?' cho
   tới lúc người rao đọc xong và nhịp chờ công bố kết thúc. */
#loto-modal .loto-called-number:not(:empty) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  min-height: 25px;
  margin: 1px 2px 1px 5px;
  padding: 0 7px 1px;
  border: 2px solid #b15d34;
  border-radius: 8px;
  background: linear-gradient(155deg,#ffe7aa,#f4af63);
  box-shadow: 0 3px 0 #95552f, inset 0 1px #fffae1;
  color: #7d361e;
  font: 900 23px/1.15 Patrick,'Segoe UI',sans-serif;
  white-space: nowrap;
  vertical-align: middle;
  letter-spacing: .3px;
  text-shadow: 0 1px #ffefd2;
}
#loto-modal .loto-called-number.is-complete {
  background: linear-gradient(145deg,#ffdfa0,#ffb35f);
  border-color: #a75530;
  color: #6f2b18;
  animation: loto-verse-number-in .48s cubic-bezier(.15,1.5,.45,1) both;
}
@keyframes loto-verse-number-in {
  0% { transform: scale(.72) rotate(-7deg); box-shadow: 0 1px 0 #95552f; }
  60% { transform: scale(1.15) rotate(3deg); box-shadow: 0 3px 0 #95552f,0 0 0 6px #f5ae5b4d; }
  100% { transform: scale(1) rotate(0); box-shadow: 0 3px 0 #95552f,0 0 0 2px #f5ae5b66; }
}
@media (max-width:620px), (orientation:landscape) and (max-height:500px) {
  #loto-modal .loto-called-number:not(:empty) {
    font-size: 20px;
    min-height: 24px;
    padding: 0 6px;
    margin-left: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #loto-modal .loto-called-number.is-complete { animation: none; }
}
#loto-modal .loto-number-holder { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:12px; }
#loto-modal .loto-number-holder b {
  display: grid;
  place-items: center;
  width: 77px;
  height: 77px;
  flex: none;
  border: 4px solid #fff4d1;
  border-radius: 50%;
  background: linear-gradient(145deg, #c58c5f, #8a5438);
  box-shadow: 0 4px 0 #633f2d, inset 0 2px #e9ae75;
  color: #fff4d0;
  font: 700 36px/1.15 Patrick, 'Segoe UI', Tahoma, sans-serif;
}
#loto-modal .loto-number-holder small {
  font: 800 12px/1.25 'Segoe UI',sans-serif;
  letter-spacing: 1px;
  color: #71563c;
  display: block;
  line-height: 1.4;
  white-space: nowrap;
}
#loto-modal .loto-call.revealed .loto-number-holder b {
  background: linear-gradient(145deg, #9aba6c, #5e7e43);
  box-shadow: 0 4px 0 #4d6939, inset 0 2px #c4df8d;
  animation: loto-ball-in .42s cubic-bezier(.17,1.4,.45,1) both;
}
@keyframes loto-ball-in { 0% { transform: scale(.62) rotate(-13deg); } 100% { transform: scale(1) rotate(0); } }
#loto-modal .loto-ticket-board {
  position: relative;
  margin: 13px 0 0;
  padding: 11px 12px 13px;
  border: 2px solid #be8953;
  border-radius: 13px;
  background: linear-gradient(135deg,#fffaec,#f5e4c1);
  box-shadow: 0 4px 0 #bd8f5b63, inset 0 0 0 3px #fffdf3;
}
#loto-modal .loto-ticket-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 3px 8px;
  color: #7a5334;
  font: 800 12px/1.25 'Segoe UI',sans-serif;
  letter-spacing: 1.4px;
}
#loto-modal .loto-ticket-heading small { font: 700 12px/1.25 'Segoe UI',sans-serif; letter-spacing: .8px; opacity: .8; }
#loto-modal .loto-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; margin: 0; }
#loto-modal .loto-grid span {
  display: grid;
  place-items: center;
  position: relative;
  min-width: 0;
  min-height: 54px;
  padding: 3px 0 2px;
  border: 2px solid #ceaa7a;
  border-radius: 11px;
  background: #fff9ed;
  box-shadow: 0 3px 0 #c6a27770, inset 0 1px #fff;
  color: #704a30;
  font: 600 27px/1.15 Patrick,'Segoe UI',Tahoma,sans-serif;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
#loto-modal .loto-grid span.hit {
  border-color: #5d8342;
  background: linear-gradient(145deg,#91b35d,#6f984b);
  box-shadow: 0 3px 0 #4f7238, inset 0 2px #b6ce88;
  color: #fff9dc;
  text-shadow: 0 2px #5070396b;
}
#loto-modal .loto-grid span.hit::after {
  content: '✦';
  position: absolute;
  top: 3px;
  right: 5px;
  color: #fceab6;
  font: 12px/1.25 Georgia,serif;
}
#loto-modal .loto-grid span.kinh {
  border-color: #bb6b3a;
  outline: 2px solid #e5a056;
  outline-offset: 0;
  box-shadow: 0 3px 0 #a8592d, 0 0 12px #eaaa6380;
}
#loto-modal .loto-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: stretch;
  margin: 12px 0 8px;
  color: #735133;
  font: 600 13px/1.25 'Segoe UI',Tahoma,sans-serif;
}
#loto-modal .loto-meta > span {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  padding: 8px 11px;
  border: 1px solid #cda576;
  border-radius: 10px;
  background: #fff6dfba;
}
#loto-modal .loto-meta b { font-size: 15px; color: #6a4325; }
#loto-modal .loto-kinh { border-radius: 8px; padding: 3px 5px; background: #df9663; color: #fff8e4; font-size: 12px; }
#loto-modal .loto-progress-track {
  height: 9px;
  overflow: hidden;
  margin: 0 2px 12px;
  border-radius: 9px;
  border: 1px solid #ab8657;
  background: #d8be91;
  box-shadow: inset 0 1px 2px #78563845;
}
#loto-modal .loto-progress-track span {
  display: block;
  height: 100%;
  border-radius: 9px;
  background: linear-gradient(90deg,#83a755,#b7c972);
  transition: width .4s ease;
}
#loto-modal .loto-actions { margin: 8px 0 0; }
#loto-modal .loto-actions button {
  width: 100%;
  min-height: 49px;
  border-radius: 13px;
  border: 2px solid #607d3e;
  background: linear-gradient(#93ad66,#6f914b);
  color: #fff9dc;
  box-shadow: 0 4px 0 #4e6835;
  font: 700 22px/1.25 Patrick,'Segoe UI',Tahoma,sans-serif;
  text-shadow: 0 1px #516b37;
}
#loto-modal .loto-actions button[data-loto="skip"] {
  min-height: 44px;
  background: linear-gradient(#fff8e3,#f4ddb3);
  border-color: #c29361;
  color: #855a37;
  box-shadow: 0 3px 0 #b78558;
  text-shadow: none;
  font-size: 19px;
}
#loto-modal .loto-actions button:active,
#loto-modal .loto-ticket:active,
#loto-modal .loto-stakes button:active { transform: translateY(2px); box-shadow: 0 1px 0 #a07448; }
#loto-modal .loto-result {
  display: grid;
  grid-template-columns: 49px minmax(0,1fr);
  column-gap: 11px;
  align-items: center;
  margin: 0;
  padding: 13px 16px;
  border: 2px solid #b98b57;
  border-radius: 15px;
  background: #fff8e3;
}
#loto-modal .loto-result-win { background: linear-gradient(115deg,#ddebba,#fff7d7); border-color: #7e9b57; }
#loto-modal .loto-result-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: #9bb66e;
  border: 2px solid #748e4e;
  border-radius: 50%;
  color: #fff8d9;
  font: 30px/1.15 Georgia,serif;
}
#loto-modal .loto-result h3 { margin: 0; font-size: 31px; line-height: 1.15; text-align: left; }
#loto-modal .loto-result p { margin: 3px 0 0; text-align: left; font-size: 14px; }
#loto-modal .loto-result-meta { gap: 9px; }
@media (max-width: 620px) {
  #loto-modal .loto-paper { padding: 89px 13px 13px; width: calc(100vw - 14px); border-width: 4px; border-radius: 21px; }
  #loto-modal .loto-sign { min-width: 245px; font-size: 16px; padding: 9px 11px 8px; }
  #loto-modal .loto-close { right: 9px; top: 59px; width: 31px; height: 31px; font-size: 23px; }
  #loto-modal .loto-heading h2 { font-size: 30px; }
  #loto-modal .loto-heading .book-eyebrow { font-size: 11px; }
  #loto-modal .loto-call { grid-template-columns: 50px minmax(0,1fr) 65px; min-height: 104px; gap: 7px; padding: 8px 9px; }
  #loto-modal .loto-host { transform: scale(.73); transform-origin: 0 50%; }
  #loto-modal .loto-phase { font-size: 11px; letter-spacing: .8px; padding: 3px 6px; }
  #loto-modal .loto-call p { font-size: 14px; line-height: 1.25; min-height: 49px; }
  #loto-modal .loto-number-holder b { width: 59px; height: 59px; font-size: 29px; border-width: 3px; }
  #loto-modal .loto-number-holder small { font-size: 11px; }
  #loto-modal .loto-ticket-board { padding: 9px 8px 11px; margin-top: 10px; }
  #loto-modal .loto-ticket-heading { font-size: 11px; letter-spacing: .5px; }
  #loto-modal .loto-ticket-heading small { font-size: 11px; }
  #loto-modal .loto-grid { gap: 5px; }
  #loto-modal .loto-grid span { min-height: 45px; font-size: 23px; border-radius: 8px; }
  #loto-modal .loto-meta { font-size: 11px; gap: 6px; }
  #loto-modal .loto-meta > span { padding: 7px 5px; }
  #loto-modal .loto-meta b { font-size: 12px; }
  #loto-modal .loto-note { font-size: 13px; }
  #loto-modal .loto-stakes { gap: 6px; }
  #loto-modal .loto-stakes button { min-height: 94px; padding: 8px 3px; }
  #loto-modal .loto-stakes button b { font-size: 21px; }
  #loto-modal .loto-stakes button small { font-size: 11px; letter-spacing: .5px; }
  #loto-modal .loto-tickets { gap: 7px; }
  #loto-modal .loto-ticket { padding: 7px 4px; }
  #loto-modal .loto-mini { gap: 2px; }
  #loto-modal .loto-mini i { font-size: 11px; padding: 3px 0; }
  #loto-modal .loto-ticket-top b { font-size: 11px; }
  #loto-modal .loto-ticket-pick { font-size: 11px; letter-spacing: 0; }
}
@media (orientation: landscape) and (max-height: 500px) {
  #loto-modal .loto-paper { max-height: calc(100dvh - 12px); padding-top: 74px; padding-bottom: 9px; }
  #loto-modal .loto-awning { height: 34px; }
  #loto-modal .loto-sign { top: 15px; }
  #loto-modal .loto-close { top: 50px; }
  #loto-modal .loto-heading { margin-bottom: 8px; }
  #loto-modal .loto-heading h2 { margin-top: 3px; font-size: 27px; }
  #loto-modal .loto-call { min-height: 95px; }
  #loto-modal .loto-grid span { min-height: 42px; }
  #loto-modal .loto-ticket-board { margin-top: 8px; }
  #loto-modal .loto-paper-footer { margin-top: 7px; }
}
@media (orientation: landscape) and (max-height: 500px) and (min-width: 760px) {
  #loto-modal .loto-paper { width: calc(100vw - 16px); padding: 71px 14px 10px; }
  #loto-modal .loto-heading { margin-bottom: 7px; }
  #loto-modal .loto-heading h2 { font-size: 24px; }
  #loto-modal .loto-body.loto-phase-call,
  #loto-modal .loto-body.loto-phase-result {
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.18fr);
    grid-template-rows: auto auto auto 1fr;
    gap: 5px 10px;
    align-items: start;
  }
  #loto-modal .loto-phase-call .loto-call,
  #loto-modal .loto-phase-result .loto-result {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    min-height: 110px;
  }
  #loto-modal .loto-phase-call .loto-call {
    grid-template-columns: 50px minmax(0,1fr) 57px;
    gap: 5px;
    padding: 7px;
  }
  #loto-modal .loto-call p { font-size: 14px; }
  #loto-modal .loto-host { transform: scale(.72); transform-origin: left center; }
  #loto-modal .loto-number-holder b { width: 52px; height: 52px; font-size: 25px; border-width: 3px; }
  #loto-modal .loto-phase-call .loto-ticket-board,
  #loto-modal .loto-phase-result .loto-ticket-board {
    grid-column: 2;
    grid-row: 1 / 5;
    margin: 0;
    padding: 8px 10px 11px;
  }
  #loto-modal .loto-grid { gap: 5px; }
  #loto-modal .loto-grid span { min-height: 42px; font-size: 22px; }
  #loto-modal .loto-phase-call .loto-meta,
  #loto-modal .loto-phase-result .loto-meta {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    font-size: 11px;
  }
  #loto-modal .loto-meta > span { padding: 6px 4px; }
  #loto-modal .loto-phase-call .loto-progress-track {
    grid-column: 1;
    grid-row: 3;
    margin: 3px 2px 4px;
  }
  #loto-modal .loto-phase-call .loto-actions,
  #loto-modal .loto-phase-result .loto-actions {
    grid-column: 1;
    grid-row: 4;
    margin: 0;
  }
  #loto-modal .loto-phase-call .loto-actions button,
  #loto-modal .loto-phase-result .loto-actions button { min-height: 44px; font-size: 17px; }
  #loto-modal .loto-result { padding: 9px 10px; }
  #loto-modal .loto-result h3 { font-size: 24px; }
  #loto-modal .loto-result p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #loto-modal .loto-call.revealed .loto-number-holder b { animation: none; }
  #loto-modal .loto-stakes button, #loto-modal .loto-ticket, #loto-modal .loto-progress-track span { transition: none; }
}

/* Cặp MC từ tranh người chơi gửi: mỗi ván chọn đúng 1 MC, không đổi khi hô số. */
#loto-modal .loto-host-art {
  display: block;
  flex: none;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background-image: url('assets/loto-hosts-transparent.webp?v=20261010-alpha1');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 200% 100%;
  box-shadow: 0 3px 0 #9ba96e3b;
}
#loto-modal .loto-host-art.loto-host-nam { background-position: right center; }
#loto-modal .loto-presenter {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 9px 13px;
  margin: 0 0 11px;
  border: 1.5px solid #c69b6d;
  border-radius: 17px;
  background: linear-gradient(106deg, #e4edc4 0%, #fff9e5 73%);
  box-shadow: inset 0 0 0 2px #fff9e66b;
}
#loto-modal .loto-presenter-info { display: grid; gap: 3px; min-width: 0; }
#loto-modal .loto-presenter-info small {
  font: 800 12px/1.25 'Segoe UI',Tahoma,sans-serif;
  letter-spacing: 1.1px;
  color: #71924e;
}
#loto-modal .loto-presenter-info b {
  font: 700 25px/1.15 Patrick,'Segoe UI',Tahoma,sans-serif;
  color: #65402b;
}
#loto-modal .loto-presenter-info span {
  font: 13px/1.28 'Segoe UI',Tahoma,sans-serif;
  color: #76563e;
}
#loto-modal .loto-call {
  grid-template-columns: 82px minmax(0,1fr) 91px;
}
#loto-modal .loto-call-host {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  min-width: 0;
}
#loto-modal .loto-call-host .loto-host-art { width: 76px; height: 76px; }
#loto-modal .loto-call-host small {
  display: block;
  color: #865b3e;
  font: 700 13px/1.25 Patrick,'Segoe UI',Tahoma,sans-serif;
  white-space: nowrap;
}
#loto-modal .loto-call-host.is-singing .loto-host-art {
  animation: loto-host-chant 1.5s ease-in-out infinite;
  transform-origin: center 70%;
}
@keyframes loto-host-chant {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-3px) rotate(1.5deg); }
}
@media (max-width:620px) {
  #loto-modal .loto-presenter { padding: 7px 9px; gap: 9px; margin-bottom: 8px; }
  #loto-modal .loto-presenter .loto-host-art { width: 60px; height: 60px; }
  #loto-modal .loto-presenter-info b { font-size: 22px; }
  #loto-modal .loto-presenter-info small { font-size: 11px; letter-spacing: .4px; }
  #loto-modal .loto-presenter-info span { font-size: 11px; }
  #loto-modal .loto-call { grid-template-columns: 56px minmax(0,1fr) 65px; }
  #loto-modal .loto-call-host .loto-host-art { width: 52px; height: 52px; }
  #loto-modal .loto-call-host small { font-size: 11px; }
}
@media (orientation:landscape) and (max-height:500px) and (min-width:760px) {
  #loto-modal .loto-call { grid-template-columns: 58px minmax(0,1fr) 57px; }
  #loto-modal .loto-call-host .loto-host-art { width: 54px; height: 54px; }
  #loto-modal .loto-call-host small { font-size: 11px; }
}
@media (prefers-reduced-motion:reduce) {
  #loto-modal .loto-call-host.is-singing .loto-host-art { animation:none; }
}
