/*
Theme Name: 22WIN Hall
Description: Thai 22WIN mobile and game hall theme.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: 22win-hall
*/
:root{color-scheme:dark;--navy:#11183f;--deep:#0a1031;--side:#362173;--panel:#1b2455;--violet:#ae36e8;--pink:#ef4cc0;--gold:#ffd66d;--text:#f5f4ff;--muted:#c4c6dd;--line:#515284}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--navy);color:var(--text);font-family:Tahoma,"Noto Sans Thai",Arial,sans-serif;line-height:1.75}a{color:inherit;text-decoration:none}a:hover{color:var(--gold)}img{max-width:100%;height:auto}button{font:inherit;cursor:pointer}a:focus-visible,button:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.site-shell{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh}.sidebar{background:linear-gradient(175deg,#342077,#302163 65%,#251c55);border-right:1px solid #6253a1;padding:22px 14px;position:sticky;top:0;height:100vh;overflow:auto}.brand{display:block;width:145px;margin:0 auto 26px}.brand img{display:block;width:100%;height:auto}.sidebar nav ul{list-style:none;margin:0;padding:0}.sidebar nav a{display:flex;gap:12px;align-items:center;padding:10px 13px;border-radius:6px;color:#f7f2ff;font-weight:600}.sidebar nav a:hover,.sidebar nav .current-menu-item a{background:#6947b4;color:white}.side-note{margin:28px 12px 0;padding-top:18px;border-top:1px solid #6855a3;font-size:.8rem;color:#d4c6e9}
.main{min-width:0}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:72px;padding:10px clamp(18px,3vw,46px);background:#090e30f5;border-bottom:1px solid #3c3f72}.topbar .brand{display:none;margin:0;width:113px}.top-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 19px;border:1px solid #b55bea;border-radius:6px;font-size:.93rem;font-weight:700;line-height:1.2;text-align:center;background:#251a5c;color:#fff;box-shadow:inset 0 0 0 1px #ffffff14}.button:hover{color:white;background:#6231a6}.button.primary{background:linear-gradient(100deg,#a71ee2,#e733c0);border-color:#dc61e8}.button.primary:hover{background:#c528e9}.button.secondary{border-color:#e8ba63;background:#493070}.mobile-toggle{display:none;background:transparent;border:0;color:white;font-size:1.6rem;padding:2px 8px}
.wrap{width:min(1320px,100%);margin:auto;padding:0 clamp(18px,3vw,48px)}.hero{padding:32px 0 16px;background:radial-gradient(circle at 85% 12%,#442173 0,transparent 42%),#141a45}.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.9fr);gap:36px;align-items:center}.eyebrow{font-size:.79rem;text-transform:uppercase;font-weight:700;color:#ffdc81}.hero h1{font-size:clamp(1.85rem,2.6vw,3rem);line-height:1.25;margin:12px 0;color:#fff}.hero p{max-width:65ch;color:#e0dff2}.hero-visual{display:flex;justify-content:center;align-items:center;min-height:270px;gap:12px}.hero-visual img{display:block;max-height:340px;object-fit:contain}.hero-visual .phone{max-width:34%}.hero-visual .game-cover{max-width:28%;border-radius:6px;box-shadow:0 15px 25px #0008}.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.disclaimer{font-size:.82rem;color:#d4cfe8;margin:16px 0 0}.ticker{background:#303b79;color:#f4e5fa;border:1px solid #525e9d;border-radius:6px;padding:9px 15px;margin-top:26px;font-size:.9rem}
.section{padding:38px 0;border-bottom:1px solid #353d72}.section h2{font-size:1.45rem;line-height:1.35;margin:0 0 18px;color:#ffdc82}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.section-head a{color:#e696fb}.game-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.game-card{display:block;min-width:0;border:1px solid #465082;border-radius:6px;background:#212858;overflow:hidden;transition:transform .15s,border-color .15s}.game-card:hover{transform:translateY(-3px);border-color:#d06be9}.game-card img{display:block;width:100%;height:auto;aspect-ratio:220/290;object-fit:contain;background:#171c43}.game-card span{display:block;padding:8px;font-size:.82rem;line-height:1.3;min-height:3.6em}.category-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.category-link{display:flex;align-items:center;gap:12px;padding:13px 15px;background:#242c61;border:1px solid #484b84;border-radius:6px;font-weight:700}.category-link img{width:32px;height:32px;object-fit:contain}.category-link:hover{background:#49387d;color:white}
.article{max-width:850px;margin:0 auto;padding:36px 0 62px;color:#ecebfa}.article h1{font-size:clamp(1.8rem,2.5vw,2.7rem);line-height:1.3;margin:0 0 18px;color:#fff}.article h2{font-size:1.38rem;line-height:1.4;color:#ffdc82;margin:40px 0 14px}.article h3{font-size:1.14rem;color:#f2b5ec;margin:26px 0 10px}.article p,.article li{font-size:1rem;line-height:1.95}.article p{margin:0 0 18px}.article ul,.article ol{padding-left:1.5em}.article a:not(.button){color:#e9a6f8;text-decoration:underline;text-underline-offset:3px}.article figure{margin:30px 0}.article figure img{display:block;width:auto;max-width:100%;max-height:430px;object-fit:contain;margin:auto}.article figcaption{font-size:.86rem;text-align:center;color:#c9c8e2}.article blockquote{border-left:3px solid var(--pink);margin:25px 0;padding:6px 18px;background:#1e2450}.article-cta{border-top:1px solid var(--line);padding:23px 0;margin-top:32px}.breadcrumb{padding:17px 0 0;color:#c3badd;font-size:.83rem}.breadcrumb a{color:#dbc6ff}.page-visual{display:flex;justify-content:center;background:#151b48;padding:20px;min-height:220px}.page-visual img{max-height:300px;width:auto;object-fit:contain}.related{border-top:1px solid var(--line);padding:30px 0 45px}.related h2{color:#ffdc82;font-size:1.2rem}.related-links{display:flex;flex-wrap:wrap;gap:12px}.related-links a{padding:8px 14px;background:#2a3269;border:1px solid #4c5385;border-radius:5px}
.footer{background:#090e2d;padding:34px 0 100px;border-top:1px solid #464774;color:#c9c8df;font-size:.85rem}.footer-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px}.footer a{margin-right:15px;color:#e6d5f5}.mobile-bar{display:none}.skip-link{position:absolute;left:-10000px;top:auto}.skip-link:focus{left:12px;top:12px;z-index:100;background:#fff;color:#000;padding:10px}
@media(max-width:1100px){.site-shell{grid-template-columns:205px minmax(0,1fr)}.game-row{grid-template-columns:repeat(4,minmax(0,1fr))}.hero-grid{gap:15px}.hero-visual img{max-height:280px}}
@media(max-width:760px){.site-shell{display:block}.sidebar{position:fixed;z-index:50;transform:translateX(-105%);transition:transform .2s;width:min(82vw,310px);box-shadow:10px 0 20px #0008}.sidebar.open{transform:none}.topbar{min-height:60px;padding:8px 14px}.topbar .brand{display:block}.mobile-toggle{display:block}.top-actions .button{min-height:36px;padding:7px 11px;font-size:.78rem}.top-actions .button.secondary{display:none}.wrap{padding:0 16px}.hero{padding-top:24px}.hero-grid{display:flex;flex-direction:column-reverse;align-items:stretch;gap:8px}.hero-visual{min-height:180px}.hero-visual img{max-height:210px}.hero-visual .phone{max-width:28%}.hero-visual .game-cover{max-width:27%}.hero h1{font-size:1.8rem}.hero-actions .button{flex:1}.ticker{margin-top:18px}.section{padding:25px 0}.game-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.game-card span{font-size:.73rem}.category-strip{grid-template-columns:repeat(2,1fr);gap:8px}.category-link{padding:10px;font-size:.84rem}.article{padding:24px 0 48px}.article h2{margin-top:32px}.footer{padding-bottom:100px}.mobile-bar{display:flex;position:fixed;z-index:30;bottom:0;left:0;right:0;align-items:center;gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#0b1035;border-top:1px solid #634a9b}.mobile-bar .button{flex:1}}
@media(max-width:390px){.top-actions .button{padding:6px 8px}.topbar .brand{width:88px}.game-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
.hero-visual .game-cover{width:220px;max-width:30%}
.hero-visual .game-cover.featured{max-width:34%;transform:translateY(-10px)}
@media(max-width:760px){.hero-visual .game-cover{max-width:30%}.hero-visual .game-cover.featured{max-width:34%}}
.sports-feature{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:28px;align-items:center}.sports-feature p{max-width:62ch;color:#dcdcf0;margin:0 0 20px}.sports-feature-image img{display:block;width:100%;height:auto;border:1px solid #525e9d;border-radius:6px}.sports-feature-image:focus-visible{outline:3px solid var(--gold)}
@media(max-width:760px){.sports-feature{grid-template-columns:1fr;gap:18px}}
.hero{padding:0 0 18px}.hero-carousel{position:relative;width:100%;aspect-ratio:1600/480;overflow:hidden;background:#211b4e}.hero-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .35s ease,visibility .35s ease}.hero-slide.is-active{opacity:1;visibility:visible;z-index:1}.hero-slide>img{display:block;width:100%;height:100%;object-fit:contain}.hero-slide-copy{position:absolute;left:clamp(28px,5vw,90px);top:50%;transform:translateY(-50%);display:flex;align-items:flex-start;flex-direction:column;gap:12px;max-width:45%;text-shadow:0 2px 12px #08092b}.hero-slide-copy span{color:#ffd784;font-size:.83rem;font-weight:700}.hero-slide-copy strong{color:#fff;font-size:clamp(1.5rem,3vw,3.2rem);line-height:1.25}.hero-slide-copy .button{box-shadow:0 8px 20px #08082488}.hero-arrow{position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:40px;height:44px;padding:0;border:1px solid #ffffff77;background:#141a45bb;color:white;font-size:2rem;line-height:1}.hero-prev{left:8px}.hero-next{right:8px}.hero-arrow:hover{background:#7040a4}.hero-dots{position:absolute;z-index:3;bottom:12px;left:50%;transform:translateX(-50%);display:flex;gap:10px}.hero-dots button{width:12px;height:12px;padding:0;border:1px solid #fff;border-radius:50%;background:#1a194a;box-shadow:0 1px 5px #0008}.hero-dots button.is-active{background:#ffcf70}.hero-copy{padding-top:22px}.hero-copy h1{font-size:clamp(1.75rem,2.5vw,2.6rem);margin:7px 0 8px}.hero-copy>p{margin:0}.hero-copy .hero-actions{margin-top:14px}.hero-copy .disclaimer{margin-top:10px}.hero-copy .ticker{margin-top:18px}
@media(max-width:760px){.hero{padding-top:0}.hero-carousel{aspect-ratio:auto;height:clamp(225px,60vw,285px)}.hero-slide>img{width:100%;height:auto}.hero-slide-copy{position:relative;top:auto;left:auto;transform:none;max-width:none;gap:5px;padding:6px 56px 36px 16px;text-shadow:none}.hero-slide-copy strong{font-size:1.18rem}.hero-slide-copy span{font-size:.68rem}.hero-slide-copy .button{min-height:32px;padding:5px 10px;font-size:.75rem}.hero-arrow{top:25%;width:30px;height:34px;font-size:1.5rem}.hero-prev{left:5px}.hero-next{right:5px}.hero-dots{bottom:8px}.hero-copy{padding-top:18px}.hero-copy h1{font-size:1.65rem}.hero-copy .hero-actions .button{flex:1 1 130px}}
@media(prefers-reduced-motion:reduce){.hero-slide{transition:none}}
@media(min-width:761px) and (max-width:1100px){.hero-carousel{aspect-ratio:auto;height:285px}.hero-slide>img{width:100%;height:auto}.hero-slide-copy{position:relative;top:auto;left:auto;transform:none;max-width:none;gap:5px;padding:7px 55px 34px 24px;text-shadow:none}.hero-slide-copy strong{font-size:1.2rem}.hero-slide-copy span{font-size:.7rem}.hero-slide-copy .button{min-height:32px;padding:5px 10px;font-size:.75rem}.hero-arrow{top:32%;width:32px;height:36px;font-size:1.6rem}.hero-dots{bottom:8px}}
.hero-slide>picture{display:block;width:100%;height:100%}.hero-slide>picture>img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:1100px){.hero-slide>picture{height:auto}.hero-slide>picture>img{height:auto}}
@media(max-width:760px){.hero-carousel{height:clamp(275px,77vw,350px)}.hero-arrow{top:33%}}

/* Shared title palette across the homepage, content pages, and error page. */
.main h1,.hero-slide-copy strong{color:#8cf2e4}
.main h2{color:#ffca99}
.main h3,.main h4,.main h5,.main h6{color:#e1ccff}

/* Keep complete promotional artwork visible without stretching or cropping. */
.hero-carousel{aspect-ratio:1728/540;height:auto}
.hero-slide>picture,.hero-slide>picture>img{width:100%;height:100%}
.hero-slide>picture>img{object-fit:contain}
.hero-slide-copy{position:absolute;left:clamp(48px,5vw,90px);top:50%;transform:translateY(-50%);max-width:44%;padding:0;text-shadow:0 2px 12px #08092b}
.hero-arrow{top:50%}
@media(max-width:760px){
  .hero-carousel{height:calc(31.25vw + 24px);aspect-ratio:auto}
  .hero-slide>picture{height:calc(100% - 24px)}
  .hero-slide>picture>img{height:100%}
  .hero-slide-copy{left:38px;top:46%;max-width:52%;gap:4px;padding:0;text-shadow:0 2px 10px #090e30}
  .hero-slide-copy strong{font-size:clamp(1rem,4.5vw,1.45rem);line-height:1.22}
  .hero-slide-copy span{font-size:.65rem}
  .hero-slide-copy .button{min-height:30px;padding:5px 8px;font-size:.7rem}
  .hero-arrow{top:8px;transform:none}
  .hero-dots{bottom:6px}
}
@media(max-width:760px){.top-actions .button.secondary{display:inline-flex}}
@media(max-width:390px){.topbar{gap:6px;padding-inline:8px}.topbar .brand{width:70px}.top-actions{gap:6px}.top-actions .button{font-size:.72rem;padding:6px 8px}}
