* { margin: 0; padding: 0; box-sizing: border-box; } body { background-color: #1a1a2e; color: #fff; font-family: 'Press Start 2P', cursive; min-height: 100vh; overflow-x: hidden; } /* CRT Scanline Effect */ body::before { content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient( 0deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15) 1px, transparent 1px, transparent 2px ); pointer-events: none; z-index: 1000; } #app { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; } .screen { display: none; flex-direction: column; align-items: center; gap: 20px; width: 100%; max-width: 1200px; } .screen.active { display: flex; } h1 { font-size: 2rem; text-align: center; color: #0ff; text-shadow: 4px 4px 0 #ff00ff; margin-bottom: 30px; } h2 { font-size: 1.2rem; color: #0f0; text-shadow: 2px 2px 0 #004400; } h3 { font-size: 1rem; color: #ff0; text-shadow: 2px 2px 0 #444400; } .form-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px; } label { font-size: 0.7rem; color: #888; } input { background: #0a0a1a; border: 2px solid #333; color: #fff; font-family: 'Press Start 2P', cursive; font-size: 0.8rem; padding: 15px; text-align: center; outline: none; } input:focus { border-color: #0ff; } button { background: #ff00ff; border: 4px solid #fff; color: #fff; font-family: 'Press Start 2P', cursive; font-size: 1rem; padding: 15px 30px; cursor: pointer; text-transform: uppercase; transition: transform 0.1s; } button:hover { transform: scale(1.05); background: #0ff; color: #000; } button:active { transform: scale(0.95); } #player-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; min-height: 150px; } .player-item { background: #0a0a1a; border: 2px solid #333; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; } .player-item .name { color: #0ff; } .player-item .status { color: #888; } .player-item .status.ready { color: #0f0; } /* Battle Grid - Responsive Layout */ #battle-grid { display: grid; gap: 20px; justify-content: center; margin-top: 20px; } #battle-grid.grid-2x2 { grid-template-columns: repeat(2, 1fr); } #battle-grid.grid-2x4 { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); } .player-board { background: #000; border: 4px solid #333; padding: 10px; display: flex; flex-direction: column; align-items: center; position: relative; } .player-board.active { border-color: #0ff; } .player-board.eliminated { border-color: #f00; opacity: 0.5; } .player-board canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; } .board-info { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 10px 5px; font-size: 0.6rem; } .board-info .name { color: #0ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .board-info .stats { color: #888; } .next-piece-container { display: flex; align-items: center; gap: 5px; } .next-piece-container canvas { border: 1px solid #333; } #game-header { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 10px 20px; background: #0a0a1a; border: 2px solid #333; margin-bottom: 20px; } #game-header span { font-size: 0.8rem; color: #0f0; } #game-header button { font-size: 0.7rem; padding: 10px 15px; } #game-status { margin-top: 20px; padding: 15px; background: #0a0a1a; border: 2px solid #333; text-align: center; font-size: 0.8rem; color: #ff0; } #winner-display { margin: 20px 0; font-size: 1.2rem; } #final-scores { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; width: 100%; max-width: 400px; } #final-scores .score-item { background: #0a0a1a; border: 2px solid #333; padding: 10px 15px; display: flex; justify-content: space-between; } #final-scores .score-item.winner { border-color: #0f0; color: #0f0; } /* Garbage row animation */ @keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } } .player-board.shake { animation: shake 0.2s ease-in-out; } /* Flash effect for row clear */ @keyframes flash { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .player-board.flash { animation: flash 0.3s ease-in-out; }