@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');:root{font-family:Kanit,system-ui,sans-serif;color:#271b1c;background:#fffaf5}*{box-sizing:border-box}body{margin:0}a{text-decoration:none;color:inherit}header{background:#680e1c;color:white;position:sticky;top:0;z-index:10;box-shadow:0 4px 22px #25000930}.bar{max-width:1160px;margin:auto;display:flex;align-items:center;gap:28px;padding:17px 22px}.brand{font-size:27px;font-weight:700;letter-spacing:1px;white-space:nowrap}.brand span{color:#f6c66c}nav{display:flex;gap:24px;margin:auto}nav a{font-size:14px;color:#ffece5}.actions,.hero-actions{display:flex;gap:10px;align-items:center}.gold,.outline{display:inline-flex;justify-content:center;align-items:center;padding:10px 17px;border-radius:9px;font-weight:500;font-size:14px}.gold{background:linear-gradient(135deg,#ffe0a1,#e8ae46);color:#481419}.outline{border:1px solid #e9b66d;color:inherit}.hero{background:radial-gradient(circle at 90% 20%,#c7373b 0,transparent 36%),linear-gradient(125deg,#540a19,#991927);color:white;padding:100px max(24px,calc((100vw - 1116px)/2)) 110px}.eyebrow,small{color:#e5b65d;letter-spacing:1.3px;font-size:12px;font-weight:600}.hero h1{font-size:clamp(36px,5vw,66px);line-height:1.22;margin:20px 0}.hero em{font-style:normal;color:#ffcf79}.hero p{max-width:560px;color:#f7dadd;font-weight:300;line-height:1.9}.hero-actions{margin-top:30px}main>section:not(.hero){max-width:1160px;margin:52px auto;padding-left:22px;padding-right:22px}.panel{background:#fff;border:1px solid #f1e4d9;border-radius:18px;padding:30px!important;box-shadow:0 10px 30px #6d2d1210}.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}h2{font-size:29px;margin:5px 0 10px}h3{font-size:20px;line-height:1.4;margin:12px 0}p{line-height:1.8;color:#685759}.pill,.tag{border-radius:100px;background:#fff1db;color:#8b5112;padding:5px 12px;font-size:12px}.link{color:#951727;font-weight:600}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{border:1px solid #f0e2d9;border-radius:15px;overflow:hidden;background:white}.placeholder{height:175px;background:linear-gradient(135deg,#780f20,#c63b3d);display:flex;align-items:center;justify-content:center;flex-direction:column;color:#ffda88;font-size:31px;font-weight:700;letter-spacing:3px}.placeholder span{font-size:13px;color:white;letter-spacing:6px}.placeholder.alt{background:linear-gradient(135deg,#a97422,#e5c076);color:#542519}.placeholder.dark{background:linear-gradient(135deg,#291c22,#6c2734)}.cardbody{padding:20px}.cardbody p{font-size:14px}.bottom{margin-bottom:70px!important}footer{background:#390b15;color:#fff;padding:35px 24px;text-align:center}footer strong{font-size:24px;color:#ffd17b}footer p{color:#e2c8ca;font-size:13px}.auth{min-height:75vh;display:grid;place-items:center;padding:35px 20px}.authbox{max-width:450px;width:100%;padding:35px;background:#fff;border:1px solid #efdcd3;border-radius:18px;box-shadow:0 15px 40px #4d171015}.authbox h1{margin:0 0 8px}.authbox label{display:block;margin:18px 0 6px;font-size:14px}.authbox input{display:block;width:100%;padding:13px;border:1px solid #d9c8c2;border-radius:9px;font:inherit}.notice{background:#fff3df;padding:14px;border-radius:9px;font-size:13px;color:#79501c}.authbox .gold{margin-top:18px;width:100%;border:0;font:inherit;cursor:not-allowed;opacity:.7}.authbox .link{display:block;margin-top:20px;text-align:center}@media(max-width:800px){.bar{flex-wrap:wrap;gap:10px}.brand{margin-right:auto}nav{order:3;width:100%;justify-content:center;gap:20px}.actions .gold,.actions .outline{padding:8px;font-size:12px}.hero{padding:65px 22px 75px}.cards{grid-template-columns:1fr}.sectionhead{align-items:flex-start;flex-direction:column}}

