:root{--gray:#BCBCBC;--dgray:#7C7C7C;--red:#E40058;--bg:#141218}
*{box-sizing:border-box}
body{margin:0;font-family:'Press Start 2P',monospace;background:var(--bg);color:#eee;
background-image:linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px);background-size:8px 8px;min-height:100vh}
button{font-family:inherit}
.px{border:4px solid #000;box-shadow:4px 4px 0 #000}
.px:active{transform:translate(2px,2px);box-shadow:2px 2px 0 #000}
.crt{background:#031a08;border-radius:18px;box-shadow:inset 0 0 40px #000,0 0 24px #1f8a3a55;position:relative;overflow:hidden}
.crt:after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(transparent 0 2px,#0006 2px 3px),radial-gradient(transparent 55%,#000a)}
.blink{animation:bl 1s steps(1) infinite}@keyframes bl{50%{opacity:0}}
.shimmer{animation:sh 3s linear infinite;background:linear-gradient(90deg,#fff,#E40058,#fff);-webkit-background-clip:text;background-clip:text;color:transparent;background-size:200%}
@keyframes sh{to{background-position:200%}}
.wkey{background:#ece8dc;color:#333;border:3px solid #000;height:150px;flex:0 0 44px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:8px;font-size:9px;user-select:none;touch-action:none}
.bkey{position:absolute;width:30px;height:92px;background:#2a1418;border:3px solid #000;color:#f88;font-size:8px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:6px;z-index:2;user-select:none;touch-action:none}
.down{transform:translateY(2px)}
.rainbow .wkey{animation:rb 1s linear infinite}@keyframes rb{0%{filter:hue-rotate(0)}100%{filter:hue-rotate(360deg)}}
.rainbow .wkey{background:#ffb3c6}
input[type=range]{accent-color:var(--red);width:100%}
a{color:var(--red)}