Changed around line 1
+ :root {
+ --primary-color: #2c3e50;
+ --secondary-color: #34495e;
+ --accent-color: #e74c3c;
+ --text-color: #ecf0f1;
+ --grid-size: min(20px, 4vw);
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
+ color: var(--text-color);
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ }
+
+ header {
+ width: 100%;
+ padding: 1rem;
+ text-align: center;
+ background: rgba(0, 0, 0, 0.2);
+ backdrop-filter: blur(5px);
+ }
+
+ h1 {
+ font-size: 2.5rem;
+ margin-bottom: 1rem;
+ text-transform: uppercase;
+ letter-spacing: 3px;
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
+ }
+
+ .game-container {
+ display: flex;
+ gap: 2rem;
+ padding: 2rem;
+ margin: 2rem auto;
+ background: rgba(0, 0, 0, 0.3);
+ border-radius: 1rem;
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
+ }
+
+ .game-area {
+ width: calc(var(--grid-size) * 10);
+ height: calc(var(--grid-size) * 20);
+ background: rgba(0, 0, 0, 0.4);
+ border: 2px solid rgba(255, 255, 255, 0.1);
+ display: grid;
+ grid-template-columns: repeat(10, var(--grid-size));
+ grid-template-rows: repeat(20, var(--grid-size));
+ gap: 1px;
+ }
+
+ .cell {
+ background: rgba(255, 255, 255, 0.1);
+ border-radius: 2px;
+ transition: background-color 0.2s;
+ }
+
+ .cell.active {
+ background: var(--accent-color);
+ box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
+ }
+
+ .controls {
+ display: flex;
+ flex-direction: column;
+ gap: 1rem;
+ }
+
+ button {
+ padding: 0.8rem 1.5rem;
+ background: var(--accent-color);
+ border: none;
+ border-radius: 0.5rem;
+ color: var(--text-color);
+ cursor: pointer;
+ transition: transform 0.2s, background-color 0.2s;
+ }
+
+ button:hover {
+ background: #c0392b;
+ transform: translateY(-2px);
+ }
+
+ .mobile-controls {
+ display: none;
+ grid-template-columns: repeat(3, 1fr);
+ gap: 0.5rem;
+ margin-top: 1rem;
+ }
+
+ footer {
+ margin-top: auto;
+ padding: 1rem;
+ text-align: center;
+ width: 100%;
+ background: rgba(0, 0, 0, 0.2);
+ }
+
+ @media (max-width: 768px) {
+ .game-container {
+ flex-direction: column;
+ align-items: center;
+ }
+
+ .mobile-controls {
+ display: grid;
+ }
+
+ .game-area {
+ width: calc(var(--grid-size) * 10);
+ height: calc(var(--grid-size) * 20);
+ }
+ }