*{box-sizing:border-box}body{margin:0;background:#f3f5f8;color:#202938;font:15px/1.55 Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}.wrap{width:min(1160px,calc(100% - 28px));margin:auto}.topline{background:#111827;color:#dce3ed;font-size:12px;padding:8px 0}.topline .wrap{display:flex;justify-content:space-between}.site-head{background:#fff;border-bottom:1px solid #e7eaf0}.head-inner{display:flex;align-items:center;justify-content:space-between;padding:18px 0}.brand{display:flex;gap:12px;align-items:center;color:#a50018}.brand-icon{width:48px;height:48px;border-radius:13px;background:linear-gradient(145deg,#c90020,#780014);display:grid;place-items:center;color:white;font-weight:900;font-size:20px;box-shadow:0 5px 14px #9e001d33}.brand b{display:block;font-size:21px;letter-spacing:.4px}.brand small{display:block;font-size:10px;color:#737b88;letter-spacing:1.4px}.head-right{text-align:right;color:#a50018;font-size:12px}.head-right small{display:block;color:#7b8492;font-weight:400}.nav{background:#a60019;color:#fff;box-shadow:0 3px 10px #51000d22}.nav-inner{display:flex;gap:4px;overflow:auto}.nav a{padding:14px 13px;white-space:nowrap;font-weight:700;font-size:13px}.nav a:hover,.nav a.active{background:#780012}.main{padding:22px 0 40px}.hero{background:linear-gradient(120deg,#920017,#c40021 60%,#ed5b36);border-radius:18px;padding:32px;color:white;display:flex;align-items:center;justify-content:space-between;gap:24px;box-shadow:0 10px 28px #9b001d25}.kicker,.page-title small,.section-title small{font-size:11px;letter-spacing:1.5px;font-weight:800;opacity:.8}.hero h1{font-size:34px;line-height:1.15;margin:9px 0}.hero h1 em{font-style:normal;color:#ffe2a2}.hero p{max-width:620px;color:#ffe9ec;margin:0 0 18px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.btn{border:0;background:#b0001c;color:#fff;padding:12px 18px;border-radius:9px;font-weight:800;display:inline-block;cursor:pointer}.hero .btn{background:#fff;color:#a40018}.hero .btn.ghost{background:#ffffff1a;color:#fff;border:1px solid #ffffff66}.hero-side{min-width:210px;background:#ffffff17;border:1px solid #ffffff45;padding:20px;border-radius:13px;display:flex;flex-direction:column;gap:8px}.hero-side b{font-size:20px}.hero-side span,.hero-side small{color:#ffe8ec}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0 28px}.quick-grid a{background:white;border:1px solid #e5e8ee;border-radius:12px;padding:17px;display:flex;justify-content:space-between;align-items:center}.quick-grid b{color:#a40018;font-size:17px}.quick-grid span{color:#788292;font-size:12px}.section-title,.region-title{display:flex;justify-content:space-between;align-items:end;margin:24px 0 12px}.section-title h2,.region-title h3{margin:2px 0;color:#242d3b}.section-title small{color:#a40018}.section-title>a,.region-title>a{color:#ad001b;font-weight:700;font-size:13px}.region-block{margin:22px 0}.region-title{background:#fff;border:1px solid #e7eaf0;border-left:4px solid #b0001c;border-radius:10px;padding:10px 14px;margin:0 0 12px}.region-title h3{font-size:17px}.draw-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.draw-card,.admin-panel{background:#fff;border:1px solid #e4e8ef;border-radius:12px;overflow:hidden}.draw-top{padding:12px 15px;background:#fff7f8;border-bottom:1px solid #f1dce0;display:flex;justify-content:space-between;color:#a40018}.draw-top span{font-size:12px;color:#697386}.result-table{width:100%;border-collapse:collapse}.result-table th,.result-table td{padding:9px 12px;border-bottom:1px solid #edf0f4}.result-table th{width:105px;text-align:left;color:#667085;font-weight:600;font-size:13px}.result-table td{text-align:center;color:#171f2b;font-size:17px;letter-spacing:.4px}.result-table td strong{font-weight:800}.result-table tr:first-child td{color:#b0001c;font-size:22px}.result-table tr:last-child th,.result-table tr:last-child td{border:0}.result-table i{color:#c4c9d1;font-style:normal}.tool-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:28px 0}.tool-grid a{background:#fff;border:1px solid #e5e8ee;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:5px}.tool-grid a>b{font-size:25px;color:#b0001c}.tool-grid small{color:#7a8492}.page-title{padding:10px 0 18px}.page-title small{color:#ad001b}.page-title h1{font-size:29px;margin:4px 0}.page-title p{margin:0;color:#687386}.filter,.ticket-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap;background:#fff;border:1px solid #e5e8ee;border-radius:12px;padding:16px;margin:12px 0 20px}.filter label,.ticket-form label,.admin-panel label{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:13px;flex:1;min-width:150px}.filter input,.filter select,.ticket-form input,.ticket-form select,.admin-panel input{width:100%;border:1px solid #ccd2dc;border-radius:8px;padding:11px;font:inherit;background:#fff;color:#202938}.ticket-form{align-items:end}.ticket-form label{min-width:180px}.empty{grid-column:1/-1;background:white;border:1px dashed #d5dae3;border-radius:12px;padding:30px;text-align:center;color:#687386}.match-list{display:grid;gap:8px}.match-list>div{background:#fff;border:1px solid #e4e8ef;border-radius:9px;padding:13px;display:flex;gap:18px;align-items:center}.match-list b{font-size:20px;color:#b0001c}.match-list span{color:#657084}.disclaimer,.source-note{background:#fff8e9;border:1px solid #f2dfb4;border-radius:9px;padding:12px;color:#6d5a2c;font-size:13px;margin:18px 0}.stat-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.stat-cards>div,.admin-cards>div{background:#fff;border:1px solid #e5e8ee;border-radius:11px;padding:15px}.stat-cards small,.admin-cards small{display:block;color:#768092}.stat-cards b,.admin-cards b{font-size:24px;color:#a40018}.table-wrap{overflow:auto;background:white;border:1px solid #e5e8ee;border-radius:11px}.stats-table{width:100%;border-collapse:collapse;min-width:500px}.stats-table th,.stats-table td{padding:10px 13px;border-bottom:1px solid #edf0f4;text-align:left}.stats-table th{background:#fff4f5;color:#a40018}.stats-table td:first-child b{color:#a40018}.game-tabs{display:flex;gap:8px;overflow:auto;margin:14px 0}.game-tabs a{white-space:nowrap;background:#fff;border:1px solid #e5e8ee;padding:10px 14px;border-radius:9px}.game-tabs a.active{background:#a40018;color:#fff}.vl-list{display:grid;gap:12px}.vl-card{background:#fff;border:1px solid #e5e8ee;border-radius:11px;padding:15px}.vl-card>div{display:flex;justify-content:space-between;color:#a40018}.vl-card pre{white-space:pre-wrap;word-break:break-word;background:#f7f8fa;padding:12px;border-radius:8px;font-size:12px}.source-note a,.foot a{color:#a40018;text-decoration:underline}.foot{display:flex;justify-content:space-between;gap:20px;padding:24px 0}.foot b{color:#a40018;font-size:18px}.foot p{color:#788292;margin:5px 0}footer{background:#fff;border-top:1px solid #e5e8ee}.admin-head{background:#1d293b;color:#fff;padding:18px 0}.admin-head .wrap{display:flex;justify-content:space-between}.admin-head a{color:#fff;text-decoration:underline}.admin-main{padding:22px 0}.admin-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:15px}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.admin-panel{padding:18px;margin-bottom:14px}.admin-panel h2{color:#a40018;margin:0 0 14px}.admin-panel form{display:grid;gap:12px}.admin-panel label{margin:8px 0}.admin-panel .btn{justify-self:start}.help{color:#737e8d;font-size:13px}.btn.light{background:#e9edf3;color:#293447}.btn.danger{background:#b0001c;padding:7px 10px}.flash{padding:12px;border-radius:8px;margin-bottom:14px}.success{background:#e8f7ee;color:#17683b}.error{background:#fff0f0;color:#a40018}.small-value{font-size:14px!important}.admin-panel .stats-table{font-size:13px}@media(max-width:760px){.topline .wrap span{display:none}.head-right{display:none}.hero{padding:22px;display:block}.hero h1{font-size:27px}.hero-side{margin-top:18px}.quick-grid{grid-template-columns:1fr}.quick-grid a{padding:14px}.draw-grid{grid-template-columns:1fr}.tool-grid{grid-template-columns:repeat(2,1fr)}.page-title h1{font-size:24px}.filter,.ticket-form{display:grid;grid-template-columns:1fr}.filter label,.ticket-form label{min-width:0}.stat-cards,.admin-cards{grid-template-columns:1fr}.admin-grid{grid-template-columns:1fr}.admin-head .wrap,.foot{display:block}.admin-head span{display:block;margin-top:8px}.brand b{font-size:18px}.nav a{padding:12px 11px}.foot>div+div{margin-top:15px}}

/* PATCH 2026-11-15: reliable mobile layout */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;overflow-x:hidden}
body{min-width:320px;overflow-x:hidden}
img,video,iframe{max-width:100%}
.wrap{width:min(1160px,calc(100% - 28px))}
.draw-card{min-width:0}
.result-table{width:100%;table-layout:fixed}
.result-table th{width:96px;vertical-align:middle}
.result-table td{min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.8}
.result-table td strong{display:inline-block;white-space:nowrap;margin:0 2px}
.result-table i{padding:0 2px}
.nav-inner{scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.nav-inner a{flex:0 0 auto}
.hero,.draw-card,.admin-panel,.vl-card,.filter,.ticket-form{min-width:0}
.table-wrap{-webkit-overflow-scrolling:touch}
@media(max-width:760px){
 .wrap{width:calc(100% - 24px)}
 .main{padding-top:14px}
 .head-inner{padding:12px 0}
 .brand-icon{width:42px;height:42px;flex:0 0 42px}
 .brand b{font-size:17px}
 .brand small{font-size:9px;letter-spacing:.8px}
 .nav-inner{gap:2px}
 .nav a{padding:12px 10px;font-size:12px}
 .hero{border-radius:13px;padding:20px}
 .hero h1{font-size:26px;line-height:1.2}
 .hero p{font-size:14px}
 .hero-side{min-width:0;padding:15px}
 .quick-grid{gap:8px;margin:14px 0 22px}
 .quick-grid a{min-width:0;gap:8px}
 .section-title,.region-title{gap:10px;align-items:center}
 .section-title h2{font-size:19px}
 .region-title h3{font-size:16px}
 .draw-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 .draw-top{gap:8px;align-items:center}
 .draw-top b{min-width:0;overflow-wrap:anywhere}
 .result-table th{width:82px;padding:8px 9px;font-size:12px}
 .result-table td{padding:8px 8px;font-size:15px;letter-spacing:0}
 .result-table tr:first-child td{font-size:19px}
 .result-table td strong{margin:0 1px}
 .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .tool-grid a{padding:13px;min-width:0}
 .page-title h1{font-size:23px;line-height:1.25}
 .filter,.ticket-form{padding:12px;gap:10px}
 .filter label,.ticket-form label{width:100%}
 .match-list>div{align-items:flex-start;flex-direction:column;gap:4px}
 .foot{padding:18px 0}
 .admin-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-cards>div{min-width:0;overflow-wrap:anywhere}
 .admin-head .wrap{gap:8px}
 .admin-panel{padding:14px}
}
@media(max-width:380px){
 .brand b{font-size:15px}
 .brand small{font-size:8px}
 .result-table th{width:74px;padding-left:7px;padding-right:5px}
 .result-table td{font-size:14px;padding-left:5px;padding-right:5px}
 .result-table tr:first-child td{font-size:18px}
 .tool-grid{grid-template-columns:1fr 1fr}
}


/* Region results layout inspired by compact lottery board, independent pages per region */
.result-page-title{text-align:center;background:#fff;padding:12px 8px;border-bottom:1px solid #e4e7ec}.result-page-title h1{font-size:22px;line-height:1.35;margin:0;color:#b84b08}
.weekday-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border-bottom:1px solid #ddd}.weekday-tabs a{text-align:center;padding:13px 5px;border:1px solid #e3e3e3;font-size:15px}.weekday-tabs a.active{background:#c94b00;color:#fff;font-weight:800}
.region-band{background:#c94b00;color:#fff;text-align:center;padding:13px 8px;font-size:18px;font-weight:800}.region-date-filter{display:flex;justify-content:center;align-items:end;gap:10px;background:#fff;padding:12px;margin:0 0 10px}.region-date-filter label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:700}.region-date-filter input{padding:9px;border:1px solid #ccc;border-radius:5px}.lottery-table-scroll{overflow-x:auto;background:#fff;border:1px solid #d7d7d7}.lottery-matrix{width:100%;min-width:520px;border-collapse:collapse;table-layout:fixed}.lottery-matrix th,.lottery-matrix td{border:1px solid #dedede;text-align:center;padding:7px 5px}.lottery-matrix thead th{background:#f5f6f7;color:#12578c;font-size:15px;font-weight:800}.lottery-matrix .prize-col{width:54px;background:#f0f0f0;color:#333;font-weight:500}.lottery-matrix td{font-size:18px;font-weight:800;color:#333}.lottery-matrix td strong{display:block;line-height:1.5;overflow-wrap:anywhere}.lottery-matrix tbody tr:first-child td{font-size:25px;color:#c94b00}.lottery-matrix tbody tr:last-child td{font-size:24px;color:#c94b00}.lottery-options{display:flex;gap:14px;align-items:center;background:#fff;border:1px solid #ddd;padding:10px;font-weight:700}
@media(max-width:600px){.result-page-title h1{font-size:18px}.weekday-tabs a{padding:11px 2px;font-size:13px}.region-band{font-size:16px}.region-date-filter{justify-content:stretch;flex-wrap:wrap}.region-date-filter label{flex:1;min-width:150px}.region-date-filter input{width:100%}.lottery-matrix{min-width:560px}.lottery-matrix th,.lottery-matrix td{padding:6px 4px}.lottery-matrix td{font-size:17px}.lottery-matrix tbody tr:first-child td,.lottery-matrix tbody tr:last-child td{font-size:22px}}

/* Zalo group link: shown only when Admin has configured a valid URL */
.nav-inner{align-items:center}
.nav-inner .zalo-join{margin-left:auto;flex:0 0 auto;background:#fff;color:#0879d1;border-radius:8px;padding:9px 13px;font-weight:800;box-shadow:0 2px 7px #3b001022}
.nav-inner .zalo-join:hover{background:#eaf5ff;color:#005ca8}
@media(max-width:760px){.nav-inner .zalo-join{margin-left:4px;padding:9px 10px;font-size:12px}}

/* HOME ZALO CTA - prominent homepage placement */
.home-zalo-join{display:flex;align-items:center;gap:14px;margin:16px 0 24px;padding:16px 18px;background:linear-gradient(105deg,#0878d1,#1598ec);border:1px solid #0874c7;border-radius:14px;color:#fff;box-shadow:0 7px 20px #0878d12b}
.home-zalo-icon{width:48px;height:48px;flex:0 0 48px;border-radius:14px;background:#fff;color:#0879d1;display:grid;place-items:center;font-size:28px;font-weight:900}
.home-zalo-copy{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.home-zalo-copy b{font-size:16px;letter-spacing:.2px}
.home-zalo-copy span{font-size:13px;color:#e8f5ff}
.home-zalo-join>a{display:inline-flex;align-items:center;gap:9px;flex:0 0 auto;background:#fff;color:#0873c5;padding:12px 16px;border-radius:9px;font-weight:900;font-size:13px;box-shadow:0 2px 6px #003d7025}
.home-zalo-join>a:hover{background:#eaf6ff}
@media(max-width:600px){.home-zalo-join{gap:10px;padding:13px;margin:12px 0 19px;border-radius:12px}.home-zalo-icon{width:42px;height:42px;flex-basis:42px;font-size:24px}.home-zalo-copy b{font-size:13px;line-height:1.35}.home-zalo-copy span{font-size:11px;line-height:1.4}.home-zalo-join>a{padding:10px 11px;font-size:11px;white-space:nowrap}}
@media(max-width:380px){.home-zalo-join{flex-wrap:wrap}.home-zalo-copy{flex:1 1 calc(100% - 60px)}.home-zalo-join>a{margin-left:52px}}

/* Homepage province-by-province lottery matrix */
.home-region-results .lottery-table-scroll{border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.05);-webkit-overflow-scrolling:touch}
.home-region-results .lottery-matrix{table-layout:fixed}
.home-region-results .lottery-matrix thead th{white-space:normal;overflow-wrap:anywhere}
.home-region-results .lottery-matrix td strong{padding:1px 0}
@media(max-width:600px){.home-region-results .lottery-table-scroll{max-width:calc(100vw - 20px)}.home-region-results .lottery-matrix th,.home-region-results .lottery-matrix td{padding:7px 4px}.home-region-results .lottery-matrix thead th{font-size:14px}.home-region-results .lottery-matrix td{font-size:18px}}

/* V8: selector for full / last 2 / last 3 digits on homepage result tables */
.lottery-display-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:10px 0;color:#4b5563;font-size:13px;font-weight:700}
.lottery-display-tools .lottery-mode{appearance:none;border:1px solid #d5d9df;background:#fff;color:#344054;border-radius:7px;padding:7px 13px;font:inherit;font-weight:800;cursor:pointer;min-height:34px}
.lottery-display-tools .lottery-mode.active{background:#b62920;border-color:#b62920;color:#fff;box-shadow:0 2px 5px #b6292026}
.lottery-display-tools .lottery-mode:focus-visible{outline:3px solid #f5b942;outline-offset:2px}
@media(max-width:600px){.lottery-display-tools{gap:6px;padding:9px 0}.lottery-display-tools .lottery-mode{padding:7px 12px;min-height:36px}}


/* V10 - compact lottery tables: fit mobile viewport without horizontal scrolling */
.lottery-table-scroll{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
  -webkit-overflow-scrolling:auto;
}
.lottery-matrix{
  width:100% !important;
  min-width:0 !important;
  max-width:100%;
  table-layout:fixed;
  border-collapse:collapse;
}
.lottery-matrix th,
.lottery-matrix td{
  min-width:0;
  padding:6px 2px;
  overflow:hidden;
}
.lottery-matrix .prize-col{
  width:clamp(28px,8vw,46px);
  padding-left:1px;
  padding-right:1px;
  white-space:nowrap;
  font-size:clamp(10px,2.8vw,14px);
}
.lottery-matrix thead th{
  padding:7px 2px;
  font-size:clamp(9px,2.7vw,14px);
  line-height:1.2;
  overflow-wrap:anywhere;
  word-break:normal;
}
.lottery-matrix td{
  font-size:clamp(12px,3.3vw,18px);
  line-height:1.35;
}
.lottery-matrix td strong{
  display:block;
  line-height:1.45;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:clip;
  font-size:inherit;
  letter-spacing:-.35px;
}
.lottery-matrix tbody tr:first-child td,
.lottery-matrix tbody tr:last-child td{
  font-size:clamp(14px,4vw,24px);
}
@media(max-width:600px){
  .lottery-table-scroll{overflow-x:hidden}
  .lottery-matrix{min-width:0 !important}
  .lottery-matrix th,.lottery-matrix td{padding:5px 1px}
  .lottery-matrix .prize-col{width:29px;font-size:10px}
  .lottery-matrix thead th{font-size:clamp(9px,2.6vw,12px);padding:6px 1px}
  .lottery-matrix td{font-size:clamp(11px,3.2vw,16px)}
  .lottery-matrix tbody tr:first-child td,
  .lottery-matrix tbody tr:last-child td{font-size:clamp(13px,3.8vw,20px)}
  .lottery-matrix td strong{letter-spacing:-.45px}
}
@media(max-width:360px){
  .lottery-matrix .prize-col{width:25px;font-size:9px}
  .lottery-matrix thead th{font-size:9px}
  .lottery-matrix td{font-size:11px}
  .lottery-matrix tbody tr:first-child td,
  .lottery-matrix tbody tr:last-child td{font-size:13px}
}


/* V11 FIX: split combined multi-province draw rows into individual province columns */
.region-results-page .lottery-table-scroll{overflow-x:hidden!important;width:100%;max-width:100%}
.region-results-page .lottery-matrix{width:100%!important;min-width:0!important;table-layout:fixed}
.region-results-page .lottery-matrix .prize-col{width:42px}
.region-results-page .lottery-matrix thead th{white-space:normal;overflow-wrap:anywhere;word-break:normal}
@media(max-width:600px){
 .region-results-page .lottery-matrix .prize-col{width:34px;font-size:11px}
 .region-results-page .lottery-matrix thead th{font-size:clamp(10px,2.9vw,13px);padding:6px 2px;line-height:1.2}
 .region-results-page .lottery-matrix td{font-size:clamp(13px,3.8vw,17px);padding:5px 2px}
 .region-results-page .lottery-matrix td strong{display:block;white-space:nowrap;line-height:1.55}
}

.province-seo-links{margin:14px 0;padding:12px;background:#fff;border:1px solid #e3e6eb;border-radius:10px;line-height:1.8}
.province-seo-links>div{display:flex;flex-wrap:wrap;gap:7px 14px}
.province-seo-links a,.seo-related-links a{color:#a40018;text-decoration:underline;font-weight:600}


/* V15 - giao diện bảng kết quả theo mẫu tham chiếu 15-11-2026 */
:root{--lottery-orange:#c94b00;--lottery-orange-dark:#b84300;--lottery-cream:#fff0c4;--lottery-blue:#14578b}
body{background:#fff;color:#333}
.nav{background:var(--lottery-orange);box-shadow:none}
.nav a:hover,.nav a.active{background:#a93d00}
.site-head{border-bottom-color:#e3d4bd}
.brand{color:var(--lottery-orange)}
.brand-icon{background:var(--lottery-orange);box-shadow:none}
.btn{background:var(--lottery-orange);border-radius:4px}
.result-page-title{background:#fff;padding:12px 8px;border:0}
.result-page-title h1{color:var(--lottery-orange);font-size:21px}
.weekday-tabs{border-top:1px solid #ddd}
.weekday-tabs a{padding:12px 4px;color:#333}
.weekday-tabs a.active{background:var(--lottery-orange);color:#fff}
.region-band{background:var(--lottery-orange);font-size:18px;padding:12px 6px}
.region-results-page,.home-region-results{background:#fff}
.region-results-page .lottery-table-scroll,.home-region-results .lottery-table-scroll{
 border:2px solid var(--lottery-orange);border-radius:0;box-shadow:none;background:#fff
}
.lottery-matrix{border-collapse:collapse;background:#fff}
.lottery-matrix th,.lottery-matrix td{border:1px solid #d2d2d2}
.lottery-matrix thead th{background:#f8edc8;color:var(--lottery-orange);font-size:15px}
.lottery-matrix .prize-col{background:#fff;color:#333;font-size:15px;font-weight:500}
.lottery-matrix tbody tr:nth-child(even) td,.lottery-matrix tbody tr:nth-child(even) th{background:#eee}
.lottery-matrix td{color:#333;font-weight:800}
.lottery-matrix tbody tr:first-child td,.lottery-matrix tbody tr:last-child td{color:var(--lottery-orange)}
.lottery-display-tools{background:#fff;color:#333;padding:9px 8px;gap:8px}
.lottery-display-tools .lottery-mode{border:0;background:transparent;color:#333;border-radius:20px;padding:5px 10px;min-height:0}
.lottery-display-tools .lottery-mode.active{background:#fff2df;color:var(--lottery-orange);box-shadow:inset 0 0 0 2px var(--lottery-orange)}
.region-date-filter{margin:8px 0;background:#fff;border:1px solid #ddd}
.region-date-filter .btn{padding:9px 16px}
.home-region-results .region-title{background:var(--lottery-cream);border:1px solid #e5d7ad;border-left:0;border-radius:0;color:var(--lottery-orange);padding:10px 12px}
.home-region-results .region-title h3{color:var(--lottery-orange);font-size:16px}
.home-region-results .lottery-matrix thead th{background:#f8edc8}
.home-region-results .lottery-matrix .prize-col{background:#fff}
.source-note{border-radius:0}
@media(max-width:600px){
 .wrap{width:100%}
 .main{padding:0 0 22px}
 .result-page-title h1{font-size:18px}
 .weekday-tabs a{font-size:13px;padding:11px 2px}
 .region-band{font-size:16px;padding:11px 5px}
 .region-results-page .lottery-table-scroll,.home-region-results .lottery-table-scroll{max-width:100%;border-left:2px solid var(--lottery-orange);border-right:2px solid var(--lottery-orange)}
 .region-results-page .lottery-matrix,.home-region-results .lottery-matrix{width:100%!important;min-width:0!important}
 .region-results-page .lottery-matrix .prize-col{width:44px;font-size:12px}
 .region-results-page .lottery-matrix thead th,.home-region-results .lottery-matrix thead th{font-size:12px;padding:7px 2px}
 .region-results-page .lottery-matrix td,.home-region-results .lottery-matrix td{font-size:clamp(13px,3.7vw,18px);padding:6px 2px}
 .region-results-page .lottery-matrix tbody tr:first-child td,.region-results-page .lottery-matrix tbody tr:last-child td{font-size:clamp(15px,4.2vw,21px)}
 .lottery-matrix td strong{line-height:1.55}
 .lottery-display-tools{padding:8px 7px;font-size:12px}
 .lottery-display-tools .lottery-mode{font-size:12px;padding:5px 8px}
 .home-region-results .region-title{margin:0;padding:10px 9px}
 .home-region-results .region-title h3{font-size:14px}
 .home-region-results .lottery-matrix .prize-col{width:43px}
 .region-date-filter{padding:10px;margin:0 0 8px}
}
