/* LEVEL UP, the Opshaus game page. Kept out of src/ on purpose: it is its own little site, not a landing-page section. */
html, body { margin: 0; height: 100%; background: #05050d; overflow: hidden; overscroll-behavior: none; }
body { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
#app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#stage { position: relative; width: var(--w, 360px); height: var(--h, 640px); box-shadow: 0 0 0 1px #1c1b33, 0 30px 80px rgba(0, 0, 0, 0.6); }
#stage canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; cursor: pointer; }
/* a faint scanline, the way the old screens looked */
#stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0.09) 3px); }
#mute { position: fixed; top: max(10px, env(safe-area-inset-top)); right: 10px; width: 40px; height: 40px; border: 2px solid #2a2850; background: #14132b; color: #e9e6ff; font: 700 16px/1 system-ui, sans-serif; cursor: pointer; z-index: 5; }
#back { position: fixed; top: max(10px, env(safe-area-inset-top)); left: 10px; height: 40px; display: inline-flex; align-items: center; padding: 0 12px; border: 2px solid #2a2850; background: #14132b; color: #e9e6ff; font: 700 12px/1 system-ui, sans-serif; letter-spacing: 0.04em; text-decoration: none; text-transform: uppercase; z-index: 5; }
.touch #back { display: none; }

/* end and start screen buttons are drawn in the canvas as pixel art; these invisible links sit exactly on top */
#intro, #end { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
#intro[hidden], #end[hidden] { display: none; }
.hot { position: absolute; display: block; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.hot:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
/* phones: the game fills the screen; two see-through steering buttons float over its bottom edge while you play */
#pad { display: none; position: absolute; left: 0; right: 0; bottom: max(10px, env(safe-area-inset-bottom)); padding: 0 10px; justify-content: space-between; align-items: center; gap: 14px; z-index: 3; pointer-events: none; }
.touch.playing #pad { display: flex; }
#pad button { pointer-events: auto; flex: 0 0 34%; height: 66px; border: 3px solid rgba(90, 88, 150, 0.9); border-radius: 0; background: rgba(16, 15, 40, 0.55); color: #e9e6ff; font: 800 26px/1 system-ui, sans-serif; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6); touch-action: none; }
#pad button.on { background: rgba(43, 42, 90, 0.75); transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6); }
.touch #mute { position: static; flex: 0 0 auto; width: 40px; height: 40px; }
.touch:not(.playing) #mute { display: none; }