@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');
:root{color-scheme:dark;--page:#101d15;--paper:#192a1e;--high:#21372a;--ink:#faf5e8;--muted:#c1d0c2;--gold:#e8c94a;--line:#3a4b39;--deep:#0c1610}*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--ink);font:500 16px/1.7 Inter,'IBM Plex Sans Thai',sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:4px}img{display:block;max-width:100%}h1,h2,h3,p{margin:0 0 .6em}h1,h2,h3{line-height:1.24}h1{font-size:clamp(2.1rem,5.8vw,5rem);letter-spacing:-.035em}h2{font-size:clamp(1.45rem,2.9vw,2.15rem)}small,.muted{color:var(--muted)}.wrap{width:min(1230px,calc(100% - 48px));margin-inline:auto}
.site-header{background:var(--deep);border-bottom:1px solid #5c512e;position:relative;z-index:2}.top{min-height:74px;display:flex;gap:18px;align-items:center;justify-content:space-between}.brand{width:145px;flex:none}.brand img{width:100%;height:49px;object-fit:contain;object-position:left center}.nav,.account,.actions,.footer-links{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.nav details{position:relative}.nav a,.nav summary{font-weight:700;font-size:.9rem;cursor:pointer}.nav a:hover,.nav summary:hover,.menu a:hover{color:var(--gold)}.menu{position:absolute;z-index:3;top:calc(100% + 8px);left:0;min-width:180px;padding:8px;background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px #0007}.menu a{display:block;padding:7px 9px}.btn{min-height:43px;display:inline-flex;justify-content:center;align-items:center;border:1px solid #737451;border-radius:8px;padding:6px 13px;background:#223226;color:var(--ink);font-weight:700;cursor:pointer}.btn.primary{background:linear-gradient(120deg,#f1d86d,#d9ae39);border-color:#e5bd4d;color:#172017}.btn:hover{filter:brightness(1.13)}.searchbar{margin:16px 0 0 auto;max-width:385px;display:flex;gap:8px}.searchbar input,.filters select{min-width:0;background:var(--paper);color:var(--ink);border:1px solid #60715f;border-radius:8px;padding:7px 11px}.searchbar input{flex:1}
.hero{position:relative;margin:20px 0 28px;border:1px solid #625938;border-radius:18px;overflow:hidden;background:radial-gradient(ellipse at right,#2d5134,#0e1d15 67%);display:grid;grid-template-columns:1.1fr 1fr;align-items:center}.hero-media{grid-column:2;grid-row:1;margin:0}.hero-media img{width:100%;aspect-ratio:1.75;object-fit:cover}.hero-inner{grid-column:1;grid-row:1;padding:clamp(20px,4.5vw,59px)}.hero h1{color:#ffe699;margin-bottom:.15em}.hero p{color:#d2e0d3;max-width:48ch}.hero .actions{margin-top:18px}.hero.home{min-height:390px}.hero.home .hero-media img{aspect-ratio:1.48}.h1-intro{margin:24px 0 0;color:#e0e8db}.h1-intro a,.prose a,.crumb a,.section-head a{color:#f1da88;text-decoration:underline;text-underline-offset:.19em}.section{margin:31px 0}.section-head{display:flex;gap:12px;justify-content:space-between;align-items:baseline;margin-bottom:12px}.section-head h2{margin:0}.section-head a{font-size:.84rem}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.card{min-width:0;overflow:hidden;position:relative;background:var(--paper);border:1px solid var(--line);border-radius:12px}.card:hover{border-color:#bba55b}.card-body{padding:12px 13px 15px}.card h3{font-size:1rem;overflow-wrap:anywhere}.eyebrow{color:var(--gold);font-weight:800;font-size:.82rem}
.panel{border:1px solid var(--line);border-radius:16px;background:var(--paper);padding:clamp(16px,3.3vw,37px)}.prose{line-height:1.88}.prose h2{color:#f6df92}.prose section+section{margin-top:30px;border-top:1px solid var(--line);padding-top:24px}.prose figure{margin:15px 0}.prose figure img{width:100%;max-height:460px;object-fit:cover;border-radius:9px}.toc{border-left:3px solid var(--gold);background:#263b2b;padding:10px 14px;margin:0 0 19px}.toc a{display:block}.crumb{margin-top:15px;color:var(--muted);font-size:.85rem}.filters,.pagination{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:14px 0}.pagination [aria-current=page]{background:var(--gold);color:var(--deep)}.article-head h1{font-size:clamp(1.8rem,4.5vw,3.5rem);margin-top:.3em}.article-head time{color:var(--muted)}.article-cover{width:100%;margin-top:22px;border-radius:13px;overflow:hidden}.branded-cover{position:relative;isolation:isolate;container-type:inline-size;aspect-ratio:16/9;background:#10261a;overflow:hidden}.branded-cover img{position:absolute;object-fit:cover;width:100%;height:100%}.branded-cover img:first-child{width:54%;right:0}.branded-cover img:nth-child(2){object-fit:fill}.branded-cover img:nth-child(3){top:7%;left:5%;width:19%;height:15%;object-fit:contain;object-position:left center}.branded-cover-title{position:absolute;inset:24% 54% 14% 5%;display:grid;align-content:center;color:#ffedb1;font-size:4.1cqw;line-height:1.3;font-weight:800;overflow-wrap:anywhere;text-wrap:balance}.article-illustration img{aspect-ratio:16/9}.faq summary{cursor:pointer;font-weight:700}.faq details+details{border-top:1px solid var(--line);margin-top:8px;padding-top:8px}.site-footer{background:var(--deep);border-top:1px solid #5b5237;margin-top:34px;padding:25px 0}.footer-columns{display:grid;grid-template-columns:1fr 1.4fr;gap:24px}.footer-brand img{width:145px;height:58px;object-fit:contain;object-position:left}.footer-columns h2{font-size:1.2rem;color:var(--gold)}.footer-links a{font-size:.83rem;border:1px solid var(--line);border-radius:999px;padding:4px 8px}.footer-copyright{margin-top:18px;padding-top:10px;border-top:1px solid var(--line);color:var(--muted);font-size:.82rem}
.draw-results{border:1px solid #6f623b;padding:16px;border-radius:14px;background:#14271c}.draw-results>h2{color:var(--gold)}.draw-body{max-height:520px;overflow:auto;background:var(--paper);padding:10px 14px;border-radius:10px}.draw-group h3{color:var(--gold);margin:12px 0}.draw-feature dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.draw-feature dl div{background:var(--high);border-radius:7px;padding:7px;text-align:center}.draw-feature dd{margin:0;color:var(--gold);font-weight:800}.draw-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.92rem}.draw-table th,.draw-table td{border-bottom:1px solid #415844;padding:6px;text-align:center}.draw-table th:first-child{width:55%;text-align:left}.draw-name{display:flex;align-items:center;gap:7px;overflow-wrap:anywhere}.draw-name img{width:22px;height:22px}.draw-name time{display:block;font-size:.74em;color:var(--muted)}.draw-status{margin:7px 0 0;font-size:.84rem;color:var(--muted)}.source-list a{overflow-wrap:anywhere}
@media(max-width:900px){.top{flex-wrap:wrap;padding:8px 0;gap:8px}.top .nav{order:3;width:100%;padding-bottom:4px}}
@media(max-width:590px){.wrap{width:calc(100% - 24px)}.brand{width:90px}.brand img{height:33px}.account{gap:4px}.nav{gap:10px}.nav a,.nav summary,.btn{font-size:.78rem}.btn{min-height:39px;padding:5px 7px}.hero,.hero.home{display:flex;flex-direction:column;align-items:stretch;min-height:0;margin-top:11px}.hero-media img,.hero.home .hero-media img{aspect-ratio:1.85}.hero-inner{padding:17px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.card-body{padding:8px}.card h3{font-size:.9rem}.footer-columns{grid-template-columns:1fr;gap:12px}.section{margin:23px 0}}

/* A low-contrast woven motif keeps depth behind the reading panels. */
body {
  background-color: var(--page);
  background-image:
    radial-gradient(ellipse at 85% 0%, #3a543577 0%, transparent 53%),
    radial-gradient(ellipse at 0% 28%, #7460332e 0%, transparent 42%),
    repeating-linear-gradient(45deg, transparent 0 30px, #a3925920 31px, transparent 32px 62px),
    repeating-linear-gradient(-45deg, transparent 0 30px, #a3925917 31px, transparent 32px 62px);
}
.hero.home { isolation: isolate; display: grid; grid-template-columns: minmax(0,1fr); min-height: clamp(315px,38vw,505px); background: #102219; }
.hero.home .hero-media { grid-area: auto; position: absolute; inset: 0; z-index: 0; }
.hero.home .hero-media img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: right center; }
.hero.home::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg,#102219 0%,#102219e8 21%,#102219a8 38%,#10221924 58%,transparent 78%);
}
.hero.home .hero-inner { position: relative; z-index: 2; grid-column: 1; grid-row: 1; max-width: 52%; }
.lottery-banner { margin: 18px 0 21px; overflow: hidden; border: 1px solid #695b38; border-radius: 17px; background: var(--deep); box-shadow: 0 15px 35px #0004; }
.lottery-banner img { width: 100%; height: auto; object-fit: contain; object-position: center; }
.lottery-introduction h1 { margin-bottom: .26em; color: #ffe399; }
.lottery-deck { color: var(--muted); }
.lottery-introduction .h1-intro { margin-top: 18px; }
.lottery-introduction .h1-intro p:last-child { margin-bottom: 0; }

.site-footer {
  border-top: 4px solid #dab849;
  background: radial-gradient(circle at 0% 0%,#414d31 0%,transparent 52%),radial-gradient(circle at 97% 95%,#42482970,transparent 35%),#16271b;
  padding: 0;
}
.footer-columns { grid-template-columns: minmax(0,1.35fr) minmax(0,.85fr) minmax(0,1fr); gap: clamp(20px,5vw,76px); padding-block: clamp(28px,5vw,70px) 36px; }
.footer-about p,.footer-member p { color: #d0dacf; }
.footer-about strong,.footer-columns h2 { color: #f6de8a; }
.footer-brand { display: inline-flex; justify-content: center; align-items: center; margin-bottom: 18px; padding: 10px 20px; border-radius: 15px; background: #14271c; }
.footer-brand img { width: clamp(105px,15vw,185px); height: 55px; object-position: center; }
.footer-columns h2::after { content: ''; display: block; width: 53px; height: 3px; margin: 10px 0 15px; border-radius: 2px; background: linear-gradient(90deg,#d9b945,#fff1b8); }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li + li { margin-top: 9px; }
.footer-menu a::before { content: '›'; margin-right: 9px; color: var(--gold); }
.footer-menu a:hover,.footer-bottom a:hover { color: #ffde77; }
.footer-actions { display: grid; gap: 9px; margin-top: 14px; }
.footer-actions .btn { width: 100%; min-height: 46px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px 14px; border-top: 1px solid #8483545c; padding-block: 12px; color: #c4d0c2; font-size: .83rem; }
.footer-bottom p { margin: 0; }
.footer-bottom div { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; }
.footer-bottom .btn { min-height: 0; border: 0; background: none; color: inherit; padding: 0; font: inherit; }
@media(max-width:740px) {
 .hero.home { min-height: auto; display: flex; flex-direction: column; }
 .hero.home .hero-media { position: relative; inset: auto; width: 100%; }
 .hero.home .hero-media img { height: auto; aspect-ratio: auto; }
 .hero.home::after { display: none; }
 .hero.home .hero-inner { max-width: 100%; }
 .footer-columns { grid-template-columns: 1fr; gap: 18px; }
}

.lottery-icons { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(10px,3vw,32px); padding: 8px 0; }
.lottery-icon { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 700; min-width: 0; border-radius: 12px; }
.lottery-icon img { width: clamp(65px,9vw,122px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; transition: transform .2s ease; }
.lottery-icon:hover { color: var(--gold); }
.lottery-icon:hover img { transform: translateY(-3px); }
@media (max-width: 460px) {
 .lottery-icons { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px 7px; }
 .lottery-icon { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .lottery-icon img { transition: none; } }

.malay-badge {
 display:grid;
 grid-template-rows:42% auto auto;
 align-items:center;
 width:clamp(65px,9vw,122px);
 aspect-ratio:1;
 overflow:hidden;
 border:2px solid #35accb;
 border-radius:50%;
 background:linear-gradient(155deg,#fff,#e7eef1);
 color:#a51212;
 font-size:clamp(9px,1.35vw,18px);
 line-height:1;
 transition:transform .2s ease;
}
.malay-badge > span {display:grid;place-items:center;align-self:stretch;background:linear-gradient(145deg,#041651,#176bbb);font-size:clamp(17px,2.6vw,36px)}
.malay-badge strong {align-self:start;font-size:1.1em}
.lottery-icon:hover .malay-badge {transform:translateY(-3px)}
@media(prefers-reduced-motion:reduce){.malay-badge{transition:none}}

.site-header .searchbar { margin:0; width:min(100%, 260px); }
.site-header .searchbar .btn { min-height:38px; }
@media (max-width:740px) {
 .site-header .searchbar { width:100%; max-width:none; }
}

body.article-page {
 background-color:#0c211b;
 background-image:
  radial-gradient(ellipse at 8% 7%,#47624777,transparent 48%),
  radial-gradient(ellipse at 92% 65%,#143b30,transparent 60%),
  repeating-linear-gradient(131deg,transparent 0 47px,#cfbb7312 48px 49px);
 background-attachment:fixed;
}
.feature-article { width:min(100%, 960px); margin:0 auto; padding:clamp(20px,4vw,54px) 0; }
.feature-article .article-head h1 {
 color:#fff8e9;
 font-size:clamp(2rem,5vw,4.35rem);
 line-height:1.23;
 margin:.23em 0 .28em;
 overflow-wrap:anywhere;
}
.feature-article .article-head time { color:#c7d8ca; }
.feature-article .article-cover { margin:clamp(16px,3vw,32px) 0; }
.feature-article .feature-intro,.feature-article .feature-copy { color:#e0e9df; font-size:clamp(1rem,1.45vw,1.17rem); line-height:1.83; }
.feature-article .feature-copy .prose { padding:0; background:none; border:0; }
.feature-article .feature-copy h2 { color:#fff2ce; font-size:clamp(1.45rem,3.4vw,2.3rem); line-height:1.35; }
.feature-article .feature-intro a { color:#f1da88; text-decoration:underline; text-underline-offset:.19em; }
.feature-article .article-illustration figure { margin:24px 0; }
.feature-article .article-illustration img { display:block; width:100%; max-height:none; height:auto; aspect-ratio:auto; border-radius:13px; }

@media (min-width:1000px) {
 .grid.latest-articles { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
