@font-face{font-family:PixelOperator;src:url(../assets/fonts/PixelOperator.ttf)format("truetype");font-display:block}html,body{touch-action:none;-webkit-user-select:none;user-select:none;background:#181818;width:100%;height:100%;margin:0;padding:0;overflow:hidden}#app{flex-direction:column;width:100%;height:100%;display:flex;position:relative}#screen{flex:auto;justify-content:center;align-items:center;min-height:0;display:flex;position:relative}#game{justify-content:center;align-items:center;display:flex}#game canvas{image-rendering:pixelated;image-rendering:crisp-edges}#touch{font-family:PixelOperator,monospace;display:none}.touch-btn{color:#181818;cursor:pointer;touch-action:none;-webkit-tap-highlight-color:transparent;border:3px solid #181818;min-width:44px;min-height:44px;font-family:inherit;font-size:22px}.touch-a,.touch-b{background:#ffb800;border-radius:50%;width:68px;height:68px;box-shadow:inset -3px -4px #cc8a00}.touch-small{color:#f5e6cc;background:#3a3330;border-radius:22px;min-width:78px;height:44px;padding:0 10px;font-size:16px}.touch-btn.pressed{filter:brightness(.9);transform:translateY(2px)}.touch-dpad{touch-action:none;width:140px;height:140px;position:relative}.dpad-arm{box-sizing:border-box;background:#181818;border:2px solid #6b625c;position:absolute;box-shadow:inset 0 3px #3a3330}.touch-dpad:after{content:"";pointer-events:none;background:#181818;width:42px;height:42px;position:absolute;top:49px;left:49px}.dpad-up,.dpad-down{width:46px;height:52px;left:47px}.dpad-up{top:0}.dpad-down{bottom:0}.dpad-left,.dpad-right{width:52px;height:46px;top:47px}.dpad-left{left:0}.dpad-right{right:0}.touch-dpad[data-dir=up] .dpad-up,.touch-dpad[data-dir=down] .dpad-down,.touch-dpad[data-dir=left] .dpad-left,.touch-dpad[data-dir=right] .dpad-right{background:#3a3330}.touch-ab{width:150px;height:140px;position:relative}.touch-ab .touch-a{position:absolute;top:8px;right:0}.touch-ab .touch-b{position:absolute;bottom:8px;left:0}.touch-center{gap:10px;display:flex}.console-top,.console-grille{display:none}#app.touch-landscape #touch{pointer-events:none;display:block;position:absolute;inset:0}#app.touch-landscape .touch-dpad,#app.touch-landscape .touch-ab,#app.touch-landscape .touch-center{pointer-events:auto;opacity:.55;position:absolute}#app.touch-landscape .touch-dpad{bottom:18px;left:18px}#app.touch-landscape .touch-ab{bottom:18px;right:18px}#app.touch-landscape .touch-center{bottom:12px;left:50%;transform:translate(-50%)}#app.touch-portrait{background-color:#181818;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='42' viewBox='0 0 24 42'%3E%3Cpath d='M12 0 L24 7 L24 21 L12 28 L0 21 L0 7 Z M12 28 L12 42 M0 21 L0 35 M24 21 L24 35' fill='none' stroke='%23262726' stroke-width='1.5'/%3E%3C/svg%3E");background-size:24px 42px}#app.touch-portrait #screen{background:#181818;border:6px solid #3a3330;flex:none;margin:12px 12px 0}#app.touch-portrait #touch{flex:auto;grid-template-rows:auto 1fr auto;grid-template-columns:1fr 1fr;place-items:center;gap:8px;padding:10px 16px 16px;display:grid}#app.touch-portrait .console-top{grid-column:1/3;align-items:center;gap:8px;display:flex}#app.touch-portrait .console-logo{image-rendering:auto;width:28px;height:auto}#app.touch-portrait .console-label{color:#ffb800;letter-spacing:2px;font-size:18px}#app.touch-portrait .touch-dpad{grid-area:2/1}#app.touch-portrait .touch-center{grid-area:3/1/auto/3}#app.touch-portrait .touch-ab{grid-area:2/2}#app.touch-portrait .console-grille{background-image:radial-gradient(circle,#3a3330 0 2px,#0000 3px);background-size:10px 9px;grid-area:4/2;justify-self:end;width:60px;height:36px;display:block}
