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

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

#canvas {
    display: block;
    touch-action: none;
}

#meanwhile {
    position: fixed;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: min(90vw, 520px);
    text-align: center;
    color: rgba(235, 220, 200, 0.55);
    font-size: 15px;
    font-style: italic;
    line-height: 1.9;
    letter-spacing: 0.3px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2.5s ease;
}

#meanwhile.visible {
    opacity: 1;
}

#readout {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: rgba(220, 205, 185, 0.35);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    text-align: right;
    line-height: 1.7;
    pointer-events: none;
}

#surface {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(220, 205, 185, 0.35);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, color 0.3s ease;
    z-index: 10;
}

#surface.visible {
    opacity: 1;
    pointer-events: auto;
}

#surface:hover {
    color: rgba(220, 205, 185, 0.8);
}

#hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
    font-style: italic;
    letter-spacing: 0.5px;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 1.5s;
}

#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 {
        bottom: 48px;
        font-size: 12px;
    }
}
