@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    font-family: sans-serif;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #111;
}

/* ───────────── 2-column shell ───────────── */
#app {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* Left: game takes all remaining space */
#game-area {
    flex: 1;
    min-width: 0;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

#phaser-container {
    width: 100%;
    height: 100%;
}

/* Right: fixed-width sidebar */
#sidebar {
    width: 380px;
    flex-shrink: 0;
    height: 100vh;
    overflow-y: auto;
    background: #f5f5f7;
    border-left: 2px solid #c8c8cc;
    display: flex;
    flex-direction: column;
}

canvas {
    display: block;
}

/* ───────────── misc ───────────── */
button { cursor: pointer; }

#debug {
    position: absolute;
    z-index: 1;
    background-color: black;
    right: 0; top: 0;
    color: white;
    width: 200px;
}

.modal-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(3px);
}

.modal {
    box-sizing: border-box;
    background-color: #eeeeee;
    border-radius: 10px;
    padding: 1em;
    width: 95%;
    height: 95%;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.display-none { display: none; }

/* legacy — keep for compatibility */
.container { display: contents; }
