/* ===== QuayThuXoSo.Mobi – wap tông XANH NAVY ĐẬM + ĐỎ CAM: phẳng, chữ Arial to rõ (tối thiểu 16px) ===== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.5;
  background: #0b1a3d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='4' height='4' fill='%230f2350'/%3E%3Crect x='4' y='4' width='4' height='4' fill='%230f2350'/%3E%3C/svg%3E");
}
a { color: #10275c; text-decoration: underline; }
a:visited { color: #0a1a40; }
a:hover { color: #ff4b1f; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
h1, h2, h3 { font-family: Arial, Helvetica, sans-serif; line-height: 1.3; }
.gif { image-rendering: pixelated; height: 16px; width: auto; margin: 0 3px; vertical-align: -2px; }
.wap { max-width: 780px; margin: 0 auto; background: #fff; min-height: 100vh; border-left: 2px solid #10275c; border-right: 2px solid #10275c; }
main { padding: 6px; }
.ad:empty { display: none; }

/* ---------- Đầu trang ---------- */
.hd { background: #10275c; padding: 0; text-align: center; border-bottom: 3px double #ff4b1f; line-height: 0; }
.hd .logo { display: block; }
.hd img { display: block; width: 100%; max-width: none; height: auto; }
.topbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; background: #10275c; color: #ffb35c; padding: 4px 8px; font-size: 16px; font-weight: bold; }
.topbar b { color: #fff; }
.marq { overflow: hidden; white-space: nowrap; background: #eef3fd; border-bottom: 1px solid #ff7a1a; font-size: 16px; padding: 4px 0; }
.marq span { display: inline-block; padding-left: 8px; animation: marq 32s linear infinite; }
.marq b { color: #ff4b1f; }
@keyframes marq { from { transform: translateX(40%); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marq span { animation: none; } }
.nav { display: grid; grid-template-columns: repeat(2, 1fr); background: #ff4b1f; border-bottom: 2px solid #ff7a1a; }
.nav a { color: #fff; text-decoration: none; font-weight: bold; font-size: 16px; padding: 8px 4px; text-align: center; border-right: 1px solid #2b4687; border-bottom: 1px solid #2b4687; }
.nav a:visited { color: #fff; }
.nav a:hover, .nav a.on { background: #ff7a1a; color: #000; }
@media (min-width: 480px) { .nav { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .nav { grid-template-columns: repeat(4, 1fr); } }
.burger { display: block; width: 100%; border: 0; border-bottom: 2px solid #000; padding: 8px; background: #0a1a40; color: #ffb35c; font: bold 16px Arial, Helvetica, sans-serif; cursor: pointer; }
.drawer { background: #f3f6fd; border-bottom: 3px solid #10275c; padding: 4px 8px 8px; max-height: 75vh; overflow-y: auto; }
.drawer[hidden] { display: none; }
.dr-g { border-bottom: 1px dotted #999; }
.dr-g > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
.dr-g > summary::-webkit-details-marker { display: none; }
.dr-g > summary::after { content: '[+]'; color: #ff4b1f; font-weight: bold; }
.dr-g[open] > summary::after { content: '[–]'; }
.dr-g b { color: #10275c; font-size: 17px; }
.dr-l { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding-bottom: 6px; }
.dr-l a { display: block; padding: 4px 2px; font-size: 16px; border-bottom: 1px dashed #ccc; }
.dr-l a::before { content: "» "; color: #ff4b1f; }
@media (min-width: 640px) { .dr-l { grid-template-columns: repeat(3, 1fr); } }
.crumb { padding: 6px 8px; font-size: 16px; background: #f0f0f0; border-bottom: 1px dashed #999; }
.crumb span { margin: 0 4px; color: #777; }

/* ---------- Tiêu đề & hộp ---------- */
.pt { font-size: 21px; margin: 6px 0; padding: 8px; background: #ff4b1f; color: #ffb35c; text-align: center; border: 2px solid #061232; }
.box { border: 1px solid #10275c; margin: 0 0 10px; background: #fff; padding: 0 8px 8px; }
.bh { margin: 0 -8px 8px; padding: 6px 8px; background: #10275c; color: #fff; font-size: 18px; font-weight: bold; }
.box:nth-of-type(3n+2) .bh { background: #0a1a40; }
.box:nth-of-type(3n) .bh { background: #ff4b1f; }
.bh a { color: #ffb35c; }
.sh { font-size: 17px; margin: 10px 0 6px; color: #ff4b1f; border-bottom: 1px dotted #ff4b1f; }
.muted { color: #444; font-size: 16px; margin: 0 0 8px; }
.note { font-size: 16px; color: #444; margin: 8px 0 0; }
.box.intro { background: #f3f6fd; padding-top: 6px; }
.intro p { margin: 0 0 8px; text-align: justify; }
.intro p:last-child { margin-bottom: 0; }
.hl { color: #ff4b1f; }
.more { text-align: right; margin: 8px 0 0; font-weight: bold; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips a { border: 1px solid #10275c; padding: 3px 8px; background: #e6eefc; text-decoration: none; font-size: 16px; color: #061232; }
.chips a.on { background: #ff7a1a; color: #000; }
.chips.pad { margin: 8px; }

/* ---------- Tabs ---------- */
.tab-btns { display: flex; gap: 4px; margin-bottom: 8px; }
.tab-btns button { flex: 1; border: 2px outset #ccc; padding: 6px; background: #eee; font: bold 16px Arial, Helvetica, sans-serif; cursor: pointer; color: #0a1a40; }
.tab-btns button.on { background: #ff7a1a; color: #000; border-style: inset; }

/* ---------- Ô số ---------- */
.balls { display: flex; flex-wrap: wrap; gap: 6px; }
.ball { min-width: 48px; padding: 3px 6px; text-align: center; font-weight: bold; font-size: 22px; color: #ff4b1f; background: #eef3fd; border: 2px solid #ff4b1f; }
.ball.b1 { color: #0a1a40; border-color: #0a1a40; }
.ball.b2 { color: #10275c; border-color: #10275c; }
.ball.b3 { color: #d9480f; border-color: #d9480f; }
.ball.b4 { color: #c2330f; border-color: #c2330f; }
.balls.sm .ball { min-width: 40px; font-size: 18px; opacity: .55; }
.balls.sm .ball.hl { opacity: 1; background: #ff7a1a; }
.balls.center { justify-content: center; }

/* Ô lô đẹp lớn (trang chủ) */
.ld-big { text-align: center; padding: 4px 0 8px; }
.ld-big .lbl { display: block; font-weight: bold; color: #0a1a40; margin: 4px 0; }
.ld-big .num { display: inline-block; min-width: 64px; padding: 4px 10px; margin: 3px; font-size: 34px; font-weight: bold; color: #ff4b1f; background: #eef3fd; border: 2px solid #ff4b1f; }
.ld-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #999; border-left: 1px solid #999; margin-bottom: 8px; }
.ld-grid div { border-right: 1px solid #999; border-bottom: 1px solid #999; padding: 6px 4px; text-align: center; }
.ld-grid small { display: block; font-size: 16px; color: #0a1a40; font-weight: bold; }
.ld-grid b { font-size: 22px; color: #ff4b1f; }
@media (min-width: 560px) { .ld-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Bảng VIP ---------- */
.vip { width: 100%; border-collapse: collapse; margin: 0 0 10px; border: 2px solid #10275c; }
.vip th { background: #ff7a1a; color: #000; padding: 6px 8px; text-align: left; font-size: 17px; }
.vip-d { float: right; font-weight: bold; font-size: 16px; color: #ff4b1f; }
.vip td { padding: 6px 8px; border: 1px solid #999; vertical-align: middle; font-size: 17px; }
.vip td:first-child { width: 42%; font-weight: bold; white-space: nowrap; }
.vip tbody tr:nth-child(2n) td { background: #f5f8ff; }
.vip tfoot td { text-align: right; background: #f3f6fd; font-weight: bold; }
.dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: 0; background: #ff4b1f; }
.d2 { background: #0a1a40; } .d3 { background: #10275c; } .d4 { background: #d9480f; } .d5 { background: #c2330f; } .d6 { background: #e8590c; } .d7 { background: #333; }
.n { color: #ff4b1f; font-size: 20px; font-weight: bold; }
.n.xi { font-size: 17px; white-space: nowrap; display: inline-block; }
.n2 { color: #0a1a40; font-weight: bold; }
.n3 { color: #10275c; font-weight: bold; }

/* ---------- Dàn ---------- */
.dan2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dan-box { padding: 8px; text-align: center; background: #eef3fd; border: 1px dashed #ff4b1f; }
.dan-box.db { background: #e6eefc; border-color: #10275c; }
.dan-box b { color: #0a1a40; }
.dan-box p { margin: 6px 0 0; font-weight: bold; font-size: 19px; color: #ff4b1f; letter-spacing: 1px; word-spacing: 5px; }
.frame-dan { display: block; max-width: 200px; font-size: 16px; line-height: 1.5; word-spacing: 2px; color: #c2330f; font-weight: bold; }

/* ---------- Bảng chung ---------- */
.tbl-wrap { overflow-x: auto; }
.cau, .hist, .dd, .week, .cmp, .book, .lich, .grid10, .week-db, .loto { width: 100%; border-collapse: collapse; font-size: 16px; }
.cau th, .hist th, .dd th, .book th, .lich thead th, .grid10 th, .week-db th, .loto th { background: #ff7a1a; color: #000; padding: 5px 4px; border: 1px solid #999; font-size: 16px; }
.cau td, .hist td, .dd td, .week td, .week th, .cmp td, .book td, .lich td, .lich th, .grid10 td, .week-db td, .loto td { padding: 5px 4px; border: 1px solid #999; text-align: center; }
.cau tbody tr:nth-child(2n), .hist tbody tr:nth-child(2n), .book tbody tr:nth-child(2n) { background: #f5f8ff; }
.hist b { margin: 0 1px; color: #333; }
.hist .hit { color: #fff; background: #10275c; padding: 0 4px; }
.hist .pk span { display: block; white-space: nowrap; }
.hist .pk small { color: #555; font-size: 16px; }
.hist tr.now { background: #eef3fd !important; }
.tag { display: inline-block; padding: 0 6px; border: 1px solid #ff7a1a; background: #eef3fd; color: #3a4a6b; font-weight: bold; font-size: 16px; margin: 1px 0; }
.tag.ok { background: #ffe0cc; color: #006600; border-color: #009900; }
.tag.no { background: #ffe3da; color: #c2330f; border-color: #ff4b1f; }
.cmp td:first-child, .cmp td:last-child, .dd td, .week td, .lich td, .lich th, .dream td:first-child { text-align: left; }
.dd td:first-child { text-align: center; width: 50px; }
.bar { display: inline-block; height: 12px; background: #ff4b1f; margin-right: 6px; max-width: 75%; vertical-align: -1px; }
.bar.b2 { background: #0a1a40; }
.week th { width: 90px; color: #10275c; }
.week td a { display: inline-block; margin: 2px 8px 2px 0; font-weight: bold; }
.week tr.today, .lich tr.today { background: #eef3fd; }
.lich thead small { display: block; font-weight: normal; color: #333; font-size: 16px; }
.grid10 td.hot { background: #ffe3da; color: #ff4b1f; font-weight: bold; }
.grid10 td.cold { background: #ffe7d6; color: #0a1a40; }
.week-db td { white-space: nowrap; }
.week-db td b { color: #ff4b1f; }
.week-db td.na { background: #eee; }
.lt { font-size: 16px; text-align: left !important; }

/* ---------- Thống kê ---------- */
.st2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st2 .sh { margin-top: 4px; }
.nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 4px; }
.nums span { text-align: center; padding: 4px 2px; background: #fff1ec; border: 1px solid #ff4b1f; }
.nums.cold span, .nums span.lo { background: #ffe7d6; border-color: #0a1a40; }
.nums span.hi { background: #ff7a1a; border-color: #b34700; }
.nums b { display: block; font-size: 20px; color: #ff4b1f; }
.nums.cold b { color: #0a1a40; }
.nums small { color: #333; font-size: 16px; }
.nums.wide { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }

/* ---------- Chốt số 3 ô ---------- */
.chot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #999; border-left: 1px solid #999; margin: 8px 0 10px; }
.chot div { text-align: center; padding: 8px 4px; border-right: 1px solid #999; border-bottom: 1px solid #999; background: #eef3fd; }
.chot small { display: block; font-size: 16px; color: #0a1a40; font-weight: bold; }
.chot b { font-size: 26px; color: #ff4b1f; letter-spacing: 1px; }

/* ---------- Dự đoán 3 miền ---------- */
.dd3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.dd-c { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 4px; color: #fff !important; text-decoration: none; border: 2px outset #999; line-height: 1.3; }
.dd-c b { font-size: 17px; color: #ffb35c; }
.dd-c span { font-size: 16px; margin: 2px 0; }
.dd-c i { font-style: normal; font-size: 16px; font-weight: bold; text-decoration: underline; }
.dd-mb { background: #ff4b1f; } .dd-mt { background: #0a1a40; } .dd-mn { background: #10275c; }

/* ---------- Lưới đài ---------- */
.dai-g { margin-bottom: 10px; }
.dai-h { display: inline-block; padding: 2px 10px; color: #fff; font-weight: bold; font-size: 16px; margin-bottom: 6px; }
.dai-mb { background: #ff4b1f; } .dai-mn { background: #10275c; } .dai-mt { background: #0a1a40; }
.dai { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px; }
.dai a { padding: 6px 8px; background: #f5f8ff; border: 1px solid #10275c; line-height: 1.3; text-decoration: none; }
.dai a:hover { background: #eef3fd; }
.dai b { display: block; color: #0a1a40; font-size: 17px; }
.dai small { color: #333; font-size: 16px; }

/* ---------- Bảng kết quả ---------- */
.kq { width: 100%; border-collapse: collapse; margin-bottom: 10px; border: 2px solid #10275c; }
.kq caption { padding: 6px; font-weight: bold; font-size: 18px; color: #fff; background: #10275c; }
.kq caption a { color: #ffb35c; }
.kq caption small { color: #ffe2c7; font-size: 16px; }
.kq th { width: 52px; background: #eee; color: #0a1a40; font-size: 16px; border: 1px solid #999; }
.kq td { border: 1px solid #999; padding: 4px; text-align: center; }
.kq-r thead th { width: auto; background: #ff7a1a; color: #000; padding: 5px 2px; }
.kq-r thead th:first-child { width: 40px; }
.ns { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; }
.ns span { font-size: 20px; font-weight: bold; letter-spacing: 1px; color: #000; }
.ns.n2, .ns.n3, .ns.n4, .ns.n6 { display: grid; gap: 2px 4px; }
.ns.n2 { grid-template-columns: repeat(2, 1fr); }
.ns.n3, .ns.n6 { grid-template-columns: repeat(3, 1fr); }
.ns.n4 { grid-template-columns: repeat(4, 1fr); }
.ns.col { flex-direction: column; gap: 2px; }
.ns.col span { font-size: 18px; }
.kq tr.db td span { color: #ff4b1f; font-size: 26px; }
.kq tr.g7 td span { color: #ff4b1f; }
.kq .ma { font-weight: bold; color: #0a1a40; }
.kq .wait { color: #999; }
.loto th { width: 50px; }
.loto thead th { width: auto; }
.loto td { text-align: left; letter-spacing: .5px; }
.live-note { margin: 8px 0; padding: 6px 10px; background: #ffe3da; border: 1px solid #ff4b1f; color: #ff4b1f; font-weight: bold; text-align: center; }

/* ---------- Danh sách loại cầu, ngày dự đoán ---------- */
.types { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #999; border-left: 1px solid #999; }
.types a { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 4px; border-right: 1px solid #999; border-bottom: 1px solid #999; text-decoration: none; line-height: 1.25; }
.types a:hover { background: #eef3fd; }
.types i { font-style: normal; font-size: 22px; }
.types b { color: #0a1a40; font-size: 16px; margin: 3px 0 2px; text-decoration: underline; }
.types small { color: #ff4b1f; font-weight: bold; font-size: 17px; }
.types + .bh { margin-top: 14px; }
@media (min-width: 560px) { .types { grid-template-columns: repeat(3, 1fr); } }
.dlist { list-style: none; margin: 0; padding: 0; }
.dlist li { padding: 6px 4px; border-bottom: 1px dotted #999; }
.dlist li::before { content: "» "; color: #ff4b1f; font-weight: bold; }
.links .dl { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 6px; font-size: 16px; }
.links .sh a { color: #ff4b1f; }

/* ---------- Form ---------- */
.lucky { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.lucky select, .search, .days select { font: 17px Arial, Helvetica, sans-serif; padding: 4px; border: 2px inset #ccc; background: #fff; }
.lucky .sex label { margin-right: 10px; font-weight: bold; }
.lucky button { border: 2px outset #ff7d57; padding: 6px 16px; color: #fff; background: #ff4b1f; font: bold 17px Arial, Helvetica, sans-serif; cursor: pointer; }
.lucky button:active { border-style: inset; }
.lucky-r { text-align: center; margin: 12px 0 8px; }
.search { width: 100%; margin-bottom: 8px; }
.days { margin: 8px 0; text-align: center; font-size: 16px; }

/* ---------- Bài viết & FAQ ---------- */
.prose { font-size: 17px; position: relative; }
.prose h2 { font-size: 19px; color: #ff4b1f; border-bottom: 2px solid #ff7a1a; padding-bottom: 2px; margin: 16px 0 6px; }
.prose h2:first-child { margin-top: 4px; }
.prose h3 { font-size: 18px; color: #0a1a40; margin: 12px 0 6px; }
.prose p { margin: 6px 0 10px; text-align: justify; }
.prose ul { padding-left: 22px; margin: 0 0 10px; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid #999; padding: 5px; }
.seo-wrap.clip .prose { max-height: 460px; overflow: hidden; }
.seo-wrap.clip .prose::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.seo-more { display: block; margin: 8px auto 4px; font: bold 17px Arial, Helvetica, sans-serif; background: #ff7a1a; border: 2px outset #ffd2b0; padding: 4px 16px; cursor: pointer; }
.faq details { border-bottom: 1px dotted #999; padding: 6px 0; }
.faq summary { font-weight: bold; color: #0a1a40; cursor: pointer; }
.faq-a { padding: 4px 0 2px; }
.faq-a p, .faq details p { margin: 0 0 6px; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dotted #999; }
.post-list h3 { margin: 0 0 4px; font-size: 17px; }
.post-list p { margin: 4px 0 0; font-size: 16px; }
.meta { font-size: 16px; color: #555; }
.toc { background: #f3f6fd; border: 1px solid #ff7a1a; padding: 8px 12px; margin: 10px 0; }
.sapo { font-weight: bold; }
.tags a { display: inline-block; margin: 0 6px 6px 0; padding: 1px 8px; border: 1px solid #10275c; background: #e6eefc; font-size: 16px; }
.pager { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; justify-content: center; }
.pager a, .pager span { display: block; min-width: 36px; text-align: center; padding: 2px 9px; border: 1px solid #10275c; text-decoration: none; }
.pager .on span { color: #fff; background: #ff4b1f; border-color: #ff4b1f; }
.pager .off span { color: #999; border-color: #ccc; }
.pn { display: flex; justify-content: space-between; gap: 4px; margin: 8px 0; font-size: 16px; }
.pn a { padding: 6px 8px; border: 1px solid #10275c; font-weight: bold; text-align: center; background: #f5f8ff; }
.pn a.mid { color: #fff; background: #10275c; }

/* ---------- Nút ---------- */
.edit-page { position: fixed; left: 10px; bottom: 14px; z-index: 40; padding: 6px 12px; color: #000 !important; font-weight: bold; background: #ff7a1a; border: 2px outset #ffd2b0; text-decoration: none; }
#to-top { position: fixed; right: 10px; bottom: 14px; width: 44px; height: 44px; border: 2px outset #2b4687; color: #fff; font: bold 20px Arial, sans-serif; background: #ff4b1f; opacity: 0; pointer-events: none; cursor: pointer; z-index: 30; }
#to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Chân trang ---------- */
.ft { margin-top: 10px; padding: 10px 8px 16px; color: #fff; background: #06122e; font-size: 16px; border-top: 4px double #ff7a1a; }
.ft b { color: #ffb35c; display: block; margin-bottom: 2px; }
.ft a, .ft a:visited { color: #ffe0cc; }
.ft-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.ft-cols a { display: block; padding: 2px 0; }
.ft-dai p { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 12px; }
.ft-links { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 0; border-top: 1px dashed #ff9a4d; border-bottom: 1px dashed #ff9a4d; }
.ft-links a { color: #fff; font-weight: bold; }
.ft-note { font-size: 16px; text-align: justify; }
.ft-copy { text-align: center; margin: 8px 0 0; font-weight: bold; color: #ffb35c; }

@media (max-width: 480px) {
  main { padding: 4px; }
  .pt { font-size: 19px; }
  .st2 { grid-template-columns: 1fr; }
  .vip td:first-child { width: 38%; }
  .ns span { font-size: 18px; }
  .kq tr.db td span { font-size: 23px; }
  .ns.col span { font-size: 16px; letter-spacing: 0; }
  .ft-cols { grid-template-columns: 1fr 1fr; }
  .dr-l { grid-template-columns: 1fr; }
  .dd-c b { font-size: 16px; }
}
.bh::before { content: "★ "; color: #ffb35c; }

/* =====================================================================
   QuayThuXoSo.Mobi – lớp giao diện riêng: navy đậm + đỏ cam, góc bo nhẹ
   ===================================================================== */
.wap { border-left: 0; border-right: 0; box-shadow: 0 0 0 3px #ff4b1f; }
a { color: #c2330f; }
a:visited { color: #8f2a0c; }
.nav { background: #10275c; border-bottom: 3px solid #ff4b1f; }
.nav a { border-color: #22397a; }
.nav a:hover, .nav a.on { background: #ff4b1f; color: #fff; }
.burger { background: #ff4b1f; color: #fff; border-bottom: 2px solid #061232; }
.drawer { background: #f3f6fd; border-bottom-color: #10275c; }
.dr-g b { color: #10275c; }
.marq { background: #0a1a40; color: #dce6ff; border-bottom: 2px solid #ff4b1f; }
.marq b { color: #ffb35c; }
.pt { background: linear-gradient(90deg, #0a1a40, #10275c 60%, #1b3a80); color: #fff; border: 0; border-left: 6px solid #ff4b1f; border-radius: 6px; text-align: left; padding: 10px 12px; }
.box { border: 1px solid #c9d5f0; border-radius: 8px; overflow: hidden; }
.bh { background: #10275c; border-bottom: 3px solid #ff4b1f; }
.box:nth-of-type(3n+2) .bh { background: #0a1a40; }
.box:nth-of-type(3n) .bh { background: #173373; }
.bh a { color: #ffb35c; }
.sh { color: #10275c; border-bottom: 2px solid #ff4b1f; }
.intro { background: #f5f8ff; border-left: 4px solid #ff4b1f; }

/* ---------- Thanh quay thử ---------- */
.qt-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.qt-nav a { flex: 1 1 auto; text-align: center; text-decoration: none; font-weight: bold; font-size: 16px; padding: 7px 10px; border-radius: 20px; background: #e6eefc; color: #10275c; border: 1px solid #c9d5f0; }
.qt-nav a.on, .qt-nav a:hover { background: #ff4b1f; color: #fff; border-color: #ff4b1f; }

/* ---------- Âm lịch ---------- */
.lunar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.ln-d { background: #10275c; color: #fff; border-radius: 8px; text-align: center; padding: 6px; }
.ln-d.am { background: #ff4b1f; }
.ln-d small, .ln-h small { display: block; font-size: 16px; opacity: .9; }
.ln-d b { display: block; font-size: 28px; line-height: 1.2; }
.ln-d span { font-size: 16px; }
.ln-h { grid-column: 1 / -1; background: #f3f6fd; border: 1px dashed #10275c; border-radius: 8px; padding: 6px 8px; }
.ln-h small { color: #10275c; font-weight: bold; }
.ln-h p { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ln-h p span { background: #fff; border: 1px solid #c9d5f0; border-radius: 14px; padding: 2px 10px; font-weight: bold; color: #c2330f; font-size: 16px; }
.ln-h p span i { font-style: normal; color: #3a4a6b; font-weight: normal; }
.ln-h .tt-day { display: block; color: #c2330f; font-weight: bold; }

/* ---------- Máy quay thử ---------- */
.qt { border: 2px solid #10275c; border-radius: 10px; padding: 8px; margin: 0 0 8px; background: #fff; }
.qt-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; margin-bottom: 6px; }
.qt-head b { color: #10275c; font-size: 18px; }
.qt-head span { color: #3a4a6b; font-size: 16px; }
.qt-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.qt-btn { font: bold 17px Arial, Helvetica, sans-serif; border: 0; border-radius: 24px; padding: 10px 20px; cursor: pointer; color: #fff; }
.qt-btn.go { background: linear-gradient(180deg, #ff6a3d, #ff4b1f 55%, #d93a10); box-shadow: 0 3px 0 #9c2a0b; }
.qt-btn.new { background: #10275c; box-shadow: 0 3px 0 #061232; }
.qt-btn:active { transform: translateY(2px); box-shadow: none; }
.qt-sp { font-size: 16px; color: #3a4a6b; }
.qt-sp select { font-size: 16px; padding: 4px; border-radius: 6px; border: 1px solid #c9d5f0; }
.qt-st { font-size: 16px; color: #3a4a6b; background: #f3f6fd; border-radius: 6px; padding: 6px 8px; margin: 0 0 8px; }
.qt-kq .qn { transition: color .2s; }
.qt-kq .qn.rolling { color: #ff4b1f; }
.qt-kq .qn.done { animation: pop .35s ease-out; }
.qt.spinning .qt-kq { outline: 3px solid #ffb35c; outline-offset: -3px; }
@keyframes pop { 0% { transform: scale(1.35); color: #ff4b1f; } 100% { transform: scale(1); } }
.qt-cmp { font-size: 16px; background: #fff1ec; border-left: 4px solid #ff4b1f; padding: 6px 8px; margin: 8px 0 0; }
.qt-cmpl { font-size: 16px; margin: 8px 0 0; padding-left: 20px; }
.ok { color: #0a7a2f; }
.qt-mini { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 8px; }
@media (min-width: 560px) { .qt-mini { grid-template-columns: 1fr 1fr; } }
.qm { display: block; text-decoration: none; background: #10275c; color: #fff !important; border-radius: 10px; padding: 10px; text-align: center; }
.qm.tt { background: linear-gradient(135deg, #ff4b1f, #ff7a1a); }
.qm small, .qm span, .qm i { display: block; font-size: 16px; }
.qm b { display: block; font-size: 30px; letter-spacing: 2px; color: #ffb35c; }
.qm.tt b { color: #fff; }
.qm i { font-style: normal; text-decoration: underline; margin-top: 4px; }
.tt-box { text-align: center; background: #fff1ec; border: 2px dashed #ff4b1f; border-radius: 10px; padding: 8px; margin: 0 0 10px; }
.tt-box small { font-weight: bold; color: #c2330f; font-size: 17px; }
.hub-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.hub-g a { display: block; text-decoration: none; background: #f3f6fd; border: 1px solid #c9d5f0; border-left: 4px solid #ff4b1f; border-radius: 8px; padding: 8px; }
.hub-g b { display: block; color: #10275c; }
.hub-g span { font-size: 16px; color: #3a4a6b; }
.pager { display: flex; justify-content: space-between; font-weight: bold; }
.ld-big .num sup { color: #ff4b1f; font-size: 16px; }

/* ---------- Vietlott ---------- */
.vl-balls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 10px 0; }
.vb { width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: bold 22px Arial, Helvetica, sans-serif; color: #fff; background: radial-gradient(circle at 35% 30%, #ff8c5a, #ff4b1f 60%, #b8320d); }
.vb.bonus { background: radial-gradient(circle at 35% 30%, #5a7bd1, #10275c 65%); }
.vb.rolling { opacity: .75; }
.vb.done { animation: pop .35s ease-out; }
