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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none;
    background: #0a0612;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: stretch;
}

#gameCanvas {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    border: none;
    outline: none;
    background: #1a0a2e;
    touch-action: none;
    /* Keep portrait game aspect while filling height */
    object-fit: contain;
}

.nav {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    margin: 0;
    font-size: 11px;
    pointer-events: none;
    text-shadow: 0 1px 3px #000;
}

.nav a {
    color: rgba(200, 200, 200, 0.75);
    text-decoration: none;
    pointer-events: auto;
    margin: 0 4px;
}

.nav a:hover {
    color: #f5a623;
}
