body {
    margin: 0;
    padding: 0;
    background: #1e4b7a;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    color: white;
    padding-top: 20px;
}

.header {
    background: #184ed6;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.header h1 { margin: 0; font-size: 2rem; }

.stats {
    font-size: 1.2rem;
    margin-bottom: 15px;
    background: rgba(0,0,0,0.2);
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
}

#game-container {
    background: #fbfbf8;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    max-width: 98vw;
    overflow-x: auto;
}

#game-board { display: grid; gap: 2px; }

.cell {
    width: 28px; height: 28px; background: transparent;
    color: #0a1e45; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: bold; user-select: none;
}

.controls {
    margin-top: 20px; background: rgba(0,0,0,0.3);
    padding: 20px; border-radius: 12px; text-align: center;
    width: 90%; max-width: 600px; margin-bottom: 30px;
}

.input-group { display: flex; justify-content: center; gap: 10px; margin-bottom: 10px; }

#answerInput {
    padding: 10px 15px; font-size: 1.2rem; border-radius: 8px; border: none; width: 120px; text-align: center;
}

button { padding: 10px 25px; font-size: 1.2rem; border-radius: 8px; border: none; cursor: pointer; font-weight: bold; }
#submitBtn { background: #22c55e; color: white; }
#submitBtn:hover { background: #16a34a; }

#giveUpBtn { background: #ef4444; color: white; margin-top: 10px; }
#giveUpBtn:hover { background: #dc2626; }

#messageBox { min-height: 30px; margin-top: 10px; font-weight: bold; font-size: 1.1rem; }

@media (max-width: 600px) {
    .cell { width: 18px; height: 18px; font-size: 0.8rem; gap: 1px; }
    .header h1 { font-size: 1.4rem; }
    #game-container { padding: 8px; }
}
