/* =========================================================
   Lotto 5/35 — giao diện theo thiết kế mới (theme xanh đậm, nhấn xanh lá)
   Áp dụng khi lotto-dash.js gắn .ld-on cho <body>; ghi đè lớp .lo-* trong app-theme.css.
   Header, footer, select, sheet dùng chung ở dash-theme.css (.dash-on).
   ========================================================= */
html body.ld-on[data-game='lotto'] {
  --ld-green: #1f9d4c;
  --ld-green-2: #2fd67a;
  --ld-orange: #ff6a1a;
  --ld-ink: #0f1d4a;
  --ld-ink-2: #5b6785;
  --ld-line: #e3e8f2;
  --ld-blue: #1f6fe5;
  --md-accent: #e5132f;
  --md-accent-2: #ff3b50;
  background:
    radial-gradient(900px 340px at 72% 0, rgba(47, 214, 122, 0.22), transparent 70%),
    radial-gradient(700px 420px at 0 30%, rgba(40, 90, 220, 0.25), transparent 70%),
    linear-gradient(180deg, #0a1a42, #0c2156);
  background-color: #0c2156;
}
html body.ld-on[data-game='lotto'] .site-header .brand-img,
html body.ld-on[data-game='lotto'] .site-footer .brand-img {
  filter: none;
}
html body.ld-on[data-game='lotto'] .gp2.lotto-play {
  color: var(--ld-ink);
}
html body.ld-on[data-game='lotto'] .lo-shell {
  width: min(1280px, 100%);
  padding: 0 24px;
}
html body.ld-on[data-game='lotto'] .ld-hide {
  display: none !important;
}
html body.ld-on[data-game='lotto'] .ld-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ld-blue);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
html body.ld-on[data-game='lotto'] .ld-link svg {
  width: 16px;
  height: 16px;
}
html body.ld-on[data-game='lotto'] .ld-b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: radial-gradient(circle at 33% 27%, #b8f5cd 0, #3fcf75 22%, #16913f 62%, #0a5a26 100%);
  box-shadow:
    0 3px 7px rgba(0, 90, 30, 0.35),
    inset 0 -3px 5px rgba(0, 50, 15, 0.3);
}
html body.ld-on[data-game='lotto'] .ld-b.o {
  background: radial-gradient(circle at 33% 27%, #ffd9b8 0, #ff8a3d 25%, #ef5a00 62%, #a33600 100%);
  box-shadow: 0 3px 7px rgba(200, 70, 0, 0.35);
}
html body.ld-on[data-game='lotto'] .ld-balls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
html body.ld-on[data-game='lotto'] .ld-bar {
  display: inline-block;
  width: 1px;
  height: 26px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.4);
}
html body.ld-on[data-game='lotto'] .ld-demo {
  padding: 4px 10px;
  border-radius: 5px;
  background: #5a3a14;
  border: 1px solid #c58b2c;
  color: #ffd38a;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
html body.ld-on[data-game='lotto'] .lo-jackpot-band {
  grid-template-columns: 170px minmax(0, 1.3fr) auto minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 90px;
  padding: 10px 18px;
  border-color: rgba(120, 160, 255, 0.25);
  background: linear-gradient(90deg, rgba(14, 32, 84, 0.95), rgba(18, 40, 104, 0.88));
}
html body.ld-on[data-game='lotto'] .lo-product .plw {
  width: 150px !important;
  height: auto !important;
}
html body.ld-on[data-game='lotto'] .lo-jackpot small {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
html body.ld-on[data-game='lotto'] .lo-jackpot strong {
  font-size: clamp(26px, 3.1vw, 44px);
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff2bf, #ffd25e 45%, #f2a91d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  white-space: nowrap;
}
html body.ld-on[data-game='lotto'] .lo-jackpot em {
  display: none;
}
html body.ld-on[data-game='lotto'] .lo-frequency {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 18px 0 0;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 14px;
  color: #e4ebfb;
  white-space: nowrap;
}
html body.ld-on[data-game='lotto'] .lo-frequency b {
  font-weight: 500;
}
html body.ld-on[data-game='lotto'] .lo-clock small {
  font-size: 11px;
  color: #e3ebff;
}
html body.ld-on[data-game='lotto'] .lo-clock strong {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
html body.ld-on[data-game='lotto'] .lo-clock em {
  font-size: 12.5px;
  font-style: normal;
  color: #e3ebff;
  white-space: nowrap;
}
html body.ld-on[data-game='lotto'] .lo-clock > span {
  color: #fff;
}
html body.ld-on[data-game='lotto'] .ld-buy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
html body.ld-on[data-game='lotto'] .ld-pay {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 16px 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, #ff3c50, #d50f29);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(229, 19, 47, 0.4);
  white-space: nowrap;
}
html body.ld-on[data-game='lotto'] .ld-pay i {
  margin-left: auto;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
}
html body.ld-on[data-game='lotto'] .ld-tic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border-radius: 5px;
  background: #fff;
  color: #e5132f;
}
html body.ld-on[data-game='lotto'] .ld-tic svg {
  width: 20px;
  height: 20px;
}
html body.ld-on[data-game='lotto'] .ld-cart {
  align-self: flex-end;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
html body.ld-on[data-game='lotto'] .ld-pay:disabled,
html body.ld-on[data-game='lotto'] .ld-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Lưới 3 cột ---------- */
html body.ld-on[data-game='lotto'] .lo-columns {
  grid-template-columns: 1.12fr 0.98fr 1fr;
  gap: 12px;
  align-items: stretch;
}
html body.ld-on[data-game='lotto'] .lo-panel {
  background: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  color: var(--ld-ink);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}
html body.ld-on[data-game='lotto'] .lo-panel-head h2,
html body.ld-on[data-game='lotto'] .lo-draw-panel h2 {
  color: var(--ld-ink);
  font-size: 17px;
  font-weight: 700;
}
html body.ld-on[data-game='lotto'] .lo-mode-slot {
  display: none;
}
html body.ld-on[data-game='lotto'] .ld-hlinks {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
}
html body.ld-on[data-game='lotto'] .ld-hlinks a,
html body.ld-on[data-game='lotto'] .ld-hlinks button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ld-blue);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
html body.ld-on[data-game='lotto'] .ld-hlinks i {
  font-style: normal;
  color: var(--ld-ink-2);
}
html body.ld-on[data-game='lotto'] .ld-colh {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 8px;
  padding: 0 64px 2px 80px;
  font-size: 11.5px;
  color: var(--ld-ink);
}
html body.ld-on[data-game='lotto'] .ld-colh span {
  text-align: center;
}
html body.ld-on[data-game='lotto'] .lo-lines-slot #rowHint {
  display: none;
}
html body.ld-on[data-game='lotto'] .lo-row {
  min-height: 42px;
  gap: 8px;
  padding: 3px 8px;
  border-bottom: 0;
  color: var(--ld-ink);
}
html body.ld-on[data-game='lotto'] .lo-row.active {
  background: #eaf7ef;
  box-shadow: inset 3px 0 var(--ld-green);
}
html body.ld-on[data-game='lotto'] .lo-row:has(.b2.crown) {
  background: #fff0ec;
}
html body.ld-on[data-game='lotto'] .lo-row .lo-row-label {
  position: relative;
  width: 30px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ld-ink);
}
html body.ld-on[data-game='lotto'] .lo-row:has(.b2.crown) .lo-row-label {
  color: var(--md-accent);
}
html body.ld-on[data-game='lotto'] .lo-row:has(.b2.crown) .lo-row-label::after {
  content: 'Thần Tài';
  position: absolute;
  left: 0;
  top: 24px;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--md-accent);
}
html body.ld-on[data-game='lotto'] .lo-row .lo-edit,
html body.ld-on[data-game='lotto'] .lo-row .hrt,
html body.ld-on[data-game='lotto'] .lo-row .del {
  color: var(--ld-ink);
}
html body.ld-on[data-game='lotto'] .lo-row .rb {
  gap: 8px;
}
html body.ld-on[data-game='lotto'] .lo-row .b2 {
  width: 34px;
  height: 34px;
  font-size: 14px;
  color: #fff;
  background: radial-gradient(circle at 33% 27%, #b8f5cd 0, #3fcf75 22%, #16913f 62%, #0a5a26 100%);
  box-shadow:
    0 3px 7px rgba(0, 90, 30, 0.35),
    inset 0 -3px 5px rgba(0, 50, 15, 0.3);
  border: 0;
}
html body.ld-on[data-game='lotto'] .lo-row .b2.e {
  background: #fff;
  border: 1.5px solid #d3d9e6;
  box-shadow: none;
  color: transparent;
}
html body.ld-on[data-game='lotto'] .lo-row .b2.sp {
  margin-left: 14px;
  position: relative;
  background: radial-gradient(circle at 33% 27%, #ffd9b8 0, #ff8a3d 25%, #ef5a00 62%, #a33600 100%);
}
html body.ld-on[data-game='lotto'] .lo-row .b2.sp::after {
  content: '';
  position: absolute;
  left: -10px;
  top: 4px;
  bottom: 4px;
  width: 1.5px;
  background: #b9c3d6;
}
html body.ld-on[data-game='lotto'] .lo-row .b2.e.sp {
  background: #fff;
  border: 1.5px solid var(--ld-orange);
}
html body.ld-on[data-game='lotto'] .lo-row .hrt.on {
  color: var(--md-accent);
}
html body.ld-on[data-game='lotto'] .lo-add-slot .gp2-add {
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid #d6e2f8;
  border-radius: 6px;
  background: #eef4ff;
  color: var(--ld-blue);
  font-size: 14px;
}
html body.ld-on[data-game='lotto'] .lo-add-slot .gp2-add small {
  padding: 4px 12px;
  border: 1px solid var(--ld-line);
  border-radius: 5px;
  background: #fff;
  color: var(--ld-ink-2);
}
html body.ld-on[data-game='lotto'] .lo-feat-slot .gp2-feat {
  gap: 8px;
  margin-top: 8px;
}
html body.ld-on[data-game='lotto'] .lo-feat-slot .gp2-feat button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: #eef0f4;
  color: var(--ld-ink);
  font-size: 12.5px;
}
html body.ld-on[data-game='lotto'] .ld-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
html body.ld-on[data-game='lotto'] .ld-guide button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: #eef0f4;
  color: var(--ld-ink);
  font-size: 13px;
  cursor: pointer;
}
html body.ld-on[data-game='lotto'] .ld-guide button svg {
  width: 18px;
  height: 18px;
  color: var(--md-accent);
}
html body.ld-on[data-game='lotto'] .ld-guide button:last-child svg {
  color: var(--ld-ink);
}
html body.ld-on[data-game='lotto'] .lo-count {
  display: none;
}
html body.ld-on[data-game='lotto'] .lo-pick-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  color: var(--ld-blue);
  font-size: 12.5px;
}
html body.ld-on[data-game='lotto'] .lo-pick-title b {
  font-weight: 600;
  color: var(--ld-blue);
}
html body.ld-on[data-game='lotto'] .lo-pick-title small {
  font-size: 11px;
  font-weight: 400;
}
html body.ld-on[data-game='lotto'] .lo-pick-title > span {
  color: var(--ld-ink);
  font-weight: 600;
}
html body.ld-on[data-game='lotto'] .lo-number-grid.main {
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  justify-items: center;
}
html body.ld-on[data-game='lotto'] .lo-number-grid.special {
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  justify-items: center;
}
html body.ld-on[data-game='lotto'] .lo-number {
  width: 100%;
  max-width: 38px;
  aspect-ratio: 1;
  border: 1.5px solid #dfe4ee;
  border-radius: 50%;
  background: #fff;
  color: var(--ld-ink);
  font-size: 12.5px;
  font-weight: 500;
}
html body.ld-on[data-game='lotto'] .lo-number.chosen {
  border: 0;
  color: #fff;
  font-weight: 800;
  background: radial-gradient(circle at 33% 27%, #b8f5cd 0, #3fcf75 22%, #16913f 62%, #0a5a26 100%);
  box-shadow: 0 3px 7px rgba(0, 90, 30, 0.35);
}
html body.ld-on[data-game='lotto'] .lo-number.chosen.special {
  background: radial-gradient(circle at 33% 27%, #ffd9b8 0, #ff8a3d 25%, #ef5a00 62%, #a33600 100%);
}
html body.ld-on[data-game='lotto'] .lo-number.disabled {
  color: var(--ld-ink);
  opacity: 0.55;
  background: #fff;
}
html body.ld-on[data-game='lotto'] .lo-special-section {
  margin-top: 8px;
  padding: 8px;
  border-radius: 6px;
  background: #fdeee2;
}
html body.ld-on[data-game='lotto'] .lo-special-section .lo-pick-title,
html body.ld-on[data-game='lotto'] .lo-special-section .lo-pick-title b {
  color: var(--ld-blue);
}
html body.ld-on[data-game='lotto'] .lo-picker-tools {
  padding: 6px 0;
}
html body.ld-on[data-game='lotto'] .lo-picker-tools button {
  color: var(--ld-blue);
  font-size: 12px;
}
html body.ld-on[data-game='lotto'] .lo-draw-panel {
  border-top: 1px solid var(--ld-line);
  padding-top: 8px;
}
html body.ld-on[data-game='lotto'] .lo-draw-panel header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}
html body.ld-on[data-game='lotto'] .ld-dsel {
  margin-left: auto;
  font-size: 12px;
  color: var(--ld-ink-2);
}
html body.ld-on[data-game='lotto'] .ld-dlist {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
html body.ld-on[data-game='lotto'] .ld-dlist button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--ld-line);
  border-radius: 5px;
  background: #fff;
  color: var(--ld-ink);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}
