body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 24px auto;
    padding: 0 16px;
    background: #0e0e10;
}

main {
    display: flex;
}

.menu {
    position: fixed;
    left: -200px;
    transition: 0.3s;
}

.menu.opened {
    left: 20px;
}

.menu__items {
    display: flex;
    flex-direction: column;
    width: 200px;
    gap: 10px;
}

h1 {
    margin-bottom: 16px;
}

.row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

input,
button {
    padding: 10px 12px;
    font-size: 16px;
    font-family: 'Roboto', Arial, sans-serif;;
}

.game-field {
    flex: 1;
}

.game-field .container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

#status {
    color: #9147ff;
    font-size: 20px;
    margin: 0 20px 20px;
}

#lastGuess {
    margin-bottom: 35px;
    transition: transform 0.12s ease;
}

.section-title {
    margin: 20px 0 10px;
    font-size: 18px;
    font-weight: bold;
}

#guesses {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guess {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    width: 100%;
    position: relative;
}

.user-name {
    text-align: left;
    color: #9147ff;
    position: absolute;
    right: -20px;
    transform: translate(100%, 0);
}

.guess-word {
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 24px;
    background: white;
    width: 100%;
}

.guess-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    height: 100%;
    opacity: 0.85;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.guess-content {
    position: relative;
    z-index: 1;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
}

.guess.correct {
    border-color: #2e7d32;
}

.meta {
    color: #555;
    font-size: 14px;
    margin-bottom: 4px;
}

.error {
    color: #b00020;
}

.muted {
    color: #777;
}

.btn {
    background: #9147ff;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 15px;
    cursor: pointer;
}

.input {
    border: none;
    border-radius: 30px;
}

#status.success {
    animation: pulseGlow 1.5s infinite ease-in-out;
    color: #fff;
    background: #9147ff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 15px;
    text-align: center;
    font-size: 25px;
    line-height: 1.5;
}

.pulse-glow {
    animation: pulseGlow 1.5s infinite ease-in-out;
}
  
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}


.menu__btn {
    width: 40px;
    height: 30px;
    position: relative;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.menu__btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s ease;
}

.menu__btn span:nth-child(1) {
    top: 0;
}

.menu__btn span:nth-child(2) {
    top: 13px;
}

.menu__btn span:nth-child(3) {
    top: 26px;
}

.opened .menu__btn span:nth-child(1) {
    top: 13px;
    transform: rotate(45deg);
}

.opened .menu__btn span:nth-child(2) {
    opacity: 0;
}

.opened .menu__btn span:nth-child(3) {
    top: 13px;
    transform: rotate(-45deg);
}

.menu__content {
    display: flex;
    /* align-items: center; */
    gap: 10px;
}