/* CJNINE red & polished gold redesign — homepage */
:root{background:#280305;color:#fff3dd}body{background:radial-gradient(circle at 50% 38%,#9e1115 0,#4b060a 42%,#200305 100%);color:#fff3dd}header{background:linear-gradient(90deg,#260305,#550608 50%,#230204);border-bottom:1px solid #e8a83e;box-shadow:0 5px 30px #0009}.bar{max-width:1420px;padding:15px 28px}.brand{font-size:30px;font-weight:700;font-style:italic;color:#fff3b0;text-shadow:0 2px 0 #8b4500,0 0 14px #f6a52c}.brand span{background:linear-gradient(#fff5a9,#ffcb3d 45%,#a65b08);background-clip:text;-webkit-background-clip:text;color:transparent}nav a:hover{color:#ffda65}.gold{background:linear-gradient(155deg,#fff7bb 0%,#ffd35b 35%,#bf750c 75%,#fff0a5);border:1px solid #fff1a0;color:#3c0b05;box-shadow:inset 0 1px 3px #fff9,0 5px 17px #ef9b1a70;border-radius:999px}.outline{border:1px solid #ffd269;background:linear-gradient(120deg,#420406,#8c090b);color:#fff1c7;border-radius:999px}.hero{position:relative;isolation:isolate;overflow:hidden;text-align:center;min-height:560px;padding:55px 24px 70px;background:radial-gradient(ellipse at 50% 70%,#ed2a0c 0%,#8c090b 33%,transparent 70%),radial-gradient(circle at 10% 45%,#f4a40b99,transparent 35%),radial-gradient(circle at 90% 45%,#ffb22a88,transparent 35%),linear-gradient(110deg,#350205,#a1090b 52%,#300305);border-bottom:3px solid #efba48}.hero:before,.hero:after{content:"";position:absolute;z-index:-1;width:64vw;height:240px;top:210px;border:22px solid #ffc94c;border-left:0;border-right:0;border-radius:50%;filter:drop-shadow(0 0 20px #ffad18);opacity:.55;transform:rotate(-20deg)}.hero:before{left:-40vw}.hero:after{right:-40vw;transform:rotate(20deg)}.hero-sparks{position:absolute;inset:0;z-index:-1;background-image:radial-gradient(circle,#fff5b4 1px,transparent 2px),radial-gradient(circle,#fbbd4b 2px,transparent 3px);background-size:67px 73px,143px 121px;opacity:.32;mask-image:linear-gradient(to bottom,#000,transparent)}.hero-inner{max-width:1040px;margin:auto;position:relative}.hero-crown{font-size:57px;line-height:1;color:#ffdc65;text-shadow:0 0 20px #ff9a12}.hero-logo{font-weight:700;font-size:clamp(68px,11vw,155px);line-height:1.1;font-style:italic;letter-spacing:-5px;color:#ffdd69;text-shadow:0 3px 0 #a45b00,0 7px 0 #552005,0 12px 20px #000b,0 0 30px #ffac3e}.hero-logo span{display:inline-block;margin-left:12px;padding:0 19px;background:linear-gradient(140deg,#ae0713,#60040a);border:4px solid #f9c848;border-radius:17px;box-shadow:inset 0 0 22px #ff574b80,0 0 25px #ffb33570}.hero .eyebrow{margin-top:22px;color:#ffe8a3}.hero h1{font-size:clamp(25px,3vw,40px);margin:8px auto;color:#fff6df}.hero h1 em{color:#ffdb70}.hero p{max-width:670px;margin:8px auto;color:#ffe9d3;font-size:16px}.hero-actions{justify-content:center;margin-top:26px}.hero-actions a{padding:14px 26px;font-size:16px}.hero-orbit{position:absolute;top:125px;width:100px;height:100px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 28% 25%,#fff8db,#f7ca56 38%,#b50c11 40%,#71040a);border:6px solid #ffd76e;box-shadow:0 0 30px #ffc84b;font-size:65px;color:#fff4dc;text-shadow:2px 3px #310102}.hero-orbit.left{left:0}.hero-orbit.right{right:0}.quick-nav{max-width:1260px;margin:-28px auto 35px;position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,1fr);background:linear-gradient(130deg,#390305,#77080c,#340204);border:1px solid #eebd54;border-radius:17px;box-shadow:0 12px 30px #0009;overflow:hidden}.quick-nav a{display:grid;grid-template-columns:45px 1fr;column-gap:8px;align-content:center;padding:19px 16px;border-right:1px solid #d5a44b60}.quick-nav a:last-child{border-right:0}.quick-nav a>span{grid-row:span 2;font-size:33px;color:#ffd05e}.quick-nav strong{font-size:17px;color:#ffe19a}.quick-nav small{font-size:11px;color:#ffe2c3;letter-spacing:0}.quick-nav a:hover{background:#ab151b}main>section:not(.hero){max-width:1260px;margin:30px auto;padding-left:22px;padding-right:22px}.panel,.card{background:linear-gradient(135deg,#51060b,#2a0407);border:1px solid #e5ad45;box-shadow:0 10px 35px #0005;color:#fff3dd}.panel p,.cardbody p{color:#f4d7cc}.pill,.tag{background:#ffdd82;color:#56150b}.link{color:#ffd36e}.placeholder{background:radial-gradient(circle at 40% 25%,#f99a29,#ad0d17 55%,#470306)}.placeholder.alt{background:linear-gradient(130deg,#ffe58e,#b36d0a);color:#481509}.placeholder.dark{background:linear-gradient(135deg,#390204,#a00d18)}h2,h3{color:#ffe6a1}footer{background:#1b0204;border-top:1px solid #e6a841}footer p{color:#f4d5ca}.auth{color:#2b1616}.authbox{color:#2b1616}.authbox h1{color:#531018}@media(max-width:900px){.hero-orbit{display:none}.quick-nav{margin:-18px 16px 25px;grid-template-columns:repeat(2,1fr)}.quick-nav a:nth-child(2){border-right:0}.quick-nav a{border-bottom:1px solid #d5a44b60}}@media(max-width:520px){.hero{min-height:0;padding:55px 18px 65px}.hero-logo{letter-spacing:-3px;font-size:clamp(45px,12vw,65px)}.hero-logo span{margin-left:5px;padding:0 8px;border-width:2px}.hero-actions{flex-wrap:wrap}.quick-nav a{padding:14px 9px;grid-template-columns:30px 1fr}.quick-nav a>span{font-size:25px}.quick-nav strong{font-size:14px}.bar{padding:12px}.brand{font-size:24px}nav{gap:12px;flex-wrap:wrap}nav a{font-size:12px}}

/* CJNINE image-based hero update: original content, menus and links preserved. */
.hero{background:linear-gradient(180deg,rgba(44,0,4,.22),rgba(57,0,6,.50)),url("assets/red-gold-background.webp") center center / cover no-repeat;min-height:590px;padding-top:54px;padding-bottom:90px}
.hero:before,.hero:after,.hero-sparks{display:none!important}
.hero-inner{max-width:1050px}
.hero-logo-image{display:block;width:min(780px,92%);height:auto;margin:0 auto 4px;filter:drop-shadow(0 12px 20px rgba(32,0,0,.55))}
.hero .eyebrow{margin-top:0;color:#fff0bd;text-shadow:0 2px 8px #390008}
.hero h1,.hero p{text-shadow:0 2px 12px #320006,0 1px 3px #320006}
.hero-orbit{top:175px}
@media(max-width:900px){.hero{min-height:0;padding:52px 20px 75px}.hero-logo-image{width:min(700px,100%)}}
@media(max-width:520px){.hero{padding:40px 16px 70px;background-position:center}.hero-logo-image{width:100%}.hero h1{font-size:clamp(25px,7vw,36px)}}

/* User-selected hero artwork; preserve actual HTML buttons and content. */
.hero{background:linear-gradient(180deg,rgba(32,0,0,.04),rgba(32,0,0,.18)),url("assets/red-gold-background.webp") center center / cover no-repeat;}
.hero-orbit{display:none!important}
.hero-logo-image{width:min(780px,90%);max-height:310px;object-fit:contain;filter:drop-shadow(0 8px 14px rgba(20,0,0,.4))}
@media(max-width:520px){.hero{background-position:center center}.hero-logo-image{width:100%;max-height:none}}

/* Header logo only: keep hero logo and other site styles unchanged */
.brand{display:flex;align-items:center;flex-shrink:0;line-height:1}
.header-logo-image{display:block;width:155px;max-width:100%;height:auto;object-fit:contain}
@media(max-width:520px){.header-logo-image{width:116px}}

/* Four linked header pages */
nav a{white-space:nowrap}nav a:focus-visible,.actions a:focus-visible{outline:2px solid #ffe59c;outline-offset:5px}.subpage{min-height:calc(100vh - 210px);padding:35px 22px 75px}.page-intro{max-width:1160px;margin:15px auto 30px;text-align:center;padding:35px 12px}.page-intro h1{font-size:clamp(32px,5vw,52px);color:#ffe39a;margin:6px 0}.page-intro p{color:#ffe7d5}.subpage .panel{max-width:1000px;margin:0 auto!important;padding:36px!important}.subpage .panel .gold,.subpage .panel .outline{margin-top:15px}.page-note{font-size:13px;border-top:1px solid #b97c3b66;padding-top:16px;margin-top:26px}@media(max-width:520px){nav{gap:13px}nav a{font-size:12px}.subpage{padding:20px 14px 50px}.subpage .panel{padding:22px!important}}

/* Manual lottery result card — matches existing red and gold palette */
.results-panel{max-width:1050px!important}.lottery-result{color:#fff1d3;text-align:center;background:#30090a;border:1px solid #dc9d30;border-radius:15px;padding:16px 13px 12px}.lottery-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.lottery-label,.lottery-status{font-size:12px;border-radius:30px;padding:3px 9px;background:#642015;color:#ffcb77}.lottery-status{background:#28341b;color:#b4f09c}.lottery-result h3{font-size:clamp(22px,3vw,29px);margin:13px 0 0;color:#ffe09a}.lottery-date{margin:0 0 12px!important;color:#ffe9cf!important}.lottery-first,.lottery-pair>div,.lottery-last{background:#5b1217;border-radius:12px;padding:11px;display:flex;flex-direction:column;align-items:center;gap:2px}.lottery-first{border:1px solid #e7ad38}.lottery-first strong{font-size:clamp(30px,5vw,43px);line-height:1.15;letter-spacing:3px;color:#ffe09a}.lottery-first small{color:#ffe1b5;letter-spacing:0;font-weight:400;font-size:13px}.lottery-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.lottery-pair strong,.lottery-last strong{font-size:clamp(20px,3vw,26px);color:#fff;letter-spacing:1px}.lottery-last strong{font-size:28px}.lottery-result span:not(.lottery-label):not(.lottery-status){font-size:14px}.lottery-disclaimer{color:#ffddb5!important;font-size:12px;margin:10px 0 0!important}.result-source{text-align:center;font-size:13px;margin:14px 0 0!important}@media(max-width:520px){.results-panel{padding:14px!important}.lottery-pair{gap:5px}.lottery-pair>div{padding:10px 3px}.lottery-pair strong{font-size:19px}.lottery-status{font-size:10px}}

/* CJNINE promotion banner: directly below latest lottery results */
.promo-banner-section{width:min(1150px,calc(100% - 36px));margin:26px auto 38px}.promo-banner-section a{display:block;border:1px solid #dba542;border-radius:15px;overflow:hidden;box-shadow:0 12px 32px #0005}.promo-banner-section img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#250609}@media(max-width:600px){.promo-banner-section{width:calc(100% - 24px);margin:18px auto 30px}.promo-banner-section a{border-radius:9px}}

/* Promotion full-width: fill the available content area without cropping. */
main > section.promo-banner-section, .promo-banner-section {
  width: min(1450px, calc(100% - 32px));
  max-width: 1450px;
  padding: 0;
  margin: 22px auto 34px;
}
.promo-banner-section a { display: block; width: 100%; overflow: hidden; }
.promo-banner-section img {
  display: block; width: 100%; max-width: none; height: auto;
  aspect-ratio: auto; object-fit: initial; margin: 0;
}
@media (max-width: 600px) {
  main > section.promo-banner-section, .promo-banner-section {
    width: calc(100% - 16px); padding: 0; margin: 16px auto 26px;
  }
}

/* FIX: promotion image must fill its entire banner container */
#promotion-banner{display:block;width:min(1150px,calc(100% - 36px));max-width:none;margin:26px auto 38px;padding:0}
#promotion-banner>a{display:block;width:100%;max-width:none;padding:0;margin:0;line-height:0}
#promotion-banner>a>img{display:block!important;width:100%!important;max-width:none!important;min-width:100%!important;height:auto!important;aspect-ratio:auto!important;object-fit:fill!important;margin:0!important;padding:0!important}
@media(max-width:600px){#promotion-banner{width:calc(100% - 24px);margin:18px auto 30px}}

/* Promotion cards and readable detail pages */
.promotion-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:22px}.promotion-card{display:block;overflow:hidden;border:1px solid #dba542;border-radius:14px;background:#300b0e;color:#ffe5a0;text-decoration:none;transition:transform .2s}.promotion-card:hover{transform:translateY(-3px)}.promotion-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#180608}.promotion-card>div{padding:16px;display:grid;gap:8px}.promotion-card strong{font-size:19px}.promotion-card span{font-size:13px;color:#f6c96e}.promotion-detail{margin-top:28px;scroll-margin-top:100px}.promotion-detail-image{display:block;width:100%;height:auto;border-radius:12px;border:1px solid #dba542}.promotion-copy{padding:16px 4px;line-height:1.85}.promotion-copy h2,.promotion-copy h3{color:#ffe3a0}.promotion-copy li{margin-bottom:8px}.promo-table{width:100%;border-collapse:collapse;margin:15px 0}.promo-table td,.promo-table th{border:1px solid #b78338;padding:10px;text-align:left}.promo-table th{background:#5c1720}.promotion-copy .outline{display:inline-block;margin-top:15px}@media(max-width:800px){.promotion-grid{grid-template-columns:1fr;gap:15px}.promotion-detail{padding:14px}.promotion-copy{overflow-wrap:anywhere}}

/* Nine lottery categories: replaces only the former ABOUT CJNINE section. */
.lottery-types-section{width:min(1150px,calc(100% - 36px));margin:26px auto 45px;padding:18px 16px 16px;border:1px solid #dba542;border-radius:16px;background:linear-gradient(145deg,#3b0a10,#240609);box-shadow:0 10px 30px #0003}.lottery-types-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 17px}.lottery-types-heading h2{margin:0;color:#ffe4a1;font-size:clamp(21px,2.5vw,28px)}.lottery-types-heading>span{color:#ffd483;font-size:13px}.lottery-types-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.lottery-type-card{position:relative;isolation:isolate;display:flex;align-items:center;gap:12px;min-height:96px;padding:13px 14px;overflow:hidden;border:1px solid #e8b64e;border-radius:14px;color:white;background:linear-gradient(112deg,var(--lottery-a),var(--lottery-b));box-shadow:inset 0 1px #fff5,0 5px 12px #0004}.lottery-type-card:before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 85% 20%,#fff6,transparent 48%);opacity:.55}.lottery-type-icon{flex:0 0 55px;width:55px;height:55px;border-radius:50%;display:grid;place-items:center;font-size:31px;background:linear-gradient(145deg,#fff7d0,#f6be4b);border:3px solid #f5c85a;box-shadow:0 2px 9px #0006}.lottery-type-copy{min-width:0;position:relative;z-index:1;display:flex;flex-direction:column;gap:4px;text-shadow:0 2px 4px #0009}.lottery-type-copy strong{font-size:clamp(16px,1.5vw,21px);line-height:1.2}.lottery-type-copy small{font-size:12px;color:#fff2d3}.lottery-type-art{margin-left:auto;font-size:38px;opacity:.65;filter:drop-shadow(0 3px 4px #0005)}.lottery-type-government{--lottery-a:#07459b;--lottery-b:#12a0e0}.lottery-type-baac{--lottery-a:#05651f;--lottery-b:#6cb943}.lottery-type-gsb{--lottery-a:#ae0759;--lottery-b:#f15c9d}.lottery-type-lao{--lottery-a:#064d95;--lottery-b:#127ac0}.lottery-type-hanoi{--lottery-a:#b00d1b;--lottery-b:#ed5146}.lottery-type-malaysia{--lottery-a:#a66b09;--lottery-b:#f4bd41}.lottery-type-stocks{--lottery-a:#50108d;--lottery-b:#aa4cce}.lottery-type-yeekee{--lottery-a:#c54d05;--lottery-b:#ff9c2d}.lottery-type-vip{--lottery-a:#151515;--lottery-b:#8a611b}@media(max-width:800px){.lottery-types-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lottery-type-card{min-height:90px}}@media(max-width:530px){.lottery-types-section{width:calc(100% - 24px);padding:13px 10px}.lottery-types-grid{grid-template-columns:1fr}.lottery-type-card{min-height:78px}.lottery-type-icon{width:48px;height:48px;flex-basis:48px;font-size:27px}.lottery-type-art{font-size:32px}}

/* CJNINE premium lottery categories: scoped to this section only */
.premium-lottery{max-width:1160px;margin:28px auto 44px;padding:23px 22px 24px;border:1px solid #d5a33e;border-radius:18px;background:linear-gradient(145deg,#410a10,#27070a 65%,#3b080d);box-shadow:inset 0 1px #ffeb9d35,0 10px 30px #0004;position:relative}
.premium-lottery:before{content:"";position:absolute;inset:5px;border:1px solid #d4a04a30;border-radius:14px;pointer-events:none}
.premium-lottery-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:19px;color:#ffe6a0}.premium-lottery-head h2{margin:0;font-size:clamp(21px,2.3vw,29px);text-shadow:0 2px 9px #b86b1933}.premium-lottery-head span{color:#f4ca70;font-size:13px;white-space:nowrap}
.premium-lottery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.premium-lottery-card{height:100px;position:relative;display:flex;align-items:center;overflow:hidden;border:1px solid #efc35f;border-radius:14px;background:#5a1118;box-shadow:inset 0 1px #fff6,0 4px 12px #0006}.premium-lottery-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.premium-lottery-card>strong{position:relative;margin-left:105px;margin-right:47px;color:#fff0bf;font-size:clamp(16px,1.6vw,22px);font-weight:800;line-height:1.2;text-shadow:0 2px 3px #260208,0 0 8px #250000}.premium-lottery-arrow{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:35px;height:35px;display:grid;place-items:center;border:1px solid #fff2aa;border-radius:50%;background:linear-gradient(#fff4b2,#d99b28);color:#381704;font-size:31px;line-height:1;box-shadow:0 3px 9px #0007;pointer-events:none}
@media(max-width:900px){.premium-lottery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:570px){.premium-lottery{margin:20px 12px 32px;padding:17px 12px}.premium-lottery-grid{grid-template-columns:1fr;gap:10px}.premium-lottery-card{height:94px}.premium-lottery-head span{font-size:11px}.premium-lottery-card>strong{font-size:19px}}

/* Square image artwork supplied by the site owner */
.premium-lottery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,1.5vw,20px)}
.premium-lottery-card{position:relative;display:block;aspect-ratio:1/1;min-width:0;overflow:hidden;padding:0;border:2px solid #d6a74e;border-radius:16px;background:#35040b;box-shadow:0 8px 24px #1b000080}
.premium-lottery-card img{display:block;width:100%;height:100%;aspect-ratio:1/1;object-fit:contain;margin:0;border:0;border-radius:0}
.premium-lottery-card>strong,.premium-lottery-card>.premium-lottery-arrow{display:none}
@media(max-width:700px){.premium-lottery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.premium-lottery-grid{gap:8px}.premium-lottery-card{border-radius:10px;border-width:1px}}

/* Fix: use the supplied nine square artworks at full, equal card size. */
.premium-lottery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.6vw,20px);align-items:stretch}
.premium-lottery-grid .premium-lottery-card{display:block;position:relative;width:100%;height:auto!important;min-height:0;aspect-ratio:1 / 1;padding:0;overflow:hidden;border:2px solid #e9bb55;border-radius:15px;box-sizing:border-box;background:#30050b}
.premium-lottery-grid .premium-lottery-card>img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;aspect-ratio:1 / 1;object-fit:cover;object-position:center;margin:0;border:0;border-radius:0}
.premium-lottery-grid .premium-lottery-card>strong,.premium-lottery-grid .premium-lottery-card>.premium-lottery-arrow{display:none}
@media(max-width:700px){.premium-lottery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(max-width:420px){.premium-lottery{padding:14px 10px}.premium-lottery-grid{gap:8px}.premium-lottery-grid .premium-lottery-card{border-width:1px;border-radius:10px}}

/* CJNINE lottery artwork: final intrinsic-image sizing fix */
.premium-lottery .premium-lottery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start;width:100%}
.premium-lottery .premium-lottery-grid .premium-lottery-card{display:block!important;position:relative!important;width:100%!important;height:auto!important;min-height:0!important;max-width:none!important;aspect-ratio:auto!important;padding:0!important;margin:0!important;overflow:hidden;line-height:0;border:2px solid #e9bb55;border-radius:14px;box-sizing:border-box}
.premium-lottery .premium-lottery-grid .premium-lottery-card>img{display:block!important;position:static!important;inset:auto!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;aspect-ratio:1/1!important;object-fit:contain!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important}
.premium-lottery .premium-lottery-grid .premium-lottery-card>strong,.premium-lottery .premium-lottery-grid .premium-lottery-card>.premium-lottery-arrow{display:none!important}
@media(max-width:700px){.premium-lottery .premium-lottery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(max-width:380px){.premium-lottery .premium-lottery-grid{gap:8px}}

/* CJNINE contact page: responsive two-channel contact layout */
.contact-page{width:min(100% - 32px,1060px);margin-inline:auto}.contact-intro{text-align:center}.contact-intro p{max-width:670px;margin-inline:auto}.contact-panel{padding:clamp(20px,3vw,34px);border:1px solid #bd8c38;border-radius:20px;background:linear-gradient(145deg,#350a0c,#270809 70%,#3b0a0d);box-shadow:0 16px 45px #13000055}.contact-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.contact-heading small{color:#d8a947;letter-spacing:.13em;font-weight:700}.contact-heading h2{margin:5px 0 0;color:#ffe5a0}.contact-status{display:inline-flex;align-items:center;gap:7px;border:1px solid #b9893e;border-radius:999px;padding:8px 12px;color:#ffdfa0;font-size:13px;white-space:nowrap}.contact-status span{color:#65d58d}.contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.contact-method{min-width:0;display:flex;flex-direction:column;align-items:flex-start;padding:24px;border:1px solid #aa792d;border-radius:17px;background:linear-gradient(150deg,#4a1011,#300a0c);box-shadow:inset 0 1px #ffe4a41a}.contact-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:13px;background:linear-gradient(145deg,#a65a20,#542010);color:#ffdf90;font-size:28px;margin-bottom:17px}.contact-icon.line-icon{background:linear-gradient(145deg,#1f7e42,#0c4224);color:#dcffe4}.contact-method-title h3{margin:0;color:#ffe3a0;font-size:clamp(20px,2vw,25px)}.contact-method-title p,.contact-line-caption{margin:5px 0 0;color:#e0c7a5;font-size:14px}.contact-phone-list{display:flex;flex-wrap:wrap;gap:8px 18px;margin:24px 0 19px}.contact-phone-list a,.contact-line-id{font-size:clamp(19px,2vw,25px);font-weight:800;color:#fff2cf;text-decoration:none;overflow-wrap:anywhere}.contact-phone-list a:hover{color:#f6c65e}.contact-call-actions{display:flex;flex-wrap:wrap;gap:10px;width:100%;margin-top:auto}.contact-button{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:10px 18px;border:1px solid #e3b64c;border-radius:11px;background:linear-gradient(135deg,#fff0ad,#d7a13a);color:#351304!important;font-weight:800;text-decoration:none;box-shadow:0 4px 15px #0003;transition:transform .15s,filter .15s}.contact-button:hover{transform:translateY(-2px);filter:brightness(1.07)}.contact-button.secondary{background:#461316;color:#ffe1a0!important}.contact-line-id{margin:24px 0 0}.contact-line-caption{margin-bottom:20px}.contact-button.line-button{margin-top:auto;min-width:180px}.contact-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:20px;padding:21px;border:1px solid #805924;border-radius:14px;background:#3a1010}.contact-info-item{display:flex;align-items:flex-start;gap:12px;min-width:0}.contact-info-icon{display:grid;place-items:center;flex:none;width:37px;height:37px;border:1px solid #9e732e;border-radius:10px;color:#f9d17c;font-size:22px}.contact-info-item h3{margin:0 0 5px;color:#ffe0a0;font-size:16px}.contact-info-item p{margin:0;color:#e8d0ae;font-size:13px;line-height:1.65}.contact-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px;padding-top:19px;border-top:1px solid #93662b55}.contact-bottom p{margin:0;color:#d7bfa2;font-size:12px}.contact-bottom .outline{white-space:nowrap}@media(max-width:720px){.contact-heading{align-items:flex-start;flex-direction:column}.contact-grid,.contact-info{grid-template-columns:1fr}.contact-method{padding:20px}.contact-bottom{align-items:flex-start;flex-direction:column}.contact-phone-list{margin-top:19px}}

/* Referral promotion: keep original image uncropped and details legible */
#promotion-banner img{width:100%;height:auto;object-fit:contain!important;display:block}
.referral-details{margin:20px auto 0;padding:clamp(18px,3vw,32px);border:1px solid #bd842d;border-radius:16px;background:linear-gradient(140deg,#300b0c,#4d1013);color:#fff0cf;line-height:1.85}
.referral-details h2{font-size:clamp(23px,3vw,34px);color:#ffdb7c;margin:0 0 8px}
.referral-details h3{color:#ffd681;margin:22px 0 8px;font-size:clamp(17px,2vw,22px)}
.referral-details h4{color:#ffe09c;margin:0 0 6px;font-size:19px}
.referral-details p{margin:0 0 10px}.referral-details ol{padding-left:25px;margin:8px 0}.referral-details li{margin-bottom:8px}
.referral-room-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}.referral-room-grid>div{padding:17px;border:1px solid #a97932;border-radius:12px;background:#26090c}
@media(max-width:750px){.referral-room-grid{grid-template-columns:1fr}.referral-details{margin-top:12px}}

/* Readability fix: referral promotion text highlighted in screenshot */
.referral-details p,
.referral-details li,
.referral-details .referral-room-grid p,
.referral-details .referral-room-grid strong {
  color: #ffffff !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Long-form article at the bottom of the homepage */
.seo-article{max-width:1160px;margin:48px auto 64px;padding:0 20px;color:#fff3db}.seo-article-inner{background:linear-gradient(145deg,#330c10,#230b0e);border:1px solid #b98a3d;border-radius:18px;padding:clamp(22px,4vw,48px);box-shadow:0 12px 32px #0003}.seo-article h2{color:#ffda83;font-size:clamp(23px,2.5vw,31px);line-height:1.4;margin:36px 0 16px}.seo-article h2:first-child{margin-top:0}.seo-article h3{color:#ffe5ad;font-size:clamp(18px,2vw,22px);line-height:1.5;margin:28px 0 10px}.seo-article p{font-size:16px;line-height:1.95;margin:0 0 17px;color:#fff3e7}.seo-article a{color:#ffd26c;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}@media(max-width:600px){.seo-article{padding:0 12px;margin:30px auto}.seo-article-inner{padding:20px}.seo-article p{font-size:15px}}


/* CJNINE premium top navigation — only the four header menu links */
.bar > nav[aria-label="เมนูหลัก"]{display:flex;align-items:center;justify-content:center;gap:5px;width:max-content;max-width:100%;margin:auto;padding:5px 7px;border:1px solid rgba(239,187,79,.42);border-radius:999px;background:linear-gradient(145deg,rgba(33,0,5,.72),rgba(108,14,18,.54));box-shadow:inset 0 1px 0 rgba(255,233,169,.14),0 5px 17px rgba(0,0,0,.19);flex-wrap:nowrap}
.bar > nav[aria-label="เมนูหลัก"] a{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:37px;padding:7px 17px;border:1px solid transparent;border-radius:999px;color:#fff0d8;font-size:14px;font-weight:500;white-space:nowrap;transition:background .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.bar > nav[aria-label="เมนูหลัก"] a:hover,.bar > nav[aria-label="เมนูหลัก"] a:focus-visible{color:#fff2bc;background:linear-gradient(145deg,rgba(181,64,27,.46),rgba(92,7,12,.85));border-color:rgba(255,212,115,.65);box-shadow:inset 0 1px 0 rgba(255,238,190,.15),0 0 13px rgba(245,177,53,.19);transform:translateY(-1px)}
.bar > nav[aria-label="เมนูหลัก"] a[aria-current="page"]{color:#3c1306;background:linear-gradient(160deg,#fff6c2,#f9cf68 48%,#d89a2c);border-color:#ffe9a5;box-shadow:inset 0 1px 1px #fff8d5,0 2px 12px rgba(255,181,44,.34);font-weight:600}
.bar > nav[aria-label="เมนูหลัก"] a:focus-visible{outline:2px solid #fff1b4;outline-offset:3px}
@media(max-width:800px){.bar > nav[aria-label="เมนูหลัก"]{order:3;width:100%;max-width:100%;margin:4px auto 0;gap:2px;padding:4px;justify-content:space-around;flex-wrap:nowrap}.bar > nav[aria-label="เมนูหลัก"] a{flex:1;min-width:0;padding:8px 4px;font-size:clamp(11px,2.8vw,14px)}}
@media(prefers-reduced-motion:reduce){.bar > nav[aria-label="เมนูหลัก"] a{transition:none}.bar > nav[aria-label="เมนูหลัก"] a:hover{transform:none}}


/* Results page premium refresh — isolated to results.html */
.subpage:has(.results-intro){padding-top:12px;padding-bottom:72px}
.subpage .results-intro{position:relative;max-width:1000px;margin:0 auto 19px;padding:23px 18px 18px;text-align:center;border-radius:22px;background:radial-gradient(ellipse at 50% -55%,#bd3e2466,transparent 70%),linear-gradient(115deg,#370709,#711014 51%,#370709);border:1px solid #c58b3966;box-shadow:inset 0 1px #f4ca7950,0 12px 32px #16000030;overflow:hidden}
.results-intro:before,.results-intro:after{content:'✦';position:absolute;top:15px;color:#e4ac51;font-size:20px;opacity:.65}
.results-intro:before{left:25px}.results-intro:after{right:25px}
.results-intro small{color:#ffce74;letter-spacing:2px}
.results-intro h1{font-size:clamp(31px,4.5vw,48px);line-height:1.3;margin:5px 0 2px;text-shadow:0 2px 16px #e39d3e44}
.results-intro p{margin:0;color:#fff0db;font-size:14px}
.results-intro-rule{height:16px;display:flex;align-items:center;justify-content:center;color:#f5c76c;gap:10px;margin-top:8px}
.results-intro-rule:before,.results-intro-rule:after{content:'';width:65px;height:1px;background:linear-gradient(90deg,transparent,#dfae52)}
.results-intro-rule:after{transform:rotate(180deg)}
.subpage .results-panel{position:relative;background:linear-gradient(140deg,#410c0e,#290909 65%,#430b0e)!important;border:1px solid #d2a04c!important;box-shadow:0 18px 42px #10000060,inset 0 1px #ffe0a126;padding:24px!important;overflow:hidden}
.subpage .results-panel:before,.subpage .results-panel:after{content:'✧';position:absolute;color:#e9b35c;font-size:38px;opacity:.19;pointer-events:none}
.subpage .results-panel:before{top:8px;left:8px}.subpage .results-panel:after{top:8px;right:8px}
.subpage .lottery-result{position:relative;background:radial-gradient(ellipse at 50% 0,#762222 0,#30090a 62%);border-color:#d9a84f;padding:20px 16px 15px;box-shadow:inset 0 1px #f3c67135}
.subpage .lottery-result h3{margin-top:8px;color:#ffe2a2;text-shadow:0 2px 14px #f8ba6630}
.subpage .lottery-first{background:linear-gradient(120deg,#57121a,#8c1b24 50%,#511117);border:1px solid #efbc5a;padding:18px 12px;box-shadow:inset 0 1px #fff0bd30,0 5px 18px #12000050}
.subpage .lottery-first strong{color:#ffe2a0;text-shadow:0 2px 12px #ffb72d55;letter-spacing:3px}
.subpage .lottery-pair>div,.subpage .lottery-last{background:linear-gradient(130deg,#641920,#481216);border:1px solid #a760363d;padding:14px 10px}
.subpage .lottery-pair strong,.subpage .lottery-last strong{color:#fff7e9}
.subpage .lottery-label{background:#6c2a16;color:#ffe0a2}
.subpage .result-source{margin:20px 0 2px!important}
.subpage .official-results-button{display:inline-flex;justify-content:center;align-items:center;max-width:100%;padding:12px 20px;border-radius:999px;border:1px solid #efc56f;background:linear-gradient(135deg,#ffe8ac,#e6aa44 55%,#b9791d);color:#38100d;font-weight:600;box-shadow:0 5px 18px #0005;transition:transform .2s,filter .2s}
.subpage .official-results-button:hover{transform:translateY(-2px);filter:brightness(1.08)}
.subpage .official-results-button:focus-visible{outline:3px solid white;outline-offset:3px}
@media(max-width:520px){.subpage .results-intro{padding:19px 13px 15px;margin-bottom:14px}.results-intro:before{left:10px}.results-intro:after{right:10px}.subpage .results-panel{padding:12px!important}.subpage .lottery-result{padding:13px 9px}.subpage .lottery-first{padding:14px 8px}.subpage .lottery-pair>div,.subpage .lottery-last{padding:11px 4px}.subpage .official-results-button{font-size:12px;padding:11px 13px}}

/* Premium gold/red refresh: promotions and contact only; original details and links preserved */
.subpage.promotions-page,.subpage.contact-page{padding-top:12px;padding-bottom:72px}
.subpage .premium-subpage-intro{position:relative;max-width:1060px;margin:0 auto 22px;padding:24px 18px 19px;text-align:center;border-radius:22px;background:radial-gradient(ellipse at 50% -55%,#bd3e2466,transparent 70%),linear-gradient(115deg,#370709,#711014 51%,#370709);border:1px solid #c58b3966;box-shadow:inset 0 1px #f4ca7950,0 12px 32px #16000030;overflow:hidden}
.premium-subpage-intro:before,.premium-subpage-intro:after{content:'✦';position:absolute;top:15px;color:#e4ac51;font-size:20px;opacity:.65}
.premium-subpage-intro:before{left:25px}.premium-subpage-intro:after{right:25px}
.premium-subpage-intro small{color:#ffce74;letter-spacing:2px}
.premium-subpage-intro h1{font-size:clamp(31px,4.5vw,48px);line-height:1.3;margin:5px 0 2px;text-shadow:0 2px 16px #e39d3e44}
.premium-subpage-intro p{margin:0 auto;color:#fff0db;font-size:14px;max-width:700px}
.premium-intro-rule{height:16px;display:flex;align-items:center;justify-content:center;color:#f5c76c;gap:10px;margin-top:8px}
.premium-intro-rule:before,.premium-intro-rule:after{content:'';width:65px;height:1px;background:linear-gradient(90deg,transparent,#dfae52)}
.premium-intro-rule:after{transform:rotate(180deg)}
.promotions-page #promotion-list,.promotions-page .promotion-detail,.contact-page .contact-panel{position:relative;background:linear-gradient(140deg,#410c0e,#290909 65%,#430b0e)!important;border:1px solid #d2a04c!important;box-shadow:0 18px 42px #10000060,inset 0 1px #ffe0a126;overflow:hidden}
.promotions-page #promotion-list:before,.promotions-page .promotion-detail:before,.contact-page .contact-panel:before{content:'✧';position:absolute;right:12px;top:7px;color:#e9b35c;font-size:34px;opacity:.22;pointer-events:none}
.promotions-page #promotion-list>small{color:#ffce74;letter-spacing:1.6px}
.promotions-page #promotion-list>h2,.promotions-page .promotion-copy h2{color:#ffe2a2;text-shadow:0 2px 14px #f8ba6630}
.promotions-page .promotion-card{border:1px solid #c99949;box-shadow:0 8px 24px #10000050;transition:transform .18s,box-shadow .18s,border-color .18s}
.promotions-page .promotion-card:hover{transform:translateY(-3px);border-color:#ffda88;box-shadow:0 12px 30px #10000090}
.promotions-page .promotion-card:focus-visible,.contact-page a:focus-visible{outline:3px solid #fff3cf;outline-offset:3px}
.promotions-page .promotion-card strong{color:#ffe3a0}
.promotions-page .promotion-detail{scroll-margin-top:100px}
.promotions-page .promotion-copy p,.promotions-page .promotion-copy li,.promotions-page .promotion-copy td{color:#fff4e9}
.promotions-page .promotion-copy h3{color:#ffda87}
.contact-page .contact-panel{background:linear-gradient(140deg,#410c0e,#290909 65%,#430b0e)!important}
.contact-page .contact-method{background:radial-gradient(ellipse at 50% 0,#6e2521 0,#300a0c 75%);border-color:#c59442;box-shadow:inset 0 1px #f3c67135,0 6px 20px #12000040}
.contact-page .contact-heading h2,.contact-page .contact-method-title h3{color:#ffe2a2}
.contact-page .contact-info{border-color:#b98c41;background:linear-gradient(120deg,#461115,#35100e)}
.contact-page .contact-status{background:#4b2717;border-color:#e1b764}
@media(max-width:520px){.subpage .premium-subpage-intro{padding:19px 13px 15px;margin-bottom:14px}.premium-subpage-intro:before{left:10px}.premium-subpage-intro:after{right:10px}}
