:root{
  --paper:#FFFFFF;
  --paper-deep:#F7F7F5;
  --card:#FFFFFF;
  --ink:#1B2A4E;
  --ink-soft:#5C6B85;
  --line:#F1E2C4;
  --orange:#B5500A;
  --orange-deep:#8A3D08;
  --orange-bright:#F5821F;
  --yellow:#FFC94A;
  --red:#D93025;
  --green:#1A7A35;
  --radius:16px;
  --shadow:0 10px 26px -12px rgba(27,42,78,0.20);
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{ margin:0; background:var(--paper); color:var(--ink); font-family:'Be Vietnam Pro', sans-serif; line-height:1.6; }
h1,h2,h3,.display{ font-family:'Nunito', sans-serif; font-weight:800; color:var(--ink); margin:0; }
a{ color:inherit; }
.wrap{ max-width:1120px; margin:0 auto; padding:0 24px; }
button{ font-family:inherit; cursor:pointer; }
p{ color:var(--ink-soft); }

header{ position:sticky; top:0; z-index:50; background:rgba(255,255,255,0.94); backdrop-filter:blur(6px); border-bottom:1px solid var(--line); }
.nav{ display:flex; align-items:center; justify-content:space-between; padding:12px 24px; gap:20px; }
.brand img{ height:44px; width:auto; display:block; }
nav.links{ display:flex; gap:22px; font-size:0.88rem; font-weight:600; flex-wrap:wrap; }
nav.links a{ text-decoration:none; color:var(--ink-soft); }
nav.links a:hover{ color:var(--orange-deep); }
.btn{ display:inline-flex; align-items:center; gap:8px; white-space:nowrap; background:var(--orange); color:#fff; border:none; padding:11px 20px; border-radius:999px; font-weight:800; font-size:0.9rem; box-shadow:0 8px 18px -8px rgba(245,130,31,0.6); transition:transform .15s; }
.btn:hover{ transform:translateY(-1px); }
.btn.ghost{ background:transparent; color:var(--ink); border:1.5px solid var(--ink); box-shadow:none; }
a:focus-visible, button:focus-visible{ outline:3px solid var(--green); outline-offset:2px; }

/* HERO */
.hero{ padding:44px 0 34px; display:grid; grid-template-columns:1.1fr 0.9fr; gap:40px; align-items:center; }
.eyebrow{ display:inline-flex; align-items:center; gap:8px; font-size:0.76rem; font-weight:800; letter-spacing:0.06em; text-transform:uppercase; color:var(--orange-deep); background:var(--paper-deep); padding:6px 12px; border-radius:999px; }
.hero h1{ font-size:2.5rem; line-height:1.12; margin:14px 0 12px; }
.hero h1 span{ color:var(--orange); }
.hero p.lede{ font-size:1.03rem; max-width:52ch; margin-bottom:20px; }
.hero-ctas{ display:flex; gap:12px; flex-wrap:wrap; }

.ball-row{ display:flex; align-items:center; gap:14px; margin-top:26px; }
.ball{ width:64px; height:64px; border-radius:50%; display:grid; place-items:center; color:#fff; font-weight:900; font-size:1.3rem; box-shadow:inset 0 -6px 8px rgba(0,0,0,0.18), 0 6px 14px rgba(0,0,0,0.18); }
.ball.red{ background:var(--red); }
.ball.green{ background:var(--green); }
.ball.orange{ background:var(--orange); }
.ball-caption{ font-size:0.82rem; color:var(--ink-soft); }

.jackpot-card{ background:var(--card); border-radius:20px; box-shadow:var(--shadow); padding:26px; text-align:center; }
.jackpot-card .label{ font-size:0.78rem; text-transform:uppercase; letter-spacing:0.06em; color:var(--ink-soft); font-weight:700; margin-bottom:8px; }
.jackpot-card .figure{ font-family:'Nunito'; font-weight:900; font-size:2.4rem; color:var(--orange-deep); margin-bottom:6px; }
.jackpot-card .sub{ font-size:0.82rem; color:var(--ink-soft); margin-bottom:18px; }

section{ padding:40px 0; }
.section-head{ max-width:680px; margin-bottom:22px; }
.section-head h2{ font-size:1.55rem; margin-bottom:8px; }
.divider{ height:1px; background:var(--line); margin-bottom:8px; }

ul.feature-list{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,1fr); gap:10px 24px; }
ul.feature-list li{ padding-left:22px; position:relative; color:var(--ink-soft); font-size:0.95rem; }
ul.feature-list li::before{ content:"●"; color:var(--orange); position:absolute; left:0; font-size:0.6rem; top:7px; }

table.info-table{ width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
table.info-table th{ text-align:left; background:var(--paper-deep); font-size:0.76rem; text-transform:uppercase; letter-spacing:0.04em; color:var(--ink-soft); padding:12px 16px; font-weight:700; }
table.info-table td{ padding:12px 16px; border-top:1px solid var(--line); font-size:0.92rem; }
table.info-table tr:hover td{ background:#fff8ec; }
table.info-table td.figure{ font-family:'Nunito'; font-weight:800; color:var(--orange-deep); }

/* LIVE RESULTS WIDGET (Minh Ngoc) */
.mn-widget-card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:16px; overflow-x:auto; min-height:120px; }
.mn-widget-loading{ color:var(--ink-soft); font-size:0.9rem; text-align:center; padding:20px 0; }
.source-credit{ font-size:0.78rem; color:var(--ink-soft); margin-top:10px; }
.source-credit a{ color:var(--orange-deep); font-weight:700; text-decoration:none; }
.source-credit a:hover{ text-decoration:underline; }

/* PROVINCE GAME CARDS */
.province-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-bottom:12px; }
.province-card{ background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow); padding:20px; position:relative; overflow:hidden; display:flex; flex-direction:column; }
.province-card::before{ content:""; position:absolute; top:0; left:0; right:0; height:6px; background:var(--pc, var(--orange)); }
.province-card h3{ font-size:1.1rem; margin-bottom:4px; }
.province-card .area{ display:inline-block; font-size:0.74rem; font-weight:700; color:var(--pc, var(--orange-deep)); background:var(--paper-deep); padding:3px 10px; border-radius:999px; margin-bottom:12px; width:fit-content; }
.province-card .figure{ font-family:'Nunito'; font-weight:900; font-size:1.7rem; color:var(--pc, var(--orange-deep)); margin-bottom:2px; }
.province-card .figure-label{ font-size:0.76rem; color:var(--ink-soft); margin-bottom:14px; }
.province-card p.desc{ font-size:0.86rem; margin:0 0 16px; flex:1; }
.province-card .btn{ background:var(--pc, var(--orange)); justify-content:center; width:100%; box-shadow:none; }

/* WEEKLY ROTATION STRIP */
.week-strip{ display:grid; grid-template-columns:repeat(7,1fr); gap:10px; margin-bottom:14px; }
.day-card{ background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px 10px; text-align:center; min-height:150px; display:flex; flex-direction:column; gap:8px; }
.day-card .dow{ font-family:'Nunito'; font-weight:800; font-size:0.95rem; }
.day-card.today{ border-color:var(--orange); box-shadow:0 0 0 2px var(--orange) inset; }
.day-card.today .dow{ color:var(--orange-deep); }
.day-card .prov{ font-size:0.76rem; color:var(--ink-soft); background:var(--paper-deep); border-radius:8px; padding:4px 6px; }
.today-flag{ font-size:0.62rem; letter-spacing:0.05em; text-transform:uppercase; color:var(--orange-deep); font-weight:800; }

/* RESULTS */
.results-tabs{ display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.tab-btn{ padding:8px 16px; border-radius:999px; border:1px solid var(--line); background:var(--paper-deep); font-weight:700; font-size:0.85rem; color:var(--ink-soft); }
.tab-btn[aria-selected="true"]{ background:var(--ink); color:#fff; border-color:var(--ink); }
table.info-table td.mono{ font-family:'Nunito'; font-weight:800; letter-spacing:1px; color:var(--orange-deep); }

.faq-item{ border-bottom:1px solid var(--line); padding:14px 0; }
.faq-item summary{ cursor:pointer; font-weight:700; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; color:var(--orange); font-size:1.2rem; }
.faq-item[open] summary::after{ content:"–"; }
.faq-item p{ margin-top:8px; font-size:0.92rem; }

.help-trust{ background:var(--paper-deep); border-radius:28px; padding:8px 0 4px; margin-top:8px; }
.help-trust > .wrap > section{ padding:34px 0; }
.help-trust > .wrap > section + section{ border-top:1px solid #ecd9ae; }
.help-eyebrow{ display:inline-flex; align-items:center; gap:8px; font-size:0.78rem; font-weight:800; letter-spacing:0.08em; text-transform:uppercase; color:var(--orange-deep); padding:18px 0 0; }

.closing{ background:linear-gradient(135deg, var(--ink) 0%, #33436b 100%); color:#fff; border-radius:24px; padding:44px; text-align:center; margin:20px 0 40px; }
.closing h2{ color:#fff; font-size:1.8rem; margin-bottom:12px; }
.closing p{ color:#d6ddec; max-width:60ch; margin:0 auto 22px; }
.closing .btn{ background:var(--yellow); color:var(--ink); box-shadow:0 8px 20px -8px rgba(255,201,74,0.6); }

/* CONTENT / STATIC PAGES (About, Policies, etc.) */
.page-hero{ padding:44px 0 12px; max-width:760px; }
.page-hero .eyebrow{ margin-bottom:14px; }
.page-hero h1{ font-size:2.2rem; line-height:1.16; margin-bottom:14px; }
.page-hero p.lede{ font-size:1.03rem; max-width:64ch; }
.content-page section p{ margin:0 0 12px; font-size:0.95rem; }
.content-page section p:last-child{ margin-bottom:0; }
.content-page section ul.feature-list{ margin-top:10px; }

/* AUTHOR / BYLINE */
.byline-card{ display:flex; align-items:center; gap:14px; background:var(--paper-deep); border:1px solid var(--line); border-radius:999px; padding:8px 20px 8px 8px; margin-top:22px; width:fit-content; text-decoration:none; }
.byline-card img{ width:52px; height:52px; border-radius:50%; object-fit:cover; display:block; }
.byline-card .byline-label{ font-size:0.72rem; text-transform:uppercase; letter-spacing:0.04em; color:var(--ink-soft); font-weight:700; }
.byline-card .byline-name{ font-family:'Nunito'; font-weight:800; color:var(--ink); font-size:0.98rem; }
.byline-card:hover .byline-name{ color:var(--orange-deep); }

.author-card{ display:flex; gap:28px; align-items:flex-start; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:28px; margin-bottom:12px; }
.author-card img{ width:120px; height:120px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.author-card .author-name{ font-size:1.4rem; margin-bottom:4px; }
.author-card .author-role{ color:var(--orange-deep); font-weight:700; font-size:0.86rem; text-transform:uppercase; letter-spacing:0.04em; margin-bottom:12px; }

.social-links{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:10px; }
.social-links a{ display:inline-block; padding:8px 16px; border-radius:999px; border:1px solid var(--line); background:var(--paper-deep); font-weight:700; font-size:0.85rem; color:var(--ink-soft); text-decoration:none; }
.social-links a:hover{ background:var(--ink); color:#fff; border-color:var(--ink); }

@media (max-width:600px){
  .author-card{ flex-direction:column; align-items:center; text-align:center; }
}

footer{ background:linear-gradient(180deg, var(--ink) 0%, #16203b 100%); color:#aeb8d1; margin-top:40px; padding-top:52px; }
.footer-top{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr 1fr; gap:32px; padding-bottom:36px; }
.footer-brand .display{ display:block; color:#fff; font-size:1.2rem; margin-bottom:12px; }
.footer-brand p{ font-size:0.86rem; line-height:1.75; color:#9aa5c2; margin:0; }
.footer-col h3{ font-family:'Nunito', sans-serif; font-weight:800; color:#fff; font-size:0.95rem; margin-bottom:16px; }
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.footer-col ul.footer-provinces{ column-count:2; column-gap:16px; display:block; }
.footer-col ul.footer-provinces li{ break-inside:avoid; margin-bottom:9px; }
.footer-col a{ color:#9aa5c2; text-decoration:none; font-size:0.86rem; transition:color .15s; }
.footer-col a:hover{ color:var(--orange-bright); }
.footer-legal{ border-top:1px solid rgba(255,255,255,0.1); padding:26px 0; display:flex; flex-direction:column; gap:14px; }
.footer-legal p{ margin:0; font-size:0.8rem; line-height:1.75; color:#8b96b3; }
.footer-legal strong{ color:#c9d2e6; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.1); padding:20px 0 32px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size:0.8rem; color:#8b96b3; }

@media (max-width:900px){
  .hero{ grid-template-columns:1fr; padding-top:24px; }
  ul.feature-list{ grid-template-columns:1fr; }
  .province-grid{ grid-template-columns:1fr; }
  .week-strip{ grid-template-columns:repeat(4,1fr); }
  nav.links{ display:none; }
  .hero h1{ font-size:2rem; }
  .closing{ padding:28px; }
  .footer-top{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1 / -1; }
}
@media (max-width:520px){
  .week-strip{ grid-template-columns:repeat(2,1fr); }
  .footer-top{ grid-template-columns:1fr; }
}
