*{box-sizing:border-box}html{background:#080b12}body{margin:0;min-height:100vh;background:var(--bg,#080b12);color:var(--text,#f5f7fb);font-family:Arial,Helvetica,sans-serif;font-size:15px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.shell{display:grid;grid-template-columns:86px minmax(0,1fr);min-height:100vh}.rail{position:fixed;inset:0 auto 0 0;width:86px;background:#0d1119;border-right:1px solid #202634;z-index:70;padding:18px 10px;display:flex;flex-direction:column;align-items:center;gap:8px}.rail-logo{width:50px;height:50px;border-radius:15px;background:linear-gradient(135deg,var(--primary,#7c3aed),var(--accent,#22d3ee));display:grid;place-items:center;font-weight:900;font-size:20px;margin-bottom:14px;overflow:hidden}.rail-logo img{width:100%;height:100%;object-fit:contain;background:#fff}.rail a.nav{width:64px;min-height:58px;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#9ba6b8;font-size:10px;text-align:center}.rail a.nav b{font-size:19px;line-height:1}.rail a.nav:hover,.rail a.nav.active{background:#171d29;color:#fff}.page{grid-column:2;min-width:0}.topbar{height:76px;position:sticky;top:0;z-index:60;background:rgba(10,14,22,.96);border-bottom:1px solid #202634;display:flex;align-items:center;gap:20px;padding:0 28px}.brand{font-size:21px;font-weight:900;white-space:nowrap}.searchbar{flex:1;max-width:760px;margin:0 auto;display:flex;background:#141a25;border:1px solid #2a3242;border-radius:14px;overflow:hidden}.searchbar input{width:100%;border:0;background:transparent;color:#fff;padding:13px 16px;outline:0}.searchbar button{border:0;background:var(--primary,#7c3aed);color:#fff;padding:0 20px;font-weight:800;cursor:pointer}.top-actions{display:flex;align-items:center;gap:14px;white-space:nowrap}.top-actions a{color:#c6cfdd;font-size:14px}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:12px;padding:11px 16px;background:var(--primary,#7c3aed);color:#fff;font-weight:800;cursor:pointer}.btn:hover{filter:brightness(1.08)}.btn.ghost{background:#171d29;border:1px solid #2a3242}.btn.mini{padding:9px 12px}.category-strip{display:flex;gap:8px;overflow-x:auto;padding:13px 28px;background:#0b0f17;border-bottom:1px solid #1c2230;scrollbar-width:none}.category-strip a{flex:0 0 auto;padding:8px 12px;border-radius:9px;background:#151b26;color:#aeb8c7;font-size:12px}.category-strip a:hover{background:#202838;color:#fff}.site-main{width:min(1640px,calc(100% - 48px));margin:0 auto;padding:26px 0 60px}.hero{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.45fr);gap:16px;margin-bottom:26px}.hero-main{min-height:310px;border-radius:24px;padding:36px;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(125deg,#17213b 0%,#24134b 55%,#0b5060 100%);border:1px solid #ffffff14;box-shadow:0 20px 60px #0005}.hero-kicker{font-size:12px;font-weight:900;letter-spacing:1.8px;color:#b8c5ff}.hero-main h1{font-size:clamp(38px,4vw,68px);line-height:.98;max-width:850px;margin:10px 0 14px}.hero-main p{max-width:680px;color:#c4cbd8;font-size:17px;line-height:1.6;margin:0 0 22px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.hero-side{display:grid;gap:16px}.stat-card{border-radius:20px;padding:24px;background:var(--card,#121824);border:1px solid #252d3c;display:flex;flex-direction:column;justify-content:center}.stat-card small{color:#8f9bad}.stat-card strong{font-size:42px;margin:7px 0}.stat-card span{color:#aab4c3;line-height:1.5}.community-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 20px;border-radius:17px;background:#111722;border:1px solid #252d3c;margin:18px 0 30px}.socials{display:flex;gap:8px;flex-wrap:wrap}.socials a{display:inline-flex;padding:8px 11px;background:#1a2130;border:1px solid #2b3547;border-radius:10px;font-size:12px}.section{margin:34px 0}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.section-head h2{margin:0;font-size:25px}.section-head a{color:#a9b8ff;font-size:13px}.game-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:14px}.game-card{min-width:0}.game-thumb{position:relative;aspect-ratio:1/1;overflow:hidden;border-radius:16px;background:#151b25;border:1px solid #222b3a;box-shadow:0 8px 20px #0002;transition:transform .18s ease,border-color .18s}.game-card:hover .game-thumb{transform:translateY(-5px);border-color:#667085}.game-thumb img{width:100%;height:100%;display:block;object-fit:cover}.badge{position:absolute;top:8px;left:8px;background:var(--primary,#7c3aed);padding:5px 7px;border-radius:7px;font-size:9px;font-weight:900}.game-info{padding:9px 3px 0}.game-info strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.game-info span{display:block;color:#7f8b9d;font-size:11px;margin-top:4px}.panel{background:var(--card,#121824);border:1px solid #252d3c;border-radius:20px;padding:24px}.auth-wrap{width:min(520px,calc(100% - 30px));margin:52px auto}.auth-wrap h1{font-size:34px;margin-top:0}.field{margin:15px 0}.field label{display:block;font-size:13px;font-weight:700;color:#aab5c5;margin-bottom:7px}.field input,.field select,.field textarea{display:block;width:100%;border:1px solid #303a4d;border-radius:11px;background:#0c111a;color:#fff;padding:12px 13px;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--primary,#7c3aed);box-shadow:0 0 0 3px #7c3aed22}.field textarea{min-height:130px}.notice{padding:12px 14px;border-radius:10px;background:#123521;border:1px solid #28633e;margin-bottom:14px}.notice.error,.error{background:#421b25;border-color:#7b2c40}.empty{padding:46px 20px;text-align:center;background:#0f141e;border:1px dashed #30394a;border-radius:18px;color:#8d99aa}.leader-list{display:grid;gap:9px}.leader-row{display:grid;grid-template-columns:58px minmax(0,1fr) 120px 100px;align-items:center;padding:13px 15px;background:#111722;border:1px solid #242d3c;border-radius:13px}.rank{font-size:18px;font-weight:900;color:#b6c2ff}.player{display:flex;align-items:center;gap:10px}.avatar{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,var(--primary,#7c3aed),var(--accent,#22d3ee));display:grid;place-items:center;font-weight:900}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px}.game-player{width:100%;aspect-ratio:16/9;background:#000;border-radius:18px;overflow:hidden}.game-player iframe{width:100%;height:100%;border:0}.profile-hero{display:flex;gap:20px;align-items:center}.profile-hero .avatar{width:78px;height:78px;font-size:28px}.xpbar{height:10px;border-radius:99px;background:#202838;overflow:hidden}.xpbar i{height:100%;display:block;background:linear-gradient(90deg,var(--primary,#7c3aed),var(--accent,#22d3ee))}.ad-slot{width:min(1200px,94%);margin:15px auto;text-align:center;overflow:hidden}.footer{width:min(1640px,calc(100% - 48px));margin:0 auto;border-top:1px solid #222936;padding:38px 0 50px;display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px;color:#9ba6b7}.footer-brand{font-size:22px;font-weight:900;color:#fff}.footer a{display:block;margin:8px 0}.footer .socials a{display:inline-flex}.pagination{display:flex;gap:7px;margin-top:22px}.pagination a{padding:8px 11px;background:#151b26;border-radius:8px}@media(max-width:1320px){.game-grid{grid-template-columns:repeat(6,1fr)}}@media(max-width:980px){.shell{grid-template-columns:1fr}.rail{display:none}.page{grid-column:1}.hero{grid-template-columns:1fr}.hero-side{grid-template-columns:repeat(2,1fr)}.game-grid{grid-template-columns:repeat(5,1fr)}.topbar{padding:0 18px}.category-strip{padding-left:18px}.site-main,.footer{width:calc(100% - 30px)}}@media(max-width:720px){.topbar{height:auto;min-height:68px;padding:10px 15px;flex-wrap:wrap}.brand{font-size:17px}.searchbar{order:3;flex-basis:100%;max-width:none}.top-actions a:not(.mini){display:none}.category-strip{padding:10px 15px}.hero-main{min-height:260px;padding:25px}.hero-main h1{font-size:39px}.hero-side{grid-template-columns:1fr 1fr}.game-grid{grid-template-columns:repeat(3,1fr);gap:10px}.game-layout{grid-template-columns:1fr}.leader-row{grid-template-columns:45px 1fr 90px}.leader-row>span:last-child{display:none}.footer{grid-template-columns:1fr}.community-bar{align-items:flex-start;flex-direction:column}}@media(max-width:420px){.game-grid{grid-template-columns:repeat(2,1fr)}.hero-side{grid-template-columns:1fr}.site-main{width:calc(100% - 22px)}}
.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.blog-card{background:var(--card);border:1px solid #ffffff10;border-radius:18px;overflow:hidden}.blog-card img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}.blog-card>div{padding:18px}.blog-card h2{font-size:20px;margin:8px 0}.blog-card h2 a{color:var(--text);text-decoration:none}.blog-card p{color:#9aa6b8;line-height:1.65}.article{max-width:940px;margin:32px auto;background:var(--card);border:1px solid #ffffff10;border-radius:22px;padding:34px}.article-head h1{font-size:42px;margin:8px 0 12px}.article-head p,.article-body{color:#cbd5e1;line-height:1.8}.article-cover{width:100%;border-radius:16px;margin:22px 0}.article-body h2,.article-body h3{color:var(--text);margin-top:28px}.article-body img{max-width:100%;height:auto;border-radius:14px}@media(max-width:900px){.blog-grid{grid-template-columns:1fr}.article{padding:20px}.article-head h1{font-size:30px}}
/* v3.2 game-first redesign */
.site-main{padding-top:22px}.section.games-first{margin-top:0}.section-head h2{font-size:28px}.empty.compact{padding:24px 18px}
.top-logo{height:40px;max-width:180px;object-fit:contain;display:block}.mini-avatar{width:28px;height:28px;border-radius:50%;display:inline-grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,var(--primary),var(--accent));font-weight:900;margin-right:7px;vertical-align:middle}.mini-avatar img{width:100%;height:100%;object-fit:cover}
.featured-mosaic{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-rows:minmax(110px,1fr);gap:12px;grid-auto-flow:dense}.featured-mosaic .game-card{position:relative;min-height:0}.featured-mosaic .game-card .game-thumb{height:100%;aspect-ratio:auto;border-radius:18px}.featured-mosaic .game-card .game-info{position:absolute;left:0;right:0;bottom:0;padding:28px 10px 10px;background:linear-gradient(transparent,rgba(0,0,0,.82));border-radius:0 0 18px 18px;pointer-events:none}.featured-mosaic .game-card .game-info strong{font-size:13px;color:#fff}.featured-mosaic .game-card .game-info span{color:#d5dbe7}.featured-mosaic .mosaic-0{grid-column:span 2;grid-row:span 2}.featured-mosaic .mosaic-3{grid-column:span 2;grid-row:span 2}.featured-mosaic .mosaic-7{grid-column:span 2}.featured-mosaic .mosaic-10{grid-column:span 2;grid-row:span 2}.featured-mosaic .mosaic-14{grid-column:span 2}.featured-mosaic .game-thumb img{transition:transform .2s ease}.featured-mosaic .game-card:hover .game-thumb img{transform:scale(1.045)}
.play-hover{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%) scale(.8);width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:rgba(8,11,18,.82);backdrop-filter:blur(7px);opacity:0;transition:.18s;font-size:15px;border:1px solid #ffffff35}.game-card:hover .play-hover{opacity:1;transform:translate(-50%,-50%) scale(1)}
.game-grid.dense{grid-template-columns:repeat(9,minmax(0,1fr));gap:12px}.game-grid.dense .game-thumb{border-radius:15px}.game-grid.dense .game-info strong{font-size:13px}
.play-page{max-width:1450px;margin:0 auto}.play-top{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:16px}.play-top h1{font-size:32px;margin:6px 0 0}.crumbs{font-size:12px;color:#8491a6}.crumbs a{color:#aebcff}.game-actions,.under-game-actions{display:flex;gap:9px;flex-wrap:wrap}.action-btn{border:1px solid #2b3445;background:#131a25;color:#eef3fb;padding:10px 14px;border-radius:11px;font-weight:800;cursor:pointer}.action-btn:hover{background:#1a2331}.action-btn.saved{background:#32205e;border-color:#7757db;color:#fff}.game-stage{width:100%;aspect-ratio:16/9;background:#000;border-radius:20px;overflow:hidden;box-shadow:0 18px 60px #0007;border:1px solid #263041}.game-stage iframe{width:100%;height:100%;border:0;display:block}.game-stage:fullscreen{border-radius:0}.game-stage:fullscreen iframe{width:100vw;height:100vh}.under-game-actions{padding:13px 0 0;justify-content:flex-end}.game-details-grid{display:grid;grid-template-columns:1.2fr 1.2fr .7fr;gap:16px;margin-top:22px}.detail-card{background:var(--card);border:1px solid #252d3c;border-radius:18px;padding:22px}.detail-card h2{margin:0 0 12px;font-size:20px}.detail-card p{color:#b2bdcd;line-height:1.75;margin:0}.game-meta dl{margin:0}.game-meta dl div{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid #222b39}.game-meta dl div:last-child{border-bottom:0}.game-meta dt{color:#8390a4}.game-meta dd{margin:0;font-weight:800;text-align:right}.game-meta a{color:#aebcff}
.profile-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:18px}.profile-card{text-align:center}.profile-avatar-large{width:120px;height:120px;border-radius:50%;overflow:hidden;margin:0 auto 16px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--accent));font-size:42px;font-weight:900}.profile-avatar-large img{width:100%;height:100%;object-fit:cover}.profile-card h1{margin:0 0 7px}.profile-card p{color:#8f9bad}.profile-form h2{margin-top:0}.field small{display:block;color:#7f8b9d;margin-top:7px}
@media(max-width:1500px){.game-grid.dense{grid-template-columns:repeat(8,1fr)}.featured-mosaic{grid-template-columns:repeat(7,1fr)}}
@media(max-width:1220px){.game-grid.dense{grid-template-columns:repeat(6,1fr)}.featured-mosaic{grid-template-columns:repeat(6,1fr)}.game-details-grid{grid-template-columns:1fr 1fr}.game-meta{grid-column:1/-1}.profile-layout{grid-template-columns:280px 1fr}}
@media(max-width:900px){.featured-mosaic{grid-template-columns:repeat(4,1fr);grid-auto-rows:120px}.game-grid.dense{grid-template-columns:repeat(4,1fr)}.featured-mosaic .mosaic-10{grid-column:span 1;grid-row:span 1}.play-top{align-items:flex-start;flex-direction:column}.game-details-grid{grid-template-columns:1fr}.game-meta{grid-column:auto}.profile-layout{grid-template-columns:1fr}}
@media(max-width:600px){.featured-mosaic{grid-template-columns:repeat(3,1fr);grid-auto-rows:105px;gap:8px}.featured-mosaic .mosaic-0,.featured-mosaic .mosaic-3{grid-column:span 2;grid-row:span 2}.featured-mosaic .mosaic-7,.featured-mosaic .mosaic-14{grid-column:span 1}.game-grid.dense{grid-template-columns:repeat(3,1fr);gap:9px}.game-info span{display:none}.game-stage{border-radius:13px}.under-game-actions{justify-content:flex-start}.play-top h1{font-size:26px}}
@media(max-width:410px){.featured-mosaic{grid-template-columns:repeat(2,1fr)}.game-grid.dense{grid-template-columns:repeat(2,1fr)}}

/* v3.2.2 header social icons */
.header-socials{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0;margin-left:auto;margin-right:14px}
.header-socials a{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--card);border:1px solid rgba(148,163,184,.16);transition:.18s transform,.18s background,.18s border-color}
.header-socials a:hover{transform:translateY(-2px);background:rgba(108,92,231,.18);border-color:var(--primary)}
.header-socials svg{width:15px;height:15px;fill:currentColor;stroke:currentColor;stroke-width:1.5;color:var(--text)}
.header-socials .social-instagram svg rect,.header-socials .social-instagram svg circle{fill:none}
.header-socials .social-youtube svg .cut{fill:var(--card);stroke:none}
@media(max-width:900px){.header-socials{display:none}}
.games-home{padding-top:28px}

