#view-game {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    padding: 0;
    margin: 0;
    display: none;
    flex-direction: column;
}

#view-game.active {
    display: flex !important;
}

.game-container {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

#unity-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-exit-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-family: 'Fredoka', sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-exit-btn:active {
    transform: scale(0.9);
}

.game-exit-btn ion-icon {
    font-size: 1.5rem;
}

/* Hide bottom nav when in game view */
body:has(#view-game.active) .bottom-nav {
    display: none !important;
}

/* Landscape optimization for mobile */
@media screen and (orientation: landscape) {
    .game-exit-btn {
        top: 10px;
        right: 10px;
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}
