/* hazeljs-examples, Bug run (0.0.49): the field, a canvas; its numbers above it; three big buttons under it */
.cp-check { display: inline-flex; align-items: center; gap: 6px; }
.cp-bar { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; font-variant-numeric: tabular-nums; margin: 6px 0; }
.cp-bar #metres { font-size: 1.5em; font-weight: 700; }
.cp-wrap { display: flex; justify-content: center; }
.cp-wrap canvas { width: min(100%, 520px, calc((100vh - 170px) * 0.75)); height: auto; aspect-ratio: 3 / 4; border-radius: 14px; touch-action: none; box-shadow: 0 2px 12px rgb(0 0 0 / 0.25); background: #1c1917; }
.cp-wrap canvas, .cp-pad button { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.cp-pad { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; max-width: 520px; margin: 10px auto 0; }
.cp-pad button { font: inherit; font-size: 1.5em; padding: 14px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); touch-action: none; user-select: none; }
.cp-pad button.held { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, var(--paper)); }
/* full screen, two columns: the controls at the left, the field as tall as the window, its buttons under it */
html.oracle-fs .cp-ui { grid-template-columns: minmax(200px, 0.55fr) minmax(0, 3fr); grid-template-rows: auto minmax(0, 1fr) auto; }
html.oracle-fs .cp-ui > .cp-bar { grid-column: 2; grid-row: 1; justify-self: center; margin: 0 0 6px; }
html.oracle-fs .cp-ui > .cp-wrap { grid-column: 2; grid-row: 2; align-self: stretch; min-height: 0; container-type: size; align-items: center; }
/* (the field keeps its shape, 3 by 4, as large as its cell allows either way, as Pinball's table does) */
html.oracle-fs .cp-ui .cp-wrap canvas { width: min(100cqw, 75cqh); height: auto; max-width: none; }
html.oracle-fs .cp-ui > .cp-pad { grid-column: 2; grid-row: 3; width: min(100%, 560px); }
html.oracle-fs .cp-ui > .fs-cast { grid-row: 1 / -1; }
@media (max-width: 900px) {
  html.oracle-fs .cp-ui > .cp-wrap { container-type: normal; }
  html.oracle-fs .cp-ui .cp-wrap canvas { width: min(100%, calc((100vh - 190px) * 0.75)); }
}
/* (0.0.63) the music's and the sounds' switches, as Star wave's */
.cp-toggle { font-size: 1.15em; padding: 2px 8px; }
.cp-toggle[aria-pressed="false"] { opacity: 0.45; text-decoration: line-through; }
