:root { --paper:#f4f2e9; --white:#fffef9; --ink:#242a30; --muted:#6c706f; --nav:#242c39; --line:#2b3034; --lime:#d9ef71; --peach:#efb7a4; --yellow:#f6df7b; font-family:Arial,Helvetica,sans-serif; color:var(--ink); background:var(--paper); font-synthesis:none; }
* { box-sizing:border-box; }
body { margin:0; }
button,input,select { font:inherit; }
a { color:inherit; text-decoration:none; }
button,a,input,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; opacity:.5; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline:3px solid #4779d9; outline-offset:4px; }
svg { display:block; }
.icon { width:22px; height:22px; flex-shrink:0; stroke:currentColor; stroke-width:1.8; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; top:-60px; left:12px; background:var(--lime); padding:12px; z-index:20; }
.skip-link:focus { top:12px; }
.site-header { height:100px; position:sticky; top:0; z-index:10; display:flex; align-items:center; gap:38px; padding:0 30px; background:var(--white); border-bottom:2px solid var(--line); }
.brand { display:flex; align-items:center; gap:13px; flex-shrink:0; }
.brand-mark { width:48px; height:52px; display:grid; place-items:center; background:var(--nav); color:var(--lime); }
.brand-mark svg { width:39px; height:39px; }
.brand strong { display:block; font-size:24px; font-weight:800; letter-spacing:-1px; }
.brand strong span { color:#6b7a42; }
.brand small { display:block; font-size:10px; letter-spacing:2.4px; margin-top:8px; color:var(--muted); }
.search-form { display:flex; max-width:560px; flex:1; height:48px; border:1px solid #a8aaa2; background:#fff; padding:5px; }
.search-form input { border:0; outline:0; min-width:0; flex:1; padding:0 12px; background:transparent; font-size:16px; }
.search-form:focus-within { outline:3px solid #4779d9; outline-offset:3px; }
.search-form button { display:grid; place-items:center; width:38px; border:0; background:var(--lime); }
.top-nav { display:flex; gap:27px; margin-left:auto; white-space:nowrap; font-size:14px; font-weight:700; }
.top-nav a:hover { text-decoration:underline; text-underline-offset:5px; }
.page-shell { display:flex; }
.sidebar { width:200px; flex-shrink:0; position:sticky; top:100px; height:calc(100dvh - 100px); min-height:600px; overflow:auto; padding:30px 12px 20px; background:var(--nav); color:#e8ecf1; display:flex; flex-direction:column; }
.nav-label { margin:0 12px 15px; font-size:11px; letter-spacing:1.7px; font-weight:700; color:#abb7c8; }
.side-nav { display:flex; flex-direction:column; gap:8px; }
.side-nav a { display:flex; align-items:center; gap:10px; min-height:49px; padding:12px; font-size:15px; white-space:nowrap; border:1px solid transparent; border-radius:2px; }
.side-nav a:hover { background:#313d4e; }
.side-nav a.active { background:var(--lime); color:var(--ink); font-weight:700; }
.sidebar-divider { border-top:1px solid #4b5461; margin:28px 10px; }
main { min-width:0; flex:1; padding:38px 42px 24px; max-width:1660px; margin:0 auto; }
.eyebrow { font-size:11px; font-weight:700; letter-spacing:1.7px; color:var(--muted); margin:0 0 12px; }
.page-title { font-size:clamp(28px,3vw,42px); letter-spacing:-1.3px; line-height:1.13; margin:0 0 13px; font-weight:800; }
.intro-text { color:var(--muted); font-size:16px; line-height:1.6; margin:0; }
.button { border:2px solid var(--line); background:var(--white); min-height:44px; padding:11px 17px; display:inline-flex; align-items:center; justify-content:center; gap:9px; font-size:14px; font-weight:700; transition:background .15s,transform .15s; }
.button:hover { background:var(--yellow); }
.button-primary { background:var(--lime); box-shadow:3px 3px 0 var(--line); }
.button-primary:hover { transform:translate(-1px,-1px); background:#e1f696; }
.button .icon { width:18px; height:18px; }
.filter-chips { display:flex; gap:8px; flex-wrap:wrap; }
.chip { padding:8px 13px; border:1px solid #b4b7aa; background:transparent; font-size:13px; }
.chip:hover { background:#e4e7d6; }
.chip.active { color:var(--white); border-color:var(--ink); background:var(--ink); }
.sort-label { color:var(--muted); font-size:13px; display:flex; gap:9px; align-items:center; }
.sort-label select { appearance:none; padding:8px 29px 8px 10px; border:1px solid #b4b7aa; color:var(--ink); background:transparent url('/assets/chevron.svg') no-repeat right 9px center; font-size:13px; }
.games-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:22px; }
[data-page="home"] .games-grid,[data-page="games"] .games-grid,.related-games .games-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
.game-card { max-width:290px; display:flex; flex-direction:column; overflow:hidden; border:1px solid #d9ddcf; border-radius:10px; background:var(--white); box-shadow:0 2px 8px #26302012; transition:transform .15s,box-shadow .15s,border-color .15s; }
.game-card:hover { transform:translateY(-3px); border-color:#b7c88b; box-shadow:0 8px 22px #2630201a; }
.game-card-image { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:cover; border:0; border-bottom:1px solid #e7e9e0; }
.game-card-title { margin:0; padding:6px 8px; min-width:0; font-size:15px; line-height:1.3; font-weight:700; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1; }
.catalog-summary { font-size:12px; color:var(--muted); margin:20px 0 0; }
.catalog-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:25px; }
.catalog-heading h1 { font-size:28px; letter-spacing:-.7px; margin:0; }
.catalog-heading .intro-text { margin-top:10px; }
.catalog-heading+.filter-chips { margin-bottom:22px; }
.home-content { width:100%; margin-top:40px; padding-top:30px; border-top:1px solid #c5c8bd; }
.home-content section+section { margin-top:30px; }
.home-content h2 { margin:0 0 14px; font-size:clamp(21px,2.2vw,24px); line-height:1.3; letter-spacing:-.3px; }
.home-content p { margin:0 0 16px; font-size:16px; line-height:1.8; color:#5c625c; }
.home-content p:last-child { margin-bottom:0; }
.site-footer { margin-top:32px; padding-top:20px; border-top:1px solid #c5c8bd; display:flex; justify-content:space-between; gap:20px; color:var(--muted); font-size:11px; letter-spacing:.3px; }
.site-footer nav { display:flex; gap:20px; }
.site-footer a:hover { text-decoration:underline; }
.empty-state { padding:45px 24px; text-align:center; border:2px dashed #b5baa9; background:#eeeee3; grid-column:1/-1; }
.empty-state .icon { margin:0 auto 15px; width:32px; height:32px; }
.empty-state h2 { font-size:22px; margin:0 0 10px; }
.empty-state p { color:var(--muted); margin:0 0 20px; line-height:1.5; }
.game-player { border:2px solid var(--line); box-shadow:5px 5px 0 var(--line); background:#131e33; margin:0 4px 29px 0; }
[data-launch-type="iframe"] .game-player:not(:fullscreen) { width:min(calc(100% - 4px),max(160px,calc((100dvh - var(--player-page-space,250px))*1.6 + 4px))); margin-inline:auto; }
.game-stage { position:relative; width:100%; aspect-ratio:16/10; min-height:0; display:grid; place-items:center; overflow:hidden; background:#15213a; }
.game-stage iframe { position:absolute; inset:0; width:100%; height:100%; border:0; background:#050505; }
.game-splash { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:30px; overflow:auto; color:var(--white); text-align:center; }
.game-splash img { width:130px; height:130px; aspect-ratio:1; border:3px solid #7e93ad; box-shadow:5px 5px 0 #080e1a; margin-bottom:20px; }
.game-splash h2 { font-size:27px; margin:0 0 20px; }
.game-splash .button { min-width:170px; color:var(--ink); }
.game-splash .external-play-notice { margin:12px 0 0; max-width:42ch; color:#c5cfdf; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.game-toolbar { position:relative; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:13px 16px; background:var(--white); border-top:2px solid var(--line); }
.player-status:empty { display:none; }
.player-status { color:var(--muted); font-size:12px; margin:0; line-height:1.5; }
.player-buttons { display:flex; gap:8px; flex-wrap:wrap; flex-shrink:0; max-width:100%; }
.game-toolbar > .player-status:empty + .player-buttons,
.game-toolbar > .player-buttons:only-child { margin-left:auto; }
.player-buttons .button { padding:8px 11px; min-height:37px; font-size:12px; box-shadow:none; }
.share-control { margin-left:auto; }
#share-game[aria-expanded="true"] { background:var(--lime); }
.share-panel { position:fixed; top:16px; left:16px; z-index:11; width:min(380px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:auto; padding:18px; border:2px solid var(--line); border-radius:12px; background:var(--white); color:var(--ink); box-shadow:0 12px 36px #10182740; }
.share-panel[hidden] { display:none; }
.share-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.share-heading h2 { margin:0; font-size:18px; line-height:1.3; }
.share-heading .icon-button { display:grid; place-items:center; flex-shrink:0; width:36px; height:36px; border:0; border-radius:6px; }
.share-heading .icon-button:hover { background:#e9eddd; }
.share-url { display:block; width:100%; min-width:0; padding:10px; border:1px solid #c5c8bd; border-radius:6px; background:#f3f5ec; color:#505a4d; font-size:14px; line-height:1.4; margin-bottom:14px; }
.share-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.share-options .button { min-height:44px; border:1px solid #b9c1ad; border-radius:6px; font-size:14px; }
#copy-share-link { background:var(--lime); border-color:#9aa95d; }
#copy-share-link:hover { background:#e1f696; }
.share-status { margin:12px 0 0; color:#505a4d; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.share-status:empty { display:none; }
@media(max-width:680px) { .player-buttons { width:100%; } }
.game-player:fullscreen { display:flex; flex-direction:column; width:100%; height:100%; border:0; }
.game-player:fullscreen .game-stage { flex:1; min-height:0; aspect-ratio:auto; }
.reload-dialog { width:min(440px,calc(100% - 36px)); border:2px solid var(--line); background:var(--white); padding:28px; color:var(--ink); box-shadow:6px 6px 0 var(--line); }
.reload-dialog::backdrop { background:#101827b3; }
.reload-dialog h2 { font-size:24px; margin:0 0 14px; }
.reload-dialog p { font-size:16px; line-height:1.6; margin:0 0 24px; color:var(--muted); }
.dialog-actions { display:flex; flex-wrap:wrap; gap:12px; justify-content:flex-end; }
.related-games { margin-top:35px; }
.related-games h2 { font-size:22px; margin:0 0 18px; }
.game-details { margin-top:35px; }
.game-details h2 { font-size:22px; margin:0 0 14px; }
.game-details p { font-size:15px; color:#5c625c; line-height:1.8; }
.text-link { text-decoration:underline; text-underline-offset:4px; }
.prose { max-width:750px; }
.prose h2 { font-size:23px; margin:32px 0 12px; }
.prose p { font-size:16px; line-height:1.85; color:#5c625c; }
.initial-loading { padding:60px 0; color:var(--muted); }
.menu-toggle,.nav-backdrop { display:none; }
.icon-button { border:1px solid var(--line); background:transparent; padding:8px; }
.noscript { padding:30px; }
.nav-label,.eyebrow { font-size:12px; }
.chip,.sort-label,.sort-label select,.player-status,.player-buttons .button { font-size:14px; }
.game-details p { font-size:16px; }
@media(min-width:1650px) { main { padding:45px 58px 28px; } .site-header { gap:52px; } }
@media(max-width:1180px) { .site-header { gap:24px; padding:0 22px; height:90px; } .brand strong { font-size:21px; } .brand small { font-size:8px; } .top-nav { gap:17px; } .top-nav a:last-child { display:none; } .sidebar { width:190px; top:90px; height:calc(100dvh - 90px); padding:26px 10px; } .side-nav a { font-size:14px; gap:9px; } main { padding:30px 28px 22px; } }
@media(max-width:900px) { .top-nav { display:none; } .site-header { gap:20px; } .sidebar { width:180px; padding:24px 8px; } .nav-label { font-size:9px; letter-spacing:1.1px; } .side-nav a { font-size:13px; } main { padding:28px 22px; } .game-toolbar { align-items:flex-start; flex-direction:column; } }
@media(max-width:680px) { .site-header { height:135px; padding:15px 18px; display:grid; grid-template-columns:32px 1fr; gap:15px 12px; } .menu-toggle { display:grid; place-items:center; padding:5px; height:32px; border:0; } .brand { justify-self:start; gap:9px; } .brand-mark { width:34px; height:36px; } .brand-mark svg { width:29px; height:29px; } .brand strong { font-size:23px; } .brand small { display:none; } .search-form { grid-column:1/-1; width:100%; max-width:none; height:43px; } .search-form input { font-size:16px; } .sidebar { position:fixed; top:135px; left:0; bottom:0; height:calc(100dvh - 135px); min-height:0; width:220px; z-index:9; transform:translateX(-100%); transition:transform .2s; padding:25px 12px; } .nav-open .sidebar { transform:translateX(0); } .nav-open .nav-backdrop { display:block; position:fixed; inset:135px 0 0; z-index:8; background:#0e172970; border:0; } .sidebar .nav-label { font-size:11px; } .sidebar .side-nav a { font-size:15px; } main { padding:27px 19px 22px; width:100%; } .page-title { font-size:31px; letter-spacing:-1px; } .intro-text { font-size:14px; } .eyebrow { font-size:9px; letter-spacing:1.3px; } .filter-chips { gap:6px; } .chip { font-size:12px; padding:8px 10px; } .games-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } .game-card { max-width:none; } .site-footer { flex-direction:column; gap:14px; margin-top:23px; } }
@media(max-width:900px) { .game-splash { display:grid; grid-template-columns:auto minmax(0,1fr); align-content:center; justify-items:start; gap:8px 16px; padding:16px; text-align:left; } .game-splash img { grid-row:1/3; width:clamp(56px,12vw,100px); height:auto; margin:0; } .game-splash h2 { font-size:clamp(18px,3vw,23px); margin:0; } .game-splash .button { grid-column:2; min-width:0; padding:9px 12px; } }
@media(max-width:900px) { .game-splash .external-play-notice { grid-column:2; margin:4px 0 0; font-size:12px; } }
@media(max-width:900px) { [data-launch-type="iframe"] { --player-page-space:280px; } }
@media(max-width:680px) { [data-launch-type="iframe"] { --player-page-space:310px; } }
@media(max-width:900px) { [data-page="home"] .games-grid,[data-page="games"] .games-grid,.related-games .games-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:680px) { [data-page="home"] .games-grid,[data-page="games"] .games-grid,.related-games .games-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; scroll-behavior:auto!important; } }

.browse-all { display:flex; justify-content:center; margin-top:28px; }
.pagination { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:28px; }
.pagination a,.pagination span { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:10px 12px; border:1px solid #c9cbc3; border-radius:6px; background:var(--white); font-size:14px; }
.pagination a:hover { background:var(--yellow); }
.pagination [aria-current="page"] { background:var(--lime); border-color:#8b9c45; font-weight:700; }
.pagination .page-disabled { color:var(--muted); background:transparent; }

.embed-dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border: 1px solid var(--border, #d9dee5); border-radius: 16px; background: #fff; color: #242c39; }
.embed-dialog::backdrop { background: rgb(0 0 0 / 40%); }
.embed-dialog h2 { margin: 0; font-size: 22px; }
.embed-dialog label { display: block; margin: 20px 0 8px; font-weight: 700; }
.embed-url-row { display: flex; gap: 12px; align-items: center; }
.embed-url-row input { flex: 1; min-width: 0; width: 100%; }
.embed-dialog [hidden] { display: none; }
@media (max-width: 480px) { .embed-dialog { padding: 16px; } .embed-url-row { flex-wrap: wrap; } .embed-url-row input { flex-basis: 100%; } }
