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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.bruhbruh {
    width: 100%;
    max-width: 455px;
    background: white;
    padding: 20px;
}

.topnav {
    height: 40px;
    margin-bottom: 20px;
}

#table {
    margin: 0 auto;
    border-collapse: collapse;
}

#table td {
    padding: 0;
    position: relative;
}

.cell {
    width: 45px;
    height: 45px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    background-color: white;
    cursor: pointer;
}

.cell:focus {
    outline: none;
}

.black-cell {
    background-color: black !important;
    cursor: default;
}

.cell-number {
    position: absolute;
    top: 2px;
    left: 3px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    color: #666;
    pointer-events: none;
}

#hint-container {
    margin: 20px 0;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
}

#hint-text {
    flex: 1;
    text-align: center;
    margin: 0 10px;
}

#prev-hint, #next-hint {
    background: white;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

#keyboard {
    margin-top: 20px;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.keyboard-row button {
    width: 32px;
    height: 40px;
    margin: 0 3px;
    border: 1px solid #ccc;
    background: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
}

.keyboard-row button:active {
    background: #ddd;
}

@media (max-width: 480px) {
    .cell {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .keyboard-row button {
        width: 28px;
        height: 36px;
        font-size: 14px;
        margin: 0 2px;
    }
}