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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    color: #121213;
    flex-direction: column;
    min-height: 100vh;
    padding: 10px;
    justify-content: center;
}

header {
    width: 100%;
    max-width: 500px;
    border-bottom: 1px solid #3a3a3c;
    padding: 12px 0;
    margin-bottom: 20px;
}

h1 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.2rem;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 500px;
}

.board {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: 5px;
    padding: 10px;
}

.row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.tile {
    width: 62px;
    height: 62px;
    border: 2px solid #95959c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #ffffff;
    color: #121213;
}

.tile.filled {
    border-color: #565758;
    animation: pop 0.1s ease-in-out;
}

.tile.correct {
    background-color: #538d4e;
    border-color: #538d4e;
    color: #ffffff;
}

.tile.present {
    background-color: #b59f3b;
    border-color: #b59f3b;
    color: #ffffff;
}

.tile.absent {
    background-color: #3a3a3c;
    border-color: #3a3a3c;
    color: #ffffff;
}

@keyframes pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.keyboard {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 8px;
}

.keyboard-row {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.key {
    min-width: 43px;
    height: 58px;
    border-radius: 4px;
    border: none;
    background-color: #95959c;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.1s;
}

.key:hover {
    background-color: #9a9a9c;
}

.key:active {
    background-color: #6e6e70;
}

.key.wide {
    min-width: 65px;
    font-size: 12px;
}

.key.correct {
    background-color: #538d4e;
}

.key.present {
    background-color: #b59f3b;
}

.key.absent {
    background-color: #3a3a3c;
}

.message {
    position: fixed;
    top: 80px;
    background-color: #ffffff;
    color: #000000;
    padding: 16px;
    border-radius: 4px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.message.show {
    opacity: 1;
}

@media (max-width: 480px) {
    .tile {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .key {
        min-width: 32px;
        height: 52px;
        font-size: 12px;
    }

    .key.wide {
        min-width: 52px;
    }
}

#current-page {
    color: #246daf;
}

.sidenav {
    width: 200px;
    position: fixed;
    z-index: 1;
    top: 20px;
    left: 20px;
    background: #eee;
    overflow-x: hidden;
    padding: 8px 0;
}

.sidenav a {
    padding: 6px 8px 6px 16px;
    text-decoration: none;
    font-size: 19px;
    color: #2196F3;
    display: block;
}

.sidenav a:hover {
    color: #064579;
}