@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=DM+Sans:wght@500;700&display=swap');

:root { color-scheme: dark; --ink:#17132d; --cream:#fff5d9; --sun:#ffcf4a; --orange:#ff7548; --violet:#6353db; }
* { box-sizing: border-box; }
body { margin:0; min-height:100vh; display:grid; place-items:center; background:radial-gradient(circle at 50% 15%,#3d3264,#17132d 65%); font-family:"DM Sans",sans-serif; color:var(--cream); overflow-x:hidden; }
body::before { content:""; position:fixed; inset:0; pointer-events:none; opacity:.12; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
.game-shell { width:min(1180px,96vw); padding:22px 0; }
.topbar { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:0 4px 14px; }
.brand { display:flex; gap:10px; align-items:center; }
.brand-mark { width:42px; height:42px; border:2px solid var(--sun); border-radius:50%; display:grid; place-items:center; color:var(--sun); font-size:25px; }
.brand strong,.brand small { display:block; line-height:1; letter-spacing:.09em; }.brand strong { font:20px "Archivo Black"; }.brand small { font-size:9px; margin-top:5px; color:#c6bee4; }
.stats { display:flex; gap:45px; text-align:center; }.stats span { min-width:80px; }.stats small,.stats b { display:block; }.stats small { font-size:9px; letter-spacing:.2em; color:#bcb3dc; margin-bottom:4px; }.stats b { font:16px "Archivo Black"; }.stats span:nth-child(2) b{color:var(--sun)}.stats span:nth-child(3) b{color:#ff8062;letter-spacing:4px}
button { font:inherit; color:inherit; cursor:pointer; border:0; }.icon-button,.pause-button { background:#2c254b; border:1px solid #655d82; border-radius:50%; width:40px;height:40px;justify-self:end; }
.game-frame { position:relative; border:3px solid #0e0b1e; border-radius:18px; overflow:hidden; box-shadow:0 26px 70px #080611aa,0 0 0 1px #8e80bb55; aspect-ratio:16/9; background:#e98a64; }
canvas { display:block; width:100%; height:100%; }
.scanlines { position:absolute; inset:0; pointer-events:none; opacity:.055; background:repeating-linear-gradient(0deg,#000 0,#000 1px,transparent 1px,transparent 4px); }
.power-hud { position:absolute; z-index:4; top:16px; left:16px; display:flex; gap:8px; flex-wrap:wrap; pointer-events:none; }
.power-badge { padding:7px 10px; border:1px solid #ffffff88; border-radius:7px; background:#211943d9; color:#fff5d9; font-size:12px; font-weight:700; box-shadow:0 3px 10px #15112a77; }
.power-badge.shield { border-color:#78dcff; }.power-badge.magnet { border-color:#ff80b8; }.power-badge.boost { border-color:#ffe16d; }
.overlay { position:absolute; inset:0; display:grid; place-items:center; opacity:0; visibility:hidden; transition:.25s; background:linear-gradient(90deg,#15122ce6 0%,#15122ca8 45%,transparent 80%); }.overlay.visible{opacity:1;visibility:visible}.overlay.compact{background:#14102ed9;backdrop-filter:blur(5px);z-index:8}
.hero-card { width:48%; margin-right:43%; padding:6%; }.eyebrow { color:var(--sun); font-size:11px; font-weight:700; letter-spacing:.28em; margin:0 0 14px; }.hero-card h1,.dialog-card h2 { margin:0; font-family:"Archivo Black"; line-height:.88; letter-spacing:-.04em; }.hero-card h1 { font-size:clamp(38px,6vw,78px); }.hero-card h1 em { color:var(--orange); font-style:normal; }.hero-card>p:not(.eyebrow){max-width:390px;color:#d9d1eb;font-size:14px;line-height:1.5}
.primary-button { margin-top:18px; padding:15px 22px; min-width:180px; color:var(--ink); background:var(--sun); font-family:"Archivo Black"; border-radius:4px; box-shadow:5px 5px 0 #e65b3c; transition:.12s; }.primary-button:hover{transform:translate(-2px,-2px);box-shadow:7px 7px 0 #e65b3c}.primary-button:active{transform:translate(3px,3px);box-shadow:2px 2px 0 #e65b3c}.primary-button span{float:right}
.other-game-link{display:block;width:max-content;margin-top:16px;color:#a8e6f3;font-size:11px;font-weight:700;letter-spacing:.1em;text-decoration:none}.other-game-link:hover{text-decoration:underline}
.controls-hint { display:flex; gap:18px; margin-top:30px; font-size:9px; letter-spacing:.08em; color:#bdb4d4; }.controls-hint kbd{border:1px solid #81769e;border-bottom-width:3px;border-radius:3px;padding:4px;color:white;background:#282140}
.dialog-card { text-align:center; padding:40px; }.dialog-card h2{font-size:clamp(30px,5vw,58px)}.dialog-card>p:not(.eyebrow){color:#d8d0eb}
.pause-layout { display:flex; align-items:stretch; width:min(900px,90%); max-height:90%; background:#1c1737ed; border:1px solid #8a7ca855; border-radius:14px; overflow:hidden; box-shadow:0 22px 65px #0b0929aa; }
.games-menu { width:310px; min-width:280px; padding:28px 22px; background:#14112bd9; border-right:1px solid #76689266; }
.games-menu .eyebrow { margin-bottom:20px; }
.current-game { display:flex; align-items:center; gap:12px; padding:10px; border:1px solid #e6ac59aa; border-radius:8px; background:#39304e; }
.current-game strong,.current-game small { display:block; }.current-game strong { font:17px "Archivo Black"; }.current-game small { margin-top:4px; color:#c8bedc; font-size:9px; letter-spacing:.08em; }
.game-thumb { display:grid; place-items:center; width:45px; height:45px; flex:none; border-radius:6px; color:#30203a; background:linear-gradient(140deg,#ffe27a,#ed7751); font-size:27px; }
.playing-dot { width:7px; height:7px; margin-left:auto; flex:none; border-radius:50%; background:#83e0aa; box-shadow:0 0 10px #83e0aa; }
.other-game-card{margin-top:9px;text-decoration:none;color:var(--cream);border-color:#6ab5ce77;background:#263450}.other-game-card:hover,.other-game-card:focus-visible{outline:2px solid #a8e6f3}.black-hole-thumb{color:#bdeaff;background:radial-gradient(circle,#080919 36%,#7042af 48%,#41b3d4 66%,#17243f 82%)}.game-arrow{margin-left:auto;color:#a8e6f3}
.mario-thumb{color:#fff5c4;background:linear-gradient(135deg,#e65c53,#a73543)}
.challenge-thumb{color:#1c2943;background:linear-gradient(135deg,#ffe27a,#6ce4df)}
@media(max-width:700px){.game-frame{min-height:330px}.hero-card{overflow-y:auto;max-height:100%}}
.pause-actions { display:grid; gap:5px; margin-top:20px; }.pause-actions button { display:flex; align-items:center; gap:13px; width:100%; padding:10px 12px; text-align:left; border-radius:6px; color:#e5dcf1; background:transparent; font-size:19px; }.pause-actions button span { font-size:13px; font-weight:700; }.pause-actions button:hover,.pause-actions button:focus-visible { outline:none; color:#1b1533; background:#ffcf4a; }
.pause-dialog { display:flex; flex:1; flex-direction:column; align-items:center; justify-content:center; min-width:0; }.pause-dialog h2 { font-size:clamp(30px,4vw,50px); }.pause-dialog p:not(.eyebrow) { margin:18px 0 0; }
.pause-button{position:absolute;right:14px;top:14px;z-index:5}.touch-button{display:none;position:absolute;z-index:5;border:2px solid #fff8;background:#21194399;border-radius:50%;width:62px;height:62px;font:bold 25px sans-serif;touch-action:none;user-select:none}.touch-button small{display:block;font-size:7px}.touch-button.move-left{left:14px;bottom:16px}.touch-button.move-right{left:82px;bottom:16px}.touch-button.duck{left:150px;bottom:16px}.touch-button.jump{right:14px;bottom:16px}.touch-button.run{right:82px;bottom:16px;background:#d64f3dbb}
footer { display:flex; justify-content:space-between; padding:12px 5px 0; color:#81799c; font-size:9px; letter-spacing:.12em; } footer b{color:#c6bedc}
@media(max-width:700px){.game-shell{width:100vw;padding:0}.topbar{padding:8px 10px}.brand small,.stats small,.stats span:nth-child(2){display:none}.stats{gap:5px}.stats span{min-width:70px}.game-frame{border-radius:0;border-left:0;border-right:0}.hero-card{width:68%;margin-right:28%;padding:5%}.hero-card>p:not(.eyebrow),.controls-hint{display:none}.primary-button{margin-top:12px;padding:11px}.touch-button{display:block}footer{padding:8px 10px}.brand-mark{width:34px;height:34px}}
@media(max-width:700px){.pause-layout{width:94%;max-height:94%}.games-menu{width:52%;min-width:0;padding:12px}.games-menu .eyebrow{margin-bottom:8px;font-size:8px}.current-game{padding:5px;gap:6px}.game-thumb{width:30px;height:30px;font-size:20px}.current-game strong{font-size:11px}.current-game small{font-size:6px}.pause-actions{margin-top:8px;gap:1px}.pause-actions button{padding:5px 7px;font-size:14px;gap:7px}.pause-actions button span{font-size:10px}.pause-dialog{padding:10px}.pause-dialog h2{font-size:clamp(16px,4vw,30px)}.pause-dialog p:not(.eyebrow){display:none}.pause-dialog .primary-button{min-width:0;font-size:10px}}
