:root{--bg-primary:#000;--bg-card:#171f30;--bg-secondary:#202b40;--primary-blue:#8bb5ff;--primary-blue-hover:#b3ceff;--accent-yellow:#ffd34d;--text-main:#f7f1e7;--text-secondary:#d5dce8;--text-muted:#aab6ca;--text-short:#c4cedd;--border-color:#2e3a50;--border-strong:#68758b;--footer-surface:#121a29;--danger:#fb8290;--button-text:#101827;--focus-ring:#ffad70;--card-shadow:0 3px 12px rgba(0, 0, 0, .16);--card-shadow-hover:0 10px 28px rgba(0, 0, 0, .28);--bg:var(--bg-primary);--surface:var(--bg-card);--surface2:var(--bg-secondary);--text:var(--text-main);--text2:var(--text-secondary);--muted:var(--text-muted);--line:var(--border-color);--line-dark:var(--border-strong);--blue:var(--primary-blue);--red:var(--danger);--yellow:var(--accent-yellow);--accent:#ff9a55;--footer-bg:var(--footer-surface);--radius:2px;--head:"Fredoka", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--body:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--play-accent:var(--accent);--play-screen-bg:#000;--play-ratio-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d8e2f2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");--play-primary-text:#192031;--play-shadow:#0002;--play-error-border:#a63d3d;--play-error-bg:#321919;--play-error-text:#fff;--play-notice-bg:#172542;--play-notice-text:#fff;--play-ratio-arrow:#d8e2f2;--play-ratio-option-bg:#18243a;--play-ratio-option-text:#f6f8ff;--play-bar-bg:#1b2a42;--play-bar-border:#394960;--play-title-color:#f5f8ff;--play-action-bg:#243652;--play-action-border:#526681;--play-action-text:#edf4ff;--play-action-hover-bg:#304667;--play-action-hover-border:var(--accent);--play-action-hover-text:#fff;--play-action-primary-bg:#ff9a55;--play-action-primary-hover:#ffb47f;--play-toolbar-text:#e6edf9;--play-toolbar-value:#e2eafb;--play-reset-bg:#223149;--play-reset-border:#445674;--play-reset-text:#f0f5ff;--play-reset-hover-bg:#304360;--play-reset-hover-border:#7586a5;--play-reset-hover-text:#fff;--play-divider:#465773;--play-emulator-divider:#465772;--play-emulator-text:#d4e1f2;--play-emulator-hover-bg:#304667;--play-emulator-hover-border:#526681;--play-emulator-hover-text:#fff;--play-controls-text:#d5e1f3;--play-controls-label:#fff;--play-kbd-bg:#263853;--play-kbd-border:#657a98;--play-kbd-text:#f8faff;--play-start-bg-1:#202b40;--play-start-bg-2:#171f30;--play-start-bg-3:#0e1422;--play-start-media-border:#3b4962;--play-start-media-bg:#171f30;--play-start-media-shadow:#0005;--play-start-border:#101827;--play-start-top:#ffb15d;--play-start-bottom:#ff8535;--play-start-hover-top:#ffc27e;--play-start-hover-bottom:#ff9a4d;--play-start-text:#14213a;--play-start-shadow:#a94308;--play-start-drop:#0005;--play-start-drop-hover:#0006;color-scheme:dark;--brand-fill:#ff9a55;--brand-on:#192031;--brand-hover:#ffb47f;--brand-soft:#382b28;--header-bg:#131c2d}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html, body{margin:0;padding:0}
body{display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; font-weight: 400; line-height: 1.55;}
h1,h2,h3{font-family:var(--head);font-weight:600}
#main-content{flex:1;min-width:0}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button, input, select, textarea{font:inherit}
button, a, input{-webkit-tap-highlight-color:transparent}
button{color:inherit}
:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px}
.container{width:100%;max-width:1000px;margin:0 auto;padding:0 16px}
.skip-link{position:fixed;top:8px;left:16px;z-index:100;padding:10px 16px;background:var(--surface);color:var(--accent);transform:translateY(-150%)}
.skip-link:focus{transform:none}
.site-header{position:relative;z-index:50;background:var(--header-bg);border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;min-height:50px;gap:14px}
.brand{display:inline-flex;align-items:center;flex-shrink:0;gap:9px;white-space:nowrap}
.logo-img{width:45px;height:45px;flex-shrink:0;object-fit:contain}
.logo-text{font:700 24px/1 var(--head);letter-spacing:-.8px;color:var(--text)}
.logo-text span{color:var(--accent)}
.logo-text small{display:block;margin-top:5px;color:var(--muted);font:600 10px/1 var(--body);letter-spacing:3px;text-transform:uppercase}
.nav{display:flex;align-items:center;gap:5px;flex-shrink:0;margin-left:auto}
.nav a{display:flex;align-items:center;min-height:40px;padding:0 14px;border-radius:8px;color:var(--text2);font:600 14px/1 var(--head)}
.nav a:hover, .nav a.selected{color:var(--accent);background:var(--brand-soft)}
.btn-icon-toggle, .menu-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--surface);cursor:pointer}
.btn-icon-toggle:hover, .menu-toggle:hover{color:var(--accent);background:var(--surface2)}
.btn-icon-toggle svg{width:20px;height:20px}
.menu-toggle{display:none}
.main-nav-mobile{display:none;padding:8px 0 12px;border-top:1px solid var(--line)}
.main-nav-mobile a{padding:11px 12px;color:var(--text2);font:700 16px/1.2 var(--head);border-radius:var(--radius)}
.main-nav-mobile a:hover, .main-nav-mobile a.selected{color:var(--accent);background:var(--brand-soft)}
/* Semantic, responsive footer navigation */
.site-footer{margin-top:auto;padding:38px 0 22px;border-top:1px solid var(--line);color:var(--text2);font-size:14px;text-align:left}
.footer-main{display:grid;grid-template-columns:minmax(200px,1.25fr) minmax(280px,1.6fr) minmax(165px,1fr) minmax(135px,.8fr);column-gap:30px;row-gap:28px;padding-bottom:28px}
.footer-column{min-width:0}
.footer-heading{margin:0 0 14px;color:var(--text);font:700 15px/1.4 var(--head)}
.footer-column p{max-width:280px;margin:0 0 12px;color:var(--muted);font-size:14px;line-height:1.7}
.footer-platform-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 16px}
.footer-link-stack{display:grid;gap:9px}
.site-footer a{display:inline-block;width:fit-content;max-width:100%;color:var(--text2);font-size:14px;line-height:1.5;text-decoration:none}
.site-footer a:hover{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.site-footer .footer-home{color:var(--accent);font-weight:700}
.footer-bottom{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding-top:18px;border-top:1px solid var(--line)}
.footer-copyright{flex-shrink:0;color:var(--text2);font-size:12px}
.site-footer .disclaimer{max-width:650px;margin:0;color:var(--muted);font-size:12px;line-height:1.65;text-align:right}
@media(max-width:960px){.footer-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 36px}.footer-platform-links{max-width:470px}.footer-column p{max-width:480px}}
@media(max-width:600px){.site-footer{padding:28px 0 20px}.footer-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 16px;padding-bottom:23px}.footer-about{grid-column:1/-1}.footer-platform-links{grid-template-columns:1fr}.footer-heading{font-size:14px;margin-bottom:10px}.footer-bottom{display:block}.footer-copyright{margin-bottom:9px}.site-footer .disclaimer{text-align:left}}
.breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 20px;color:var(--muted);font-size:14px;line-height:1.5}
.breadcrumb a{color:var(--accent);text-decoration:none}
.breadcrumb a:hover{color:var(--brand-hover);text-decoration:underline;text-underline-offset:3px}
.breadcrumb > span:last-child{color:var(--muted)}
.game-card, .card-surface{background:var(--bg-card);border:1px solid var(--border-color);border-radius:8px;box-shadow:var(--card-shadow)}
.game-card:hover{border-color:var(--accent);box-shadow:var(--card-shadow-hover)}
.btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border:1px solid var(--brand-fill);border-radius:8px;background:var(--brand-fill);color:var(--brand-on);font-weight:700;cursor:pointer}
.btn-primary:hover{background:var(--brand-hover);border-color:var(--brand-hover);color:var(--brand-on)}
.badge-sonic, .badge-pacman{display:inline-flex;align-items:center;padding:3px 8px;border-radius:4px;background:var(--accent-yellow);color:#172033;font:700 12px/1.4 var(--head)}
@media (max-width: 920px){
    .header-inner{gap:10px}
    .nav{display:none}
    .menu-toggle{display:inline-flex}
    .main-nav-mobile.active{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:4px}
}
@media (max-width: 600px){
    .container{padding:0 12px}
    .header-inner{flex-wrap:wrap;gap:8px;padding-top:10px;padding-bottom:10px}
    .brand{margin-right:auto}
    .logo-text{font-size:23px}
    .breadcrumb{margin-bottom:16px}
}
@media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto}
}


/* Pac-Man brand details */
.nav a.selected{background:var(--brand-fill);color:var(--brand-on)}
.footer-brand{display:flex;align-items:center;gap:9px;margin-bottom:14px}
.footer-brand img{width:38px;height:38px;object-fit:contain}
.footer-brand .footer-heading{margin:0;font-size:16px}
.site-footer{position:relative}
.site-footer::before{content:"";position:absolute;top:-1px;left:50%;transform:translateX(-50%);width:72px;height:3px;border-radius:3px;background:var(--brand-fill)}
@media(max-width:600px){.header-inner{min-height:62px;flex-wrap:nowrap}.logo-img{width:40px;height:40px}.logo-text{font-size:21px}.brand{gap:5px}}
@media(max-width:350px){.logo-text{font-size:18px}.header-inner{gap:5px}.btn-icon-toggle,.menu-toggle{flex-basis:36px;width:36px;height:36px}}


/* Header without the sign-in button: keep the menu button at the right edge */
@media(max-width:920px){.menu-toggle{margin-left:auto}}
.home-header{
background: none;
margin-bottom: 10px;
border-bottom: none;	
}
.home-footer{
	border-top: none;	
	
}
.home-footer::before {
	max-width: 200px;
	height: 1px;
    width: 100%;
}