* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Crimson Text', Georgia, serif; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); min-height: 100vh; color: #e8e8e8; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
header { background: linear-gradient(90deg, #2c1810, #4a2c2a); padding: 20px 0; position: sticky; top: 0; z-index: 100; border-bottom: 3px solid #c9a959; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.logo { font-size: 32px; font-weight: 700; color: #c9a959; text-decoration: none; font-family: 'Playfair Display', serif; }
nav a { color: #d4af37; text-decoration: none; margin-left: 30px; font-size: 18px; transition: color 0.3s; }
nav a:hover { color: #fff; }
.hero { background: linear-gradient(135deg, rgba(44,24,16,0.9), rgba(74,44,42,0.9)); padding: 80px 0; text-align: center; border-bottom: 3px solid #c9a959; }
.hero h1 { font-size: 56px; color: #c9a959; margin-bottom: 15px; font-family: 'Playfair Display', serif; }
.hero p { font-size: 22px; color: #ccc; }
main { padding: 50px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.card { background: linear-gradient(145deg, #2a1f1a, #1a1512); border-radius: 20px; padding: 30px; border: 2px solid #4a3c32; transition: all 0.4s; box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.card:hover { transform: translateY(-10px); border-color: #c9a959; box-shadow: 0 20px 60px rgba(201,169,89,0.2); }
.card .icon { font-size: 50px; margin-bottom: 15px; }
.card h3 { color: #c9a959; font-size: 24px; margin-bottom: 12px; font-family: 'Playfair Display', serif; }
.card p { color: #aaa; font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.card a { display: inline-block; padding: 12px 28px; background: linear-gradient(90deg, #c9a959, #d4af37); color: #1a1a2e; text-decoration: none; border-radius: 30px; font-weight: 700; transition: transform 0.3s; }
.card a:hover { transform: scale(1.05); }
footer { background: #1a1512; color: #666; padding: 30px 0; text-align: center; border-top: 2px solid #4a3c32; }
.game-page { background: linear-gradient(145deg, #2a1f1a, #1a1512); border-radius: 25px; padding: 40px; margin: 30px auto; max-width: 900px; border: 2px solid #c9a959; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.game-page h1 { color: #c9a959; font-size: 32px; margin-bottom: 10px; text-align: center; font-family: 'Playfair Display', serif; }
.game-page .desc { color: #aaa; text-align: center; margin-bottom: 25px; }
.board-container { display: flex; flex-direction: column; align-items: center; }
.board { display: grid; grid-template-columns: repeat(8, 50px); grid-template-rows: repeat(8, 50px); border: 4px solid #c9a959; margin-bottom: 20px; }
.square { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; font-size: 32px; cursor: pointer; }
.square.light { background: #e8d4b8; color: #000; }
.square.dark { background: #8b4513; color: #fff; }
.square.selected { box-shadow: inset 0 0 0 3px #c9a959; }
.square.valid { box-shadow: inset 0 0 0 3px #4CAF50; }
.controls { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.controls button { padding: 12px 24px; background: linear-gradient(90deg, #c9a959, #d4af37); color: #1a1a2e; border: none; border-radius: 25px; font-weight: 700; cursor: pointer; font-size: 16px; }
.controls button:hover { transform: scale(1.05); }
.status { color: #c9a959; font-size: 20px; text-align: center; padding: 15px; background: rgba(201,169,89,0.1); border-radius: 10px; margin-bottom: 20px; }
.rules { background: rgba(201,169,89,0.1); padding: 20px; border-radius: 15px; margin-top: 25px; border-left: 4px solid #c9a959; }
.rules h3 { color: #c9a959; margin-bottom: 12px; }
.rules ul { color: #ccc; margin-left: 20px; }
.rules li { margin-bottom: 8px; }
.back-link { color: #c9a959; text-decoration: none; font-size: 18px; }