:root{--home-bg:#f7fbff;--home-surface:#fff;--home-ink:#142343;--home-muted:#667695;--home-border:#dce8f7}html{background:var(--home-bg)}body{background:var(--home-bg);color:var(--home-ink)}.page-shell{max-width:none;padding:0 0 60px;margin:0}.navigation{position:relative;top:auto;left:auto;width:100%;height:82px;max-width:none;border-radius:0;box-shadow:0 2px 12px #16397313;padding:0 max(28px,calc((100vw - 1328px)/2));display:flex;flex-direction:row;align-items:center;gap:32px;background:var(--home-surface);overflow:visible}.navigation>.wordmark{width:190px;height:72px;border:0;justify-content:flex-start}.navigation .brand-image{width:125px;height:125px;max-height:none}.desktop-links{display:flex;align-items:center;gap:32px;flex:1;font-size:14px;font-weight:750}.desktop-links a:hover{color:#0968e9}.navigation nav{display:flex;align-items:center;gap:8px;height:auto;padding:0}.navigation nav button{width:42px;height:42px;background:#edf3ff;border-radius:50%;color:#1259d8}.navigation nav button[data-action=home],.navigation nav button[data-action=recent]{display:none}.navigation nav button[data-action=categories]{display:none}.navigation nav button svg{width:21px;height:21px}.theme-toggle{width:42px;height:42px;border-radius:50%;background:#edf3ff;color:#1259d8;font-size:24px}.hero{position:relative;min-height:390px;padding:58px max(30px,calc((100vw - 1328px)/2));background:linear-gradient(112deg,#1259de 0%,#267af0 48%,#6247e9 100%);overflow:hidden;color:#fff;display:flex;align-items:center}.hero:after{content:'';position:absolute;inset:auto 0 0;height:25px;background:var(--home-bg);clip-path:polygon(0 100%,100% 20%,100% 100%)}.hero-copy{position:relative;z-index:2;width:min(50%,570px)}.hero-kicker{font-size:13px;font-weight:850;letter-spacing:1.6px}.hero h1{font-size:clamp(40px,5vw,67px);line-height:1.05;letter-spacing:-2px;margin:10px 0 18px;font-weight:950;text-shadow:0 3px 8px #00227a35}.hero h1 em{color:#ffea58;font-style:normal}.hero p{font-size:18px;max-width:450px;line-height:1.5;margin:0 0 22px}.hero-cta{display:inline-flex;gap:14px;align-items:center;padding:15px 24px;border-radius:30px;background:#ffdf43;color:#12213d;font-weight:850;box-shadow:0 7px 18px #173bb746}.hero-cta:hover{transform:translateY(-2px)}.hero-perks{display:flex;gap:26px;font-size:13px;font-weight:750;margin-top:30px}.hero-art{position:absolute;right:0;top:0;bottom:0;width:57%;background-image:linear-gradient(90deg,#267af0 0%,transparent 25%),url('assets/game-showcase.png');background-size:cover;background-position:center 55%}.home-section{max-width:1328px;margin:32px auto 0;padding:0 20px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:15px}.section-heading h2{font-size:27px;line-height:1.15;letter-spacing:-.7px;margin:0}.section-heading p{margin:4px 0 0;color:var(--home-muted);font-size:14px}.section-heading a,.section-heading button{background:none;color:#0968e9;font-size:14px;font-weight:750;white-space:nowrap}.featured-list,.new-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.new-list{grid-template-columns:repeat(4,minmax(0,1fr))}.showcase-card{position:relative;min-width:0;aspect-ratio:1.7;border-radius:14px;overflow:hidden;background:#283e72;box-shadow:0 5px 14px #17345b1a}.showcase-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}.showcase-card:hover img{transform:scale(1.05)}.showcase-card:after{content:'';position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#071c3bcf)}.showcase-name{position:absolute;bottom:15px;left:16px;right:48px;z-index:2;color:#fff;font-size:17px;font-weight:850;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.showcase-play{position:absolute;right:13px;bottom:12px;z-index:2;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#0b6de8;color:white;font-size:13px}.category-showcase{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px}.category-showcase-card{min-height:100px;border:1px solid var(--home-border);border-radius:13px;background:var(--home-surface);box-shadow:0 4px 12px #17345b0b;display:flex;align-items:center;justify-content:center;gap:10px;flex-direction:column}.category-showcase-card span{font-size:34px}.category-showcase-card strong{font-size:13px}.category-showcase-card:hover{border-color:#0d70ef;color:#0d70ef}.all-section{margin-top:48px;margin-bottom:18px}#game-grid{max-width:1328px;margin:0 auto;padding:0 20px}.home-grid:before{display:none}.load-zone{max-width:1328px;margin:auto}.about-card{max-width:1288px;margin:45px auto 0;border-radius:18px;box-shadow:0 6px 24px #17345b11;background:var(--home-surface)}.footer{clip-path:none;background:#152743;color:#e7efff}.footer h3{color:#9fb5d6}.footer .copyright{color:#9fb5d6}.footer .language-control{color:#a7caff;border-color:#7097d5}.results-heading,.tool-panel{max-width:1288px;margin-left:auto;margin-right:auto}#detail{max-width:1328px;margin:28px auto;padding:0 20px}html[data-theme=dark]{--home-bg:#101827;--home-surface:#1d2a3e;--home-ink:#eff5ff;--home-muted:#acbcd3;--home-border:#344761;--ink:#eff5ff;--mint:#101827}html[data-theme=dark] body{color:var(--home-ink)}html[data-theme=dark] .navigation,html[data-theme=dark] .about-card,html[data-theme=dark] .category-showcase-card,html[data-theme=dark] .results-heading,html[data-theme=dark] .tool-panel,html[data-theme=dark] .detail-info,html[data-theme=dark] .player-card{background:var(--home-surface);color:var(--home-ink)}html[data-theme=dark] .theme-toggle,html[data-theme=dark] .navigation nav button{background:#30435e;color:#c9dbff}html[data-theme=dark] .pill-button,html[data-theme=dark] .category-chip{background:#30435e;color:#eaf2ff}html[data-theme=dark] .search-form input,html[data-theme=dark] .search-panel .search-form{background:#29384f;color:#fff}html[data-theme=dark] .tool-panel.search-panel{background:#172238}html[data-theme=dark] .tag-list span{background:#344761;color:#d7e6f8}html[data-theme=dark] .footer{background:#0a1220}
@media(max-width:760px){.page-shell{padding:0 0 40px}.navigation{position:sticky;top:0;z-index:30;width:100%;height:70px;margin:0;padding:0 16px;border-radius:0;gap:8px}.navigation>.wordmark{width:126px;min-width:126px;height:65px;border:0}.navigation .brand-image{width:105px;height:105px}.desktop-links{display:none}.navigation nav{margin-left:auto;flex:0 0 auto}.navigation nav button[data-action=categories],.navigation nav button[data-action=search]{display:grid}.navigation nav button[data-action=recent]{display:none}.navigation nav button{width:38px;height:38px}.theme-toggle{width:38px;height:38px;font-size:21px}.hero{min-height:416px;padding:35px 22px;align-items:flex-start}.hero-copy{width:100%}.hero h1{font-size:clamp(38px,9vw,56px);max-width:340px}.hero p{font-size:15px;max-width:290px}.hero-cta{padding:12px 20px}.hero-art{top:190px;bottom:32px;width:100%;background-image:linear-gradient(180deg,#246fec 0%,transparent 23%),url('assets/game-showcase.png');background-size:cover;background-position:center}.hero-perks{position:absolute;top:420px;left:0;width:calc(100vw - 44px);justify-content:space-between;gap:6px;font-size:11px;margin:0}.home-section{margin-top:28px;padding:0 16px}.section-heading h2{font-size:23px}.featured-list,.new-list{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px;gap:12px}.showcase-card{flex:0 0 74%;scroll-snap-align:start;aspect-ratio:1.6}.category-showcase{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.category-showcase-card{min-height:94px}.category-showcase-card span{font-size:29px}#game-grid{padding:0 16px}.about-card{margin:30px 16px 0}.footer{padding:36px 28px}.tool-panel.search-panel{margin:0 16px}.search-open .navigation{z-index:55}#detail{padding:0 16px;margin:16px auto}}
/* Updated home artwork and card rails. */
.navigation>.wordmark{display:flex;align-items:center;justify-content:flex-start;gap:0;width:220px;min-width:220px;overflow:visible}.navigation .brand-image{width:70px;height:70px;object-fit:contain;flex:none}.brand-copy{display:flex;flex-direction:column;justify-content:center;margin-left:0;letter-spacing:0;line-height:1.05}.brand-copy strong{font-size:28px;font-weight:950;color:var(--home-ink)}.brand-copy strong span{color:#3b8dff}.brand-copy small{font-size:9px;font-weight:800;letter-spacing:1.2px;color:var(--home-muted);margin-top:5px}.hero{min-height:440px;background-image:linear-gradient(90deg,rgba(4,12,44,.88) 0%,rgba(4,15,51,.76) 27%,rgba(5,19,59,.26) 58%,rgba(5,13,43,.03) 100%),url('assets/hero-bg.png');background-size:cover;background-position:center 54%}.hero-art{display:none}.hero-copy{width:min(48%,560px)}.hero h1{font-size:clamp(37px,4.5vw,61px)}.hero p{max-width:400px}.carousel{position:relative}.showcase-list{display:flex;gap:15px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px 2px 14px;overscroll-behavior-x:contain}.showcase-list::-webkit-scrollbar{display:none}.showcase-card{flex:0 0 calc((100% - 45px)/3.5);aspect-ratio:auto;min-height:0;display:flex;flex-direction:column;background:var(--home-surface);border:1px solid var(--home-border);border-radius:14px;box-shadow:0 5px 14px #101f441b;scroll-snap-align:start}.showcase-card:after{display:none}.showcase-image{width:100%;aspect-ratio:1.62;overflow:hidden;display:block;background:#20305a}.showcase-image img{width:100%;height:100%;object-fit:cover;display:block}.showcase-info{position:relative;display:flex;flex-direction:column;gap:9px;min-height:80px;padding:11px 48px 12px 14px;color:var(--home-ink)}.showcase-name{position:static;display:block;color:inherit;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-weight:850}.showcase-meta{display:flex;gap:12px;align-items:center;font-size:12px;white-space:nowrap}.showcase-category{color:#1769d4;background:#eaf2ff;border-radius:6px;padding:3px 7px;max-width:70%;overflow:hidden;text-overflow:ellipsis}.showcase-rating{font-weight:800;color:#f4a400}.showcase-play{bottom:12px;right:11px;width:33px;height:33px}.carousel-arrow{position:absolute;top:calc(50% - 16px);z-index:4;width:36px;height:36px;border-radius:50%;background:var(--home-surface);color:#1769d4;box-shadow:0 3px 12px #101f4450;font-size:30px;line-height:1;display:grid;place-items:center}.carousel-arrow.prev{left:-16px}.carousel-arrow.next{right:-16px}.carousel-arrow:hover{background:#1769d4;color:#fff}.home-grid .tile{grid-column:span 1;grid-row:span 1}html[data-theme=dark] .showcase-category{background:#283c63;color:#a9ceff}html[data-theme=dark] .showcase-card{background:var(--home-surface)}
@media(max-width:760px){.navigation>.wordmark{width:158px;min-width:158px;height:68px;gap:0}.navigation .brand-image{width:53px;height:53px}.brand-copy strong{font-size:21px}.brand-copy small{font-size:7px;letter-spacing:.5px;margin-top:3px}.hero{min-height:0;padding:37px 21px 28px;background-image:linear-gradient(180deg,rgba(5,13,43,.92) 0%,rgba(5,13,43,.75) 38%,rgba(5,13,43,.18) 75%),url('assets/hero-bg.png');background-size:auto 100%;background-position:39% center}.hero-copy{width:100%}.hero h1{font-size:clamp(36px,9vw,52px);max-width:320px}.hero p{max-width:310px}.hero-perks{position:static;width:100%;margin-top:28px;flex-wrap:wrap}.showcase-list{gap:12px;padding:4px 1px 12px}.showcase-card{flex-basis:76%;aspect-ratio:auto}.showcase-image{aspect-ratio:1.5}.showcase-info{min-height:75px}.carousel-arrow{top:calc(50% - 18px);width:32px;height:32px;font-size:26px}.carousel-arrow.prev{left:-12px}.carousel-arrow.next{right:-12px}.home-grid .tile.large,.home-grid .tile.medium{grid-column:span 1;grid-row:span 1}}
.brand-copy strong span{color:#ffea58}
/* Size every square from the usable content width, including the page gutters. */
@media(min-width:1051px){#game-grid,#detail{--cell:calc((min(100cqw, 1328px) - 40px - 176px)/12)}}
@media(min-width:761px) and (max-width:1050px){#game-grid,#detail{--cell:calc((100cqw - 40px - 112px)/8)}}
@media(max-width:760px){#game-grid{--cell:calc((100cqw - 64px)/3)}}
#game-grid .tile{aspect-ratio:1;min-height:0}
/* Portrait embeds keep their full viewport visible and centered at every player size. */
.game-stage iframe.portrait-frame{inset:auto;left:50%;top:50%;transform-origin:center center;max-width:none;max-height:none}

/* Collapse categories in place to two rows at each breakpoint. */
.category-showcase:not(.expanded) .category-showcase-card:nth-child(n+13){display:none}
@media(max-width:760px){.category-showcase:not(.expanded) .category-showcase-card:nth-child(n+7){display:none}.hero-kicker{letter-spacing:.5px}.hero h1{font-size:clamp(30px,8vw,42px)}.brand-copy small{max-width:110px;line-height:1.3;letter-spacing:0}}

/* Keep embedded-player chrome in sync with the site's selected theme. */
html[data-theme=dark] .player-card .player-bar,
html[data-theme=dark] .player-card .exit-play,
html[data-theme=dark] .player-card .game1n-return{
  background:var(--home-surface);
  color:var(--home-ink);
}
html[data-theme=dark] .player-bar small{color:var(--home-muted)}
html[data-theme=dark] .player-card .exit-play,
html[data-theme=dark] .player-card .game1n-return{
  box-shadow:0 3px 14px #0006;
}

/* Use the same compact cards for featured, new, and recently played games. */
.showcase-card{flex-basis:calc((100% - 45px)/5.25)}
.showcase-info{
  display:grid;
  grid-template-columns:minmax(0,1fr) 28px;
  grid-template-rows:auto auto;
  align-content:center;
  align-items:center;
  gap:7px 8px;
  min-height:76px;
  padding:10px 12px;
}
.showcase-name{grid-column:1;grid-row:1;min-width:0}
.showcase-meta{grid-column:1;grid-row:2;min-width:0;gap:6px}
.showcase-category{min-width:0;max-width:calc(100% - 44px)}
.showcase-rating{flex-shrink:0}
.showcase-play{
  position:static;
  grid-column:2;
  grid-row:1 / span 2;
  align-self:center;
  width:28px;
  height:28px;
}
@media(max-width:760px){
  .showcase-card{flex-basis:50.6667%}
  .showcase-info{padding:10px;gap:7px 6px}
}

/* Preview videos stay inside the cover, preserving the card information. */
.showcase-image{position:relative}
.tile-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none}
.tile-video.ready{opacity:1}

/* Keep the language picker accessible in the top navigation on every viewport. */
.navigation .language-control{display:flex;align-items:center;gap:6px;margin:0;padding:8px 10px;border:1px solid var(--home-border);border-radius:20px;color:var(--home-ink);flex:0 1 auto;min-width:0}
.navigation .language-control svg{width:20px;height:20px;flex-shrink:0}
.navigation .language-control select{max-width:130px;min-width:0;color:inherit;background:transparent;font:inherit;font-size:13px;border:0}
.navigation .language-control option{color:var(--home-ink);background:var(--home-surface)}
.navigation .theme-toggle{flex-shrink:0}
#results-heading{margin:28px auto 20px;width:calc(100% - 40px);border-radius:16px}
#results-heading h1{display:flex;align-items:center;gap:12px}
.category-emoji{font-size:1.2em;line-height:1.2}
@media(max-width:760px){.navigation{gap:6px;padding-inline:12px}.navigation>.wordmark{width:108px;min-width:88px}.navigation .language-control{padding:7px;gap:4px}.navigation .language-control select{max-width:96px}.navigation .language-control svg{width:17px;height:17px}.navigation nav{padding:0;margin-inline-start:auto;flex:0 0 auto}.navigation .theme-toggle{width:34px;height:34px}#results-heading{margin:20px 16px 16px;width:calc(100% - 32px)}}
