/* Play's two physical rows; sites keep their own column count and labels. */
.playtron-root .contact-face,.computer-keys { display:grid; grid-template-columns:repeat(var(--keyboard-columns,20),minmax(0,1fr)); grid-template-rows:repeat(2,var(--control-size)); gap:4px; }
.playtron-root .contact-face button,.computer-keys button[data-key-fill] { grid-column:var(--key-column)/span 2; grid-row:var(--key-row); padding:2px; min-width:0; min-height:var(--control-size); border:1px solid color-mix(in srgb,var(--group-color) 35%,transparent); background:#ffffffa8; color:var(--group-color); border-radius:6px; touch-action:none; user-select:none; -webkit-user-select:none; transition:background .12s,box-shadow .12s; }
.playtron-root .contact-face button span,.computer-keys button span { display:block; font-size:12px; line-height:12px; opacity:.7; }
.playtron-root .contact-face button small { display:block; color:inherit; font-size:14px; line-height:22px; }
.computer-keys button :is(kbd,small) { display:block; font:inherit; font-size:14px; line-height:22px; }
/* One fill for every site (Sergey 34516 п. 7, 34519 п. 7; core/keyboard.mjs drawKeyboardKey): at rest every key is coloured and
   transparent (above); with data-key-fill=scale (TouchMe, Biotron) a key of the scale is filled with its colour at 50 %; a held key is 100 %. */
.computer-keys button[data-key-fill=scale][data-in-scale=true]:not([data-active=true],[aria-pressed=true]) { background:color-mix(in srgb,var(--group-color) 50%,transparent); color:var(--ink); }
.playtron-root .contact-face button.pressed,.playtron-root .contact-face button.looping,.computer-keys button[data-key-fill]:is([data-active=true],[aria-pressed=true]) { background:var(--group-color); border-color:var(--group-color); color:white; box-shadow:0 0 0 4px color-mix(in srgb,var(--group-color) 20%,transparent); }
/* One keyboard and one key size on every site and every screen (Sergey 18.11 13:40, 13:47): Play's two rows, never a square grid; a
   620 px grid of 20 columns, a key 2 columns wide (58.4 px at 620) and 44 px high. Each site marks its 16-key grid data-core-keys;
   :root body and the doubled attribute (0,3,1) outweigh the sites' own rules. */
:root body [data-core-keys][data-core-keys] {--keyboard-columns:20;grid-template-columns:repeat(20,minmax(0,1fr));grid-template-rows:repeat(2,var(--control-size));width:100%;max-width:620px;margin-inline:auto;}
:root body [data-core-keys][data-core-keys] button[data-key-fill] {grid-column:var(--key-column)/span 2;grid-row:var(--key-row);width:auto;height:auto;min-height:var(--control-size);aspect-ratio:auto;}
