* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito', sans-serif; line-height: 1.6; color: #2d3436; background: #ffeaa7; min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
header { background: linear-gradient(135deg, #ff6b6b, #feca57); padding: 20px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 32px; font-weight: 800; color: #fff; text-decoration: none; text-shadow: 2px 2px rgba(0,0,0,0.2); }
.logo span { color: #fff; }
nav a { color: #fff; text-decoration: none; margin-left: 25px; font-weight: 600; font-size: 16px; text-shadow: 1px 1px rgba(0,0,0,0.2); }
nav a:hover { transform: scale(1.1); }
.hero { background: linear-gradient(135deg, #a29bfe, #6c5ce7); color: #fff; padding: 80px 0; text-align: center; border-radius: 0 0 50% 50% / 30px; }
.hero h1 { font-size: 48px; margin-bottom: 15px; text-shadow: 2px 2px rgba(0,0,0,0.2); }
.hero p { font-size: 20px; opacity: 0.95; }
main { padding: 50px 0; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 25px; margin-top: 30px; }
.game-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: all 0.3s ease; cursor: pointer; transform: translateY(0); }
.game-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.game-card .thumb { height: 140px; background: linear-gradient(135deg, #fd79a8, #e84393); display: flex; align-items: center; justify-content: center; font-size: 50px; }
.game-card-content { padding: 20px; text-align: center; }
.game-card h3 { font-size: 18px; color: #2d3436; margin-bottom: 8px; }
.game-card p { color: #636e72; font-size: 14px; }
.game-card .play-btn { display: inline-block; margin-top: 12px; padding: 10px 25px; background: linear-gradient(135deg, #ff6b6b, #feca57); color: #fff; text-decoration: none; border-radius: 25px; font-size: 14px; font-weight: bold; }
.game-page { background: linear-gradient(135deg, #a29bfe, #6c5ce7); min-height: calc(100vh - 200px); padding: 30px; }
.game-container { max-width: 900px; margin: 0 auto; background: #fff; border-radius: 25px; padding: 30px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.game-container h1 { color: #2d3436; text-align: center; margin-bottom: 10px; font-size: 32px; }
.game-container .desc { color: #636e72; text-align: center; margin-bottom: 25px; font-size: 16px; }
.game-area { background: #2d3436; border-radius: 15px; min-height: 450px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.back-link { display: inline-block; margin-bottom: 20px; color: #fff; text-decoration: none; font-weight: 600; font-size: 18px; }
.back-link:hover { transform: scale(1.05); }
.instructions { background: linear-gradient(135deg, #fd79a8, #e84393); padding: 25px; border-radius: 15px; margin-top: 25px; color: #fff; }
.instructions h3 { margin-bottom: 15px; }
.instructions ul { margin-left: 20px; }
.instructions li { margin-bottom: 8px; font-size: 15px; }
footer { background: #2d3436; color: #fff; padding: 30px 0; text-align: center; }
footer a { color: #feca57; text-decoration: none; }
.category-title { color: #2d3436; margin: 40px 0 25px; font-size: 28px; border-bottom: 4px solid #ff6b6b; padding-bottom: 12px; display: inline-block; }
.game-area canvas { max-width: 100%; border-radius: 15px; }
