:root { font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; line-height: 1.5; font-weight: 400; color-scheme: dark light; color: rgba(255, 255, 255, 0.87); background-color: #242424; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; } body { margin: 0; display: flex; place-items: center; min-width: 320px; min-height: 100vh; background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); } #app { width: 100%; max-width: 1200px; margin: 0 auto; padding: 2rem; text-align: center; } .game-container { background: rgba(0, 0, 0, 0.3); border-radius: 15px; padding: 2rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); } h1 { font-size: 3.2em; line-height: 1.1; margin-bottom: 1rem; background: linear-gradient(45deg, #4CAF50, #81C784); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-shadow: 0 2px 10px rgba(76, 175, 80, 0.3); } .game-info { margin-bottom: 1.5rem; } .game-info p { margin: 0.5rem 0; font-size: 1.1em; opacity: 0.9; } .visual-warning { color: #ff6b6b !important; font-weight: bold; animation: pulse 2s infinite; } .audio-warning { color: #ffd700 !important; font-weight: bold; animation: pulse 2s infinite; } .audio-hint { color: #87ceeb !important; font-size: 0.9em; font-style: italic; opacity: 0.8; } @keyframes pulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } } #gameCanvas { border: 3px solid rgba(255, 255, 255, 0.2); border-radius: 10px; background: #1a1a1a; box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.05); margin: 1rem 0; display: block; margin-left: auto; margin-right: auto; } .controls { display: flex; gap: 1rem; justify-content: center; align-items: center; margin-top: 1.5rem; flex-wrap: wrap; } .controls button { background: linear-gradient(45deg, #4CAF50, #45a049); color: white; border: none; padding: 0.8rem 1.5rem; border-radius: 25px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3); border: 1px solid rgba(255, 255, 255, 0.2); } .animal-input { background: rgba(255, 255, 255, 0.1); color: white; border: 2px solid rgba(76, 175, 80, 0.5); padding: 0.8rem 1.5rem; border-radius: 25px; font-size: 1rem; min-width: 250px; transition: all 0.3s ease; outline: none; } .animal-input:focus { border-color: #4CAF50; box-shadow: 0 0 20px rgba(76, 175, 80, 0.3); background: rgba(255, 255, 255, 0.15); } .animal-input::placeholder { color: rgba(255, 255, 255, 0.6); } .animal-directions { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.8rem; margin: 1rem 0; padding: 1rem; background: rgba(76, 175, 80, 0.1); border-radius: 10px; border: 1px solid rgba(76, 175, 80, 0.3); } .direction-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; background: rgba(255, 255, 255, 0.05); border-radius: 8px; font-size: 0.9rem; transition: all 0.3s ease; } .direction-item:hover { background: rgba(76, 175, 80, 0.2); transform: translateY(-1px); } .debug-info { margin: 1rem 0; padding: 1rem; background: rgba(68, 68, 255, 0.1); border: 2px solid rgba(68, 68, 255, 0.3); border-radius: 10px; color: #ffffff; text-align: left; } .debug-info h3 { margin-top: 0; color: #4444ff; font-size: 1.2rem; } .debug-info p { margin: 0.5rem 0; font-size: 0.9rem; } .debug-info strong { color: #ffff44; } .controls button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4); background: linear-gradient(45deg, #45a049, #4CAF50); } .controls button:active { transform: translateY(0); box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3); } /* Responsive design */ @media (max-width: 768px) { #app { padding: 1rem; } .game-container { padding: 1rem; } h1 { font-size: 2.5em; } #gameCanvas { max-width: 100%; height: auto; } .controls { flex-direction: column; gap: 0.8rem; } .animal-input { min-width: 200px; } .animal-directions { grid-template-columns: 1fr; } }