.app {
    height: 100vh;
    width: 100vw;
    display: grid;
    place-items: center;
}

.tracker-container {
    position: absolute;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    top: 1vh;
    width: 40%;
    justify-content: space-evenly;
}

@media (max-width: 768px) and (orientation: portrait) {
    .app {
        height: auto;
        min-height: 100vh;
        width: 100vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 1vh;
        padding: 1vh 0;
        overflow-y: auto;
    }

    .tracker-container {
        position: static;
        width: 92vw;
        flex-direction: column;
        align-items: stretch;
        gap: 1vh;
        order: 1;
    }

    .board,
    .flower-market,
    .evolution-tree,
    .current-player-tableau,
    .opponents-tableau,
    .log {
        position: static;
        width: 92vw;
        max-width: 92vw;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
    }

    .board {
        order: 2;
    }

    .flower-market {
        order: 3;
        min-width: 0;
    }

    .evolution-tree {
        order: 4;
    }

    .current-player-tableau {
        order: 5;
    }

    .opponents-tableau {
        order: 6;
        max-height: none;
    }

    .log {
        order: 7;
        aspect-ratio: auto;
        max-height: none;
    }

    .backdrop {
        width: 100%;
        max-height: none;
    }
}