html body.ld-on[data-game='lotto'] .ld-dlist button i {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #8a93a6;
  background: #fff;
}
html body.ld-on[data-game='lotto'] .ld-dlist button.on {
  background: #eaf1ff;
  border-color: #bcd0f7;
}
html body.ld-on[data-game='lotto'] .ld-dlist button.on i {
  border: 0;
  background: var(--ld-blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/11px no-repeat;
}
html body.ld-on[data-game='lotto'] .ld-dlist b {
  font-weight: 700;
}
html body.ld-on[data-game='lotto'] .ld-day {
  min-width: 96px;
}
html body.ld-on[data-game='lotto'] .ld-dfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  font-size: 11px;
  color: var(--ld-ink-2);
}

/* ---------- Cột 3 ---------- */
html body.ld-on[data-game='lotto'] .ld-c3 {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(120, 160, 255, 0.25);
  background: linear-gradient(160deg, rgba(26, 52, 124, 0.85), rgba(14, 32, 84, 0.85));
  color: #fff;
}
html body.ld-on[data-game='lotto'] .ld-c3h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
}
html body.ld-on[data-game='lotto'] .ld-c3h h2,
html body.ld-on[data-game='lotto'] .ld-lh h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: #fff;
  white-space: nowrap;
}
html body.ld-on[data-game='lotto'] .ld-c3h h2 em,
html body.ld-on[data-game='lotto'] .ld-lh h2 em {
  font-style: normal;
  color: var(--pd-gold, #ffc93c);
}
html body.ld-on[data-game='lotto'] .ld-card {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(6, 18, 50, 0.55);
  border: 1px solid rgba(120, 160, 255, 0.2);
}
html body.ld-on[data-game='lotto'] .ld-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
html body.ld-on[data-game='lotto'] .ld-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
html body.ld-on[data-game='lotto'] .ld-card header small {
  font-size: 11.5px;
  color: #dfe7fb;
}
html body.ld-on[data-game='lotto'] .ld-card header p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #dfe7fb;
}
html body.ld-on[data-game='lotto'] .ld-ob {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid #3d8ef0;
  color: #9fc8ff;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
html body.ld-on[data-game='lotto'] .ld-last .ld-b {
  width: 38px;
  height: 38px;
  font-size: 16px;
}
html body.ld-on[data-game='lotto'] .ld-daily header {
  justify-content: flex-start;
}
html body.ld-on[data-game='lotto'] .ld-daily header small {
  align-self: center;
}
html body.ld-on[data-game='lotto'] .ld-drow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(6, 18, 50, 0.55);
  border: 1px solid rgba(120, 160, 255, 0.15);
}
html body.ld-on[data-game='lotto'] .ld-drow + .ld-drow {
  margin-top: 5px;
}
html body.ld-on[data-game='lotto'] .ld-drow > div {
  flex: none;
  width: 96px;
}
html body.ld-on[data-game='lotto'] .ld-drow b {
  display: block;
  font-size: 15px;
}
html body.ld-on[data-game='lotto'] .ld-drow small {
  font-size: 10px;
  color: #cfd9f2;
}
html body.ld-on[data-game='lotto'] .ld-drow .ld-balls {
  gap: 4px;
}
html body.ld-on[data-game='lotto'] .ld-drow .ld-b {
  width: 30px;
  height: 30px;
  font-size: 12.5px;
}
html body.ld-on[data-game='lotto'] .ld-jb {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
html body.ld-on[data-game='lotto'] .ld-jb b {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 900;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff2bf, #ffd25e 45%, #f2a91d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html body.ld-on[data-game='lotto'] .ld-jb svg {
  flex: 1;
  min-width: 0;
  height: 54px;
}
html body.ld-on[data-game='lotto'] .ld-jour footer {
  display: flex;
  justify-content: flex-end;
  font-size: 11px;
  color: #dfe7fb;
}
html body.ld-on[data-game='lotto'] .ld-learn {
  display: block;
  margin: 4px auto 0;
  height: 28px;
  padding: 0 24px;
  border-radius: 6px;
  border: 1px solid #3d8ef0;
  background: rgba(20, 60, 140, 0.4);
  color: #cfe2ff;
  font-size: 12px;
  cursor: pointer;
}

/* ---------- Lăng kính ---------- */
html body.ld-on[data-game='lotto'] .ld-lens {
  margin-top: 12px;
  padding: 6px 8px 8px;
  border-radius: 10px;
  border: 1px solid rgba(120, 160, 255, 0.25);
  background: linear-gradient(180deg, rgba(14, 32, 84, 0.92), rgba(12, 28, 74, 0.92));
  color: #fff;
}
html body.ld-on[data-game='lotto'] .ld-lh {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 2px 6px 6px;
}
html body.ld-on[data-game='lotto'] .ld-tabs {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
html body.ld-on[data-game='lotto'] .ld-tabs button {
  height: 30px;
  padding: 0 16px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: #dfe7fb;
  font-size: 13px;
  cursor: pointer;
}
html body.ld-on[data-game='lotto'] .ld-tabs button + button {
  border-left: 1px solid rgba(120, 160, 255, 0.25);
  border-radius: 0;
}
html body.ld-on[data-game='lotto'] .ld-tabs button.on {
  border-radius: 5px;
  background: var(--ld-blue);
  color: #fff;
  font-weight: 600;
  border-left: 0;
}
html body.ld-on[data-game='lotto'] .ld-per {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #dfe7fb;
}
html body.ld-on[data-game='lotto'] .ld-per button {
  height: 28px;
  padding: 0 14px;
  border-radius: 5px;
  border: 1px solid rgba(120, 160, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 12.5px;
  cursor: pointer;
}
html body.ld-on[data-game='lotto'] .ld-per button.on {
  background: var(--ld-blue);
  border-color: var(--ld-blue);
  font-weight: 700;
}
html body.ld-on[data-game='lotto'] .ld-per .ld-demo {
  margin-left: 8px;
}
html body.ld-on[data-game='lotto'] .ld-lbody {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 8px;
}
html body.ld-on[data-game='lotto'] .ld-lp {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(6, 18, 50, 0.55);
  border: 1px solid rgba(120, 160, 255, 0.18);
}
html body.ld-on[data-game='lotto'] .ld-lp h3 {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}
html body.ld-on[data-game='lotto'] .ld-i {
  display: inline-grid;
  color: #7fb3ff;
}
html body.ld-on[data-game='lotto'] .ld-i svg {
  width: 14px;
  height: 14px;
}
html body.ld-on[data-game='lotto'] .ld-map {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
}
html body.ld-on[data-game='lotto'] .ld-mgrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px 10px;
}
html body.ld-on[data-game='lotto'] .ld-sgrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px 6px;
  justify-items: center;
  margin-top: 4px;
}
html body.ld-on[data-game='lotto'] .ld-mgrid button {
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: color-mix(in srgb, #14a447 calc(35% + var(--t) * 65%), #0b2a1a);
}
html body.ld-on[data-game='lotto'] .ld-sgrid button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #4a2c00;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: radial-gradient(
    circle at 33% 27%,
    #fff3c8 0,
    color-mix(in srgb, #f5a400 calc(55% + var(--t) * 45%), #fff0b8) 55%,
    #c98600 100%
  );
}
html body.ld-on[data-game='lotto'] .ld-mgrid button.sel {
  box-shadow: 0 0 0 2px #fff;
}
html body.ld-on[data-game='lotto'] .ld-sgrid button.sel {
  color: #fff;
  background: radial-gradient(circle at 33% 27%, #ffd9b8 0, #ff8a3d 25%, #ef5a00 62%, #a33600 100%);
  box-shadow: 0 0 0 2px #fff;
}
html body.ld-on[data-game='lotto'] .ld-day2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
html body.ld-on[data-game='lotto'] .ld-day2 span {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
html body.ld-on[data-game='lotto'] .ld-day2 small {
  font-size: 10px;
  color: #cfd9f2;
}
html body.ld-on[data-game='lotto'] .ld-txt {
  margin: 0 0 6px;
  font-size: 13px;
  color: #dfe7fb;
  line-height: 1.5;
}
html body.ld-on[data-game='lotto'] .ld-txt b {
  color: #fff;
}
html body.ld-on[data-game='lotto'] .ld-txt b.g {
  color: #ffd25e;
}
html body.ld-on[data-game='lotto'] .ld-how {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #dfe7fb;
  line-height: 1.6;
}
html body.ld-on[data-game='lotto'] .ld-mine {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
html body.ld-on[data-game='lotto'] .ld-mine > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
html body.ld-on[data-game='lotto'] .ld-mine .ld-b {
  width: 28px;
  height: 28px;
  font-size: 11.5px;
}
html body.ld-on[data-game='lotto'] .ld-mine button {
  margin-left: auto;
  padding: 3px 10px;
  border: 1px solid #3d8ef0;
  border-radius: 5px;
  background: transparent;
  color: #9fc8ff;
  font-size: 11.5px;
  cursor: pointer;
}
html body.ld-on[data-game='lotto'] .ld-soi {
  display: flex;
  flex-direction: column;
  align-items: center;
}
html body.ld-on[data-game='lotto'] .ld-soi h3 {
  align-self: flex-start;
}
html body.ld-on[data-game='lotto'] .ld-soi .ld-balls {
  justify-content: center;
  gap: 8px;
}
html body.ld-on[data-game='lotto'] .ld-soi em {
  font-size: 12px;
  font-style: normal;
  color: #cfd9f2;
}
html body.ld-on[data-game='lotto'] .ld-soic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin: 8px 0;
}
html body.ld-on[data-game='lotto'] .ld-soic > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  border-radius: 6px;
  background: rgba(6, 18, 50, 0.6);
  border: 1px solid rgba(120, 160, 255, 0.2);
}
html body.ld-on[data-game='lotto'] .ld-soic b {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}
html body.ld-on[data-game='lotto'] .ld-soic small {
  font-size: 10.5px;
  color: #cfd9f2;
}
html body.ld-on[data-game='lotto'] .ld-hist {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 70%;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #3d8ef0;
  background: rgba(20, 60, 140, 0.4);
  color: #cfe2ff;
  font-size: 12.5px;
  cursor: pointer;
}
html body.ld-on[data-game='lotto'] .ld-hist svg {
  width: 16px;
  height: 16px;
}
html body.ld-on[data-game='lotto'] .ld-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 8px 2px 12px;
  font-size: 12px;
  color: #cfd9f2;
}
html body.ld-on[data-game='lotto'] .ld-foot a {
  color: #cfd9f2;
  text-decoration: none;
}
html body.ld-on[data-game='lotto'] .ld-foot i {
  font-style: normal;
  opacity: 0.6;
}
html body.ld-on[data-game='lotto'] .ld-18 {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #ff3b50;
  color: #ff3b50;
  font-size: 9px;
  font-weight: 800;
}
html body.ld-on[data-game='lotto'] .ld-sp {
  flex: 1;
}
/* phần Cách chơi / Cơ cấu giải gốc bên dưới theo theme */
html body.ld-on[data-game='lotto'] #info .panel {
  background: #0f2459;
  border-color: rgba(120, 160, 255, 0.25);
  color: #e4ebfb;
}
html body.ld-on[data-game='lotto'] #info .tabs {
  border-color: rgba(120, 160, 255, 0.25);
}
html body.ld-on[data-game='lotto'] #info .tabs button {
  color: #cfd9f2;
}
html body.ld-on[data-game='lotto'] #info .tabs button.on {
  color: #fff;
  background: #173a7a;
}
html body.ld-on[data-game='lotto'] #info .ptable th,
html body.ld-on[data-game='lotto'] #info .ptable td,
html body.ld-on[data-game='lotto'] #info .rtable th,
html body.ld-on[data-game='lotto'] #info .rtable td,
html body.ld-on[data-game='lotto'] #info .howlist,
html body.ld-on[data-game='lotto'] #info .kv,
html body.ld-on[data-game='lotto'] #info .hint,
html body.ld-on[data-game='lotto'] #info .demo {
  color: #e4ebfb;
  border-color: rgba(120, 160, 255, 0.2);
  background: transparent;
}

