:root{--bg: #0d0e1a;--panel: #171827;--accent: #ff2e63;--accent-2: #08d9d6;--text: #eaeaea;--muted: #8a8ca8}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-family:"Press Start 2P",system-ui,sans-serif;display:flex;flex-direction:column}.site-header{text-align:center;padding:2.5rem 1rem 1.5rem}.site-header h1{font-size:2rem;margin:0;color:var(--accent-2);text-shadow:3px 3px 0 var(--accent)}.site-header .dot{color:var(--accent)}.tagline{color:var(--muted);font-size:.65rem;margin-top:.75rem}.portal{flex:1;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1.5rem;padding:1rem 2rem 3rem;max-width:1100px;margin:0 auto;width:100%}.game-card{background:var(--panel);border:2px solid #2a2c45;border-radius:8px;padding:1.25rem;cursor:pointer;transition:border-color .15s ease,transform .15s ease;display:flex;flex-direction:column;gap:.75rem}.game-card:hover{border-color:var(--accent-2);transform:translateY(-3px)}.game-card .thumb{font-size:2.5rem;text-align:center}.game-card h3{font-size:.8rem;margin:0;color:var(--text)}.game-card p{font-size:.6rem;line-height:1.6;color:var(--muted);margin:0}.game-view{flex:1;display:flex;flex-direction:column;align-items:center;padding:1rem;gap:1rem;width:100%}.game-view-header{align-self:stretch;display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:0 1rem;flex-wrap:wrap}.back-button,.howto-button{background:var(--panel);color:var(--text);border:2px solid #2a2c45;padding:.6rem 1rem;font-family:inherit;font-size:.65rem;cursor:pointer;border-radius:6px}.back-button:hover,.howto-button:hover{border-color:var(--accent)}.howto-button:hover{border-color:var(--accent-2)}.howto-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:1.5rem}.howto-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#0d0e1acc}.howto-panel{position:relative;z-index:1;background:var(--panel);border:2px solid #2a2c45;border-radius:8px;padding:1.75rem 1.5rem 1.5rem;max-width:420px;width:100%;max-height:80vh;overflow-y:auto}.howto-close{position:absolute;top:.5rem;right:.5rem;background:transparent;color:var(--muted);border:none;font-size:1.5rem;line-height:1;cursor:pointer;padding:.5rem}.howto-close:hover{color:var(--accent)}.howto-title{margin:0 1.5rem 1rem 0;font-size:1rem;color:var(--accent-2)}.howto-objective{margin:0 0 1.25rem;font-size:.75rem;line-height:1.7;color:var(--text)}.howto-controls{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:.65rem}.howto-controls li{font-size:.65rem;line-height:1.6;color:var(--muted);padding-left:1.1rem;position:relative}.howto-controls li:before{content:"▸";position:absolute;left:0;color:var(--accent-2)}#game-container{border:3px solid #2a2c45;border-radius:8px;overflow:hidden;line-height:0;width:100%;max-width:640px}#game-container canvas{width:100%;height:auto;display:block;image-rendering:pixelated;image-rendering:crisp-edges}.touch-controls{display:none;width:100%;max-width:640px;justify-content:space-between;align-items:flex-end;gap:1rem;padding:0 .5rem}@media (pointer: coarse){.touch-controls{display:flex}}.touch-group{display:grid;grid-template-columns:repeat(3,52px);grid-auto-rows:52px;gap:.5rem}.touch-group-right{margin-left:auto}.touch-btn-up{grid-column:2;grid-row:1}.touch-btn-left{grid-column:1;grid-row:2}.touch-btn-down{grid-column:2;grid-row:3}.touch-btn-right{grid-column:3;grid-row:2}.touch-btn{width:52px;height:52px;border-radius:50%;border:2px solid #2a2c45;background:#171827e6;color:var(--text);font-family:inherit;font-size:1.1rem;display:flex;align-items:center;justify-content:center;touch-action:none;user-select:none;-webkit-user-select:none}.touch-btn:active{border-color:var(--accent-2);background:#08d9d626}.touch-btn.touch-btn-active{border-color:var(--accent-2);background:var(--accent-2);color:#0d0e1a;box-shadow:0 0 10px #08d9d6b3}.site-footer{text-align:center;padding:1.5rem;color:var(--muted);font-size:.6rem}.hidden{display:none}
