/* ===== Game Page Layout — Day 37 Design System ===== */

.top-nav-bar {
    height: var(--topbar-height, 60px);
    width: 100%;
    z-index: var(--z-topbar);
    position: relative;
}

.game-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-deep);
}

.game-area {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
    z-index: var(--z-vignette);
}

/* Floating panels (Market, Inventory) sit here */
.ui-layer {
    position: absolute;
    inset: 0;
    z-index: var(--z-ui);
    pointer-events: none;
}

/* Centered modals (Settings, Leaderboard, Trade) sit here */
.modal-layer {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-topbar);
    pointer-events: none;
}

/* Ensure children (like the Settings box) still get clicks */
.modal-layer > * {
    pointer-events: auto;
}