* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f7fa;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.container {
    max-width: 600px;
    width: 100%;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-buttons button {
    background: #e2e8f0;
    border: none;
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    margin-left: 0.5rem;
}

.header-buttons button:hover {
    background: #cbd5e1;
}

.stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
    background: #f1f5f9;
    padding: 0.75rem;
    border-radius: 3rem;
}

.hints-panel, .guesses-panel {
    background: #f8fafc;
    border-radius: 1.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.hints-panel h3, .guesses-panel h3 {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 0.75rem;
}

#hintList, #guessList {
    list-style: none;
}

#hintList li, #guessList li {
    padding: 0.5rem;
    margin: 0.25rem 0;
    background: white;
    border-radius: 2rem;
    border: 1px solid #e2e8f0;
}

.hint-placeholder {
    color: #94a3b8;
    font-style: italic;
}

.input-area {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#guessInput {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 3rem;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}

#guessInput:focus {
    border-color: #3b82f6;
}

#guessBtn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 3rem;
    padding: 0 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

#guessBtn:hover {
    background: #2563eb;
}

.message {
    text-align: center;
    min-height: 2rem;
    font-weight: 500;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 2rem;
    max-width: 400px;
    margin: 1rem;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem; right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 480px) {
    .container { padding: 1rem; }
    h1 { font-size: 1.75rem; }
    .stats { gap: 1rem; }
    .input-area { flex-wrap: wrap; }
    #guessBtn { width: 100%; padding: 0.75rem; }
}