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

body {
    background-color: white;
    color: black;
    height: 100vh;
    overflow: hidden;
}

#loading-screen,
#difficulty-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    z-index: 3000;
}

#game-load-box {
    display: block;
    width: 240px;
    min-height: auto;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.85);
}

.pnlm-lbar {
    width: 180px;
    margin: 0 auto;
    border: #fff 1px solid;
    height: 8px;
}

.pnlm-lbar-fill {
    background: #fff;
    height: 100%;
    width: 0;
}

.pnlm-lmsg {
    font-size: 12px;
    margin-top: 12px !important;
}

#difficulty-box {
    padding: 24px;
    border: 1px solid black;
    background: white;
    text-align: center;
}

#difficulty-buttons {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    justify-content: center;
}

#game-notification {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    z-index: 4000;
    opacity: 0;
    pointer-events: none;
}

#game-notification.show {
    opacity: 1;
    pointer-events: auto;
}

#game-notification.fade-out {
    animation: notification-fade-out 0.6s ease forwards;
}

#game-notification-text {
    font-size: 32px;
    border-right: 2px solid black;
    white-space: nowrap;
    padding-right: 4px;
    animation: typing-caret 0.7s steps(1, end) infinite;
}

@keyframes notification-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes typing-caret {
    0%, 50% {
        border-right-color: black;
    }
    51%, 100% {
        border-right-color: transparent;
    }
}

#hat-start {
    position: absolute;
    top: 50px;
    right: 50px;
}

#draggable-hat {
    width: 225px;
    cursor: grab;
    touch-action: none;
    z-index: 1000;
}

#pasha-area {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
}

#pasha-img {
    max-height: 80vh;
    display: block;
    transform-origin: left bottom;
    transition: transform 0.3s ease;
}

#email-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border: 1px solid black;
    background: white;
    z-index: 2000;
}

#email-section.bring-in {
    animation: email-bring-in 0.9s ease forwards;
}

@keyframes email-bring-in {
    0% {
        opacity: 0;
        transform: translate(-50%, -44%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.hidden {
    display: none !important;
}

input, button {
    border: 1px solid black;
    padding: 5px;
    background: white;
    margin-top: 5px;
}

button {
    cursor: pointer;
}

button:hover {
    background: black;
    color: white;
}

#message {
    margin-top: 10px;
}
