/*
Theme Name: FAW99 Lobby
Description: Thai FAW99 brand lobby and editorial templates.
Version: 1.0.0
Text Domain: faw99-lobby
*/
:root{--ink:#f6f7fb;--muted:#b9c1d4;--base:#08070e;--panel:#111123;--line:#2f3145;--blue:#087dec;--gold:#ffd428;--red:#e71628;--max:1240px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--base);color:var(--ink);font:16px/1.6 system-ui,"Noto Sans Thai",Tahoma,sans-serif;letter-spacing:0}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}img{max-width:100%;height:auto}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.25;letter-spacing:0}h1{font-size:clamp(1.9rem,3rem,3rem)}h2{font-size:1.55rem}h3{font-size:1.12rem}.wrap{width:min(calc(100% - 32px),var(--max));margin:auto}.skip{position:absolute;left:-999px;top:0;background:#fff;color:#000;padding:8px;z-index:99}.skip:focus{left:8px}.site-header{background:#030305;border-bottom:1px solid #191c2a}.topbar{min-height:86px;display:flex;align-items:center;gap:32px;justify-content:space-between}.brand img{display:block;width:195px;height:auto}.header-actions{display:flex;align-items:center;gap:10px}.header-actions a,.button{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:8px 18px;border-radius:5px;font-weight:700;white-space:nowrap}.button.blue,.header-actions .login{background:var(--blue);color:#fff}.button.red,.header-actions .join{background:var(--red);color:#fff}.button.gold{background:var(--gold);color:#14100a}.button.ghost{border:1px solid #9aaac4;background:#101e34}.header-actions .hint{color:var(--gold);font-size:.85rem}.category-bar{background:linear-gradient(90deg,#0872da,#0b9cf7,#0958bd);box-shadow:0 3px 16px #0005}.category-scroll{display:flex;gap:2px;overflow-x:auto;scrollbar-width:thin}.category-scroll a{min-width:104px;padding:11px 10px 12px;text-align:center;display:grid;place-items:center;gap:1px;font-size:.88rem;font-weight:700;white-space:nowrap;transition:background .2s}.category-scroll a:hover,.category-scroll a:focus-visible{background:#ffffff2b}.category-scroll a.active{box-shadow:inset 0 -3px var(--gold)}.category-scroll .symbol{font-size:1.35rem;line-height:1.35;color:var(--gold)}.hero{position:relative;overflow:hidden;min-height:440px;background:#061024 radial-gradient(circle at 73% 50%,#07589b 0%,#082f63 27%,#06152f 53%,#03060d 80%)}.hero:before{content:"";position:absolute;inset:0;background:url('assets/hero-lines.webp') center bottom/cover no-repeat;opacity:.35;pointer-events:none}.hero:after{content:"";position:absolute;inset:auto 0 0;height:7px;background:var(--gold)}.hero-inner{position:relative;display:flex;align-items:center;min-height:440px}.hero-copy{z-index:1;max-width:630px;padding:60px 0 64px}.hero-kicker{color:var(--gold);font-size:.88rem;font-weight:800;text-transform:uppercase}.hero h1{font-size:clamp(2.2rem,3.5vw,3.5rem);margin:12px 0;color:#fff;text-shadow:0 3px 14px #00101a}.hero h1 span{color:var(--gold)}.hero p{max-width:560px;color:#dce8fb;font-size:1.12rem}.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:25px}.hero-person{position:absolute;right:2%;bottom:4px;width:min(45%,490px);max-height:415px;object-fit:contain;object-position:bottom;filter:drop-shadow(0 12px 28px #000b)}.ticker{border-bottom:1px solid #30304a;background:#0d0920;color:#dbe6ff}.ticker .wrap{display:flex;gap:18px;align-items:center;padding:8px 0;font-size:.9rem}.ticker strong{color:var(--gold);white-space:nowrap}.section{padding:44px 0}.section.soft{background:#0d0a19}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}.section-heading h2{margin:0}.section-heading a{color:var(--gold);font-size:.9rem;font-weight:700}.section-label{display:block;color:#65b9ff;font-size:.78rem;font-weight:800;margin-bottom:6px}.quick-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.quick-item{border:1px solid #254a7c;background:#0d1d36;min-height:100px;padding:16px;display:flex;flex-direction:column;justify-content:space-between;border-radius:6px;transition:transform .2s,border-color .2s}.quick-item:hover{transform:translateY(-3px);border-color:var(--gold)}.quick-item .icon{font-size:1.4rem;color:var(--gold)}.quick-item strong{font-size:1rem}.game-tools{display:flex;gap:16px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:18px;flex-wrap:wrap}.tabs{display:flex;gap:5px;overflow-x:auto}.tabs button{border:0;background:none;color:#d0d5e1;padding:10px 15px;min-width:68px;border-bottom:3px solid transparent}.tabs button[aria-selected=true]{color:#fff;border-color:var(--gold);font-weight:800}.game-search{background:#262635;color:#fff;border:1px solid #555568;border-radius:4px;min-height:40px;padding:8px 12px;width:min(240px,100%)}.game-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}.game-card{min-width:0}.game-card img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:8px;border:1px solid #5a4377;display:block;transition:transform .2s}.game-card:hover img{transform:translateY(-4px);border-color:var(--gold)}.game-card strong{display:block;font-size:.92rem;line-height:1.35;margin-top:8px;overflow-wrap:anywhere}.game-card small{color:#9ca5b9}.empty-games{display:none;color:var(--muted)}.live-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.live-card{border:1px solid #213f68;background:#10192c;border-radius:6px;overflow:hidden}.live-card img{display:block;width:100%;aspect-ratio:445/310;object-fit:cover}.live-card span{display:block;padding:12px 15px;font-weight:700}.app-band{background:#081024;border-block:1px solid #183c6d;overflow:hidden}.app-layout{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center}.app-layout img{width:100%;max-width:540px;display:block}.app-layout p{color:#c4d2e9}.editorial{max-width:900px}.editorial h2{color:#fff;border-left:4px solid var(--gold);padding-left:12px;margin:34px 0 14px}.editorial h3{color:#8ccaff;margin-top:24px}.editorial p,.editorial li{color:#c6cada}.editorial a{color:#73baff;text-decoration:underline;text-underline-offset:3px}.editorial ul,.editorial ol{padding-left:1.5em}.editorial details{border-bottom:1px solid var(--line);padding:14px 0}.editorial summary{cursor:pointer;font-weight:700;color:#fff}.editorial details p{margin:10px 0 0}.article-header{background:#0b1730;border-bottom:1px solid #264a78;padding:50px 0 42px}.article-header p{max-width:780px;color:#bcd0e7}.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:52px;padding:38px 0 70px}.article-layout .editorial{max-width:none}.article-layout figure{margin:25px 0}.article-layout figcaption{font-size:.85rem;color:var(--muted)}.article-layout .editorial img{border-radius:6px}.side-nav{position:sticky;top:20px;align-self:start;border-left:2px solid var(--blue);padding-left:16px}.side-nav a{display:block;padding:8px 0;color:#cfdef5}.site-footer{background:#020205;border-top:1px solid #293149;padding:34px 0;color:#9da7ba}.footer-inner{display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap}.footer-inner img{width:150px}.footer-links{display:flex;flex-wrap:wrap;gap:18px}.footnote{font-size:.81rem;margin-top:20px;color:#8e98aa}a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
@media(max-width:900px){.game-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.quick-grid{grid-template-columns:repeat(3,1fr)}.hero-person{right:-8%;width:50%;opacity:.8}.article-layout{grid-template-columns:1fr}.side-nav{display:none}}
@media(max-width:600px){.wrap{width:min(calc(100% - 28px),var(--max))}.topbar{min-height:68px;gap:12px}.brand img{width:138px}.header-actions .hint{display:none}.header-actions a{font-size:.8rem;padding:7px 10px;min-height:38px}.header-actions{gap:5px}.category-scroll a{min-width:83px;font-size:.76rem;padding:9px 6px}.hero,.hero-inner{min-height:510px}.hero-inner{align-items:start}.hero-copy{padding:33px 0 235px;max-width:100%}.hero h1{font-size:2rem;max-width:440px}.hero p{font-size:.96rem;max-width:340px}.hero-person{width:300px;max-width:70%;right:-16px;height:265px;bottom:5px;opacity:1}.hero-actions .button{min-height:40px;font-size:.88rem;padding:8px 12px}.section{padding:32px 0}.quick-grid{grid-template-columns:repeat(2,1fr);gap:8px}.quick-item{min-height:88px}.game-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.game-card strong{font-size:.8rem}.game-card small{font-size:.72rem}.live-grid{grid-template-columns:1fr 1fr;gap:10px}.app-layout{grid-template-columns:1fr}.app-layout img{max-width:360px;margin:auto}.section-heading h2{font-size:1.35rem}.article-header{padding:32px 0}.article-layout{padding-top:15px}}
@media(max-width:380px){.brand img{width:114px}.header-actions .login{display:none}.hero h1{font-size:1.85rem}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.game-card[hidden]{display:none}

/* Homepage editorial sections */
.home-story{max-width:1100px;margin:auto}.home-story .story-intro{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:36px;align-items:center;padding-bottom:34px;border-bottom:1px solid var(--line)}.home-story .story-section{padding:36px 0;border-bottom:1px solid var(--line)}.home-story .story-section:last-child{border:0;padding-bottom:0}.home-story h2{margin:8px 0 16px;color:#fff;border:0;padding:0;font-size:1.7rem}.home-story h3{margin:20px 0 8px;color:#8ccaff}.home-story p{max-width:75ch}.home-story figure{margin:0}.home-story figure img{display:block;width:100%;height:auto;border-radius:6px}.home-story figcaption{padding:7px 0;color:#a9b5c8;font-size:.84rem}.home-story .story-media{background:#0b1a35;border:1px solid #1e457a;border-radius:6px;overflow:hidden}.home-story .story-media img{aspect-ratio:3/2;object-fit:cover}.home-story .story-media figcaption{padding:8px 12px}.home-story .story-links{display:flex;flex-wrap:wrap;gap:18px;margin:18px 0 0;font-weight:700}.home-story .story-split{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,.7fr);gap:36px}.home-story .story-gallery{display:grid;gap:20px;align-content:start}.home-story .story-gallery figure:first-child{max-width:220px}.home-story .offer-images{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:22px}.home-story .offer-images img{aspect-ratio:762/201;object-fit:contain;background:#06152f}.home-story .story-final{background:#0a1730;margin:0 -22px;padding:28px 22px;border:1px solid #1a3e72;border-radius:6px}.home-story .story-final p{margin-bottom:18px}.home-story .story-faq details{max-width:850px}
@media(max-width:700px){.home-story .story-intro,.home-story .story-split{grid-template-columns:1fr;gap:20px}.home-story .story-section{padding:27px 0}.home-story h2{font-size:1.4rem}.home-story .story-gallery{grid-template-columns:1fr 1fr;align-items:start}.home-story .story-gallery figure:first-child{max-width:none}.home-story .story-gallery img{aspect-ratio:1/1;object-fit:cover}.home-story .offer-images{grid-template-columns:1fr;gap:22px}.home-story .story-final{margin:0 -8px;padding:24px 16px}}
.home-story .story-gallery figure:first-child img{max-width:192px}.home-story .offer-images img{aspect-ratio:762/233}

/* Homepage trust and offer editorial */
.hero h1{font-size:2.85rem}.hero-copy{max-width:690px}.hero p{max-width:610px}
.ticker .wrap{flex-wrap:wrap;column-gap:18px;row-gap:2px}
.trust-band{background:#0c1220;border-bottom:1px solid #273957;padding:34px 0 40px}
.trust-band .section-heading{margin-bottom:10px}.trust-band h2{font-size:1.55rem}
.trust-intro{max-width:900px;color:#d4e0ef;margin:0 0 24px}
.trust-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:1px solid #3d5875}
.trust-grid>div{min-width:0;padding:18px 20px 0;border-left:1px solid #34475e}
.trust-grid>div:first-child{border-left:0;padding-left:0}.trust-grid>div:last-child{padding-right:0}
.trust-index{display:block;color:var(--gold);font-size:.76rem;margin-bottom:10px}
.trust-grid h3{font-size:1.08rem;margin:0 0 8px}.trust-grid p{font-size:.91rem;line-height:1.7;color:#bfccdc;margin:0}
.home-editorial{background:#090e1a}.home-story .story-products{padding-top:0}
.home-story .story-products p{max-width:980px}
.home-story .offer-images{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:24px}
.home-story .offer-images figure:last-child{grid-column:1/-1;width:calc((100% - 24px)/2);justify-self:center}
.home-story .offer-images img{aspect-ratio:762/233;object-fit:contain;background:none}
.home-story .offer-images figcaption{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.home-story .offer-images figcaption strong{color:#fff}.home-story .offer-note{margin-top:22px}
.home-story .story-final{background:none;margin:0;padding:36px 0;border:0;border-bottom:1px solid var(--line);border-radius:0}
@media(max-width:900px){.trust-grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:20px}.trust-grid>div:nth-child(3){border-left:0;padding-left:0}}
@media(max-width:600px){.hero,.hero-inner{min-height:600px}.hero-copy{padding:28px 0 220px}.hero h1{font-size:2rem}.hero p{font-size:.94rem;max-width:100%}.hero-person{height:auto;width:265px;max-height:none}.ticker .wrap{font-size:.79rem;padding:8px 0}.trust-band{padding:28px 0 32px}.trust-band h2{font-size:1.35rem}.trust-grid{grid-template-columns:1fr;row-gap:0}.trust-grid>div,.trust-grid>div:first-child,.trust-grid>div:nth-child(3),.trust-grid>div:last-child{border:0;border-bottom:1px solid #34475e;padding:16px 0}.trust-grid>div:last-child{border:0}.home-story .offer-images{grid-template-columns:1fr;gap:24px}.home-story .offer-images figure:last-child{grid-column:auto;width:100%}.home-story .story-final{margin:0;padding:27px 0}}
@media(max-width:380px){.hero,.hero-inner{min-height:540px}.hero-copy{padding-bottom:40px}.hero h1{font-size:1.72rem}.hero-person{width:200px}}

/* Shared navigation and homepage carousel */
.menu-toggle{display:none}
.category-scroll{justify-content:center}
.copyright{text-align:center;border-top:1px solid #293149;margin:24px 0 0;padding:18px 0 0;font-size:.86rem;color:#c4cbda}
.back-to-top{position:fixed;right:22px;bottom:22px;z-index:30;width:46px;height:46px;border:1px solid #69baff;border-radius:5px;background:#087dec;color:#fff;font-size:1.6rem;line-height:1;box-shadow:0 4px 16px #0008}
.back-to-top[hidden],.hero-slide[hidden]{display:none!important}
.hero-slides{position:relative}
.hero-slide{min-height:440px}
.hero-slide-jackpot{background:radial-gradient(circle at 77% 43%,#064d93,#071735 55%,#03060d)}
.hero-slide h2{font-size:2.85rem;margin:12px 0;color:#fff;text-shadow:0 3px 14px #00101a}
.hero-slide h2 span{color:var(--gold)}
.hero-banner{position:absolute;right:0;top:50%;transform:translateY(-50%);width:min(48%,590px);height:auto;border-radius:5px;box-shadow:0 14px 35px #0008}
.hero-controls{position:absolute;z-index:3;left:50%;bottom:16px;transform:translateX(-50%);display:flex;justify-content:flex-start;align-items:center;gap:6px;pointer-events:none}
.hero-controls button,.hero-counter{pointer-events:auto;display:grid;place-items:center;width:39px;height:39px;border:1px solid #a5bbd8;border-radius:4px;background:#071428e8;color:#fff;font-size:1.35rem;line-height:1}
.hero-counter{width:60px;font-size:.82rem;font-weight:700}
.hero-controls button:hover{background:#126ec0}
.home-editorial .editorial{max-width:none}
.home-story .story-app{margin:0 calc(50% - 50vw);padding:52px max(24px,calc((100vw - 1100px)/2));width:100vw;border-block:1px solid #183c6d;overflow:hidden}
.home-story .story-app .app-layout{max-width:1100px;margin:auto}
.home-story .story-app h2{border:0;padding:0;margin:8px 0 16px}
.home-story .story-app .button{color:#fff;text-decoration:none}
@media(max-width:900px){.hero-slide h2{font-size:2.3rem}.hero-banner{right:-2%;width:45%}}
@media(max-width:700px){
  .site-header{position:sticky;top:0;z-index:50}
  body.admin-bar .site-header{top:46px}
  .topbar{display:grid;grid-template-columns:1fr auto;gap:0;min-height:0;padding:8px 0 10px}
  .brand img{width:146px}
  .menu-toggle{display:grid;place-items:center;width:44px;height:44px;border:1px solid #66738c;border-radius:4px;background:#111b2b;color:#fff;font-size:1.5rem;line-height:1}
  .header-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
  .header-actions .hint{display:none}
  .header-actions .login{display:inline-flex}
  .header-actions a{min-height:42px;font-size:.88rem}
  .category-bar{display:none;position:absolute;left:0;top:100%;width:100%;box-shadow:0 12px 22px #000b}
  .site-header.menu-open .category-bar{display:block}
  .category-scroll{display:grid;grid-template-columns:1fr 1fr;gap:0;max-height:calc(100dvh - 140px);overflow-y:auto;padding:6px 0}
  .category-scroll a{min-width:0;min-height:48px;display:flex;justify-content:flex-start;gap:10px;padding:10px 14px;text-align:left;font-size:.88rem}
  .category-scroll .symbol{min-width:32px;text-align:center}
  .hero-slide,.hero-slide .hero-inner{min-height:600px}
  .hero-slide h2{font-size:2rem;max-width:440px}
  .hero-slide-jackpot .hero-copy{padding-bottom:220px}
  .hero-person{bottom:48px}
  .hero-banner{top:auto;bottom:60px;right:5%;transform:none;width:86%;max-width:500px}
  .hero-controls{bottom:10px;justify-content:center}
  .hero-controls button,.hero-counter{width:36px;height:36px}
  .hero-counter{width:55px}
  .home-story .story-app{padding:36px 16px}
  .home-story .story-app .app-layout{grid-template-columns:1fr;gap:20px}
  .home-story .story-app img{width:min(100%,360px);margin:auto}
  .copyright{padding:18px 70px 0}
}
@media(max-width:380px){.brand img{width:130px}.hero-slide,.hero-slide .hero-inner{min-height:565px}.hero-slide h2{font-size:1.72rem}.hero-slide-jackpot .hero-copy{padding-bottom:170px}.hero-banner{bottom:58px;width:92%;right:4%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.quick-item{transition:none}}

/* The homepage article follows the complete game lobby. */
.hero .hero-tagline{max-width:610px;margin:12px 0 0;color:var(--gold);font-size:2rem;font-weight:800;line-height:1.23}
.hero .hero-tagline span{display:block}
.home-story #home-title{font-size:2rem;margin:8px 0 20px;max-width:900px}
.home-story .offer-images{display:flex;max-width:762px;gap:16px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:0 0 10px;margin:18px auto 0}
.home-story .offer-images figure,.home-story .offer-images figure:last-child{flex:0 0 100%;width:100%;min-width:0;scroll-snap-align:start}
.offer-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;max-width:762px;margin:8px auto 0}
.offer-controls button{width:40px;height:40px;display:grid;place-items:center;border:1px solid #6a91be;border-radius:4px;background:#102744;color:#fff;font-size:1.5rem;line-height:1}
.offer-controls button:disabled{opacity:.4;cursor:not-allowed}
.offer-counter{min-width:76px;text-align:center;color:#dce8fb;font-size:.85rem;font-weight:700}
@media(max-width:700px){
  .hero,.hero-inner,.hero-slide,.hero-slide .hero-inner{min-height:500px}
  .hero .hero-tagline{font-size:1.55rem}
  .hero-copy{padding:28px 0 215px}
  .home-story #home-title{font-size:1.65rem}
}
@media(max-width:380px){.hero,.hero-inner,.hero-slide,.hero-slide .hero-inner{min-height:520px}.hero .hero-tagline{font-size:1.35rem}.hero-copy{padding-bottom:190px}}

/* Full official banners precede the complete game lobby; the page title remains below it. */
.hero{min-height:0;background:#06152f}
.hero:before{content:none}
.hero-slide,.hero-slide .hero-inner{min-height:0}
.hero-slide a,.hero-slide img{display:block;width:100%}
.hero-slide img{height:auto;aspect-ratio:762/233;object-fit:contain}
@media(max-width:700px){
  .hero,.hero-inner,.hero-slide,.hero-slide .hero-inner{min-height:0}
  .hero-controls{position:static;left:auto;bottom:auto;transform:none;justify-content:center;padding:8px 0}
}

/* Download guide keeps official interface screenshots legible at their natural ratio. */
.app-guide{max-width:860px}.app-guide .app-lead{font-size:1.08rem;color:#f4f7ff;line-height:1.8}
.app-guide .app-jump{display:flex;flex-wrap:wrap;gap:10px 20px;margin:28px 0 34px;padding:14px 0;border-block:1px solid #35445e}
.app-guide .app-jump a{color:#8cc8ff;text-decoration:underline;text-underline-offset:4px}
.app-guide h2{margin-top:42px}.app-guide ol{padding-left:1.45em}.app-guide li{padding-left:.2em;margin:0 0 10px}
.app-guide .app-shot,.app-guide .app-promo{margin:22px auto 32px}.app-guide .app-shot a{display:block;max-width:100%;cursor:zoom-in}
.app-guide .app-shot img,.app-guide .app-promo img{display:block;width:100%;height:auto;object-fit:contain;background:#191919;border:1px solid #3d495c}
.app-guide figcaption{color:#aebed4;font-size:.86rem;margin-top:9px}.app-guide details{border-bottom:1px solid #35445e;padding:12px 0}
.app-guide summary{cursor:pointer;color:#fff;font-weight:700}.app-guide details p{margin:12px 0 0}
@media(max-width:700px){.app-guide .app-lead{font-size:1rem}.app-guide h2{margin-top:34px}.app-guide .app-jump{gap:8px 15px}.app-guide .button{white-space:normal;text-align:center}}

/* Interior pages preserve each image's native proportions and avoid upscaling. */
.topic-page{max-width:900px}
.topic-page .topic-lead{font-size:1.08rem;color:#f3f6fc;line-height:1.8}
.topic-page .button{text-decoration:none;color:#14100a}
.topic-page figure{max-width:100%;margin:22px auto 32px}
.topic-page figure img{display:block;max-width:100%;height:auto;object-fit:contain;margin-inline:auto}
.topic-page figcaption{margin-top:8px;line-height:1.5;text-align:center}
.topic-page > figure img{margin-inline:auto}
.topic-page .media-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px auto 34px;align-items:start}
.topic-page .media-row figure{min-width:0;margin:0}
.topic-page .media-row img{width:100%}
.topic-page .media-row:not(.live-media){max-width:610px}
.topic-page .media-row:not(.live-media) img{max-width:192px}
.topic-page .live-media{max-width:900px}
.topic-page .promo-figure{max-width:762px}
.topic-page .small-illustration{max-width:150px}
.topic-page .screen-figure{max-width:920px}
.topic-page .login-visual{max-width:800px}
.topic-page .register-benefits{max-width:410px}
.topic-page .vip-visual{max-width:542px}
.topic-page .payment-figure{width:min(100%,900px);margin:24px auto 35px}
.topic-page .payment-figure picture{display:block}
.topic-page .payment-figure img{width:100%;max-width:900px;height:auto;margin-inline:auto}
.topic-page .payment-figure figcaption{text-align:center}
.topic-page .screen-figure a{display:block;cursor:zoom-in}
.slot-page .slot-feature{width:min(100%,719px);margin:28px auto 36px}
.slot-page .slot-feature img{width:100%}
.slot-page .slot-feature figcaption{text-align:center}
.slot-page .slot-gallery{width:min(100%,616px);max-width:616px;margin:24px auto 38px;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.slot-page .slot-gallery figure{text-align:center}
.slot-page .slot-gallery img{width:100%;margin-inline:auto}
.slot-page .slot-gallery figcaption{text-align:center}
.topic-page ol{padding-left:1.45em}
.topic-page li{padding-left:.2em;margin-bottom:10px}
@media(max-width:600px){.topic-page .media-row{grid-template-columns:1fr 1fr;gap:16px 10px}.topic-page .live-media{grid-template-columns:1fr}.topic-page .media-row:not(.live-media){max-width:410px}.topic-page .topic-lead{font-size:1rem}.topic-page .button{white-space:normal;text-align:center}}
@media(max-width:600px){.slot-page .slot-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px;max-width:340px}.slot-page .slot-gallery figure:last-child{grid-column:1/-1;width:calc((100% - 12px)/2);justify-self:center}}

/* Keep the shared header in view and align inner-page titles with the reading column. */
.site-header{position:sticky;top:0;z-index:50}
body.admin-bar .site-header{top:32px}
html{scroll-padding-top:150px}
.article-header>.wrap,.article-layout{width:min(calc(100% - 32px),900px);margin-inline:auto}
.article-layout{display:block}
.article-layout>.editorial{width:100%;max-width:none}
@media(max-width:782px){body.admin-bar .site-header{top:46px}}
@media(max-width:700px){html{scroll-padding-top:145px}.article-header>.wrap,.article-layout{width:min(calc(100% - 28px),900px)}}

.footer-providers,.footer-badges{padding-bottom:26px;margin-bottom:25px;border-bottom:1px solid #293149}
.site-footer .footer-providers h2,.site-footer .footer-badges h2{font-size:.92rem;color:var(--gold);margin:0 0 15px}
.footer-provider-list{list-style:none;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:0;padding:0}
.footer-provider-list li{min-width:0;display:flex;justify-content:center}
.footer-provider-list img{display:block;width:155px;max-width:100%;height:auto;aspect-ratio:155/38;object-fit:contain}
.footer-badges{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:35px;align-items:start}
.footer-badges img{display:block;max-width:100%;height:auto;object-fit:contain}
.footer-badge-list{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:12px 18px;max-width:580px;margin:0;padding:0}
.footer-badge-list li{min-width:0;min-height:58px;display:flex;align-items:center;justify-content:center}
.footer-badge-list img{max-height:58px;width:auto;object-fit:contain}
@media(max-width:700px){.footer-provider-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.footer-badges{grid-template-columns:1fr;gap:20px}}
@media(max-width:700px){.footer-badge-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.footer-badge-list li{min-height:64px}}