/* v3.2.4 game page related games + managed ad placements */
.centered-game-actions{justify-content:center;align-items:center;margin:14px auto 18px;width:100%}
.game-player-row{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:center;width:100%}
.game-player-row.has-left{grid-template-columns:minmax(120px,var(--left-ad-width)) minmax(0,1fr)}
.game-player-row.has-right{grid-template-columns:minmax(0,1fr) minmax(120px,var(--right-ad-width))}
.game-player-row.has-left.has-right{grid-template-columns:minmax(120px,var(--left-ad-width)) minmax(0,1fr) minmax(120px,var(--right-ad-width))}
.game-player-row .game-stage{min-width:0}
.game-side-ad{display:flex;align-items:center;justify-content:center;min-width:0}
.managed-ad{width:var(--ad-w,auto);max-width:100%;min-height:var(--ad-h,0);height:auto;margin:0 auto;overflow:hidden;text-align:center}
.managed-ad iframe,.managed-ad img,.managed-ad ins{max-width:100%}
.game-ad-above{margin:0 auto 14px}
.game-ad-below{margin:20px auto 30px}
.related-games-section{margin-top:34px}
@media(min-width:901px){.ad-device-mobile{display:none!important}}
@media(max-width:900px){
 .ad-device-desktop{display:none!important}
 .game-player-row,.game-player-row.has-left,.game-player-row.has-right,.game-player-row.has-left.has-right{grid-template-columns:1fr}
 .game-side-ad{display:block;width:100%}
 .game-side-left{order:2}.game-stage{order:1}.game-side-right{order:3}
}

