/*
Theme Name: Roll88 Lobby
Theme URI: https://roll88app.cc/
Author: Roll88
Description: Thai-first Roll88 game lobby theme.
Version: 1.0.0
Text Domain: roll88-lobby
*/
:root{--ink:#eafaf7;--muted:#a7c8c7;--navy:#031c35;--night:#07162c;--blue:#083f8c;--green:#4be141;--lime:#9df659;--line:rgba(153,243,220,.18);--sidebar:246px;--content:1320px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#062920;color:var(--ink);font:18px/1.65 "Noto Sans Thai",Tahoma,Arial,sans-serif;letter-spacing:0}
body.menu-open{overflow:hidden}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit}
button,a{ -webkit-tap-highlight-color:transparent }
button:focus-visible,a:focus-visible{outline:3px solid var(--lime);outline-offset:3px}
.icon{width:20px;height:20px;display:inline-block;vertical-align:middle;filter:brightness(0) invert(1);flex:none}
.skip-link{position:absolute;left:12px;top:-100px;z-index:1000;background:#fff;color:#001d28;padding:12px}
.skip-link:focus{top:12px}
.site-shell{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:100vh}
.sidebar{position:sticky;top:0;align-self:start;height:100vh;z-index:60;display:flex;flex-direction:column;padding:26px 16px 20px;background:linear-gradient(180deg,#031a35 0%,#032d47 62%,#032836 100%);border-right:1px solid var(--line)}
.brand{display:block;padding:12px 8px 30px}
.brand img{width:194px;height:auto}
.sidebar-nav{display:grid;gap:3px;overflow:auto;scrollbar-width:thin}
.sidebar-nav a{display:flex;align-items:center;gap:15px;min-height:48px;padding:8px 13px;border-radius:6px;color:#d5edee;font-weight:700;font-size:17px;transition:background .2s,color .2s}
.sidebar-nav a:hover,.sidebar-nav a[aria-current=page]{background:linear-gradient(90deg,rgba(44,209,91,.25),rgba(15,113,123,.12));color:#fff}
.sidebar-nav a[aria-current=page]::before{content:"";position:absolute;left:0;width:4px;height:32px;background:var(--green);border-radius:0 3px 3px 0}
.sidebar-nav .icon{width:22px;height:22px}
.sidebar-foot{margin-top:auto;padding:17px 12px 5px;border-top:2px solid var(--green)}
.sidebar-foot-title{display:block;color:var(--lime);font-weight:800;font-size:16px}
.sidebar-foot a{display:flex;align-items:center;gap:5px;font-size:16px;margin-top:8px}
.site-main-wrap{min-width:0;background:linear-gradient(145deg,#063b32 0%,#0b6050 28%,#07534b 53%,#113b59 100%)}
.topbar{height:76px;display:flex;align-items:center;justify-content:flex-end;gap:20px;padding:0 clamp(20px,3vw,52px);background:rgba(1,18,38,.78);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.topbar-actions{display:flex;align-items:center;gap:21px}
.topbar-link{font-weight:700;font-size:16px}
.topbar-link:hover,.text-link:hover{color:var(--lime)}
.mobile-brand,.menu-toggle{display:none}
.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:10px 20px;border:0;border-radius:5px;font-weight:800;font-size:16px;white-space:nowrap;transition:transform .2s,filter .2s}
.button:hover{transform:translateY(-2px);filter:brightness(1.05)}
.button .icon,.text-link .icon{width:18px;height:18px}
.button-primary{background:linear-gradient(110deg,#47d832,#95ee38);color:#082927;box-shadow:0 8px 24px rgba(37,182,82,.2)}
.button-primary .icon,.button-dark .icon{filter:brightness(0) saturate(100%) invert(11%) sepia(46%) saturate(739%) hue-rotate(132deg)}
.button-ghost{border:1px solid rgba(213,255,244,.55);background:rgba(0,29,49,.5);color:#fff}
.button-dark{background:#073949;color:var(--ink)}
.icon-button{display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(255,255,255,.33);border-radius:50%;background:rgba(0,35,60,.65);color:#fff;cursor:pointer}
.icon-button:hover{background:rgba(44,173,97,.7)}
.eyebrow{display:block;color:var(--lime);font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:0}
h1,h2,h3,h4,p{margin-top:0}
h1,h2,h3{line-height:1.28;letter-spacing:0}
.lobby-hero{padding:20px clamp(20px,3vw,52px) 0;background:linear-gradient(120deg,#07583b,#0e7b53 55%,#0c455e)}
.hero-stage{display:grid;grid-template-columns:minmax(0,1fr);max-width:1300px;margin:0 auto;border:1px solid rgba(73,224,108,.35);border-radius:6px;overflow:hidden;background:#03253e}
.hero-slide{grid-area:1/1;min-width:0;opacity:0;visibility:hidden;transition:opacity .6s ease}
.hero-slide.is-active{opacity:1;visibility:visible}
.hero-slide>img{width:100%;height:auto;aspect-ratio:1440/660;object-fit:contain;background:#062d55}
.hero-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"tag actions" "title actions" "lead actions";align-items:center;gap:3px 24px;min-height:132px;padding:15px clamp(20px,3vw,42px);background:linear-gradient(110deg,#043b39,#062d4c)}
.hero-copy .eyebrow{grid-area:tag}
.hero-copy h1,.hero-copy h2{grid-area:title;font-size:clamp(25px,2.1vw,32px);margin:0;font-weight:900}
.hero-copy p{grid-area:lead;font-size:15px;line-height:1.5;margin:0;color:#dcf6f0}
.hero-copy .hero-actions{grid-area:actions}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.hero-copy .hero-actions{margin-top:0}
.hero-controls{grid-area:2/1;z-index:3;display:flex;justify-content:center;align-items:center;gap:17px;min-height:50px;background:#03253e}
.hero-controls .icon-button{width:36px;height:36px}
.hero-dots{display:flex;align-items:center;gap:8px}
.hero-dots button{width:9px;height:9px;border:0;padding:0;border-radius:50%;background:rgba(255,255,255,.6);cursor:pointer}
.hero-dots button.is-active{width:24px;border-radius:6px;background:var(--green)}
.section{padding:clamp(48px,5vw,76px) clamp(20px,3vw,52px);max-width:calc(var(--content) + 104px);margin:0 auto}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:26px}
.section-heading h2{font-size:clamp(29px,2.4vw,38px);font-weight:900;margin:5px 0 0}
.text-link{display:inline-flex;align-items:center;gap:5px;color:#d9f9ed;font-weight:800;font-size:16px;white-space:nowrap}
.shortcut-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.shortcut{position:relative;display:flex;align-items:center;gap:10px;min-height:150px;padding:12px 15px;overflow:hidden;background:linear-gradient(140deg,#0b4b5c,#0d3763 60%,#10375a);border-left:3px solid var(--green);border-radius:5px}
.shortcut:hover{background:linear-gradient(140deg,#096648,#0a4875)}
.shortcut img{height:125px;width:88px;object-fit:contain;flex:none}
.shortcut strong{display:block;font-size:20px;line-height:1.25}
.shortcut small{display:block;color:var(--muted);font-size:13px;line-height:1.45;margin-top:5px}
.section-dark{max-width:none;background:#041b33}
.section-dark>.section-heading,.section-dark>.game-grid{max-width:var(--content);margin-left:auto;margin-right:auto}
.game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
.media-card{display:block;position:relative;overflow:hidden;border:1px solid rgba(140,219,200,.18);border-radius:6px;background:#0c2946;min-width:0}
.media-card>img{width:100%;aspect-ratio:1/1;object-fit:cover;transition:transform .3s ease}
.section-dark .media-card>img{aspect-ratio:16/9}
.media-card:hover>img{transform:scale(1.04)}
.media-card-body{display:block;position:relative;padding:13px 16px 18px;min-height:100px}
.media-card-body strong{display:block;line-height:1.3;font-size:17px}
.media-card-body span{display:block;color:var(--muted);font-size:13px;line-height:1.5;margin-top:4px;padding-right:15px}
.media-card-body>.icon{position:absolute;right:13px;top:14px;width:17px;height:17px}
.promo-layout{display:grid;grid-template-columns:minmax(0,2.08fr) minmax(0,1fr);align-items:start;gap:18px;max-width:1100px;margin-inline:auto}
.promo-feature,.promo-stack a{position:relative;display:block;overflow:hidden;border-radius:5px}
.promo-feature>img{width:100%;height:auto;min-height:0}
.promo-feature span{display:flex;align-items:center;gap:8px;padding:10px 14px;background:#092744;font-weight:800;font-size:15px}
.promo-feature span .icon{width:18px;height:18px}
.promo-stack{display:grid;gap:18px}
.promo-stack a>img{width:100%;height:auto}
.provider-band{display:grid;grid-template-columns:minmax(260px,.8fr) 1.2fr;align-items:center;gap:50px;max-width:none;background:linear-gradient(115deg,#0da169 0%,#53d841 45%,#adf270 100%);color:#092e30}
.provider-band>div{max-width:650px}
.provider-band h2{font-size:clamp(32px,3vw,48px);margin:8px 0 12px}
.provider-band p{max-width:450px;font-size:18px}
.provider-band .eyebrow{color:#083a34}
.provider-names{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.provider-names span{display:grid;place-items:center;min-height:83px;padding:15px;background:rgba(2,35,52,.86);border:1px solid rgba(255,255,255,.14);border-radius:5px;color:#fff;font-weight:900;text-align:center;font-size:17px}
.editorial-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.editorial-grid a{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:120px;padding:18px 22px;background:#091d35;border-bottom:2px solid var(--green);border-radius:5px}
.editorial-grid strong{font-size:20px}
.editorial-grid span{color:var(--muted);font-size:15px}
.prose-section{background:transparent}
.prose-content{max-width:920px;margin:0 auto;font-size:18px;line-height:1.85;color:#e3f2f2}
.prose-content h2{font-size:clamp(27px,2.2vw,34px);margin:48px 0 16px;color:#fff;font-weight:900}
.prose-content h2:first-child{margin-top:0}
.prose-content h3{font-size:23px;margin:32px 0 10px;color:#b8f79d}
.prose-content p{margin:0 0 19px}
.prose-content a{color:#98faab;text-decoration:underline;text-underline-offset:3px}
.prose-content ul,.prose-content ol{padding-left:25px;margin:0 0 24px}
.prose-content li{margin:7px 0}
.prose-content figure{margin:33px 0}
.prose-content img{width:100%;height:auto;max-height:470px;object-fit:cover;border-radius:5px}
.prose-content figcaption{font-size:14px;color:var(--muted);margin-top:7px}
.prose-content table{border-collapse:collapse;width:100%;font-size:15px;margin:25px 0}
.prose-content th,.prose-content td{padding:10px 12px;border:1px solid var(--line);text-align:left}
.prose-content th{background:#084761}
.prose-content blockquote{margin:28px 0;padding:15px 22px;border-left:4px solid var(--green);background:rgba(11,99,90,.23)}
.inner-hero,.article-hero{position:relative;display:grid;grid-template-columns:1fr minmax(300px,.8fr);align-items:center;gap:30px;min-height:430px;padding:50px clamp(20px,4vw,65px);overflow:hidden;background:linear-gradient(115deg,#087449,#116e56 43%,#0b5865 72%,#0b344d)}
.inner-hero::after,.article-hero::after{content:"";position:absolute;width:50%;height:100%;right:0;top:0;background:linear-gradient(90deg,transparent,rgba(18,220,91,.14));pointer-events:none}
.inner-hero-copy,.article-hero>div{position:relative;z-index:1;max-width:660px}
.inner-hero h1,.article-hero h1{font-size:clamp(40px,4vw,62px);font-weight:900;margin:10px 0 15px}
.inner-hero p,.article-hero p{font-size:19px;max-width:650px;color:#e4f9f0}
.inner-hero>img,.article-hero>img{position:relative;z-index:1;justify-self:center;width:min(100%,500px);height:320px;object-fit:contain;filter:drop-shadow(0 15px 30px rgba(0,0,0,.25))}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.category-grid a{position:relative;display:flex;align-items:flex-end;justify-content:center;min-height:280px;background:linear-gradient(#0c4b75,#0b2448);border-radius:5px;overflow:hidden}
.category-grid img{max-width:100%;height:250px;object-fit:contain}
.category-grid strong{position:absolute;bottom:0;left:0;right:0;padding:16px;background:linear-gradient(transparent,#031e38);text-align:center;font-size:20px}
.promotion-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}
.promotion-grid figure{margin:0;background:#092744;border-radius:5px;overflow:hidden}
.promotion-grid img{width:100%;height:auto;aspect-ratio:729/399;object-fit:cover}
.promotion-grid figcaption{padding:10px 14px;font-weight:800;font-size:17px}
.provider-page .provider-names{grid-template-columns:repeat(5,1fr)}
.next-section{display:flex;justify-content:space-between;gap:30px;align-items:center;background:linear-gradient(100deg,rgba(33,158,103,.38),rgba(4,47,84,.55));max-width:none}
.next-section h2{font-size:31px;margin:5px 0}
.next-links{display:flex;gap:12px;flex-wrap:wrap}
.next-links a{display:inline-flex;align-items:center;gap:6px;padding:10px 14px;border:1px solid var(--line);border-radius:4px;font-size:15px;font-weight:800}
.next-links a:hover{background:#116d64}
.article-hero{grid-template-columns:1fr minmax(250px,.7fr)}
.article-hero>img{width:min(100%,420px);height:350px;object-fit:contain}
.back-link{display:flex;align-items:center;gap:7px;width:max-content;margin-bottom:25px;color:#eaffea;font-size:16px}
.article-end{display:flex;align-items:center;justify-content:space-between;gap:20px}
.not-found{min-height:65vh;display:flex;align-items:flex-start;justify-content:center;flex-direction:column}
.not-found h1{font-size:48px;margin:10px 0}
.site-footer{padding:50px clamp(20px,3vw,52px) 20px;background:#02152a;border-top:1px solid var(--line)}
.footer-main{display:flex;justify-content:space-between;gap:60px;max-width:var(--content);margin:auto}
.footer-main>div{max-width:390px}
.footer-logo{width:145px;height:auto;margin-bottom:13px}
.footer-main p{color:var(--muted);font-size:14px}
.footer-main nav{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:7px 18px;font-size:14px}
.footer-main a:hover{color:var(--green)}
.footer-bottom{display:flex;justify-content:space-between;max-width:var(--content);margin:35px auto 0;padding-top:15px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.mobile-bottom-nav{display:none}
@media(max-width:1200px){:root{--sidebar:210px}.sidebar-nav a{font-size:15px}.brand img{width:170px}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.provider-page .provider-names{grid-template-columns:repeat(3,1fr)}}
@media(max-width:850px){.promo-layout{grid-template-columns:1fr}.promo-layout .promo-stack{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.promo-layout .promo-stack{grid-template-columns:1fr}}
@media(max-width:850px){.site-shell{display:block}.sidebar{position:fixed;left:0;top:0;width:min(82vw,330px);height:100dvh;transform:translateX(-100%);transition:transform .25s ease;box-shadow:20px 0 60px rgba(0,0,0,.3)}.sidebar.is-open{transform:translateX(0)}.topbar{height:68px;justify-content:space-between}.menu-toggle{display:grid;flex:none}.mobile-brand{display:block;margin-right:auto}.mobile-brand img{width:140px;height:auto}.topbar-link{display:none}.topbar-actions .button{min-height:40px;padding:8px 13px;font-size:14px}.hero-copy{grid-template-columns:1fr;grid-template-areas:"tag" "title" "lead" "actions";gap:5px;min-height:0;padding:17px 22px}.hero-copy h1,.hero-copy h2{font-size:28px}.hero-copy p{font-size:15px}.hero-copy .hero-actions{margin-top:8px}.provider-band{grid-template-columns:1fr;gap:25px}.inner-hero,.article-hero{grid-template-columns:1fr;min-height:0}.inner-hero>img,.article-hero>img{height:250px}.site-footer{padding-bottom:85px}.mobile-bottom-nav{position:fixed;z-index:70;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,1fr);min-height:66px;padding-bottom:env(safe-area-inset-bottom);background:#061d38;border-top:1px solid rgba(155,244,199,.35);box-shadow:0 -10px 30px rgba(0,0,0,.2)}.mobile-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;font-weight:800;color:#cee6e2}.mobile-bottom-nav a:last-child{color:var(--lime)}.mobile-bottom-nav .icon{width:20px;height:20px}}
@media(max-width:600px){body{font-size:16px}.topbar{padding:0 14px}.topbar-actions .button .icon{display:none}.lobby-hero{padding:10px 10px 0}.hero-copy{padding:14px 16px}.hero-copy h1,.hero-copy h2{font-size:23px}.hero-copy p{font-size:13px;line-height:1.45}.hero-actions{gap:7px}.hero-actions .button{min-height:40px;padding:8px 12px;font-size:13px}.section{padding:42px 16px}.section-heading{align-items:start}.section-heading h2{font-size:28px}.text-link{font-size:13px}.shortcut-grid{gap:9px}.shortcut{min-height:108px;padding:8px;gap:4px}.shortcut img{width:52px;height:86px}.shortcut strong{font-size:16px}.shortcut small{font-size:11px}.game-grid{gap:10px}.media-card-body{padding:10px;min-height:90px}.media-card-body strong{font-size:14px;padding-right:10px}.media-card-body span{font-size:11px}.promo-layout{grid-template-columns:1fr}.promo-feature img{min-height:0}.promo-stack{grid-template-columns:1fr 1fr;gap:8px}.promo-stack img{height:auto}.provider-names{grid-template-columns:repeat(2,minmax(0,1fr))}.provider-names span{min-height:65px;font-size:14px}.editorial-grid{grid-template-columns:1fr;gap:10px}.editorial-grid a{min-height:94px;padding:13px 16px}.editorial-grid strong{font-size:17px}.inner-hero,.article-hero{padding:40px 18px 25px;gap:8px}.inner-hero h1,.article-hero h1{font-size:36px}.inner-hero p,.article-hero p{font-size:16px}.inner-hero>img,.article-hero>img{height:190px}.category-grid{grid-template-columns:repeat(2,1fr);gap:10px}.category-grid a{min-height:190px}.category-grid img{height:180px}.promotion-grid{grid-template-columns:repeat(2,1fr);gap:8px}.promotion-grid figcaption{font-size:13px}.provider-page .provider-names{grid-template-columns:repeat(2,1fr)}.prose-content{font-size:16px}.prose-content h2{font-size:26px;margin-top:34px}.prose-content h3{font-size:20px}.next-section{display:block}.next-links{margin-top:15px}.footer-main{display:block}.footer-main nav{margin-top:25px;grid-template-columns:repeat(2,minmax(0,1fr))}.footer-bottom{margin-top:24px}}