/* header/nút đăng ký theo thiết kế: nhấn đỏ như các màn khác */
html body.ld-on[data-game='lotto'] .site-header {
  background: rgba(9, 22, 58, 0.94);
  border-bottom-color: rgba(120, 160, 255, 0.22);
}
html body.ld-on[data-game='lotto'] .nav-i.active > a,
html body.ld-on[data-game='lotto'] .nav-i.active > button,
html body.ld-on[data-game='lotto'] .nav-i:hover > a,
html body.ld-on[data-game='lotto'] .nav-i:hover > button {
  color: #fff;
}
html body.ld-on[data-game='lotto'] .nav-i > a::after,
html body.ld-on[data-game='lotto'] .nav-i > button::after {
  background: #ff3b50;
}
html body.ld-on[data-game='lotto'] .hright .btn-red {
  background: #e5132f;
  border-color: #e5132f;
}
html body.ld-on[data-game='lotto'] .site-header .nsel.lang-sel,
html body.ld-on[data-game='lotto'] .tier-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(120, 160, 255, 0.22);
}
html body.ld-on[data-game='lotto'] .lo-pick-section {
  padding: 0;
  border: 0;
  background: none;
}
html body.ld-on[data-game='lotto'] .lo-special-section {
  padding: 8px;
  background: #fdeee2;
}
html body.ld-on[data-game='lotto'] .lo-special-section .lo-number {
  width: 100%;
  max-width: 36px;
  font-size: 12.5px;
}
html body.ld-on[data-game='lotto'] .lo-draw-panel {
  margin-top: 4px;
  padding: 8px 0 0;
  border: 0;
  border-top: 1px solid var(--ld-line);
  border-radius: 0;
  background: none;
}
html body.ld-on[data-game='lotto'] .lo-feat-slot .gp2-feat button {
  gap: 6px;
  padding: 4px;
  border: 0;
  background: #eef0f4;
  color: var(--ld-ink);
  font-size: 12.5px;
}
html body.ld-on[data-game='lotto'] .lo-feat-slot .fic.tt .mascot {
  width: 22px !important;
  height: 22px !important;
}
html body.ld-on[data-game='lotto'] .lo-feat-slot .fic {
  width: 22px;
  height: 22px;
  overflow: hidden;
}
html body.ld-on[data-game='lotto'] .ld-drow > div {
  width: 118px;
}
html body.ld-on[data-game='lotto'] .ld-drow small {
  white-space: nowrap;
}
html body.ld-on[data-game='lotto'] .ld-tabs button {
  padding: 0 12px;
  font-size: 12.5px;
}
html body.ld-on[data-game='lotto'] .ld-lh {
  gap: 12px;
}
html body.ld-on[data-game='lotto'] .ld-lh h2 {
  font-size: 20px;
}
html body.ld-on[data-game='lotto'] .ld-per {
  gap: 5px;
}
html body.ld-on[data-game='lotto'] .ld-per button {
  padding: 0 11px;
}

