/* The demo's page: a door (what the demo is, and START), then the game over the whole window. */

body.play { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; place-items: center; }
#door { width: 100%; padding: 24px 12px; }
#door .panel { margin: 0 auto; max-width: 760px; }
#door h1 { --k: 5; margin: -6px 0 14px; }
#door .panel h2 { --k: 2; color: var(--paper); margin: 0 0 26px; }
#door ul { margin: 0 0 1.2em; padding-left: 1.2em; max-width: 38em; }
#door li { margin-bottom: .35em; }
#door strong { color: var(--gold); font-weight: normal; }
#door .buttons { margin: 26px 0 22px; }
.warn { border-left: 6px solid #d9534f; padding: 6px 0 6px 14px; color: #f3c3bd; }

/* Once started: nothing but the game. */
body.playing { display: block; overflow: hidden; background: #0c0a0a; }
body.playing .bar { display: none; }
#glcanvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; z-index: 1; image-rendering: pixelated; }
#glcanvas[hidden] { display: none; }
/* (Behind the canvas, which is clear till the game has drawn its first frame.) */
#wait { position: fixed; inset: 0; margin: 0; display: grid; place-items: center; color: var(--dim); font-size: 20px; z-index: 0; }
#wait[hidden] { display: none; }
#said { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; padding: 12px 16px; font: 15px/1.4 ui-monospace, Consolas, monospace; color: #f0e8d6; background: #5a1f1a; white-space: pre-wrap; }
#said:empty { display: none; }

@media (max-width: 620px) {
  #door h1 { --k: 3; }
}
