:root{--bg:#140827;--panel:#230e46;--panel2:#30115b;--purple:#6e29d5;--teal:#00d5a4;--gold:#ffcf5b;--text:#f7f2ff;--muted:#b9add5}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 70% 18%,#4c1266 0,#240d4f 32%,#130725 78%);color:var(--text);font:16px/1.7 system-ui,-apple-system,'Noto Sans Thai',Tahoma,sans-serif}a{color:inherit;text-decoration:none}a:hover{color:var(--gold)}img{max-width:100%;height:auto}button{font:inherit;cursor:pointer}.skip{position:absolute;left:-999px}.skip:focus{left:12px;top:12px;background:#fff;color:#111;padding:10px;z-index:20}.masthead{position:relative;z-index:3;background:linear-gradient(105deg,#008d70,#00a985 50%,#075751);border-bottom:2px solid #44dbac;box-shadow:0 8px 24px #0005}.mast-inner{max-width:1800px;margin:auto;display:flex;gap:25px;align-items:center;min-height:86px;padding:8px 24px}.brand img{display:block;width:145px;height:50px;object-fit:contain}.mast-note{font-weight:800;color:#e5fff5;letter-spacing:.03em;margin-right:auto}.mast-actions,.hero-actions,.footer-actions{display:flex;gap:10px;align-items:center}.sign-up,.sign-in,.ghost,.footer-actions a{display:inline-flex;align-items:center;justify-content:center;min-width:126px;min-height:44px;padding:8px 20px;border-radius:10px;font-weight:800;box-shadow:inset 0 1px #fff7,0 5px 14px #07051644}.sign-up{background:linear-gradient(125deg,#ffbd32,#ff7700);color:#22113b}.sign-in{background:linear-gradient(125deg,#6448ff,#2639ef);color:#fff}.ghost{border:1px solid #9e83da;color:#fff}.sign-up:hover,.sign-in:hover{transform:translateY(-2px);color:#fff}.site-frame{display:flex;max-width:1800px;margin:auto;min-height:80vh}.rail{flex:0 0 172px;align-self:flex-start;position:sticky;top:0;display:flex;flex-direction:column;gap:5px;padding:20px 10px;background:#1a0a39;min-height:calc(100vh - 86px);border-right:1px solid #603b8d}.rail-label{padding:10px 12px;font-size:11px;letter-spacing:.2em;color:var(--teal)}.rail a{display:flex;align-items:center;gap:10px;border-radius:12px;padding:11px 9px;color:#e8dbff;font-size:14px;font-weight:700}.rail a:hover,.rail a[aria-current=page]{background:linear-gradient(100deg,#5b21b5,#32308c);color:#fff}.rail-symbol{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#ffffff14;color:#ffd968;font-size:19px;flex:none}.content-frame{width:calc(100% - 172px);min-width:0}.home-main,.page-main{max-width:1480px;margin:auto;padding:34px clamp(18px,4vw,58px) 80px}.eyebrow{font-size:12px;letter-spacing:.18em;font-weight:900;color:var(--teal)}h1,h2,h3{line-height:1.3;margin:0 0 .55em;letter-spacing:-.02em}h1{font-size:clamp(34px,3.2vw,58px)}h2{font-size:clamp(24px,2.1vw,34px);color:#ffdb79}h3{font-size:22px;color:#79f1d2}p{margin:0 0 1.15em}.hero{display:grid;grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);align-items:center;gap:25px;padding:38px;border:1px solid #8b47a8;border-radius:24px;background:radial-gradient(circle at 60% 30%,#8820aa77,transparent 45%),linear-gradient(125deg,#2b0d5e,#170d3b);box-shadow:0 18px 60px #0007}.hero-copy p{font-size:18px;color:#d7c8ed;max-width:550px}.hero h1{color:#fff}.hero-slider{position:relative;overflow:hidden;border-radius:17px;background:#1d0b37;min-height:260px;display:flex;align-items:center}.slide{display:none;width:100%;position:relative}.slide.active{display:block}.slide img{display:block;width:100%;height:auto;max-height:430px;object-fit:contain}.slide span{position:absolute;left:16px;bottom:14px;background:#15082dc9;padding:4px 12px;border-radius:6px;font-weight:800}.slide-controls{position:absolute;right:12px;bottom:12px;display:flex;align-items:center;gap:8px;background:#15082dda;padding:4px 8px;border-radius:12px;font-size:12px}.slide-controls button{border:0;background:#7a39d1;color:#fff;border-radius:7px;width:30px;height:30px;font-size:22px;line-height:1}.category-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:25px 0 44px}.category-strip a{padding:16px;border-radius:12px;text-align:center;background:linear-gradient(120deg,#3c1669,#221548);border:1px solid #70439e;font-weight:800}.category-strip a:hover{border-color:var(--teal);background:#3a206f}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:16px}.section-heading>a,.feature a,.lotto-band a{color:#8efbd7;font-weight:800}.game-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:16px}.game-grid a{min-width:0;text-align:center;font-size:14px}.game-grid img{display:block;width:100%;aspect-ratio:1;object-fit:contain;border-radius:13px;border:1px solid #7750a7;box-shadow:0 8px 25px #05001177}.game-grid span{display:block;padding-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:65px 0}.feature{display:grid;grid-template-columns:45% 55%;align-items:center;overflow:hidden;border-radius:18px;background:linear-gradient(120deg,#3b1769,#171046);border:1px solid #5e3a87}.feature img{display:block;width:100%;height:auto;object-fit:contain}.feature div{padding:20px}.feature p{color:#cfc0ec}.lotto-band{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px;border-radius:18px;background:linear-gradient(120deg,#4d167a,#2a1260);border:1px solid #7e47a1}.lotto-band img{max-width:250px;max-height:220px;object-fit:contain}.home-text{margin-top:55px}.breadcrumbs{font-size:13px;color:#bfb4db;margin-bottom:20px}.breadcrumbs span{padding:0 9px}.page-intro{background:radial-gradient(circle at right,#69239388,transparent 55%),linear-gradient(110deg,#321164,#171042);border:1px solid #77539e;border-radius:20px;padding:clamp(25px,4vw,55px);margin-bottom:36px}.page-intro h1{margin-top:10px}.page-intro p{font-size:19px;color:#decff1;max-width:900px}.prose{max-width:1080px}.prose p,.prose li{color:#e2d9ed;line-height:1.95}.prose a{color:#90f3d7;text-decoration:underline;text-underline-offset:3px}.prose h2{margin:2.1em 0 .65em}.prose h3{margin:1.5em 0 .5em}.prose ul{padding-left:25px}.prose figure{margin:35px 0;padding:14px;background:#28144b;border:1px solid #5c4083;border-radius:15px}.prose figure img{display:block;max-height:480px;width:auto;margin:auto;object-fit:contain}.prose figcaption{color:#bdb1d0;text-align:center;font-size:13px;margin-top:8px}.prose .callout{padding:20px;border-left:4px solid var(--teal);background:#291653;border-radius:0 10px 10px 0}.footer{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:25px;padding:42px clamp(18px,4vw,58px);border-top:1px solid #68428d;background:#100720;color:#cbbce3;font-size:13px}.footer strong{font-size:25px;color:#ffcf5b}.footer nav{display:grid;grid-template-columns:1fr 1fr;gap:8px}.footer-actions{align-items:start;flex-wrap:wrap}.footer-actions a{min-width:110px;background:#423079;color:#fff}.footer-actions a:last-child{background:#ffae1c;color:#241034}.mobile-bar{display:none}@media(max-width:1000px){.rail{flex-basis:76px}.rail-label,.rail a span:last-child{display:none}.rail a{justify-content:center}.content-frame{width:calc(100% - 76px)}.game-grid{grid-template-columns:repeat(4,1fr)}.hero{grid-template-columns:1fr}.hero-slider{min-height:150px}}@media(max-width:650px){body{padding-bottom:62px}.mast-inner{min-height:65px;padding:6px 14px;gap:8px}.brand img{width:110px;height:auto}.mast-note,.mast-actions{display:none}.site-frame{display:block}.rail{position:static;min-height:0;flex-direction:row;overflow-x:auto;width:100%;padding:5px;background:#1b0b3b}.rail-label{display:none}.rail a{flex:none;font-size:11px;padding:5px 9px;gap:4px}.rail a span:last-child{display:block}.rail-symbol{width:24px;height:24px;font-size:15px}.content-frame{width:100%}.home-main,.page-main{padding:18px 14px 50px}.hero{padding:22px 16px;gap:16px;border-radius:14px}.hero h1{font-size:32px}.hero-copy p{font-size:15px}.hero-actions{flex-wrap:wrap}.hero-actions a{min-width:0;flex:1}.hero-slider{min-height:80px}.slide-controls{bottom:4px;right:4px}.category-strip{grid-template-columns:repeat(2,1fr);gap:8px;margin:18px 0 35px}.category-strip a{padding:10px;font-size:14px}.game-grid{grid-template-columns:repeat(3,1fr);gap:9px}.game-grid a{font-size:12px}.feature-grid{grid-template-columns:1fr;margin:35px 0}.feature{grid-template-columns:1fr 1fr}.feature h2{font-size:22px}.feature div{padding:12px}.lotto-band{padding:18px}.lotto-band img{width:95px}.footer{grid-template-columns:1fr;padding:30px 18px}.mobile-bar{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;left:0;right:0;z-index:9;background:#160c34;border-top:1px solid #8b61a6;box-shadow:0 -8px 25px #0009}.mobile-bar a{font-size:12px;text-align:center;padding:11px 4px;color:#fff;font-weight:800}.mobile-bar a:last-child{background:#e67d0f;color:#210a32}.page-intro{padding:24px 18px}.page-intro h1{font-size:31px}.prose figure img{max-height:300px}}
/* The lobby uses the original N98 background and an uncropped wide banner. */
body.n98-body{background:#130622 url('imgi_142_web-background.webp') center top / 2000px auto no-repeat fixed}
.hero{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden;background:#221047}
.hero-slider{order:0;min-height:0;border-radius:0;display:block}
.hero-copy{order:1;padding:24px clamp(20px,4vw,44px) 30px;background:linear-gradient(100deg,#33105c,#21103f 70%,#351054)}
.hero-copy p{max-width:900px}
.slide img{width:100%;height:auto;max-height:none;object-fit:contain}
.slide span{display:none}
.slide-controls[hidden]{display:none}
@media(max-width:650px){body.n98-body{background-size:auto 740px;background-attachment:scroll}.hero{padding:0}.hero-copy{padding:20px 17px 24px}.hero-slider{min-height:0}.slide img{width:100%;height:auto}.hero h1{font-size:30px}}

/* Three N98 category slides; original artwork remains uncropped. */
.hero-slider{background:#1c0a3a}.topic-slide{height:auto;min-height:300px;align-items:center;justify-content:center;gap:clamp(16px,5vw,75px);padding:24px 70px;background:radial-gradient(circle at 72% 20%,#8123a4 0,transparent 55%),linear-gradient(110deg,#2b0f62,#100d2c)}.topic-slide.active{display:flex}.topic-slide img{width:auto;max-width:37%;max-height:270px;object-fit:contain}.topic-slide div{width:50%}.topic-slide strong{display:block;font-size:clamp(28px,4vw,52px);line-height:1.25;color:#ffdb79}.topic-slide p{font-size:clamp(16px,2vw,22px);margin:8px 0 0}.slide-controls{z-index:2}.slide-controls button:focus-visible{outline:3px solid #fff;outline-offset:2px}@media(max-width:650px){.topic-slide{min-height:180px;padding:20px 16px 42px;gap:12px}.topic-slide img{max-width:40%;max-height:125px}.topic-slide div{width:58%}.topic-slide strong{font-size:22px}.topic-slide p{font-size:12px;line-height:1.3}.topic-slide .eyebrow{font-size:9px}.slide-controls{bottom:5px}}
@media(max-width:650px){.mast-actions{display:flex;margin-left:auto;gap:5px}.mast-actions .sign-in,.mast-actions .sign-up{min-width:0;min-height:34px;padding:5px 8px;font-size:12px;white-space:nowrap}.brand img{width:98px}}
@media(max-width:650px){.hero-slider{display:block;min-height:0;padding-bottom:42px}.slide-controls{right:8px;bottom:4px}}
.prose .app-gallery{margin:30px 0 44px;padding:18px;border:1px solid #664390;border-radius:18px;background:#251047}.app-gallery>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.app-gallery figure{margin:0;text-align:center}.app-gallery figure img{display:block;margin:auto;width:auto;max-width:100%;height:160px;object-fit:contain}.app-gallery figcaption,.icon-figure figcaption{color:#c8bde1;font-size:14px;text-align:center}.prose .icon-figure{width:min(270px,100%);margin:24px auto 36px;padding:22px;background:#2b1451;border-radius:16px;text-align:center}.icon-figure img{display:block;width:auto;height:100px;margin:auto;object-fit:contain}@media(max-width:650px){.app-gallery>div{gap:6px}.app-gallery figure img{height:90px}.app-gallery figcaption{font-size:11px}}
@media(max-width:650px){.app-gallery>div{grid-template-columns:1fr;gap:14px}.app-gallery figure{padding:12px}.app-gallery figure img{width:100%;height:auto;max-height:210px;object-fit:contain}.app-gallery figcaption{font-size:13px}}

/* N98 campaign carousel: full original artwork with centered indicators. */
.hero{border:0;border-radius:18px;background:none;box-shadow:none;overflow:visible}
.hero-slider{width:100%;min-height:0;border-radius:16px;background:#2b0b4b;overflow:hidden;display:block;padding:0}
.hero-slider .slide{display:none;width:100%}
.hero-slider .slide.active{display:block}
.hero-slider .slide img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.hero-slider .slide-dots{position:absolute;left:50%;bottom:12px;z-index:2;transform:translateX(-50%);display:flex;align-items:center;gap:7px;padding:6px 8px;border-radius:30px;background:#260b3859}
.slide-dots button{width:11px;height:11px;border:0;border-radius:99px;background:#a858a6;box-shadow:0 0 0 1px #fff4;padding:0;transition:width .2s ease,background .2s ease}
.slide-dots button.active{width:38px;background:#6964ff}
.slide-dots button:focus-visible{outline:2px solid #fff;outline-offset:3px}
.hero-copy{margin-top:22px;border:1px solid #684098;border-radius:16px}
@media(max-width:650px){.hero-slider{padding:0;border-radius:10px}.hero-slider .slide-dots{bottom:5px;gap:5px;padding:3px 5px}.slide-dots button{width:7px;height:7px}.slide-dots button.active{width:22px}.hero-copy{margin-top:12px}}

/* Reference lobby layout: banner and real game covers lead the home page. */
.site-frame{max-width:none}
.rail{flex:0 0 280px;width:280px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;align-self:flex-start;column-gap:8px;row-gap:8px;padding:14px 13px 30px;background:#28246c;border-right:0}
.rail-label{grid-column:1/-1;padding:0 0 4px;color:#ffd556;font-weight:800;letter-spacing:.03em;font-size:13px}
.rail a{min-width:0;min-height:56px;padding:8px;border-radius:8px;line-height:1.25;background:#37377f;font-size:13px}
.rail a:nth-of-type(1){background:linear-gradient(135deg,#6639ff,#2925dc)}
.rail a:nth-of-type(2){background:linear-gradient(135deg,#3c8cfc,#183ce7)}
.rail a:nth-of-type(3){background:linear-gradient(135deg,#ffbe17,#ef7900)}
.rail a:nth-of-type(4){background:linear-gradient(135deg,#ec43dd,#b900bd)}
.rail a:nth-of-type(n+5){grid-column:1/-1;min-height:45px;background:#313477;font-size:14px}
.rail a:hover,.rail a[aria-current=page]{filter:brightness(1.2);background-color:#5437bd}
.rail-symbol{background:#ffffff20;color:#fff;width:28px;height:28px}
.content-frame{width:calc(100% - 280px)}
.home-main{max-width:1360px;padding:24px 30px 80px}
.lobby-ticker{min-height:30px;display:flex;align-items:center;gap:14px;margin:0 0 48px;padding:4px 18px;border-radius:30px;background:#ffffff0b;color:#cfc4e8;font-size:13px}
.lobby-ticker span{color:#56c8ff;font-size:20px;line-height:1}
.home-main .hero{padding:0;display:block;border:0;background:none;box-shadow:none}
.home-main .hero-slider{width:100%;max-width:1300px;margin:auto;border-radius:16px}
.home-main .games{margin-top:36px}
.home-main .games .section-heading{margin-bottom:12px}
.home-main .games h2{font-size:22px;color:#fff;margin:0}
.home-main .games .eyebrow{display:none}
.home-main .game-grid{gap:18px}
.home-main .game-grid img{border:0;border-radius:12px;box-shadow:none;object-fit:contain}
.home-main .game-grid span{font-size:13px;line-height:1.35}
.home-introduction{margin-top:56px}
.home-introduction .hero-copy{padding:28px 34px;border:1px solid #664395;border-radius:16px;background:linear-gradient(100deg,#33105c,#21103f 70%,#351054)}
.home-introduction .category-strip{margin:20px 0 44px}
@media(max-width:1100px){.rail{flex-basis:190px;width:190px}.content-frame{width:calc(100% - 190px)}.rail a{font-size:11px}.home-main .game-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:650px){.rail{width:100%;min-height:0;display:flex;flex-direction:row;overflow-x:auto;position:static;gap:5px;padding:5px;background:#23215f}.rail a,.rail a:nth-of-type(n+5){flex:none;min-height:0;font-size:11px;padding:5px 9px}.rail-label{display:none}.content-frame{width:100%}.home-main{padding:12px 12px 55px}.lobby-ticker{margin:0 0 17px;min-height:25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}.home-main .hero-slider{border-radius:9px}.home-main .games{margin-top:23px}.home-main .games h2{font-size:19px}.home-main .games .section-heading>a{font-size:12px}.home-main .game-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.home-main .game-grid span{font-size:11px;white-space:normal}.home-introduction{margin-top:34px}.home-introduction .hero-copy{padding:20px 17px}}

.home-main .game-grid span{white-space:normal;overflow:visible;text-overflow:clip}.home-main .game-grid small{display:block;color:#8d83ff;line-height:1.2;font-size:12px}.home-main .game-grid a:hover small{color:#c9baff}

