﻿@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root{--bg:#101126;--surface:#17192f;--surface2:#1d203b;--text:#f8f8ff;--muted:#a6a8c3;--purple:#8b5cf6;--cyan:#5ee7f7;--pink:#ff77bd;--line:rgba(255,255,255,.09);--radius:20px}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{margin:0;background:var(--bg);color:var(--text);font-family:'DM Sans',sans-serif;line-height:1.6}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
.container{width:min(1160px,calc(100% - 44px));margin-inline:auto}
.site-header{height:78px;display:flex;align-items:center;border-bottom:1px solid var(--line);background:rgba(16,17,38,.94);position:sticky;top:0;z-index:20;backdrop-filter:blur(16px)}
.nav-wrap{display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand{display:inline-flex;align-items:center;gap:10px;font-family:'Space Grotesk',sans-serif;font-size:20px;font-weight:700;white-space:nowrap}
.brand-mark{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:linear-gradient(135deg,#9a68ff,#5b52e8);box-shadow:0 7px 25px #7554f344;font-size:17px;color:white;transform:rotate(-4deg)}
.brand-mark span{color:#8ff4ed}
.brand-accent{color:#a995ff}
.main-nav{display:flex;align-items:center;gap:30px;color:var(--muted);font-size:13px;font-weight:600}
.main-nav a{transition:color .2s}.main-nav a:hover,.main-nav a.active{color:white}
.nav-cta{display:flex;align-items:center;gap:12px;padding:11px 16px;border:1px solid #51437c;background:#292247;border-radius:12px;font-size:12px;font-weight:700}
.nav-cta span{color:var(--cyan);font-size:17px}
.menu-toggle{display:none;background:transparent;border:1px solid var(--line);border-radius:10px;color:white;padding:7px 11px}
.hero{position:relative;overflow:hidden;padding:84px 0 76px;background:radial-gradient(ellipse at 77% 45%,#29204f 0%,transparent 42%),linear-gradient(120deg,#121329,#15152e 55%,#17132d)}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:46px;position:relative;z-index:1}
.eyebrow,.section-kicker{font-size:10px;letter-spacing:1.7px;font-weight:700;color:#b5a5ff}
.eyebrow{display:inline-flex;align-items:center;gap:9px;padding:9px 12px;border:1px solid #514477;border-radius:8px;background:#292044;margin-bottom:24px}
.live-dot{width:7px;height:7px;border-radius:50%;background:#6cf3d2;box-shadow:0 0 12px #6cf3d2}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{font-family:'Space Grotesk',sans-serif}
h1{font-size:clamp(43px,5.2vw,68px);line-height:1.06;letter-spacing:-2.9px;margin-bottom:23px}
.gradient-text{background:linear-gradient(95deg,#9d83ff 8%,#ed8fdb 53%,#75e8f0 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-description{max-width:510px;color:#b5b6d0;font-size:15px;line-height:1.9;margin-bottom:28px}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:17px;min-height:48px;padding:0 19px;border-radius:12px;font-size:12px;font-weight:700;transition:transform .2s,filter .2s}
.button:hover{transform:translateY(-2px);filter:brightness(1.08)}
.button-primary{background:linear-gradient(110deg,#9164fa,#7653e8);box-shadow:0 10px 28px #7953ee33}
.button-primary span,.button-light span{font-size:18px}
.button-secondary{border:1px solid #454260;background:#211f3b;color:#e5e3f6}
.hero-note{margin-top:23px;color:#989bb9;font-size:11px}.hero-note span{color:#71eed1;margin-right:6px}
.hero-art{position:relative;min-height:390px;display:grid;place-items:center}
.art-orbit{position:absolute;border:1px solid #a58aff24;border-radius:50%;transform:rotate(-22deg)}
.orbit-one{width:400px;height:300px}.orbit-two{width:310px;height:380px;transform:rotate(36deg)}
.hero-console{position:relative;z-index:2;width:min(330px,80%);padding:16px 16px 22px;border:1px solid #aaa0ff66;border-radius:26px;background:linear-gradient(145deg,#9b7dff,#5946c6 45%,#393b86);box-shadow:0 30px 75px #06061188,0 0 65px #8864ff24;transform:rotate(-5deg)}
.console-screen{height:226px;position:relative;overflow:hidden;border:8px solid #222343;border-radius:14px;background:linear-gradient(180deg,#75dafa 0%,#c2a7ff 57%,#ffb5dd 100%)}
.screen-sun{position:absolute;right:26px;top:22px;width:40px;height:40px;background:#fff0a5;border-radius:50%;box-shadow:0 0 30px #fff0a566}
.screen-cloud{position:absolute;width:67px;height:17px;border-radius:20px;background:#ffffffa8}.screen-cloud:before,.screen-cloud:after{content:"";position:absolute;bottom:0;background:inherit;border-radius:50%}.screen-cloud:before{width:25px;height:25px;left:12px}.screen-cloud:after{width:20px;height:20px;left:32px}.cloud-a{top:54px;left:19px}.cloud-b{top:84px;right:5px;transform:scale(.7)}
.screen-hill{position:absolute;bottom:0;width:120%;height:94px;border-radius:50% 50% 0 0}.hill-back{left:-24%;background:#8879e9;bottom:24px}.hill-front{right:-28%;background:#4aafaa;bottom:-28px}
.screen-character{position:absolute;z-index:2;bottom:27px;left:43%;font-size:57px;filter:drop-shadow(0 9px 3px #1b205544);transform:rotate(4deg)}
.screen-platform{position:absolute;z-index:3;bottom:17px;left:30%;width:100px;height:9px;background:#f7d5ff;border-radius:9px}
.console-controls{height:33px;display:flex;align-items:center;justify-content:space-between;padding:13px 12px 0;color:#211c56}
.control-cross{font-size:24px}.control-button{width:22px;height:22px;border-radius:50%;display:inline-block;border:3px solid #282052;box-shadow:inset 0 0 0 4px #a9a0f4}.button-b{margin-left:10px}
.floating-chip{position:absolute;z-index:3;display:grid;place-items:center;border:1px solid #ffffff30;box-shadow:0 15px 40px #0003}
.chip-star{top:36px;right:56px;width:54px;height:54px;background:#ffbb69;border-radius:17px;color:#7a3d8b;font-size:31px;transform:rotate(12deg)}
.chip-bolt{bottom:40px;left:32px;width:52px;height:52px;background:#7de9e2;border-radius:16px;color:#5142b8;font-size:27px;transform:rotate(-12deg)}
.chip-heart{top:68px;left:42px;width:42px;height:42px;background:#ff8fc6;border-radius:50%;color:#923c83;font-size:21px}
.art-caption{position:absolute;z-index:4;right:0;bottom:8px;display:flex;align-items:center;gap:11px;padding:12px 16px;border:1px solid #ffffff22;border-radius:15px;background:#191831dd;box-shadow:0 12px 35px #0003}
.caption-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#39305c;font-size:21px}
.art-caption strong,.art-caption small{display:block}.art-caption strong{font-size:11px}.art-caption small{color:#a8a5c3;font-size:10px;margin-top:3px}
.hero-glow{position:absolute;width:320px;height:320px;border-radius:50%;filter:blur(90px);opacity:.12}.glow-one{background:#8e63ff;top:0;right:10%}.glow-two{background:#e35fba;bottom:-220px;left:10%}
.quick-stats{border-block:1px solid var(--line);background:#14152a}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);padding:23px 0}
.stats-grid>div{display:flex;align-items:center;justify-content:center;gap:13px;border-right:1px solid var(--line)}.stats-grid>div:last-child{border:0}
.stat-icon{display:grid;place-items:center;width:43px;height:43px;background:#272442;border-radius:13px;font-size:20px}
.stats-grid strong,.stats-grid small{display:block}.stats-grid strong{font-size:12px}.stats-grid small{font-size:10px;color:var(--muted);margin-top:3px}
.section{padding:82px 0}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:29px}
.section-kicker{font-size:9px}
.section-heading h2{font-size:clamp(28px,3vw,38px);letter-spacing:-1.3px;margin:8px 0 7px}
.section-heading p{color:var(--muted);font-size:12px;margin-bottom:0}
.text-link{font-size:11px;font-weight:700;color:#c4b5fd;white-space:nowrap;padding-bottom:5px}.text-link span{margin-left:8px;font-size:17px}
.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:13px}
.category-card{min-height:145px;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:18px;border:1px solid var(--line);border-radius:17px;overflow:hidden;transition:transform .2s,border-color .2s}
.category-card:hover{transform:translateY(-4px);border-color:#a99aff77}
.category-card:after{content:"";position:absolute;width:90px;height:90px;border-radius:50%;right:-35px;top:-32px;background:currentColor;opacity:.07}
.category-icon{font-size:31px;margin-bottom:14px}.category-name{font-size:12px;font-weight:700}.category-arrow{position:absolute;right:13px;bottom:14px;font-size:15px;opacity:.65}
.category-purple{background:linear-gradient(145deg,#292147,#1b1b32);color:#c1a5ff}.category-orange{background:linear-gradient(145deg,#38251f,#211b2e);color:#ffb17d}.category-blue{background:linear-gradient(145deg,#1c3046,#1b1b32);color:#8fd5ff}.category-green{background:linear-gradient(145deg,#1c3937,#1b1b32);color:#8fe8c2}.category-pink{background:linear-gradient(145deg,#3b2341,#1b1b32);color:#ffa6df}.category-yellow{background:linear-gradient(145deg,#3b3420,#1b1b32);color:#ffe08a}
.games-section{background:#131429;border-block:1px solid var(--line)}
.game-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}
.search-box{display:flex;align-items:center;gap:10px;width:260px;padding:0 13px;border:1px solid #34354f;border-radius:11px;background:#191a30;color:#a5a7c1}
.search-box>span{font-size:24px}.search-box input{width:100%;min-width:0;background:transparent;border:0;outline:0;color:white;font-size:11px;padding:12px 0}.search-box input::placeholder{color:#777b9b}
.filter-list{display:flex;flex-wrap:wrap;gap:7px}.filter-button{border:1px solid #34354f;border-radius:9px;background:#1b1c32;color:#aeb0ca;padding:9px 12px;font-size:10px;cursor:pointer}.filter-button:hover,.filter-button.selected{background:#453477;border-color:#7258bd;color:white}
.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}
.game-card{overflow:hidden;border:1px solid #ffffff12;border-radius:17px;background:#1a1b31;transition:transform .2s,border-color .2s}.game-card:hover{transform:translateY(-4px);border-color:#9c8aff55}
.game-cover{height:174px;position:relative;display:grid;place-items:center;overflow:hidden}
.game-cover:before,.game-cover:after{content:"";position:absolute;border:1px solid #ffffff22;border-radius:50%;width:220px;height:220px}.game-cover:after{width:150px;height:150px}
.game-purple{background:linear-gradient(135deg,#5535a6,#b054b7)}.game-green{background:linear-gradient(135deg,#145e54,#a5ce6d)}.game-blue{background:linear-gradient(135deg,#1767a1,#69d5e9)}.game-orange{background:linear-gradient(135deg,#a7442e,#ffc66e)}.game-pink{background:linear-gradient(135deg,#7e357d,#fa8ab9)}.game-yellow{background:linear-gradient(135deg,#947025,#f6d879)}
.game-cover-glow{position:absolute;width:110px;height:110px;border-radius:50%;background:#ffffff28;filter:blur(10px)}
.game-emoji{z-index:1;font-size:69px;filter:drop-shadow(0 10px 10px #1b163866);transition:transform .25s}.game-card:hover .game-emoji{transform:scale(1.1) rotate(-5deg)}
.game-tag{position:absolute;top:13px;left:13px;padding:5px 7px;border-radius:6px;background:#15152cc9;border:1px solid #ffffff28;font-size:8px;letter-spacing:.7px;font-weight:700}
.game-number{position:absolute;right:13px;bottom:7px;color:#ffffff80;font-family:'Space Grotesk',sans-serif;font-size:25px;font-weight:700}
.game-info{padding:17px}
.game-meta{display:flex;justify-content:space-between;gap:8px;font-size:9px;color:#aaa8c8}.game-rating{color:#ffd48a}
.game-info h3{font-size:18px;letter-spacing:-.4px;margin:9px 0 5px}.game-info p{min-height:38px;color:#a7a8c1;font-size:11px;line-height:1.7;margin-bottom:15px}
.play-button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:11px 12px;border:1px solid #7258bd;border-radius:9px;background:linear-gradient(110deg,#39305f,#292443);color:#ffffff;font-size:10px;font-weight:700;cursor:pointer;opacity:1;text-decoration:none;transition:background .2s,border-color .2s,transform .2s,box-shadow .2s}.play-button:hover{background:linear-gradient(110deg,#514080,#373057);border-color:#a18aff;box-shadow:0 5px 18px #7258bd30;transform:translateY(-1px)}.play-button:focus-visible{outline:2px solid #b5a2ff;outline-offset:3px}.play-button span{font-size:16px}
.empty-state{padding:28px;text-align:center;color:var(--muted);font-size:13px}
.launch-note{display:flex;align-items:flex-start;gap:13px;margin-top:25px;padding:17px;border:1px solid #64538c66;border-radius:13px;background:#24203a}.launch-note>span{font-size:23px}.launch-note p{font-size:11px;color:#b8b4d0;margin:0;line-height:1.8}.launch-note strong{color:#fff}
.community-section{padding:75px 0}
.community-card{display:flex;align-items:center;gap:24px;padding:35px 39px;border:1px solid #ffffff20;border-radius:23px;background:radial-gradient(ellipse at 80% 10%,#6950a944,transparent 45%),linear-gradient(110deg,#252044,#1b1c34)}
.community-icon{display:grid;place-items:center;flex-shrink:0;width:58px;height:58px;border-radius:17px;background:#51407a;font-size:29px}
.community-card>div:nth-child(2){flex:1}.community-card h2{font-size:25px;letter-spacing:-.8px;margin:7px 0}.community-card p{font-size:11px;color:#b5b4ce;margin:0}
.button-light{background:#f4f0ff;color:#24203b;white-space:nowrap}
.site-footer{border-top:1px solid var(--line);background:#0d0e20}
.footer-main{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px 0}
.footer-brand{font-size:17px}.footer-brand .brand-mark{width:33px;height:33px;font-size:14px}
.footer-main>p{color:#999bb6;font-size:10px;margin:0}
.footer-links{display:flex;gap:19px;color:#aeb0c8;font-size:10px}.footer-links a:hover{color:white}
.footer-bottom{display:flex;justify-content:space-between;gap:20px;padding:16px 0 20px;border-top:1px solid var(--line);font-size:9px;color:#747793}
[hidden]{display:none!important}
@media(max-width:1000px){.main-nav{gap:17px}.hero-grid{gap:20px}.category-grid{grid-template-columns:repeat(3,1fr)}.game-toolbar{align-items:flex-start;flex-direction:column}.search-box{width:100%;max-width:380px}.filter-list{gap:6px}}
@media(max-width:720px){.container{width:min(100% - 30px,520px)}.site-header{height:68px}.brand{font-size:18px}.nav-cta{display:none}.menu-toggle{display:block;margin-left:auto}.main-nav{display:none;position:absolute;left:15px;right:15px;top:62px;padding:17px;border:1px solid var(--line);border-radius:14px;background:#191a30;flex-direction:column;align-items:stretch;gap:0}.main-nav.open{display:flex}.main-nav a{padding:11px 8px}.hero{padding:55px 0 35px}.hero-grid{grid-template-columns:1fr;gap:12px}.hero-copy{text-align:center}.eyebrow{font-size:8px;letter-spacing:1px}.hero-description{margin-inline:auto;font-size:13px}.hero-actions{justify-content:center}.hero-note{font-size:10px}.hero-art{min-height:340px}.hero-console{width:260px}.console-screen{height:185px}.art-orbit.orbit-one{width:310px;height:240px}.art-orbit.orbit-two{width:250px;height:310px}.chip-star{right:10px;top:22px}.chip-heart{left:6px;top:45px}.chip-bolt{left:5px;bottom:24px}.art-caption{right:0;bottom:0}.stats-grid{gap:13px;padding:18px 0}.stats-grid>div{justify-content:flex-start;gap:8px}.stats-grid>div:nth-child(2){border:0}.stats-grid>div:last-child{display:none}.stat-icon{width:34px;height:34px;font-size:16px}.stats-grid strong{font-size:10px}.stats-grid small{font-size:8px}.section{padding:56px 0}.section-heading{align-items:flex-start;flex-direction:column;gap:12px}.section-heading h2{font-size:31px}.category-grid{grid-template-columns:repeat(2,1fr);gap:10px}.category-card{min-height:119px;padding:14px}.category-icon{font-size:27px;margin-bottom:9px}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.game-cover{height:130px}.game-emoji{font-size:52px}.game-info{padding:12px}.game-info h3{font-size:15px}.game-info p{font-size:10px;min-height:50px}.game-meta{font-size:8px}.filter-list{max-width:100%}.filter-button{padding:8px 9px;font-size:9px}.community-card{padding:23px;flex-wrap:wrap;gap:15px}.community-icon{width:45px;height:45px;font-size:23px}.community-card>div:nth-child(2){min-width:calc(100% - 65px)}.community-card h2{font-size:21px}.community-card .button{margin-left:60px}.footer-main{align-items:flex-start;flex-direction:column;gap:13px}.footer-bottom{font-size:8px}}
@media(max-width:390px){.game-grid{grid-template-columns:1fr}.game-cover{height:165px}.stats-grid>div{gap:6px}.stats-grid small{max-width:95px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
/* KidsGamers compact game-portal layout */
.games-section { padding-top: 18px; padding-bottom: 40px; }
.games-section .section-heading { display: none; }
.games-section .game-toolbar { display: flex; justify-content: flex-start; margin: 0 0 18px; }
.games-section .search-box { max-width: 280px; }
.games-section .filter-list { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; max-width: 100%; padding: 2px 2px 8px; scrollbar-width: thin; scrollbar-color: #62508e #171528; }
.games-section .filter-button { flex: 0 0 auto; white-space: nowrap; border-radius: 8px; padding: 9px 13px; font-size: 11px; background: #1b1b32; color: #b9b7d2; border: 1px solid #363451; cursor: pointer; }
.games-section .filter-button:hover, .games-section .filter-button.selected { background: #493579; border-color: #8c70dc; color: #fff; }
.games-section .game-toolbar { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 14px; }
.games-section .search-box { max-width: 280px; }
@media (max-width: 560px) {
  .games-section .search-box { max-width: none; width: 100%; }
}
.games-section .game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.games-section .game-card { min-width: 0; border: 1px solid #34304f; border-radius: 8px; background: #171528; overflow: hidden; transition: transform .18s, border-color .18s, box-shadow .18s; }
.games-section .game-card:hover { transform: translateY(-3px); border-color: #8063d9; box-shadow: 0 6px 20px #0004; }
.games-section .game-cover { height: auto; aspect-ratio: 1.2 / 1; position: relative; }
.games-section .game-emoji { font-size: clamp(36px, 5vw, 68px); z-index: 1; }
.games-section .game-cover-glow,
.games-section .game-tag,
.games-section .game-number,
.games-section .game-meta,
.games-section .game-info p,
.games-section .play-button,
.games-section .empty-state + .launch-note { display: none !important; }
.games-section .game-info { padding: 8px 9px 10px; }
.games-section .game-info h3 { margin: 0; font-size: 12px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-cover-link { position: absolute; inset: 0; z-index: 2; display: block; cursor: pointer; }
.site-footer { margin-top: 10px; }
@media (max-width: 900px) {
  .games-section .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
}
@media (max-width: 560px) {
  .games-section .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .games-section .game-toolbar { margin-bottom: 12px; }
  .games-section .search-box { max-width: none; width: 100%; }
}
/* KidsGamers homepage polish - October 2026 */
.category-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}
.category-icon {
    font-size: 25px;
    line-height: 1.2;
    margin-bottom: 0;
}
.category-name {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}
.games-section .game-grid {
    align-items: stretch;
}
.games-section .game-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.games-section .game-info {
    flex: 1;
}
.games-section .game-cover {
    aspect-ratio: 1.2 / 1;
}
.games-section .game-emoji {
    max-width: 92%;
    overflow-wrap: anywhere;
    text-align: center;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
}
@media (max-width: 560px) {
    .category-name {
        font-size: 12px;
    }
    .games-section .game-emoji {
        font-size: clamp(24px, 7vw, 38px);
    }
}
/* End homepage polish */

/* Premium KidsGamers colorful SVG category filters */
.games-section .filter-list {
    display:flex; flex-wrap:nowrap; align-items:stretch; gap:12px;
    width:100%; max-width:100%; margin-top:20px; padding:4px 3px 14px;
    overflow-x:auto; scrollbar-width:thin; scrollbar-color:#6652a0 #171528;
}
.games-section .filter-button {
    box-sizing:border-box; display:inline-flex; flex:0 0 100px;
    flex-direction:column; align-items:center; justify-content:center;
    gap:9px; height:100px; padding:10px 6px;
    border:1px solid #34334f; border-radius:16px;
    background:linear-gradient(145deg,#22213d,#17172c);
    color:#d0cbea; font-size:11px; font-weight:700;
    line-height:1.25; text-align:center; white-space:normal; cursor:pointer;
    transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.games-section .filter-button .category-icon {
    box-sizing:border-box; display:flex; flex:0 0 48px;
    align-items:center; justify-content:center; width:48px; height:48px;
    border:1px solid #554a7a; border-radius:15px;
    background:linear-gradient(145deg,#393052,#25203b);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 4px 12px rgba(0,0,0,.18);
}
.games-section .filter-button .category-icon svg {
    display:block; width:39px; height:39px; overflow:visible;
    filter:drop-shadow(0 2px 2px rgba(0,0,0,.25));
}
.games-section .filter-button:hover {
    transform:translateY(-3px); border-color:#8e72dc; color:#fff;
}
.games-section .filter-button.selected {
    border-color:#a78bfa;
    background:linear-gradient(145deg,#49347b,#2b2450);
    color:#fff; box-shadow:0 7px 22px rgba(117,82,205,.25);
}
.games-section .filter-button.selected .category-icon {
    border-color:#a994ef; background:linear-gradient(145deg,#514078,#30234f);
}
.games-section .filter-button:focus-visible {
    outline:2px solid #c4b5fd; outline-offset:3px;
}
@media(max-width:560px) {
    .games-section .filter-list { gap:8px; margin-top:16px; }
    .games-section .filter-button { flex-basis:88px; height:92px; border-radius:13px; font-size:10px; }
    .games-section .filter-button .category-icon { flex-basis:43px; width:43px; height:43px; border-radius:12px; }
    .games-section .filter-button .category-icon svg { width:35px; height:35px; }
}

/* Full-width category alignment */
@media (min-width: 561px) {
    .games-section .filter-list {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 12px;
        overflow-x: visible;
        width: 100%;
        box-sizing: border-box;
    }
    .games-section .filter-button {
        width: 100%;
        min-width: 0;
        max-width: none;
        flex: initial;
    }
}
@media (max-width: 560px) {
    .games-section .filter-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}
/* End premium category filters */

/* Premium game cards - controlled homepage update */
.games-section .section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.games-section .game-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}

.games-section .game-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #393451;
    border-radius: 15px;
    background: linear-gradient(160deg, #201d38, #151426);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.games-section .game-card:hover {
    transform: translateY(-4px);
    border-color: #8c70dc;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .26);
}

.games-section .game-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1.35 / 1;
    height: auto;
    overflow: hidden;
}

.games-section .game-cover-glow {
    display: block;
}

.games-section .game-emoji {
    font-size: clamp(38px, 4vw, 62px);
}

.games-section .game-tag {
    display: block;
    z-index: 3;
}

.games-section .game-number {
    display: block;
}

.games-section .game-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px;
}

.games-section .game-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
}

.games-section .game-info h3 {
    margin: 10px 0 7px;
    font-size: 16px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}

.games-section .game-info p {
    display: block;
    min-height: 55px;
    margin: 0 0 15px;
    color: #b5b3ce;
    font-size: 12px;
    line-height: 1.7;
}

.games-section .play-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding: 12px 13px;
    border: 1px solid #7258bd;
    border-radius: 9px;
    background: linear-gradient(110deg, #493579, #292443);
    color: #fff;
    font-size: 12px;
    text-decoration: none;
}

.games-section .play-button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.games-section .empty-state + .launch-note {
    display: block;
}

@media (max-width: 900px) {
    .games-section .game-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 560px) {
    .games-section .section-heading {
        display: flex;
        margin-bottom: 18px;
    }

    .games-section .game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .games-section .game-cover {
        aspect-ratio: 1.1 / 1;
    }

    .games-section .game-info {
        padding: 11px;
    }

    .games-section .game-info h3 {
        font-size: 14px;
    }

    .games-section .game-info p {
        min-height: 65px;
        font-size: 11px;
    }

    .games-section .game-meta {
        flex-wrap: wrap;
        font-size: 9px;
    }

    .games-section .play-button {
        padding: 11px 10px;
        font-size: 11px;
    }
}
/* End premium game cards */

/* Fix: restore game-card content hidden by earlier important rules */
.games-section .game-cover-glow {
    display: block !important;
}

.games-section .game-tag,
.games-section .game-number {
    display: block !important;
}

.games-section .game-meta {
    display: flex !important;
}

.games-section .game-info p {
    display: block !important;
}

.games-section .play-button {
    display: flex !important;
}



/* KidsGamers WebP thumbnail styles */
.game-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #17182f;
}

.game-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.04);
}

.game-cover {
    position: relative;
    overflow: hidden;
}

.game-cover-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.game-card:hover .game-cover-image {
    transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
    .game-card-image img,
    .game-cover-image {
        transition: none;
    }
}


/* KidsGamers Premium Category Menu V2 */
.category-filters,
.category-filter,
.category-tabs,
.category-menu,
.categories-grid,
.game-categories,
.filter-categories {
    gap: 12px;
}

.category-filters button,
.category-filters a,
.category-filter button,
.category-filter a,
.category-tabs button,
.category-tabs a,
.category-menu button,
.category-menu a,
.categories-grid button,
.categories-grid a,
.game-categories button,
.game-categories a,
.filter-categories button,
.filter-categories a {
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    min-height: 76px;
    padding: 13px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(174, 151, 255, 0.18);
    border-radius: 17px;
    background: linear-gradient(145deg, #211e3a 0%, #17172d 100%);
    color: #e8e5ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035),
                0 5px 14px rgba(0,0,0,.10);
    transition: border-color .2s ease,
                background .2s ease,
                transform .2s ease,
                box-shadow .2s ease;
    cursor: pointer;
}

.category-filters button:hover,
.category-filters a:hover,
.category-filter button:hover,
.category-filter a:hover,
.category-tabs button:hover,
.category-tabs a:hover,
.category-menu button:hover,
.category-menu a:hover,
.categories-grid button:hover,
.categories-grid a:hover,
.game-categories button:hover,
.game-categories a:hover,
.filter-categories button:hover,
.filter-categories a:hover {
    border-color: rgba(173, 139, 255, .75);
    background: linear-gradient(145deg, #342653 0%, #211e3a 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(112, 72, 210, .18);
}

.category-filters .active,
.category-filters .selected,
.category-filters [aria-pressed="true"],
.category-filters [aria-current="true"],
.category-filter .active,
.category-filter .selected,
.category-filter [aria-pressed="true"],
.category-tabs .active,
.category-tabs .selected,
.category-tabs [aria-pressed="true"],
.category-menu .active,
.category-menu .selected,
.categories-grid .active,
.categories-grid .selected,
.game-categories .active,
.game-categories .selected,
.filter-categories .active,
.filter-categories .selected {
    border-color: #a78bfa;
    background: linear-gradient(135deg, #50357f 0%, #30234f 100%);
    color: #ffffff;
    box-shadow: 0 7px 22px rgba(139, 92, 246, .19),
                inset 0 1px 0 rgba(255,255,255,.10);
}

.category-filters button:focus-visible,
.category-filters a:focus-visible,
.category-filter button:focus-visible,
.category-filter a:focus-visible,
.category-tabs button:focus-visible,
.category-tabs a:focus-visible,
.category-menu button:focus-visible,
.category-menu a:focus-visible,
.categories-grid button:focus-visible,
.categories-grid a:focus-visible,
.game-categories button:focus-visible,
.game-categories a:focus-visible,
.filter-categories button:focus-visible,
.filter-categories a:focus-visible {
    outline: 2px solid #67e8f9;
    outline-offset: 3px;
}

/* Refined search field */
input[type="search"],
input[placeholder*="Find your next game" i],
.search-input,
.game-search input {
    box-sizing: border-box;
    border: 1px solid #393653;
    border-radius: 13px;
    background: linear-gradient(135deg, #1d1b33, #17172a);
    color: #f7f5ff;
    padding: 13px 16px;
    min-height: 46px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input[type="search"]:focus,
input[placeholder*="Find your next game" i]:focus,
.search-input:focus,
.game-search input:focus {
    border-color: #9b7cf6;
    box-shadow: 0 0 0 3px rgba(155, 124, 246, .15);
}

input[type="search"]::placeholder,
input[placeholder*="Find your next game" i]::placeholder,
.search-input::placeholder,
.game-search input::placeholder {
    color: #9692b5;
}

@media (max-width: 700px) {
    .category-filters,
    .category-filter,
    .category-tabs,
    .category-menu,
    .categories-grid,
    .game-categories,
    .filter-categories {
        gap: 9px;
    }

    .category-filters button,
    .category-filters a,
    .category-filter button,
    .category-filter a,
    .category-tabs button,
    .category-tabs a,
    .category-menu button,
    .category-menu a,
    .categories-grid button,
    .categories-grid a,
    .game-categories button,
    .game-categories a,
    .filter-categories button,
    .filter-categories a {
        min-height: 68px;
        padding: 10px 8px;
        border-radius: 14px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-filters *,
    .category-filter *,
    .category-tabs *,
    .category-menu *,
    .categories-grid *,
    .game-categories *,
    .filter-categories * {
        transition: none !important;
        transform: none !important;
    }
}


/* KidsGamers Search Layout Fix V1 */
.games-section .game-toolbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.games-section .search-box {
    width: min(100%, 440px);
    max-width: 440px;
    min-width: 0;
    box-sizing: border-box;
}

.games-section .search-box input,
.games-section .search-box input[type="search"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 46px;
    box-sizing: border-box;
}

@media (max-width: 560px) {
    .games-section .game-toolbar,
    .games-section .search-box {
        width: 100%;
        max-width: 100%;
    }
}


/* KidsGamers Search Icon Polish V1 */
.games-section .search-box {
    display: flex;
    align-items: center;
    gap: 11px;
    width: min(100%, 440px);
    max-width: 440px;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid #393653;
    border-radius: 14px;
    background: linear-gradient(135deg, #1d1b33, #17172a);
    box-sizing: border-box;
    cursor: text;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.games-section .search-box:focus-within {
    border-color: #9b7cf6;
    box-shadow: 0 0 0 3px rgba(155, 124, 246, .14);
}

.games-section .search-box .search-icon {
    display: inline-flex;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    color: #a99ae5;
}

.games-section .search-box .search-icon svg {
    display: block;
    width: 19px;
    height: 19px;
}

.games-section .search-box input,
.games-section .search-box input[type="search"] {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: #f7f5ff;
    font-size: 13px;
}

.games-section .search-box input:focus,
.games-section .search-box input[type="search"]:focus {
    border: 0;
    outline: 0;
    box-shadow: none;
}

.games-section .search-box input::placeholder {
    color: #9692b5;
    opacity: 1;
}

@media (max-width: 560px) {
    .games-section .search-box {
        width: 100%;
        max-width: 100%;
    }
}


/* KidsGamers Category Artwork V1 */
.games-section .filter-list {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 11px;
    overflow: visible;
    padding: 3px 2px 10px;
}

.games-section .filter-button {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    min-width: 0;
    min-height: 112px;
    padding: 0 5px 10px;
    overflow: hidden;
    border: 1px solid #40365f;
    border-radius: 15px;
    background: #19172e;
    color: #fff;
    box-shadow: 0 5px 14px rgba(0,0,0,.12);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.games-section .filter-button .category-icon {
    position: absolute;
    z-index: -2;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: inherit;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.games-section .filter-button .category-icon svg {
    display: none;
}

.games-section .filter-button::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 35% 0 0;
    background: linear-gradient(180deg, transparent 0%, rgba(13,12,31,.62) 38%, rgba(13,12,31,.97) 100%);
    pointer-events: none;
}

.games-section .filter-button > span:not(.category-icon) {
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    text-shadow: 0 1px 4px #000;
}

.games-section .filter-button[data-filter="All"] .category-icon {
    background-image: url("/assets/category-thumbnails/all-games.webp");
}
.games-section .filter-button[data-filter="Arcade"] .category-icon {
    background-image: url("/assets/category-thumbnails/arcade.webp");
}
.games-section .filter-button[data-filter="Racing"] .category-icon {
    background-image: url("/assets/category-thumbnails/racing.webp");
}
.games-section .filter-button[data-filter="Puzzle"] .category-icon {
    background-image: url("/assets/category-thumbnails/puzzle.webp");
}
.games-section .filter-button[data-filter="Sports"] .category-icon {
    background-image: url("/assets/category-thumbnails/sports.webp");
}
.games-section .filter-button[data-filter="Adventure"] .category-icon {
    background-image: url("/assets/category-thumbnails/adventure.webp");
}
.games-section .filter-button[data-filter="Brain Games"] .category-icon {
    background-image: url("/assets/category-thumbnails/brain-games.webp");
}

.games-section .filter-button:hover {
    transform: translateY(-3px);
    border-color: #9b7cf6;
    box-shadow: 0 9px 22px rgba(124,87,222,.22);
}

.games-section .filter-button.selected {
    border-color: #b28bff;
    box-shadow: 0 0 0 1px rgba(178,139,255,.45), 0 8px 22px rgba(124,87,222,.22);
}

@media (max-width: 900px) {
    .games-section .filter-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .games-section .filter-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }
    .games-section .filter-button {
        min-height: 105px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .games-section .filter-button {
        transition: none;
    }
}

/* Compact homepage heading spacing */
.homepage-intro {
    padding: 28px 0 12px;
}
.homepage-intro h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(30px, 4.5vw, 48px);
    line-height: 1.15;
    letter-spacing: -1.5px;
}


/* Homepage SEO introduction */
.homepage-seo-intro {
    max-width: 850px;
    margin: 16px auto 28px;
    color: var(--text-secondary, #b8b9ce);
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
}
@media (max-width: 640px) {
    .homepage-seo-intro {
        margin: 12px auto 22px;
        font-size: 0.95rem;
        line-height: 1.7;
    }
}
/* Mobile responsive overflow safeguards */
@media (max-width: 600px) { html, body { max-width: 100%; overflow-x: hidden; } img, video, iframe { max-width: 100%; height: auto; } h1 { overflow-wrap: anywhere; } }

/* Mobile category cards: spacing, legibility and consistency */
@media (max-width: 560px) {
    .games-section .filter-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 5px 2px 12px;
        align-items: stretch;
    }

    .games-section .filter-button {
        position: relative;
        display: flex;
        width: 100%;
        min-width: 0;
        min-height: 92px;
        aspect-ratio: 1.35 / 1;
        align-items: flex-end;
        justify-content: center;
        padding: 10px 6px;
        border-radius: 15px;
        overflow: hidden;
        text-align: center;
    }

    .games-section .filter-button > span:not(.category-icon) {
        display: block;
        width: 100%;
        max-width: 100%;
        font-size: 12px;
        line-height: 1.3;
        font-weight: 700;
        text-align: center;
        overflow-wrap: anywhere;
        text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
    }

    .games-section .filter-button .category-icon {
        background-size: cover;
        background-position: center;
    }
}

@media (max-width: 560px) { .games-section .filter-button > span:not(.category-icon) { font-size: 13px; line-height: 1.35; padding: 4px 3px; border-radius: 5px; background: linear-gradient(transparent, rgba(10, 8, 25, .8)); } }

/* Mobile homepage: tighten section spacing */
@media (max-width: 560px) {
    .featured-section,
    .games-section {
        margin-top: 16px;
        padding-top: 12px;
    }

    .featured-section h2,
    .games-section h2 {
        margin-top: 0;
    }

    .featured-section > :first-child,
    .games-section > :first-child {
        margin-top: 0;
    }

    .homepage-seo-intro {
        margin-bottom: 16px;
    }
}

/* Final mobile category layout correction */
@media (max-width: 560px) {
    .games-section .filter-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 4px 0 8px;
        margin-top: 0;
        align-items: start;
    }

    .games-section .filter-button {
        width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        aspect-ratio: 1.35 / 1;
        padding: 0 6px 8px;
        margin: 0;
    }

    .games-section .filter-button .category-icon {
        inset: 0;
        background-size: cover;
        background-position: center;
    }

    .games-section .filter-button::before {
        inset: 45% 0 0;
    }

    .games-section .filter-button > span:not(.category-icon) {
        font-size: 12px;
        line-height: 1.25;
        padding: 4px 3px;
    }
}

/* Center the final category card on mobile */
@media (max-width: 560px) {
    .games-section .filter-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .games-section .filter-button:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc(50% - 5px);
        justify-self: center;
    }
}

/* Mobile footer overflow fix */
@media (max-width: 600px) { .footer-links { flex-wrap: wrap; max-width: 100%; min-width: 0; gap: 10px 16px; } .footer-links a { min-width: 0; overflow-wrap: anywhere; } .footer-main, .footer-bottom { min-width: 0; max-width: 100%; } }

/* KIDSGAMERS CATEGORY ARTWORK V1 */
#gameFilters .filter-button:has(.icon-driving),
#gameFilters .filter-button:has(.icon-cooking),
#gameFilters .filter-button:has(.icon-creative),
#gameFilters .filter-button:has(.icon-action) {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
#gameFilters .filter-button:has(.icon-driving) {
    background-image: linear-gradient(to top, rgba(12,10,30,.96), rgba(12,10,30,.05) 85%), url('/assets/category-artwork/driving.webp') !important;
}
#gameFilters .filter-button:has(.icon-cooking) {
    background-image: linear-gradient(to top, rgba(12,10,30,.96), rgba(12,10,30,.05) 85%), url('/assets/category-artwork/cooking.webp') !important;
}
#gameFilters .filter-button:has(.icon-creative) {
    background-image: linear-gradient(to top, rgba(12,10,30,.96), rgba(12,10,30,.05) 85%), url('/assets/category-artwork/creative.webp') !important;
}
#gameFilters .filter-button:has(.icon-action) {
    background-image: linear-gradient(to top, rgba(12,10,30,.96), rgba(12,10,30,.05) 85%), url('/assets/category-artwork/action.webp') !important;
}
﻿