/* v3.2.6 categories visible on desktop + mobile */
.category-strip{
  display:flex!important;
  width:100%;
  gap:8px;
  overflow-x:auto;
  overflow-y:hidden;
  white-space:nowrap;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.category-strip::-webkit-scrollbar{display:none}
.category-strip a{
  flex:0 0 auto;
  white-space:nowrap;
}
@media(max-width:720px){
  .category-strip{
    display:flex!important;
    padding:9px 12px;
    gap:7px;
  }
  .category-strip a{
    padding:8px 11px;
    font-size:11px;
  }
}

/* v3.2.7 premium homepage + dark/light theme */
html{color-scheme:dark}
html[data-theme="light"]{color-scheme:light}

.theme-toggle{
  width:38px;height:38px;flex:0 0 38px;border-radius:11px;
  border:1px solid #293243;background:#131a25;color:#eef3fb;
  display:grid;place-items:center;cursor:pointer;font-size:17px;
  transition:.18s transform,.18s background,.18s border-color
}
.theme-toggle:hover{transform:translateY(-1px);border-color:var(--primary)}
.theme-icon{line-height:1}

.collection-hero{
  position:relative;overflow:hidden;
  min-height:320px;
  border-radius:24px;
  border:1px solid #2b3040;
  background:
    radial-gradient(circle at 85% 14%,rgba(124,92,255,.25),transparent 25%),
    radial-gradient(circle at 66% 80%,rgba(141,55,108,.18),transparent 32%),
    linear-gradient(115deg,#151a2c 0%,#101321 48%,#24182d 100%);
  display:grid;
  grid-template-columns:minmax(0,1fr) 270px;
  gap:30px;
  align-items:center;
  padding:42px 50px;
  box-shadow:0 20px 60px rgba(0,0,0,.18);
}
.collection-hero:before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.15;
  background-image:
    linear-gradient(rgba(255,255,255,.13) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.13) 1px,transparent 1px);
  background-size:52px 52px
}
.collection-hero-main,.collection-count-card{position:relative;z-index:1}
.hero-eyebrow{font-size:12px;font-weight:900;letter-spacing:1.6px;color:#a99cff;margin-bottom:18px}
.live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#56e0a4;box-shadow:0 0 0 6px rgba(86,224,164,.11);margin-right:10px}
.collection-hero h1{font-size:clamp(46px,5vw,78px);letter-spacing:-3px;line-height:.98;margin:0 0 20px;font-weight:900}
.collection-hero h3{font-size:18px;margin:0 0 10px}
.collection-hero p{font-size:17px;color:#aeb8cc;line-height:1.6;margin:0 0 24px}
.hero-pills{display:flex;gap:10px;flex-wrap:wrap}
.hero-pills span{padding:9px 13px;border-radius:999px;border:1px solid #31394c;background:rgba(22,27,42,.72);font-size:12px;font-weight:800}

.collection-count-card{
  min-height:190px;border-radius:26px;border:1px solid rgba(167,149,255,.28);
  background:linear-gradient(145deg,rgba(77,64,130,.34),rgba(24,26,42,.48));
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)
}
.collection-count-card small{font-weight:900;letter-spacing:1.4px;color:#65e6bd}
.collection-count-card strong{font-size:62px;line-height:1;color:#a792ff;margin:12px 0 5px}
.collection-count-card b{font-size:13px}
.collection-count-card span{font-size:11px;color:#7f8ba2;margin-top:18px}


.all-games-banner{
  min-height:120px;border-radius:20px;border:1px solid #272e3c;background:#121722;
  display:flex;align-items:center;justify-content:space-between;gap:30px;padding:24px 28px;margin-bottom:28px
}
.all-games-banner small{color:#8d7dff;font-size:10px;font-weight:900;letter-spacing:1.4px}
.all-games-banner h2{font-size:27px;margin:7px 0 4px}
.all-games-banner p{margin:0;color:#8d99ac;font-size:12px}
.all-games-count{border:1px solid #403769;background:#17152b;color:#a794ff;border-radius:14px;padding:15px 18px;font-size:22px;font-weight:900;white-space:nowrap}
.all-games-count span{font-size:9px;letter-spacing:1.2px}

/* Light mode overrides */
html[data-theme="light"] body{background:#f4f6fb;color:#151924}
html[data-theme="light"] .rail{background:#ffffff;border-color:#dde2ec}
html[data-theme="light"] .rail a.nav{color:#667085}
html[data-theme="light"] .rail a.nav:hover,
html[data-theme="light"] .rail a.nav.active{background:#eef1f7;color:#111827}
html[data-theme="light"] .topbar{background:rgba(255,255,255,.96);border-color:#dde2ec}
html[data-theme="light"] .brand{color:#111827}
html[data-theme="light"] .searchbar{background:#f5f7fb;border-color:#d8dee9}
html[data-theme="light"] .searchbar input{color:#111827}
html[data-theme="light"] .top-actions a{color:#394150}
html[data-theme="light"] .category-strip{background:#f7f8fb;border-color:#e0e5ed}
html[data-theme="light"] .category-strip a{background:#e9edf4;color:#4a5568}
html[data-theme="light"] .category-strip a:hover{background:#dfe5ef;color:#111827}
html[data-theme="light"] .theme-toggle{background:#fff;color:#111827;border-color:#d6dce6}
html[data-theme="light"] .header-socials a{background:#fff;border-color:#d6dce6;color:#111827}
html[data-theme="light"] .collection-hero{
  border-color:#d9ddea;
  background:
    radial-gradient(circle at 85% 14%,rgba(124,92,255,.18),transparent 25%),
    radial-gradient(circle at 66% 80%,rgba(233,154,190,.18),transparent 32%),
    linear-gradient(115deg,#ffffff 0%,#f8f7ff 48%,#fff7fb 100%);
}
html[data-theme="light"] .collection-hero:before{
  background-image:
    linear-gradient(rgba(70,76,93,.08) 1px,transparent 1px),
    linear-gradient(90deg,rgba(70,76,93,.08) 1px,transparent 1px)
}
html[data-theme="light"] .collection-hero p{color:#647084}
html[data-theme="light"] .hero-pills span{background:#fff;border-color:#d9dfE8}
html[data-theme="light"] .collection-count-card{background:rgba(255,255,255,.65);border-color:#d9d0ff}
html[data-theme="light"] .all-games-banner{background:#fff;border-color:#dde2eb}
html[data-theme="light"] .game-thumb{background:#fff;border-color:#dce2ea}
html[data-theme="light"] .game-info span{color:#667085}
html[data-theme="light"] .footer{border-color:#dde2eb;color:#667085}
html[data-theme="light"] .footer-brand{color:#111827}
html[data-theme="light"] .panel,
html[data-theme="light"] .detail-card,
html[data-theme="light"] .blog-card{background:#fff;border-color:#dde2eb}
html[data-theme="light"] .action-btn{background:#fff;color:#111827;border-color:#d7dde7}

@media(max-width:820px){
  .collection-hero{grid-template-columns:1fr;padding:30px 24px}
  .collection-count-card{min-height:150px}
  .all-games-banner{padding:20px;align-items:flex-start}
}
@media(max-width:520px){
  .collection-hero{border-radius:18px;padding:24px 18px;min-height:0}
  .collection-hero h1{font-size:42px;letter-spacing:-2px}
  .collection-count-card strong{font-size:48px}
  .all-games-banner{flex-direction:column}
  .all-games-count{align-self:flex-start}
  .theme-toggle{width:34px;height:34px;flex-basis:34px}
}

/* v3.2.8 social header visibility fix */
.header-socials{
 display:flex!important;
 visibility:visible!important;
 opacity:1!important;
 flex:0 0 auto;
 align-items:center;
 gap:7px;
 margin-left:10px;
 margin-right:10px;
}
.header-socials:empty{display:none!important}
.header-socials .social-icon{
 display:grid!important;
 visibility:visible!important;
 opacity:1!important;
 width:34px;height:34px;flex:0 0 34px;
 border-radius:10px;
}
.header-socials .social-icon svg{display:block!important;width:17px;height:17px}
@media(max-width:900px){
 .topbar{gap:7px}
 .header-socials{
   display:flex!important;
   max-width:145px;
   overflow-x:auto;
   scrollbar-width:none;
   margin-left:2px;margin-right:2px
 }
 .header-socials::-webkit-scrollbar{display:none}
 .header-socials .social-icon{width:32px;height:32px;flex-basis:32px}
}
@media(max-width:620px){
 .header-socials{max-width:108px}
}

/* v3.2.11 social icons visibility + light mode colors */
.header-socials .social-icon,
.footer-socials .social-icon{
  color:#ffffff!important;
  background:#171d29!important;
  border:1px solid #2b3547!important;
}

.header-socials .social-icon svg,
.footer-socials .social-icon svg{
  width:17px!important;
  height:17px!important;
  fill:currentColor!important;
  stroke:currentColor;
  color:inherit!important;
}

.header-socials .social-facebook,
.footer-socials .social-facebook{background:#1877F2!important;border-color:#1877F2!important;color:#fff!important}

.header-socials .social-instagram,
.footer-socials .social-instagram{
  background:linear-gradient(135deg,#833AB4,#FD1D1D,#FCAF45)!important;
  border-color:transparent!important;color:#fff!important
}

.header-socials .social-tiktok,
.footer-socials .social-tiktok{background:#111111!important;border-color:#2b2b2b!important;color:#fff!important}

.header-socials .social-youtube,
.footer-socials .social-youtube{background:#FF0000!important;border-color:#FF0000!important;color:#fff!important}

.header-socials .social-pinterest,
.footer-socials .social-pinterest{background:#E60023!important;border-color:#E60023!important;color:#fff!important}

.header-socials .social-x,
.header-socials .social-twitter,
.footer-socials .social-x,
.footer-socials .social-twitter{background:#111111!important;border-color:#111111!important;color:#fff!important}

.header-socials .social-discord,
.footer-socials .social-discord{background:#5865F2!important;border-color:#5865F2!important;color:#fff!important}

.header-socials .social-reddit,
.footer-socials .social-reddit{background:#FF4500!important;border-color:#FF4500!important;color:#fff!important}

/* Instagram icon is outline-based */
.header-socials .social-instagram svg rect,
.header-socials .social-instagram svg circle,
.footer-socials .social-instagram svg rect,
.footer-socials .social-instagram svg circle{
  fill:none!important;
  stroke:#fff!important;
}

/* YouTube play triangle must remain visible */
.header-socials .social-youtube svg .cut,
.footer-socials .social-youtube svg .cut{
  fill:#fff!important;
  stroke:none!important;
}

/* Light mode: keep branded icon backgrounds and add subtle outline/shadow */
html[data-theme="light"] .header-socials .social-icon,
html[data-theme="light"] .footer-socials .social-icon{
  box-shadow:0 1px 4px rgba(17,24,39,.15);
}

.footer-socials{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}
.footer-socials .social-icon{
  width:34px;
  height:34px;
  border-radius:10px;
  display:grid!important;
  place-items:center;
  padding:0!important;
  margin:0!important;
}

/* Fix generic footer rule that made social links look like text buttons */
.footer .footer-socials a{display:grid!important;margin:0!important}

@media(max-width:720px){
  .footer-socials .social-icon{width:32px;height:32px}
}

/* v3.2.12 homepage vertical spacing cleanup */
.collection-hero{
  margin-bottom:18px!important;
}
.all-games-banner{
  margin-top:0!important;
  margin-bottom:34px!important;
}
.games-home{
  margin-top:0!important;
  padding-top:0!important;
}
.games-home .section-head{
  margin-top:0!important;
  margin-bottom:18px!important;
}
@media(max-width:820px){
  .collection-hero{margin-bottom:14px!important}
  .all-games-banner{margin-bottom:26px!important}
}
@media(max-width:520px){
  .collection-hero{margin-bottom:12px!important}
  .all-games-banner{margin-bottom:22px!important}
}

/* v3.2.14 mobile drawer navigation */
.mobile-menu-toggle,.mobile-drawer,.mobile-drawer-backdrop{display:none}

@media(max-width:980px){
  .category-strip{display:none!important}
  .topbar{
    min-height:64px;
    height:64px;
    flex-wrap:nowrap;
    gap:10px;
    padding:8px 12px;
  }
  .mobile-menu-toggle{
    display:flex;
    width:34px;height:34px;
    flex:0 0 34px;
    padding:7px 5px;
    border:0;
    background:transparent;
    flex-direction:column;
    justify-content:center;
    gap:4px;
    cursor:pointer;
  }
  .mobile-menu-toggle span{
    display:block;
    width:22px;height:2px;
    border-radius:2px;
    background:var(--text,#fff);
  }
  .topbar .brand{
    width:38px;height:38px;
    flex:0 0 38px;
    overflow:hidden;
    font-size:0;
    display:grid;
    place-items:center;
    border-radius:11px;
  }
  .topbar .brand .top-logo{
    width:38px;height:38px;
    object-fit:contain;
    max-width:none;
  }
  .topbar .brand:not(:has(img)){
    font-size:0;
    background:linear-gradient(135deg,var(--primary),var(--accent));
  }
  .topbar .brand:not(:has(img))::after{
    content:"G";
    font-size:16px;
    font-weight:900;
    color:#fff;
  }
  .searchbar{
    order:initial;
    flex:1 1 auto;
    max-width:none;
    margin:0;
    min-width:0;
    height:40px;
  }
  .searchbar input{padding:9px 12px;font-size:13px}
  .searchbar button{padding:0 11px;font-size:11px}
  .theme-toggle{display:none!important}
  .header-socials{display:none!important}
  .top-actions{display:none!important}

  .mobile-drawer-backdrop{
    display:block;
    position:fixed;inset:0;
    z-index:199;
    background:rgba(0,0,0,.58);
    opacity:0;visibility:hidden;
    transition:.22s ease;
  }
  .mobile-drawer-backdrop.open{opacity:1;visibility:visible}

  .mobile-drawer{
    display:flex;
    position:fixed;
    inset:0 auto 0 0;
    width:min(82vw,280px);
    z-index:200;
    background:#0d1018;
    color:#f6f7fb;
    transform:translateX(-102%);
    transition:transform .24s ease;
    flex-direction:column;
    padding:12px 14px 18px;
    border-right:1px solid #202635;
    overflow-y:auto;
    box-shadow:20px 0 50px rgba(0,0,0,.35);
  }
  .mobile-drawer.open{transform:translateX(0)}
  body.mobile-menu-open{overflow:hidden}

  .mobile-drawer-top{
    display:flex;align-items:center;justify-content:space-between;
    padding:3px 2px 12px;
  }
  .mobile-drawer-brand{
    display:flex;align-items:center;gap:9px;
    min-width:0;
  }
  .mobile-drawer-brand img,
  .mobile-drawer-brand span{
    width:36px;height:36px;border-radius:10px;
    display:grid;place-items:center;object-fit:contain;
    background:linear-gradient(135deg,var(--primary),var(--accent));
    font-weight:900;color:#fff;
  }
  .mobile-drawer-brand strong{
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    font-size:15px;
  }
  .mobile-drawer-close{
    width:34px;height:34px;border:0;border-radius:9px;
    background:#171c28;color:#c7cfde;
    font-size:23px;line-height:1;cursor:pointer;
  }

  .mobile-main-links{display:grid;gap:2px;padding:6px 0 12px}
  .mobile-main-links a{
    display:flex;align-items:center;
    min-height:43px;padding:0 12px;border-radius:10px;
    color:#b8c0cf;font-size:14px;font-weight:800;
  }
  .mobile-main-links a:hover{background:#171c28;color:#fff}
  .mobile-drawer-divider{height:1px;background:#222837;margin:0 0 10px}

  .mobile-category-list{display:grid;gap:3px}
  .mobile-category-list a{
    min-height:43px;
    display:grid;
    grid-template-columns:34px minmax(0,1fr) auto;
    align-items:center;
    gap:9px;
    padding:5px 9px;
    border-radius:10px;
    color:#bbc3d1;
  }
  .mobile-category-list a:hover{background:#171c28;color:#fff}
  .mobile-cat-icon{
    width:28px;height:28px;border-radius:8px;
    display:grid;place-items:center;
    background:#181531;
    font-size:14px;
  }
  .mobile-category-list strong{font-size:14px}
  .mobile-category-list small{font-size:10px;color:#69758a}

  .mobile-drawer-footer{
    margin-top:auto;
    padding-top:18px;
    border-top:1px solid #222837;
    display:grid;gap:12px;
  }
  .mobile-footer-links{
    display:flex;flex-wrap:wrap;gap:10px 12px;
  }
  .mobile-footer-links a{font-size:10px;color:#6f7a8d}
  .mobile-theme-toggle{
    width:38px;height:34px;border-radius:9px;border:1px solid #31394b;
    background:#171c28;color:#fff;cursor:pointer;font-size:16px;
  }
  .mobile-drawer-footer>small{font-size:10px;color:#687386}

  html[data-theme="light"] .mobile-drawer{
    background:#ffffff;
    color:#111827;
    border-right-color:#dce2eb;
  }
  html[data-theme="light"] .mobile-drawer-close,
  html[data-theme="light"] .mobile-main-links a:hover,
  html[data-theme="light"] .mobile-category-list a:hover,
  html[data-theme="light"] .mobile-theme-toggle{
    background:#eef1f6;color:#111827;
  }
  html[data-theme="light"] .mobile-main-links a,
  html[data-theme="light"] .mobile-category-list a{color:#4d586b}
  html[data-theme="light"] .mobile-drawer-divider,
  html[data-theme="light"] .mobile-drawer-footer{border-color:#e1e6ee;background-color:transparent}
}

@media(max-width:420px){
  .topbar{padding-left:8px;padding-right:8px;gap:7px}
  .mobile-menu-toggle{width:30px;flex-basis:30px}
  .topbar .brand,.topbar .brand .top-logo{width:34px;height:34px}
  .topbar .brand{flex-basis:34px}
  .searchbar button{padding:0 9px}
  .mobile-drawer{width:min(86vw,275px)}
}

/* v3.2.15 mobile hamburger visibility in light mode */
@media(max-width:980px){
  html[data-theme="light"] .mobile-menu-toggle{
    background:#eef2f7!important;
    border:1px solid #d6dce7!important;
    border-radius:10px!important;
  }
  html[data-theme="light"] .mobile-menu-toggle span{
    background:#111827!important;
  }
  html[data-theme="light"] .mobile-menu-toggle:hover{
    background:#e3e8f0!important;
  }

  html[data-theme="dark"] .mobile-menu-toggle,
  html:not([data-theme="light"]) .mobile-menu-toggle{
    background:#151b27;
    border:1px solid #273044;
    border-radius:10px;
  }
  html[data-theme="dark"] .mobile-menu-toggle span,
  html:not([data-theme="light"]) .mobile-menu-toggle span{
    background:#f4f7fb;
  }
}

/* v3.2.18 logo stays in left corner; header shows site name text */
.top-site-name{
  display:flex!important;
  align-items:center;
  width:auto!important;
  height:auto!important;
  min-width:max-content;
  font-size:21px!important;
  font-weight:900;
  color:var(--text,#fff);
  background:none!important;
  border-radius:0!important;
  overflow:visible!important;
}

@media(max-width:980px){
  .topbar .top-site-name{
    width:auto!important;
    height:auto!important;
    flex:0 0 auto!important;
    font-size:16px!important;
    background:none!important;
    color:var(--text,#fff);
  }
  .topbar .top-site-name::after{content:none!important}
}

@media(max-width:520px){
  .topbar .top-site-name{
    font-size:14px!important;
    max-width:92px;
    white-space:nowrap;
    overflow:hidden!important;
    text-overflow:ellipsis;
  }
}

html[data-theme="light"] .top-site-name{color:#111827!important}

/* v3.2.24 ratings, comments, blog game embeds, activity */
.game-feedback-grid{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;margin-top:28px}
.rating-summary{margin:8px 0 14px;color:#9ba7ba}.rating-summary strong{color:var(--text);font-size:18px}
.star-buttons{display:flex;gap:5px}.star-buttons button{border:0;background:transparent;color:#ffbe32;font-size:30px;padding:2px;cursor:pointer}.star-buttons button:hover{transform:scale(1.12)}
.comment-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.comment-form textarea{min-height:72px;resize:vertical;background:#0b1019;color:#fff;border:1px solid #2b3547;border-radius:11px;padding:12px}
.player-comments{margin-top:14px;display:grid;gap:10px}.player-comment{display:grid;grid-template-columns:36px 1fr;gap:10px;padding:12px;border-top:1px solid #ffffff12}.comment-avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--accent));display:grid;place-items:center;overflow:hidden;font-weight:900}.comment-avatar img{width:100%;height:100%;object-fit:cover}.player-comment small{display:block;color:#7e8a9d;margin-top:2px}.player-comment p{margin:7px 0 0;color:#c6cfdb}.muted{color:#8995a8}
.blog-games-block{margin:30px 0;padding:22px;border:1px solid #ffffff14;border-radius:18px;background:#0f1420}.blog-games-block>small{font-weight:900;letter-spacing:1.2px;color:#8d7dff}.blog-games-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.blog-game-link{display:grid;grid-template-columns:92px 1fr;gap:12px;align-items:center;padding:9px;border:1px solid #ffffff12;border-radius:13px;background:#111621}.blog-game-link img{width:92px;height:64px;object-fit:cover;border-radius:10px}.blog-game-link strong{display:block}.blog-game-link small{color:#8793a7}
.profile-time-card{margin-top:10px;padding:11px;border-radius:11px;background:#0f1520;color:#9aa6b8}.profile-time-card strong{color:var(--text)}
html[data-theme="light"] .comment-form textarea{background:#fff;color:#111827;border-color:#d7dde7}
html[data-theme="light"] .blog-games-block,html[data-theme="light"] .blog-game-link{background:#fff;border-color:#dce2eb}
@media(max-width:760px){.game-feedback-grid{grid-template-columns:1fr}.comment-form{grid-template-columns:1fr}.blog-games-grid{grid-template-columns:1fr}}

/* v3.2.25 homepage game pagination */
.home-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  flex-wrap:wrap;
  margin:38px auto 18px;
}
.home-pagination a,.home-pagination .page-dots{
  min-width:42px;height:42px;padding:0 13px;
  border-radius:10px;border:1px solid #252d3d;
  background:#121824;color:#eef2f8;
  display:inline-flex;align-items:center;justify-content:center;
  font-weight:800;font-size:13px;
}
.home-pagination a:hover{border-color:var(--primary);transform:translateY(-1px)}
.home-pagination a.active{
  background:linear-gradient(135deg,var(--primary),#7964ef);
  border-color:transparent;color:#fff;
}
.home-pagination .page-prev,.home-pagination .page-next{min-width:104px}
.home-pagination .page-dots{background:transparent;border-color:transparent;min-width:24px;padding:0;color:#8591a4}
html[data-theme="light"] .home-pagination a{background:#fff;color:#111827;border-color:#d9e0e9}
html[data-theme="light"] .home-pagination a.active{color:#fff;border-color:transparent}
@media(max-width:520px){
  .home-pagination{gap:6px;margin-top:28px}
  .home-pagination a,.home-pagination .page-dots{min-width:36px;height:38px;padding:0 10px;font-size:12px}
  .home-pagination .page-prev,.home-pagination .page-next{min-width:88px}
}

/* v3.2.26 homepage pagination alignment + light mode polish */
.home-pagination{
  width:100%!important;
  max-width:100%!important;
  margin:38px auto 22px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  flex-wrap:wrap!important;
  text-align:center;
}

.home-pagination a{
  color:#f8fafc!important;
  background:#121824!important;
  border:1px solid #283246!important;
  box-shadow:none!important;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease;
}

.home-pagination a:hover{
  border-color:var(--primary)!important;
  color:#fff!important;
  background:color-mix(in srgb,var(--primary) 22%,#121824)!important;
}

.home-pagination a.active{
  background:linear-gradient(135deg,var(--primary),var(--accent))!important;
  color:#fff!important;
  border-color:transparent!important;
  box-shadow:0 8px 22px color-mix(in srgb,var(--primary) 28%,transparent)!important;
}

.home-pagination .page-prev,
.home-pagination .page-next{
  background:#121824!important;
  color:#f8fafc!important;
  border-color:#283246!important;
}

html[data-theme="light"] .home-pagination{
  justify-content:center!important;
}

html[data-theme="light"] .home-pagination a{
  background:#ffffff!important;
  color:#263041!important;
  border-color:#d7deea!important;
  box-shadow:0 2px 8px rgba(17,24,39,.06)!important;
}

html[data-theme="light"] .home-pagination a:hover{
  color:var(--primary)!important;
  border-color:var(--primary)!important;
  background:color-mix(in srgb,var(--primary) 7%,#ffffff)!important;
}

html[data-theme="light"] .home-pagination a.active{
  background:linear-gradient(135deg,var(--primary),var(--accent))!important;
  color:#ffffff!important;
  border-color:transparent!important;
  box-shadow:0 8px 20px color-mix(in srgb,var(--primary) 24%,transparent)!important;
}

html[data-theme="light"] .home-pagination .page-prev,
html[data-theme="light"] .home-pagination .page-next{
  background:color-mix(in srgb,var(--primary) 7%,#ffffff)!important;
  color:var(--primary)!important;
  border-color:color-mix(in srgb,var(--primary) 30%,#d7deea)!important;
  font-weight:900!important;
}

html[data-theme="light"] .home-pagination .page-prev:hover,
html[data-theme="light"] .home-pagination .page-next:hover{
  background:linear-gradient(135deg,var(--primary),var(--accent))!important;
  color:#ffffff!important;
  border-color:transparent!important;
}

html[data-theme="light"] .home-pagination .page-dots{
  color:#6f7b8e!important;
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}

@media(max-width:520px){
  .home-pagination{
    width:100%!important;
    justify-content:center!important;
    margin:28px auto 18px!important;
    gap:6px!important;
  }
}

/* v3.2.28 interactive star rating */
.star-buttons{
  display:flex;
  gap:4px;
  align-items:center;
}
.star-buttons button{
  appearance:none;
  border:0;
  background:transparent!important;
  color:#7f899a!important;
  font-size:31px;
  line-height:1;
  padding:2px 1px;
  cursor:pointer;
  transition:transform .12s ease,color .12s ease;
}
.star-buttons button.selected,
.star-buttons button.hovered{
  color:#ffb51b!important;
}
.star-buttons button:hover{transform:scale(1.12)}
.rating-save-status{
  display:block;
  min-height:18px;
  margin-top:7px;
  color:#8f9bad;
  font-size:12px;
}
html[data-theme="light"] .star-buttons button{
  color:#aeb7c5!important;
}
html[data-theme="light"] .star-buttons button.selected,
html[data-theme="light"] .star-buttons button.hovered{
  color:#f0a400!important;
}

/* v3.2.32 responsive sizing for laptops, Mac 13", desktops and mobile */
html,body{max-width:100%;overflow-x:hidden}
*{box-sizing:border-box}
img,iframe,video{max-width:100%}

.site-main{
  width:min(1500px,calc(100% - clamp(24px,4vw,72px)))!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.footer{
  width:min(1500px,calc(100% - clamp(24px,4vw,72px)))!important;
}
.topbar{
  padding-left:clamp(14px,2vw,34px)!important;
  padding-right:clamp(14px,2vw,34px)!important;
  gap:clamp(8px,1vw,16px)!important;
}
.searchbar{min-width:180px!important;max-width:min(620px,46vw)!important}
.category-strip{
  overflow-x:auto!important;
  white-space:nowrap!important;
  scrollbar-width:none;
}
.category-strip::-webkit-scrollbar{display:none}
.category-strip a{flex:0 0 auto}
.game-grid{
  grid-template-columns:repeat(auto-fit,minmax(clamp(145px,11vw,190px),1fr))!important;
  gap:clamp(10px,1.1vw,18px)!important;
}
.collection-hero{
  padding:clamp(26px,3vw,48px)!important;
  grid-template-columns:minmax(0,1fr) clamp(190px,19vw,270px)!important;
}
.collection-hero h1{font-size:clamp(42px,4.8vw,76px)!important}
.all-games-banner{padding:clamp(18px,2vw,28px)!important}
.game-layout{grid-template-columns:minmax(0,1fr) minmax(260px,320px)!important}
.article{width:min(940px,calc(100% - 24px))!important}

/* 13-inch laptops / compact desktop widths */
@media(max-width:1366px){
  .site-main,.footer{width:calc(100% - 34px)!important}
  .topbar{padding-left:16px!important;padding-right:16px!important}
  .top-site-name{font-size:17px!important}
  .searchbar{max-width:42vw!important}
  .game-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important}
  .collection-hero{grid-template-columns:minmax(0,1fr) 210px!important;padding:30px!important}
  .collection-hero h1{font-size:52px!important}
  .hero-pills{gap:7px!important}
  .home-category-cards{gap:8px!important}
}
@media(max-width:1180px){
  .header-socials{display:none!important}
  .top-actions{gap:7px!important}
  .top-actions a{font-size:12px!important}
  .game-layout{grid-template-columns:1fr!important}
}

/* Mobile auth buttons in drawer */
.mobile-auth-actions{display:none}
.mobile-user-card{display:none}
@media(max-width:980px){
  .mobile-auth-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:9px;
    margin:4px 0 12px;
  }
  .mobile-auth-actions a{
    min-height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    font-weight:900;
    font-size:13px;
  }
  .mobile-login-btn{
    border:1px solid #30394b;
    background:#151b27;
    color:#f4f7fb;
  }
  .mobile-signup-btn{
    border:1px solid transparent;
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:#fff;
  }
  .mobile-user-card{
    display:flex;
    align-items:center;
    gap:10px;
    margin:4px 0 12px;
    padding:10px;
    border-radius:11px;
    background:#151b27;
    border:1px solid #252e40;
  }
  .mobile-user-card>div{display:grid;gap:2px;min-width:0}
  .mobile-user-card strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-user-card a{font-size:10px;color:#8d99ac}
  .site-main,.footer{width:calc(100% - 22px)!important}
  .collection-hero{grid-template-columns:1fr!important;padding:24px 18px!important}
  .collection-hero h1{font-size:clamp(38px,11vw,50px)!important}
  .game-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:620px){
  .game-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .site-main,.footer{width:calc(100% - 16px)!important}
}
html[data-theme="light"] .mobile-login-btn{
  background:#fff;
  color:#111827;
  border-color:#d7dee9;
}
html[data-theme="light"] .mobile-user-card{
  background:#f4f6fa;
  border-color:#dce2eb;
  color:#111827;
}

/* Analytics tables remain usable on compact screens */
.analytics-grid>.box{min-width:0;overflow:auto}
@media(max-width:900px){
  .analytics-grid{grid-template-columns:1fr!important}
  .box{overflow-x:auto}
  table{min-width:620px}
}

/* v3.2.33 auth colors + guest buttons visible on desktop and mobile */

/* Light mode form fields must look like light-mode fields, not dark boxes. */
html[data-theme="light"] .auth-wrap .field input,
html[data-theme="light"] .auth-wrap .field select,
html[data-theme="light"] .auth-wrap .field textarea{
  background:#ffffff!important;
  color:#111827!important;
  border-color:#cfd7e4!important;
  box-shadow:0 1px 3px rgba(15,23,42,.04)!important;
}
html[data-theme="light"] .auth-wrap .field input::placeholder,
html[data-theme="light"] .auth-wrap .field textarea::placeholder{
  color:#8b97a8!important;
  opacity:1;
}
html[data-theme="light"] .auth-wrap .field label{
  color:#536174!important;
}
html[data-theme="light"] .auth-wrap .field input:focus,
html[data-theme="light"] .auth-wrap .field select:focus,
html[data-theme="light"] .auth-wrap .field textarea:focus{
  border-color:var(--primary)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 18%,transparent)!important;
}

/* Desktop Login + Sign Up: both clearly visible and theme-colored. */
.top-actions.guest-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.top-actions.guest-actions>a:first-child{
  min-height:36px;
  padding:0 14px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid color-mix(in srgb,var(--primary) 38%,#303a4d);
  background:color-mix(in srgb,var(--primary) 10%,#121824);
  color:#eef2ff!important;
  font-weight:800;
}
.top-actions.guest-actions>a.btn{
  min-height:36px;
  padding:0 15px!important;
  border-radius:10px!important;
  background:linear-gradient(135deg,var(--primary),var(--accent))!important;
  color:#fff!important;
  border:0!important;
  font-weight:900;
}

html[data-theme="light"] .top-actions.guest-actions>a:first-child{
  background:color-mix(in srgb,var(--primary) 7%,#ffffff)!important;
  color:var(--primary)!important;
  border-color:color-mix(in srgb,var(--primary) 32%,#d4dbe6)!important;
}
html[data-theme="light"] .top-actions.guest-actions>a.btn{
  background:linear-gradient(135deg,var(--primary),var(--accent))!important;
  color:#fff!important;
}

/* Login / Register form button follows the site theme. */
.auth-wrap .btn{
  background:linear-gradient(135deg,var(--primary),var(--accent))!important;
  color:#fff!important;
  border:0!important;
  min-height:42px;
  padding:0 18px!important;
  font-weight:900;
  border-radius:10px!important;
}

/* Mobile: show guest Login + Sign Up in header as a second compact row.
   Logged-in user controls remain in the drawer to avoid crowding. */
@media(max-width:980px){
  .topbar .guest-actions{
    display:flex!important;
    order:4;
    flex:0 0 100%;
    width:100%;
    justify-content:flex-end;
    gap:8px;
    padding-top:2px;
  }
  .topbar .guest-actions>a{
    font-size:12px!important;
  }
  .topbar .guest-actions>a:first-child,
  .topbar .guest-actions>a.btn{
    min-height:34px!important;
    padding:0 13px!important;
  }
  .topbar .user-actions{
    display:none!important;
  }
}

/* Very small phones: make both guest buttons equal-width and easy to tap. */
@media(max-width:520px){
  .topbar .guest-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr;
  }
  .topbar .guest-actions>a{
    width:100%;
  }
}

/* Keep auth card comfortable on phones. */
@media(max-width:620px){
  .auth-wrap{
    width:calc(100% - 28px)!important;
    margin:34px auto!important;
    padding:22px!important;
  }
  .auth-wrap h1{
    font-size:30px!important;
  }
}

/* v3.2.34 mobile header cleanup
   Guest Login / Sign Up stay inside hamburger drawer only on phones/tablets. */
@media(max-width:980px){
  .topbar .guest-actions{
    display:none!important;
  }

  .mobile-auth-actions{
    display:grid!important;
  }

  .topbar{
    grid-template-columns:auto auto minmax(0,1fr);
  }

  .searchbar{
    min-width:0!important;
    max-width:none!important;
  }
}

/* Desktop keeps Login + Sign Up visible in header. */
@media(min-width:981px){
  .topbar .guest-actions{
    display:flex!important;
  }
}

/* v3.2.35 mobile drawer footer cleanup */
@media(max-width:980px){
  .mobile-footer-links{display:none!important}
  .mobile-drawer-footer{
    gap:10px!important;
  }
}

/* v3.2.37 homepage banner redesign — responsive across desktop, laptop, tablet and phone */

/* HERO */
.collection-hero{
  position:relative!important;
  isolation:isolate;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) clamp(220px,20vw,290px)!important;
  align-items:stretch!important;
  gap:clamp(18px,2vw,30px)!important;
  min-height:clamp(300px,26vw,390px)!important;
  margin:18px 0 18px!important;
  padding:clamp(28px,3.2vw,52px)!important;
  overflow:hidden;
  border-radius:clamp(22px,2vw,30px)!important;
  border:1px solid color-mix(in srgb,var(--primary) 22%,#ffffff18)!important;
  background:
    radial-gradient(circle at 88% 18%,color-mix(in srgb,var(--primary) 32%,transparent) 0,transparent 32%),
    radial-gradient(circle at 55% 120%,color-mix(in srgb,var(--accent) 18%,transparent) 0,transparent 38%),
    linear-gradient(125deg,#111827 0%,#17162b 48%,#211637 100%)!important;
  box-shadow:0 24px 70px rgba(0,0,0,.24)!important;
}
.collection-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  opacity:.2;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:52px 52px;
  mask-image:linear-gradient(90deg,#000 0%,#000 64%,transparent 100%);
}
.collection-hero::after{
  content:"";
  position:absolute;
  width:360px;
  height:360px;
  right:-120px;
  top:-150px;
  z-index:-1;
  border-radius:50%;
  border:1px solid color-mix(in srgb,var(--primary) 32%,transparent);
  box-shadow:
    0 0 0 44px color-mix(in srgb,var(--primary) 5%,transparent),
    0 0 0 88px color-mix(in srgb,var(--primary) 4%,transparent);
}
.collection-hero-main{
  display:flex!important;
  flex-direction:column;
  justify-content:center!important;
  align-items:flex-start;
  min-width:0;
}
.hero-eyebrow{
  display:inline-flex!important;
  align-items:center;
  gap:9px;
  width:auto;
  margin-bottom:15px!important;
  color:color-mix(in srgb,var(--primary) 68%,#ffffff)!important;
  font-size:clamp(10px,.78vw,12px)!important;
  font-weight:900!important;
  letter-spacing:1.8px!important;
}
.live-dot{
  width:9px!important;
  height:9px!important;
  flex:0 0 9px;
  border-radius:50%;
  background:#56e6a8!important;
  box-shadow:0 0 0 6px rgba(86,230,168,.11),0 0 18px rgba(86,230,168,.35);
}
.collection-hero h1{
  max-width:940px!important;
  margin:0 0 12px!important;
  font-size:clamp(48px,5.1vw,82px)!important;
  line-height:.96!important;
  letter-spacing:-.045em!important;
  font-weight:950!important;
  text-wrap:balance;
}
.collection-hero h3{
  margin:0 0 7px!important;
  font-size:clamp(16px,1.3vw,20px)!important;
  line-height:1.25!important;
}
.collection-hero-main>p{
  max-width:720px!important;
  margin:0 0 22px!important;
  color:#aab6ca!important;
  font-size:clamp(14px,1vw,17px)!important;
  line-height:1.55!important;
}
.hero-pills{
  display:flex!important;
  gap:8px!important;
  flex-wrap:wrap;
}
.hero-pills span{
  display:inline-flex!important;
  align-items:center;
  min-height:36px;
  padding:0 13px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.045)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  color:#f6f8fc!important;
  font-size:clamp(11px,.8vw,13px)!important;
  font-weight:800!important;
  backdrop-filter:blur(8px);
}

/* LIVE COLLECTION CARD */
.collection-count-card{
  align-self:center!important;
  justify-self:stretch!important;
  min-height:215px!important;
  padding:26px 20px!important;
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  border-radius:24px!important;
  border:1px solid color-mix(in srgb,var(--primary) 38%,rgba(255,255,255,.18))!important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.025))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 16px 40px rgba(0,0,0,.13)!important;
  backdrop-filter:blur(12px);
}
.collection-count-card small{
  color:#5ee7bd!important;
  font-weight:900!important;
  letter-spacing:1.5px!important;
  font-size:11px!important;
}
.collection-count-card strong{
  margin:9px 0 1px!important;
  color:color-mix(in srgb,var(--primary) 72%,#ffffff)!important;
  font-size:clamp(54px,5vw,76px)!important;
  line-height:.95!important;
  letter-spacing:-.05em;
}
.collection-count-card b{
  font-size:12px!important;
  color:#f8fafc!important;
}
.collection-count-card span{
  margin-top:16px!important;
  color:#7f8ca3!important;
  font-size:10px!important;
}

/* ALL GAMES BANNER */
.all-games-banner{
  position:relative;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:20px!important;
  min-height:118px!important;
  margin:0 0 26px!important;
  padding:22px 26px!important;
  overflow:hidden;
  border-radius:20px!important;
  border:1px solid #242d3c!important;
  background:
    linear-gradient(105deg,#111824 0%,#111824 65%,color-mix(in srgb,var(--primary) 9%,#111824) 100%)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.12)!important;
}
.all-games-banner::before{
  content:"";
  position:absolute;
  left:-26px;
  top:-44px;
  width:140px;
  height:140px;
  border-radius:50%;
  background:color-mix(in srgb,var(--primary) 12%,transparent);
  filter:blur(2px);
}
.all-games-banner>div:first-child{
  position:relative;
  z-index:1;
  padding-left:4px;
}
.all-games-banner small{
  display:block;
  margin-bottom:5px!important;
  color:color-mix(in srgb,var(--primary) 72%,#ffffff)!important;
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:1.5px!important;
}
.all-games-banner h2{
  margin:0 0 3px!important;
  font-size:clamp(25px,2vw,34px)!important;
  line-height:1!important;
}
.all-games-banner p{
  margin:0!important;
  color:#8996aa!important;
  font-size:12px!important;
}
.all-games-count{
  position:relative;
  z-index:1;
  min-width:120px!important;
  min-height:62px!important;
  padding:0 18px!important;
  display:flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
  border-radius:15px!important;
  border:1px solid color-mix(in srgb,var(--primary) 35%,#2f3950)!important;
  background:color-mix(in srgb,var(--primary) 11%,#0e1420)!important;
  color:color-mix(in srgb,var(--primary) 72%,#ffffff)!important;
  font-size:clamp(25px,2vw,34px)!important;
  line-height:1;
  font-weight:950!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.all-games-count span{
  color:#9b8fff!important;
  font-size:9px!important;
  font-weight:900!important;
  letter-spacing:1.2px!important;
}

/* LIGHT MODE */
html[data-theme="light"] .collection-hero{
  border-color:color-mix(in srgb,var(--primary) 24%,#d9e0ea)!important;
  background:
    radial-gradient(circle at 88% 18%,color-mix(in srgb,var(--primary) 16%,transparent) 0,transparent 32%),
    radial-gradient(circle at 55% 120%,color-mix(in srgb,var(--accent) 10%,transparent) 0,transparent 38%),
    linear-gradient(125deg,#ffffff 0%,#f7f7fc 52%,#f8f1ff 100%)!important;
  box-shadow:0 22px 58px rgba(25,34,54,.1)!important;
}
html[data-theme="light"] .collection-hero::before{
  opacity:.45;
  background-image:
    linear-gradient(rgba(45,55,75,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(45,55,75,.06) 1px,transparent 1px);
}
html[data-theme="light"] .collection-hero h1,
html[data-theme="light"] .collection-hero h3{
  color:#111827!important;
}
html[data-theme="light"] .collection-hero-main>p{color:#59677c!important}
html[data-theme="light"] .hero-pills span{
  color:#182235!important;
  background:rgba(255,255,255,.72)!important;
  border-color:#d4dce8!important;
}
html[data-theme="light"] .collection-count-card{
  background:rgba(255,255,255,.68)!important;
  border-color:color-mix(in srgb,var(--primary) 30%,#d9e0ea)!important;
  box-shadow:0 14px 34px rgba(40,48,70,.07)!important;
}
html[data-theme="light"] .collection-count-card b{color:#111827!important}
html[data-theme="light"] .collection-count-card span{color:#7a8799!important}
html[data-theme="light"] .all-games-banner{
  border-color:#d8e0ea!important;
  background:
    linear-gradient(105deg,#ffffff 0%,#ffffff 65%,color-mix(in srgb,var(--primary) 7%,#ffffff) 100%)!important;
  box-shadow:0 10px 28px rgba(20,30,50,.06)!important;
}
html[data-theme="light"] .all-games-banner h2{color:#111827!important}
html[data-theme="light"] .all-games-banner p{color:#718095!important}
html[data-theme="light"] .all-games-count{
  background:color-mix(in srgb,var(--primary) 7%,#ffffff)!important;
}

/* 13-inch laptops and compact desktops */
@media(max-width:1366px){
  .collection-hero{
    grid-template-columns:minmax(0,1fr) 220px!important;
    min-height:300px!important;
    padding:30px!important;
    gap:20px!important;
  }
  .collection-hero h1{font-size:clamp(46px,4.8vw,66px)!important}
  .collection-count-card{min-height:190px!important;padding:22px 16px!important}
  .all-games-banner{min-height:104px!important;padding:18px 21px!important}
}

/* Tablet */
@media(max-width:980px){
  .collection-hero{
    grid-template-columns:1fr!important;
    min-height:0!important;
    padding:26px!important;
  }
  .collection-hero h1{font-size:clamp(44px,8vw,66px)!important}
  .collection-count-card{
    width:100%!important;
    min-height:145px!important;
    display:grid!important;
    grid-template-columns:auto auto!important;
    grid-template-areas:
      "label number"
      "label info";
    justify-content:space-between!important;
    align-items:center!important;
    text-align:left!important;
    padding:20px 22px!important;
  }
  .collection-count-card small{grid-area:label}
  .collection-count-card strong{
    grid-area:number;
    margin:0!important;
    text-align:right;
    font-size:48px!important;
  }
  .collection-count-card b{grid-area:info;text-align:right}
  .collection-count-card span{display:none}
}

/* Phones */
@media(max-width:620px){
  .collection-hero{
    margin-top:10px!important;
    margin-bottom:12px!important;
    padding:22px 18px!important;
    border-radius:20px!important;
  }
  .collection-hero::after{
    width:230px;height:230px;right:-105px;top:-110px;
  }
  .collection-hero::before{background-size:38px 38px}
  .hero-eyebrow{margin-bottom:13px!important;font-size:9px!important;letter-spacing:1.4px!important}
  .collection-hero h1{
    font-size:clamp(42px,12vw,56px)!important;
    line-height:.94!important;
    margin-bottom:14px!important;
  }
  .collection-hero h3{
    font-size:16px!important;
    margin-bottom:8px!important;
  }
  .collection-hero-main>p{
    font-size:14px!important;
    line-height:1.55!important;
    margin-bottom:18px!important;
  }
  .hero-pills{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    width:100%;
  }
  .hero-pills span{
    min-height:36px!important;
    padding:0 10px!important;
    justify-content:center;
    text-align:center;
    font-size:10px!important;
  }
  .hero-pills span:last-child{grid-column:1/-1}

  .collection-count-card{
    min-height:118px!important;
    padding:17px 18px!important;
    border-radius:18px!important;
  }
  .collection-count-card small{font-size:9px!important;letter-spacing:1.1px!important}
  .collection-count-card strong{font-size:42px!important}
  .collection-count-card b{font-size:10px!important}

  .all-games-banner{
    min-height:100px!important;
    padding:17px 18px!important;
    margin-bottom:20px!important;
    border-radius:17px!important;
    gap:12px!important;
  }
  .all-games-banner h2{font-size:25px!important}
  .all-games-banner p{
    max-width:210px;
    font-size:10px!important;
    line-height:1.4!important;
  }
  .all-games-count{
    min-width:86px!important;
    min-height:54px!important;
    padding:0 11px!important;
    font-size:25px!important;
    border-radius:13px!important;
  }
  .all-games-count span{font-size:7px!important}
}

/* Very small phones */
@media(max-width:390px){
  .collection-hero{padding:19px 15px!important}
  .collection-hero h1{font-size:40px!important}
  .hero-pills{grid-template-columns:1fr!important}
  .hero-pills span:last-child{grid-column:auto}
  .all-games-banner{
    grid-template-columns:1fr!important;
    align-items:start!important;
  }
  .all-games-count{
    justify-self:start;
    min-width:96px!important;
  }
}

/* v3.2.38 completely new homepage banner structure */

/* New asymmetrical hero */
.home-showcase{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.22fr) minmax(330px,.78fr);
  align-items:center;
  gap:clamp(30px,5vw,78px);
  min-height:420px;
  margin:18px 0 16px;
  padding:clamp(34px,4vw,66px) clamp(32px,4.5vw,74px);
  overflow:hidden;
  border-radius:32px;
  background:
    linear-gradient(135deg,#0f1420 0%,#111725 42%,#18112d 100%);
  border:1px solid #252d3d;
}
.home-showcase::before{
  content:"";
  position:absolute;
  inset:auto -8% -45% 35%;
  height:82%;
  border-radius:50%;
  background:radial-gradient(circle,color-mix(in srgb,var(--primary) 25%,transparent) 0%,transparent 68%);
  pointer-events:none;
}
.home-showcase::after{
  content:"";
  position:absolute;
  left:-110px;
  top:-110px;
  width:270px;
  height:270px;
  border-radius:50%;
  background:color-mix(in srgb,var(--accent) 7%,transparent);
  filter:blur(2px);
}
.showcase-copy{
  position:relative;
  z-index:2;
  max-width:820px;
}
.showcase-kicker{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin-bottom:18px;
  color:#aeb8cb;
  font-size:11px;
  font-weight:900;
  letter-spacing:1.8px;
}
.showcase-kicker i{
  width:10px;height:10px;border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 6px color-mix(in srgb,var(--accent) 13%,transparent);
}
.showcase-copy h1{
  max-width:790px;
  margin:0 0 18px;
  color:#f7f9fc;
  font-size:clamp(58px,6vw,96px);
  line-height:.89;
  letter-spacing:-.055em;
  font-weight:950;
}
.showcase-copy>p{
  max-width:660px;
  margin:0;
  color:#9eabbf;
  font-size:clamp(15px,1.15vw,18px);
  line-height:1.65;
}
.showcase-actions{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  margin-top:28px;
}
.showcase-primary{
  min-height:48px;
  padding:0 18px 0 21px;
  display:inline-flex;
  align-items:center;
  gap:18px;
  border-radius:13px;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  color:#fff;
  font-weight:900;
  box-shadow:0 10px 30px color-mix(in srgb,var(--primary) 22%,transparent);
}
.showcase-primary b{
  font-size:19px;
  line-height:1;
}
.showcase-features{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
}
.showcase-features span{
  padding:8px 10px;
  border-radius:9px;
  border:1px solid #2c3546;
  background:#121927;
  color:#8e9aaf;
  font-size:11px;
  font-weight:700;
}

/* right-hand orbit graphic */
.showcase-orbit{
  position:relative;
  width:min(100%,380px);
  aspect-ratio:1/1;
  justify-self:end;
  display:grid;
  place-items:center;
  z-index:2;
}
.orbit-core{
  position:relative;
  z-index:4;
  width:48%;
  aspect-ratio:1/1;
  border-radius:50%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 35% 25%,color-mix(in srgb,var(--primary) 46%,#171325),#111621 70%);
  border:1px solid color-mix(in srgb,var(--primary) 42%,#394156);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    0 24px 60px rgba(0,0,0,.32),
    0 0 55px color-mix(in srgb,var(--primary) 14%,transparent);
}
.orbit-core small{
  color:#a8b3c6;
  font-size:9px;
  letter-spacing:1.5px;
  font-weight:900;
}
.orbit-core strong{
  margin:5px 0 0;
  color:#fff;
  font-size:clamp(48px,4.5vw,70px);
  line-height:.95;
  letter-spacing:-.05em;
}
.orbit-core span{
  margin-top:5px;
  color:color-mix(in srgb,var(--accent) 72%,#fff);
  font-size:9px;
  font-weight:900;
  letter-spacing:1.5px;
}
.orbit-ring{
  position:absolute;
  inset:13%;
  border-radius:50%;
  border:1px dashed color-mix(in srgb,var(--primary) 34%,transparent);
}
.orbit-ring-two{
  inset:2%;
  border-style:solid;
  border-color:rgba(255,255,255,.07);
}
.orbit-ring-one::before,
.orbit-ring-two::after{
  content:"";
  position:absolute;
  width:12px;height:12px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 18px color-mix(in srgb,var(--accent) 55%,transparent);
}
.orbit-ring-one::before{top:7%;left:22%}
.orbit-ring-two::after{right:10%;bottom:20%;background:var(--primary)}
.orbit-chip{
  position:absolute;
  z-index:5;
  padding:7px 9px;
  border-radius:8px;
  background:#111722;
  border:1px solid #2a3345;
  color:#9ca8ba;
  font-size:9px;
  font-weight:900;
  letter-spacing:.8px;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}
.orbit-chip-a{top:14%;right:3%}
.orbit-chip-b{left:0;bottom:24%}
.orbit-chip-c{right:7%;bottom:8%}

/* completely different All Games launcher */
.collection-launcher{
  position:relative;
  display:grid;
  grid-template-columns:64px minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  min-height:92px;
  margin:0 0 30px;
  padding:15px 18px;
  border-radius:18px;
  background:#0e141f;
  border:1px solid #242d3d;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.collection-launcher:hover{
  transform:translateY(-2px);
  border-color:color-mix(in srgb,var(--primary) 48%,#354055);
  background:#111824;
}
.launcher-icon{
  width:56px;height:56px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,
    color-mix(in srgb,var(--primary) 22%,#151b28),
    color-mix(in srgb,var(--accent) 12%,#111722));
  border:1px solid color-mix(in srgb,var(--primary) 28%,#30394b);
}
.launcher-icon span{
  width:30px;height:30px;
  display:grid;place-items:center;
  border-radius:50%;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  color:#fff;
  font-size:11px;
  padding-left:2px;
}
.launcher-copy small{
  color:color-mix(in srgb,var(--primary) 70%,#fff);
  font-size:9px;
  font-weight:900;
  letter-spacing:1.4px;
}
.launcher-copy h2{
  margin:2px 0;
  color:#f7f9fc;
  font-size:25px;
  line-height:1.05;
}
.launcher-copy p{
  margin:0;
  color:#7f8ca0;
  font-size:11px;
}
.launcher-meta{
  display:grid;
  grid-template-columns:auto auto;
  align-items:center;
  column-gap:7px;
  min-width:120px;
  text-align:right;
}
.launcher-meta strong{
  color:#fff;
  font-size:27px;
  line-height:1;
}
.launcher-meta span{
  color:#7f8b9d;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:1px;
}
.launcher-meta b{
  grid-column:1/-1;
  color:var(--primary);
  font-size:18px;
  line-height:1;
  margin-top:2px;
}

/* light mode */
html[data-theme="light"] .home-showcase{
  background:linear-gradient(135deg,#ffffff 0%,#f7f8fc 52%,#f4efff 100%);
  border-color:#d8e0eb;
  box-shadow:0 18px 48px rgba(20,30,50,.08);
}
html[data-theme="light"] .showcase-copy h1{color:#101622}
html[data-theme="light"] .showcase-copy>p{color:#5f6d82}
html[data-theme="light"] .showcase-features span{
  background:#fff;
  border-color:#d9e0ea;
  color:#5e6b7f;
}
html[data-theme="light"] .orbit-chip{
  background:#fff;
  border-color:#d9e0ea;
  color:#5c697c;
}
html[data-theme="light"] .orbit-ring-two{border-color:rgba(33,43,60,.09)}
html[data-theme="light"] .orbit-core{
  background:radial-gradient(circle at 35% 25%,color-mix(in srgb,var(--primary) 24%,#fff),#fff 72%);
  border-color:color-mix(in srgb,var(--primary) 35%,#d8e0ea);
  box-shadow:0 20px 46px rgba(36,43,64,.12);
}
html[data-theme="light"] .orbit-core strong{color:#111827}
html[data-theme="light"] .orbit-core small{color:#6f7b8d}
html[data-theme="light"] .collection-launcher{
  background:#fff;
  border-color:#d8e0ea;
  box-shadow:0 9px 24px rgba(20,30,50,.04);
}
html[data-theme="light"] .collection-launcher:hover{background:#f9faff}
html[data-theme="light"] .launcher-copy h2,
html[data-theme="light"] .launcher-meta strong{color:#111827}
html[data-theme="light"] .launcher-copy p,
html[data-theme="light"] .launcher-meta span{color:#718096}

/* 13-inch laptop */
@media(max-width:1366px){
  .home-showcase{
    grid-template-columns:minmax(0,1fr) 300px;
    min-height:350px;
    gap:32px;
    padding:38px 42px;
  }
  .showcase-copy h1{font-size:62px}
  .showcase-orbit{width:300px}
}

/* tablet */
@media(max-width:980px){
  .home-showcase{
    grid-template-columns:minmax(0,1fr) 250px;
    min-height:320px;
    padding:32px;
    gap:24px;
  }
  .showcase-copy h1{font-size:52px}
  .showcase-orbit{width:250px}
}

/* phone */
@media(max-width:720px){
  .home-showcase{
    grid-template-columns:1fr;
    min-height:0;
    padding:24px 20px 22px;
    border-radius:22px;
    gap:22px;
  }
  .showcase-copy h1{
    max-width:100%;
    font-size:clamp(45px,13vw,60px);
    line-height:.91;
  }
  .showcase-copy>p{
    font-size:14px;
    line-height:1.55;
  }
  .showcase-actions{
    align-items:stretch;
    flex-direction:column;
    gap:12px;
    margin-top:20px;
  }
  .showcase-primary{
    width:100%;
    justify-content:space-between;
  }
  .showcase-features{
    display:grid;
    grid-template-columns:repeat(3,1fr);
  }
  .showcase-features span{
    text-align:center;
    padding:7px 5px;
    font-size:9px;
  }
  .showcase-orbit{
    width:min(76vw,270px);
    justify-self:center;
  }
  .orbit-chip{font-size:8px}
  .collection-launcher{
    grid-template-columns:52px minmax(0,1fr) auto;
    min-height:82px;
    gap:12px;
    padding:13px;
    border-radius:16px;
  }
  .launcher-icon{width:48px;height:48px;border-radius:13px}
  .launcher-copy h2{font-size:22px}
  .launcher-copy p{font-size:9px}
  .launcher-meta{min-width:70px}
  .launcher-meta strong{font-size:22px}
  .launcher-meta span{display:none}
}

/* very small phones */
@media(max-width:400px){
  .home-showcase{padding:21px 16px}
  .showcase-copy h1{font-size:43px}
  .showcase-features{grid-template-columns:1fr}
  .showcase-orbit{width:235px}
  .collection-launcher{
    grid-template-columns:48px 1fr;
  }
  .launcher-meta{
    grid-column:1/-1;
    display:flex;
    align-items:center;
    gap:7px;
    padding-left:60px;
    text-align:left;
  }
  .launcher-meta span{display:inline}
  .launcher-meta b{margin-left:auto}
}


/* v3.2.38-fix1 */
/* Recently Played keeps the same game-card width as the normal game grid.
   auto-fill preserves empty columns so 1-2 recent games do not stretch huge. */
.recently-played-grid{
  grid-template-columns:repeat(auto-fill,minmax(clamp(145px,11vw,190px),1fr))!important;
  justify-content:start!important;
}
@media(max-width:980px){
  .recently-played-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}
@media(max-width:720px){
  .recently-played-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:420px){
  .recently-played-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

/* Rating summary contrast in Light Mode */
html[data-theme="light"] .rating-summary{
  color:#66758a!important;
}
html[data-theme="light"] .rating-summary strong,
html[data-theme="light"] #rating-average{
  color:#182235!important;
}
html[data-theme="light"] #rating-count{
  color:#66758a!important;
}

/* Real ad slot below pagination.
   If no code is configured, render_ad_placement outputs nothing, so there is no fake blank ad box. */
.listing-pagination-ad{
  width:100%!important;
  max-width:100%!important;
  margin:34px auto 50px!important;
  text-align:center!important;
  overflow:hidden;
}
@media(max-width:720px){
  .listing-pagination-ad{
    margin:26px auto 36px!important;
  }
}


/* v3.2.38-fix2: homepage ad between each group of 20 games */
.home-games-inline-ad{
  grid-column:1 / -1;
  width:100%;
}
.home-games-inline-ad:empty{
  display:none;
}
.home-every-20-games-ad{
  width:100%!important;
  max-width:100%!important;
  margin:26px auto!important;
  text-align:center!important;
  overflow:hidden;
}
@media(max-width:720px){
  .home-every-20-games-ad{
    margin:20px auto!important;
  }
}


/* v3.2.38-fix3
   Compact laptop game layout:
   On shorter/smaller desktop and laptop screens (including common 13-inch laptops/MacBooks),
   reduce the playable game width and reserve clean side space for desktop ad placements.
   Tablets and phones keep the normal full-width responsive game layout.
*/
@media (min-width: 1024px) and (max-width: 1500px) {
  body.game-page .game-shell,
  body.game-page .game-stage-wrap,
  body.game-page .game-player-wrap,
  body.game-page main .game-frame-wrap {
    width: min(100%, 1040px) !important;
    max-width: 1040px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.game-page .game-layout,
  body.game-page .game-main-layout {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* 13-inch class laptops: make the player a little smaller so both sides remain usable. */
@media (min-width: 1024px) and (max-width: 1366px) {
  body.game-page .game-shell,
  body.game-page .game-stage-wrap,
  body.game-page .game-player-wrap,
  body.game-page main .game-frame-wrap {
    width: min(100%, 920px) !important;
    max-width: 920px !important;
  }
}

/* Short laptop displays (MacBook 13 / compact Windows laptops). */
@media (min-width: 1024px) and (max-height: 850px) {
  body.game-page .game-shell,
  body.game-page .game-stage-wrap,
  body.game-page .game-player-wrap,
  body.game-page main .game-frame-wrap {
    width: min(100%, 960px) !important;
    max-width: 960px !important;
  }
}

/* Do not reserve desktop ad gutters on tablets/phones. */
@media (max-width: 1023px) {
  body.game-page .game-shell,
  body.game-page .game-stage-wrap,
  body.game-page .game-player-wrap,
  body.game-page main .game-frame-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* v3.2.38-fix4 — robust compact laptop player sizing */
@media (min-width: 1024px) and (max-width: 1440px) {
  body.game-page main,
  body.game-page .container,
  body.game-page .content-wrap {
    --compact-player-width: 900px;
  }
  body.game-page iframe,
  body.game-page .game-frame,
  body.game-page .game-player,
  body.game-page .game-container,
  body.game-page .player-container,
  body.game-page .game-embed,
  body.game-page .game-box {
    max-width: var(--compact-player-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
@media (min-width: 1024px) and (max-width: 1366px) {
  body.game-page main,
  body.game-page .container,
  body.game-page .content-wrap {
    --compact-player-width: 820px;
  }
}
@media (min-width: 1024px) and (max-height: 850px) {
  body.game-page iframe,
  body.game-page .game-frame,
  body.game-page .game-player,
  body.game-page .game-container,
  body.game-page .player-container,
  body.game-page .game-embed,
  body.game-page .game-box {
    max-width: 860px !important;
  }
}


/* v3.2.38-fix5 — ACTUAL game-stage sizing for compact laptops.
   Previous rule hit the iframe but the parent .game-stage stayed full width.
   This targets the real .game-stage shown on game.php. */
@media (min-width: 1024px) and (max-width: 1440px) {
  body.game-page .game-player-row:not(.has-left):not(.has-right) {
    display:flex !important;
    justify-content:center !important;
  }
  body.game-page .game-player-row:not(.has-left):not(.has-right) > .game-stage {
    width:min(900px, calc(100vw - 300px)) !important;
    max-width:900px !important;
    flex:0 1 900px !important;
    margin-inline:auto !important;
  }
}

/* 13-inch MacBook / compact laptops: reserve clearly visible gutters. */
@media (min-width: 1024px) and (max-width: 1366px) {
  body.game-page .game-player-row:not(.has-left):not(.has-right) > .game-stage {
    width:min(800px, calc(100vw - 320px)) !important;
    max-width:800px !important;
    flex-basis:800px !important;
  }
}

/* If left/right desktop ad slots are enabled, keep the player compact too. */
@media (min-width: 1024px) and (max-width: 1440px) {
  body.game-page .game-player-row.has-left > .game-stage,
  body.game-page .game-player-row.has-right > .game-stage,
  body.game-page .game-player-row.has-left.has-right > .game-stage {
    width:100% !important;
    max-width:900px !important;
    justify-self:center !important;
  }
}
@media (min-width: 1024px) and (max-width: 1366px) {
  body.game-page .game-player-row.has-left > .game-stage,
  body.game-page .game-player-row.has-right > .game-stage,
  body.game-page .game-player-row.has-left.has-right > .game-stage {
    max-width:800px !important;
  }
}

/* Phone/tablet stays normal and uses the available width. */
@media (max-width:1023px) {
  body.game-page .game-player-row > .game-stage {
    width:100% !important;
    max-width:none !important;
    flex:auto !important;
  }
}


/* v3.2.38-fix6 — compact Recently Played cards in user profile */
.profile-recent-grid{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:start;
}

.profile-recent-card{
  display:block;
  min-width:0;
  color:var(--text);
  text-decoration:none;
}

.profile-recent-thumb{
  position:relative;
  width:100%;
  aspect-ratio:1 / 1;
  overflow:hidden;
  border-radius:15px;
  background:#101722;
  border:1px solid #ffffff10;
}

.profile-recent-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .18s ease;
}

.profile-recent-card:hover .profile-recent-thumb img{
  transform:scale(1.035);
}

.profile-recent-play{
  position:absolute;
  left:50%;
  top:50%;
  width:42px;
  height:42px;
  border-radius:50%;
  transform:translate(-50%,-50%) scale(.88);
  display:grid;
  place-items:center;
  background:rgba(8,12,20,.78);
  color:#fff;
  border:1px solid #ffffff32;
  opacity:0;
  transition:.18s ease;
  font-size:13px;
}

.profile-recent-card:hover .profile-recent-play{
  opacity:1;
  transform:translate(-50%,-50%) scale(1);
}

.profile-recent-info{
  padding:9px 5px 2px;
  text-align:center!important;
  min-width:0;
}

.profile-recent-info strong{
  display:block;
  width:100%;
  color:var(--text);
  font-size:13px;
  line-height:1.3;
  font-weight:900;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.profile-recent-category{
  display:block;
  margin-top:4px;
  color:color-mix(in srgb,var(--primary) 70%,#aab5c5);
  font-size:10px;
  font-weight:800;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.profile-recent-info small{
  display:block;
  margin-top:3px;
  color:#7f8b9e;
  font-size:9px;
}

/* Light Mode */
html[data-theme="light"] .profile-recent-thumb{
  background:#fff;
  border-color:#dce3ed;
}
html[data-theme="light"] .profile-recent-info strong{
  color:#111827;
}
html[data-theme="light"] .profile-recent-info small{
  color:#718096;
}

/* Large laptops / MacBook */
@media(max-width:1366px){
  .profile-recent-grid{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:12px!important;
  }
}

/* Tablet */
@media(max-width:980px){
  .profile-recent-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:11px!important;
  }
}

/* Phones */
@media(max-width:720px){
  .profile-recent-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .profile-recent-info strong{font-size:12px}
}

/* Small phones */
@media(max-width:430px){
  .profile-recent-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .profile-recent-thumb{border-radius:12px}
}


/* v3.2.38-fix7 — center game screen in the visible viewport on entry */
.game-stage{
  scroll-margin-top:clamp(80px,10vh,140px);
  scroll-margin-bottom:clamp(30px,6vh,90px);
}

/* Keep comfortable visual breathing room around the player on all devices. */
.play-page .game-player-row{
  margin-top:clamp(10px,1.5vh,20px)!important;
  margin-bottom:clamp(14px,2vh,28px)!important;
}

/* Compact laptop screens: avoid player feeling too low because of oversized title/header space. */
@media(min-width:1024px) and (max-height:900px){
  .play-page{
    padding-top:6px!important;
  }
  .play-top{
    margin-bottom:8px!important;
  }
  .play-top h1{
    margin-bottom:6px!important;
  }
}

/* Phone/tablet: center logic still works, but keep enough room for touch controls. */
@media(max-width:1023px){
  .game-stage{
    scroll-margin-top:72px;
    scroll-margin-bottom:40px;
  }
}


/* v3.2.38-fix8 — safe game-page navigation on macOS browsers */
.game-stage{
  scroll-margin-top:0!important;
  scroll-margin-bottom:0!important;
}

/* Prevent browser anchor/focus scrolling from pushing the whole page to an empty region. */
body.game-page{
  overflow-anchor:none;
}

/* The stage remains centered horizontally and keeps a stable rendered box. */
body.game-page .game-stage{
  margin-left:auto!important;
  margin-right:auto!important;
  contain:layout paint;
}

/* Never let the game player create accidental horizontal document overflow. */
body.game-page .play-page,
body.game-page .game-player-row{
  max-width:100%!important;
  overflow-x:clip;
}


/* v3.2.38-fix9 — search results never stretch single/few game cards */
.search-results-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(150px,190px))!important;
  justify-content:start!important;
  align-items:start!important;
  gap:14px!important;
  width:100%!important;
}

.search-results-grid .game-card{
  width:100%!important;
  min-width:0!important;
  max-width:190px!important;
}

.search-results-grid .game-card img,
.search-results-grid .game-card .game-thumb,
.search-results-grid .game-card .thumb{
  width:100%!important;
  max-width:100%!important;
}

/* Compact laptops / MacBook */
@media(max-width:1366px){
  .search-results-grid{
    grid-template-columns:repeat(auto-fill,minmax(145px,175px))!important;
    gap:12px!important;
  }
  .search-results-grid .game-card{
    max-width:175px!important;
  }
}

/* Tablet */
@media(max-width:980px){
  .search-results-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  .search-results-grid .game-card{
    max-width:none!important;
  }
}

/* Phone */
@media(max-width:720px){
  .search-results-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:10px!important;
  }
}

/* Small phone */
@media(max-width:430px){
  .search-results-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}


/* v3.2.38-fix10 — macOS-safe game page
   No automatic scrolling/centering. Let browser load the page normally. */
body.game-page{
  overflow-anchor:auto!important;
}

body.game-page .game-stage{
  scroll-margin:0!important;
  contain:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Keep the player stable without forcing browser repaint tricks. */
body.game-page .game-player-row{
  overflow:visible!important;
}

/* Compact desktop/laptop sizing remains, but is CSS-only. */
@media(min-width:1024px) and (max-width:1366px){
  body.game-page .game-player-row:not(.has-left):not(.has-right){
    display:flex!important;
    justify-content:center!important;
  }
  body.game-page .game-player-row:not(.has-left):not(.has-right) > .game-stage{
    width:min(800px, calc(100vw - 320px))!important;
    max-width:800px!important;
    flex:0 1 800px!important;
  }
}

@media(min-width:1367px) and (max-width:1440px){
  body.game-page .game-player-row:not(.has-left):not(.has-right){
    display:flex!important;
    justify-content:center!important;
  }
  body.game-page .game-player-row:not(.has-left):not(.has-right) > .game-stage{
    width:min(900px, calc(100vw - 300px))!important;
    max-width:900px!important;
    flex:0 1 900px!important;
  }
}

/* Tablet/phone unaffected. */
@media(max-width:1023px){
  body.game-page .game-player-row > .game-stage{
    width:100%!important;
    max-width:100%!important;
    flex:auto!important;
  }
}


/* v3.2.38-fix11 — public Pages Light Mode readability */
html[data-theme="light"] .page-content,
html[data-theme="light"] .page-card,
html[data-theme="light"] .legal-page,
html[data-theme="light"] .article-page,
html[data-theme="light"] .page-wrap .article,
html[data-theme="light"] main .article{
  background:#ffffff!important;
  color:#263244!important;
  border-color:#d9e1ec!important;
  box-shadow:0 10px 30px rgba(25,35,55,.055)!important;
}

/* All page headings must be dark and readable in light mode. */
html[data-theme="light"] .page-content h1,
html[data-theme="light"] .page-content h2,
html[data-theme="light"] .page-content h3,
html[data-theme="light"] .page-content h4,
html[data-theme="light"] .page-card h1,
html[data-theme="light"] .page-card h2,
html[data-theme="light"] .page-card h3,
html[data-theme="light"] .legal-page h1,
html[data-theme="light"] .legal-page h2,
html[data-theme="light"] .legal-page h3,
html[data-theme="light"] .article-page h1,
html[data-theme="light"] .article-page h2,
html[data-theme="light"] .article-page h3,
html[data-theme="light"] main .article h1,
html[data-theme="light"] main .article h2,
html[data-theme="light"] main .article h3{
  color:#111827!important;
}

/* Body copy, list text and strong text. */
html[data-theme="light"] .page-content p,
html[data-theme="light"] .page-content li,
html[data-theme="light"] .page-card p,
html[data-theme="light"] .page-card li,
html[data-theme="light"] .legal-page p,
html[data-theme="light"] .legal-page li,
html[data-theme="light"] .article-page p,
html[data-theme="light"] .article-page li,
html[data-theme="light"] main .article p,
html[data-theme="light"] main .article li{
  color:#4f5f73!important;
}

html[data-theme="light"] .page-content strong,
html[data-theme="light"] .page-card strong,
html[data-theme="light"] .legal-page strong,
html[data-theme="light"] .article-page strong,
html[data-theme="light"] main .article strong{
  color:#1f2937!important;
}

/* Links use the site theme color and remain readable. */
html[data-theme="light"] .page-content a,
html[data-theme="light"] .page-card a,
html[data-theme="light"] .legal-page a,
html[data-theme="light"] .article-page a,
html[data-theme="light"] main .article a{
  color:var(--primary)!important;
}

/* Separators / blockquotes / tables if used in legal or information pages. */
html[data-theme="light"] .page-content hr,
html[data-theme="light"] .page-card hr,
html[data-theme="light"] .legal-page hr,
html[data-theme="light"] .article-page hr,
html[data-theme="light"] main .article hr{
  border-color:#e2e8f0!important;
}

html[data-theme="light"] .page-content blockquote,
html[data-theme="light"] .page-card blockquote,
html[data-theme="light"] .legal-page blockquote,
html[data-theme="light"] .article-page blockquote,
html[data-theme="light"] main .article blockquote{
  background:#f7f9fc!important;
  color:#4f5f73!important;
  border-color:var(--primary)!important;
}

/* Generic fallback for the exact public page panel used by older installs. */
html[data-theme="light"] .section > .box.page-body,
html[data-theme="light"] .section > .box.page-content,
html[data-theme="light"] .section > .box.article{
  background:#fff!important;
  color:#263244!important;
  border-color:#d9e1ec!important;
}

/* Mobile/tablet pages remain comfortably padded. */
@media(max-width:720px){
  html[data-theme="light"] .page-content,
  html[data-theme="light"] .page-card,
  html[data-theme="light"] .legal-page,
  html[data-theme="light"] .article-page,
  html[data-theme="light"] main .article{
    padding:20px!important;
  }
}


html[data-theme="light"] .public-page-content{
  background:#ffffff!important;
  color:#263244!important;
  border-color:#d9e1ec!important;
  box-shadow:0 10px 30px rgba(25,35,55,.055)!important;
}
html[data-theme="light"] .public-page-content h1,
html[data-theme="light"] .public-page-content h2,
html[data-theme="light"] .public-page-content h3,
html[data-theme="light"] .public-page-content h4{
  color:#111827!important;
}
html[data-theme="light"] .public-page-content p,
html[data-theme="light"] .public-page-content li{
  color:#4f5f73!important;
}
html[data-theme="light"] .public-page-content a{
  color:var(--primary)!important;
}


/* v3.2.38-fix12 — game-card play icon contrast in Light Mode */
html[data-theme="light"] .game-card .play-hover{
  background:rgba(255,255,255,.96)!important;
  color:#111827!important;
  border:1px solid #d6deea!important;
  box-shadow:0 8px 24px rgba(15,23,42,.18)!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
html[data-theme="light"] .game-card:hover .play-hover{
  background:var(--primary)!important;
  color:#fff!important;
  border-color:var(--primary)!important;
}
.game-card:focus-visible .play-hover{
  opacity:1!important;
  transform:translate(-50%,-50%) scale(1)!important;
}


/* v3.2.38-fix13 — no blank holes when the every-20-games ad is not configured */
.home-games-inline-ad{
  grid-column:1 / -1;
  width:100%;
}
.home-games-inline-ad:empty{
  display:none!important;
}
.game-grid{
  grid-auto-flow:row dense!important;
}


/* v3.2.38-fix15 — consistent top pills, pagination and Blog Light Mode */

/* All Games / New / Trending / Blog use exactly the same pill treatment as categories. */
.category-strip > a{
  text-decoration:none;
}

/* Pagination: clear site-color buttons in both themes. */
.home-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:9px;
  margin-top:28px;
}
.home-pagination a,
.home-pagination .page-dots{
  min-width:40px;
  height:40px;
  padding:0 13px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #293449;
  background:#111927;
  color:#dfe6f1!important;
  font-weight:800;
  text-decoration:none!important;
  line-height:1;
}
.home-pagination a:hover{
  border-color:var(--primary);
  color:#fff!important;
  background:color-mix(in srgb,var(--primary) 28%,#111927);
}
.home-pagination a.active{
  background:linear-gradient(135deg,var(--primary),var(--accent));
  border-color:transparent;
  color:#fff!important;
  box-shadow:0 7px 20px color-mix(in srgb,var(--primary) 25%,transparent);
}
.home-pagination .page-prev,
.home-pagination .page-next{
  min-width:auto;
  padding-inline:17px;
}

/* Light Mode pagination — fixes black/blank-looking number and Next buttons. */
html[data-theme="light"] .home-pagination a,
html[data-theme="light"] .home-pagination .page-dots{
  background:#ffffff;
  border-color:#d5dde9;
  color:#253247!important;
  box-shadow:0 3px 10px rgba(20,30,50,.045);
}
html[data-theme="light"] .home-pagination a:hover{
  background:#f3f0ff;
  border-color:color-mix(in srgb,var(--primary) 55%,#d5dde9);
  color:var(--primary)!important;
}
html[data-theme="light"] .home-pagination a.active{
  background:linear-gradient(135deg,var(--primary),var(--accent));
  border-color:transparent;
  color:#fff!important;
}
html[data-theme="light"] .home-pagination .page-prev,
html[data-theme="light"] .home-pagination .page-next{
  color:#253247!important;
}
html[data-theme="light"] .home-pagination .page-prev:hover,
html[data-theme="light"] .home-pagination .page-next:hover{
  color:var(--primary)!important;
}

/* Blog cards in Light Mode */
html[data-theme="light"] .blog-card{
  background:#ffffff!important;
  border-color:#d9e1ec!important;
  color:#263244!important;
  box-shadow:0 8px 24px rgba(20,30,50,.045);
}
html[data-theme="light"] .blog-card h2,
html[data-theme="light"] .blog-card h2 a{
  color:#111827!important;
}
html[data-theme="light"] .blog-card h2 a:hover{
  color:var(--primary)!important;
}
html[data-theme="light"] .blog-card p{
  color:#5f6d82!important;
}
html[data-theme="light"] .blog-card small{
  color:#6f7d90!important;
}
html[data-theme="light"] .blog-card .btn{
  color:#fff!important;
}

/* Blog page heading/subtitle */
html[data-theme="light"] .section-head h1,
html[data-theme="light"] .section-head h2{
  color:#111827;
}
html[data-theme="light"] .section-head p{
  color:#66758a!important;
}

@media(max-width:720px){
  .home-pagination{gap:7px}
  .home-pagination a,
  .home-pagination .page-dots{
    min-width:36px;
    height:36px;
    padding:0 10px;
    border-radius:9px;
  }
  .home-pagination .page-prev,
  .home-pagination .page-next{
    padding-inline:12px;
  }
}


/* v3.2.38-fix18 — Games/New/Trending pagination: centered + correct Light/Dark Mode */
.pagination{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:wrap!important;
  gap:9px!important;
  margin:32px auto 24px!important;
}
.pagination a{
  min-width:40px!important;
  height:40px!important;
  padding:0 13px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:10px!important;
  border:1px solid #293449!important;
  background:#111927!important;
  color:#dfe6f1!important;
  text-decoration:none!important;
  font-weight:800!important;
  line-height:1!important;
  box-shadow:none!important;
}
.pagination a:hover{
  border-color:var(--primary)!important;
  color:#fff!important;
}
.pagination a.active{
  background:linear-gradient(135deg,var(--primary),var(--accent))!important;
  border-color:transparent!important;
  color:#fff!important;
}
.pagination a.page-nav{
  width:auto!important;
  padding-inline:17px!important;
}
html[data-theme="light"] .pagination a{
  background:#eef2f7!important;
  border-color:#e1e6ee!important;
  color:#536174!important;
  box-shadow:none!important;
}
html[data-theme="light"] .pagination a:hover{
  background:#e9e5ff!important;
  border-color:color-mix(in srgb,var(--primary) 45%,#e1e6ee)!important;
  color:var(--primary)!important;
}
html[data-theme="light"] .pagination a.active{
  background:linear-gradient(135deg,var(--primary),var(--accent))!important;
  border-color:transparent!important;
  color:#fff!important;
}
@media(max-width:520px){
  .pagination{gap:6px!important;margin-top:26px!important}
  .pagination a{min-width:36px!important;height:36px!important;padding:0 10px!important;font-size:12px!important}
  .pagination a.page-nav{padding-inline:12px!important}
}

/* fix26 */
html[data-theme="light"] .notice{background:#e9f8ef!important;border-color:#9dd7b3!important;color:#155b35!important}
html[data-theme="light"] .notice strong,html[data-theme="light"] .notice a{color:#0e4a2a!important}
html[data-theme="light"] .notice.error,html[data-theme="light"] .error.notice{background:#fff0f2!important;border-color:#efb6bf!important;color:#8b1e32!important}
.profile-saved-grid{width:100%}
.game-stage>iframe,.game-stage>embed,.game-stage>object{width:100%!important;height:100%!important;max-width:100%!important;border:0}