html body.ld-on[data-game='lotto'] .lo-draw-panel header .ld-dsel {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--ld-ink-2);
  letter-spacing: 0;
  text-transform: none;
}
html body.ld-on[data-game='lotto'] .ld-drow > div {
  width: 104px;
}
html body.ld-on[data-game='lotto'] .ld-drow .ld-balls {
  flex-wrap: nowrap;
  gap: 3px;
}
html body.ld-on[data-game='lotto'] .ld-drow .ld-b {
  width: 28px;
  height: 28px;
  font-size: 12px;
  flex: none;
}
html body.ld-on[data-game='lotto'] .ld-drow .ld-bar {
  margin: 0 2px;
  height: 22px;
}

/* ---------- màn hẹp ---------- */
@media (max-width: 1240px) {
  html body.ld-on[data-game='lotto'] .lo-jackpot-band {
    grid-template-columns: 140px 1fr auto;
    row-gap: 10px;
  }
  html body.ld-on[data-game='lotto'] .lo-clock {
    grid-column: 1/3;
  }
  html body.ld-on[data-game='lotto'] .lo-columns {
    grid-template-columns: 1fr 1fr;
  }
  html body.ld-on[data-game='lotto'] .ld-c3 {
    grid-column: 1/-1;
  }
}
@media (max-width: 760px) {
  html body.ld-on[data-game='lotto'] .lo-shell {
    padding: 0 12px;
  }
  html body.ld-on[data-game='lotto'] .lo-jackpot-band {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  html body.ld-on[data-game='lotto'] .lo-product {
    display: flex;
  }
  html body.ld-on[data-game='lotto'] .lo-product .plw {
    width: 120px !important;
  }
  html body.ld-on[data-game='lotto'] .lo-jackpot strong {
    font-size: 26px;
  }
  html body.ld-on[data-game='lotto'] .lo-frequency {
    border-right: 0;
    padding: 0;
    flex-direction: row;
    gap: 8px;
  }
  html body.ld-on[data-game='lotto'] .lo-clock {
    grid-column: auto;
    border: 0;
    padding: 0;
  }
  html body.ld-on[data-game='lotto'] .lo-columns {
    grid-template-columns: 1fr;
  }
  html body.ld-on[data-game='lotto'] .ld-colh {
    display: none;
  }
  html body.ld-on[data-game='lotto'] .lo-panel-head {
    flex-wrap: wrap;
  }
  html body.ld-on[data-game='lotto'] .lo-row {
    gap: 3px;
    padding: 3px 4px;
  }
  html body.ld-on[data-game='lotto'] .lo-row .lo-row-label {
    width: 20px;
    font-size: 16px;
  }
  html body.ld-on[data-game='lotto'] .lo-row .rb {
    gap: 3px;
    flex-wrap: nowrap;
  }
  html body.ld-on[data-game='lotto'] .lo-row .b2 {
    width: 28px;
    height: 28px;
    font-size: 11.5px;
    flex: none;
  }
  html body.ld-on[data-game='lotto'] .lo-row .b2.sp {
    margin-left: 8px;
  }
  html body.ld-on[data-game='lotto'] .lo-row .b2.sp::after {
    left: -6px;
  }
  html body.ld-on[data-game='lotto'] .lo-row .hrt,
  html body.ld-on[data-game='lotto'] .lo-row .del {
    width: 22px;
  }
  html body.ld-on[data-game='lotto'] .ld-hlinks {
    flex-wrap: wrap;
    white-space: normal;
  }
  html body.ld-on[data-game='lotto'] .ld-dlist button {
    font-size: 11px;
    gap: 5px;
  }
  html body.ld-on[data-game='lotto'] .ld-day {
    min-width: 0;
  }
  html body.ld-on[data-game='lotto'] .ld-drow {
    flex-wrap: wrap;
  }
  html body.ld-on[data-game='lotto'] .ld-lbody,
  html body.ld-on[data-game='lotto'] .ld-map,
  html body.ld-on[data-game='lotto'] .ld-day2 {
    grid-template-columns: 1fr;
  }
  html body.ld-on[data-game='lotto'] .ld-per {
    margin-left: 0;
    flex-wrap: wrap;
  }
  html body.ld-on[data-game='lotto'] .ld-sp {
    display: none;
  }
}
