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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a0506;
    font-family: 'Times New Roman', Times, serif;
    color: #e0d4c0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: none;
}

/* Loading state - shown before JS kicks in */
#loading-text {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0a0506;
    color: #5a1c1f;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1rem;
    z-index: 9998;
    pointer-events: none;
    animation: fadePulse 2s ease-in-out infinite;
}

@keyframes fadePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Landscape warning for mobile */
#rotate-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0506;
    color: #e0d4c0;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999;
    font-size: 1.2rem;
    padding: 2rem;
}
