html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #0b0b0b;
}

#stage {
    display: none;
    position: absolute;
    inset: 0;

    background: #0b0b0b;
}

#front {
    width: 100vw;
    max-width: 1000px;
    min-height: 100vh;

    margin: auto;

    object-fit: contain;
}

#back {
    width: 0;
}

img {
    display: block;
}

/* Landscape override (JS adds .landscape) */
#front.landscape,
#back.landscape {
    width: 100vw;
    height: 100vh;
    max-width: none;

    object-fit: contain;
}

/* Prevent any accidental layout artifacts */
* {
    box-sizing: border-box;
}

#app {
    color: white;
    font-family: sans-serif;
    padding: 20px;
}

.page h1 {
    margin: 10px 0 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.grid a {
    display: block;
    padding: 12px;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

.grid a:hover {
    background: #2a2a2a;
}

a {
    color: white;
}