* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #1e293b; color: #f8fafc; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 1rem; }
header h1 { font-size: 2rem; color: #a78bfa; margin-bottom: 1rem; }
.controls { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: center; margin-bottom: 1rem; }
.controls select, .controls button { padding: 0.4rem 0.8rem; border-radius: 4px; border: none; font-size: 1rem; cursor: pointer; }
.controls button { background: #a78bfa; color: #1e293b; font-weight: bold; }
.controls b { color: #a78bfa; }
.word { display: flex; gap: 0.5rem; margin: 1.5rem 0; flex-wrap: wrap; justify-content: center; }
.letter { width: 36px; height: 44px; border-bottom: 3px solid #a78bfa; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; }
.keyboard { display: grid; grid-template-columns: repeat(9, 1fr); gap: 0.4rem; max-width: 400px; margin: 1rem 0; }
.keyboard button { padding: 0.5rem; border: none; border-radius: 4px; background: #334155; color: #f8fafc; font-size: 1rem; cursor: pointer; font-weight: bold; }
.keyboard button:hover { background: #475569; }
.keyboard button.used { opacity: 0.3; pointer-events: none; }
.message { font-size: 1.3rem; font-weight: bold; color: #fbbf24; text-align: center; min-height: 2rem; margin-top: 1rem; }
footer { margin-top: 1rem; }
footer a { color: #a78bfa; text-decoration: none; }