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

body {
    background: #09090b;
    overflow: hidden;
    font-family: 'Georgia', serif;
}

#canvas {
    display: block;
}

#form {
    position: fixed;
    bottom: 42px;
    left: 50%;
    transform: translateX(-50%);
    width: min(88vw, 560px);
}

#teach {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(246, 232, 210, 0.9);
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 18px;
    text-align: center;
    padding: 8px 4px;
    outline: none;
    transition: border-color 0.4s ease;
}

#teach:focus {
    border-bottom-color: rgba(246, 232, 210, 0.3);
}

#teach::placeholder {
    color: rgba(255, 255, 255, 0.22);
}

#hint {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 92vw;
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-style: italic;
    letter-spacing: 0.4px;
    pointer-events: none;
    transition: opacity 2s;
}

#stats {
    position: fixed;
    top: 22px;
    right: 20px;
    color: rgba(220, 205, 185, 0.3);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    pointer-events: none;
}

#forget {
    position: fixed;
    bottom: 18px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(150, 150, 170, 0.3);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s ease;
}

#forget:hover {
    color: rgba(220, 150, 140, 0.8);
}

#back {
    position: fixed;
    top: 20px;
    left: 20px;
    color: rgba(150, 150, 170, 0.4);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
    z-index: 10;
}

#back:hover {
    color: rgba(150, 150, 170, 0.8);
}

@media (max-width: 600px) {
    #hint {
        display: none;
    }

    #form {
        bottom: 36px;
    }
}
