/* Babonk's three colours: the ground, pale mint and a mid green for danger and reward (render/sprites-data.js PALETTE) */
:root {
  --ground: #0b0f1e; --mint: #dcefe2; --accent: #469e1a;
  --ui: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ground); color: var(--mint); font: 700 16px var(--ui); }
body { position: fixed; inset: 0; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: none; overscroll-behavior: none; }
[hidden] { display: none !important; }

/* the game's screen: platform/engine.js sizes and centres it on whole device pixels; this keeps its pixels square */
#game { position: absolute; display: block; image-rendering: pixelated; }

/* ---- touch: a stick bottom left, the hold button bottom right, pause top right */
#touch { position: fixed; inset: 0; z-index: 25; pointer-events: none; }
#stick { position: absolute; left: calc(14px + env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: clamp(110px, 34vmin, 160px); aspect-ratio: 1; border-radius: 50%; border: 3px solid #dcefe266; background: #0b0f1e99; pointer-events: auto; touch-action: none; }
#stick i { position: absolute; left: 50%; top: 50%; width: 44%; height: 44%; margin: -22% 0 0 -22%; border-radius: 50%; background: var(--mint); opacity: .8; }
#touch button { position: absolute; pointer-events: auto; touch-action: none; border-radius: 50%; color: var(--mint); font: 800 clamp(18px, 4.6vmin, 26px) var(--ui); letter-spacing: .04em; }
#tHold { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: clamp(92px, 28vmin, 132px); aspect-ratio: 1; background: #469e1acc; border: 4px solid var(--mint); }
#tPause { right: calc(12px + env(safe-area-inset-right, 0px)); top: calc(12px + env(safe-area-inset-top, 0px)); width: 44px; height: 44px; background: #0b0f1eb0; border: 2px solid #dcefe299; font: 700 14px var(--ui) !important; }

#fps { position: fixed; z-index: 60; pointer-events: none; top: calc(6px + env(safe-area-inset-top, 0px)); left: calc(6px + env(safe-area-inset-left, 0px)); padding: 1px 5px; font: 700 12px var(--ui); color: var(--mint); background: #0b0f1ecc; }
#debug { position: fixed; z-index: 70; pointer-events: none; bottom: 8px; left: 8px; padding: 2px 6px; font: 12px ui-monospace, Menlo, monospace; color: #8f8; background: rgba(0, 0, 0, .8); white-space: pre; }
/* the dev rooms' sign (?debug&room=gym | museum): what the row or exhibit shows, its cases and its file */
#room { position: fixed; z-index: 60; pointer-events: none; bottom: 8px; right: 8px; width: min(300px, 40vw); padding: 8px 10px; font: 12px/1.4 ui-monospace, Menlo, monospace; color: #dcefe2; background: rgba(0, 0, 0, .8); }
#room h2 { margin: 0 0 4px; font-size: 13px; color: #f4a23c; }
#room p { margin: 4px 0; }
#room ul { margin: 4px 0; padding-left: 16px; }
#room li.on { color: #fff; font-weight: 700; }
#room li.on::marker { content: '▶ '; }
#room b.easy { color: #8f8; } #room b.hard { color: #f4a23c; } #room b.no { color: #f66; text-decoration: line-through; }
#room .wrong { color: #f66; font-weight: 700; }
#room .file, #room .keys { opacity: .7; }
