
#split { --accent: var(--h1); }

/* ── 05 SPLIT SCREEN (ss-) ─────────────────────────────── */
/* ── 05 SPLIT SCREEN ─────────────────────────────────────── */
.ss-grid-wrap { position: relative; padding: 16px 16px 2px; }
#ssGrid { display: block; width: 100%; height: 240px; }
.ss-tiles { position: absolute; left: 16px; top: 16px; }
.ss-tile {
  position: absolute;
  border-radius: 10px;
  background: transparent;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ss-tile:focus-visible { border-radius: 10px; outline-offset: 2px; }
.ss-hint {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max-content; max-width: calc(100% - 48px);
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid rgba(244,239,230,0.16);
  background: rgba(5,5,16,0.86);
  font-size: 13px; line-height: 1.35; text-align: center;
  text-wrap: balance;
  color: var(--paper);
  pointer-events: none;
  transition: opacity 0.4s, visibility 0s linear 0.4s;
}
.ss-hint.off { opacity: 0; visibility: hidden; }

.ss-pads {
  --ss-line: rgba(255,184,74,0.4);
  --ss-hit: rgba(255,184,74,0.22);
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px;
  padding: 14px 18px;
  touch-action: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.ss-pad {
  position: relative;
  min-height: 64px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 6px 2px;
  border-radius: 16px;
  border: 1px solid var(--ss-line);
  background: rgba(244,239,230,0.04);
  touch-action: none;
  transition: background 0.12s;
}
@media (hover: hover) { .ss-pad:hover { background: rgba(244,239,230,0.07); } }
.ss-pad.hit { background: var(--ss-hit); transition: none; }
.ss-pad:focus-visible { border-radius: 16px; outline-offset: 2px; }
.ss-pad:disabled { opacity: 0.45; cursor: not-allowed; }
.ss-pad.colour::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 13px;
  border: 1px solid rgba(180,136,255,0.5);
  pointer-events: none;
}
.ss-pad .n { font-family: var(--display); font-size: 20px; line-height: 1; letter-spacing: -0.01em; color: var(--paper); white-space: nowrap; }
.ss-pad.beat .n { font-size: 14px; letter-spacing: 0; white-space: normal; text-align: center; line-height: 1.05; }
.ss-pad .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-dim); }
.ss-foot-r { display: grid; gap: 4px; text-align: right; }
#ssRec[aria-pressed='true'] .ico.rec { background: var(--ink); }
#split .btn.nudge { animation: ss-nudge 1.8s ease-in-out 4; }
@keyframes ss-nudge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,78,38,0); }
  50% { box-shadow: 0 0 0 1px var(--h1), 0 0 18px rgba(255,78,38,0.35); border-color: var(--h1); }
}
/* The stage is much shorter than the copy here: let it ride along with the controls */
@media (min-width: 961px) and (min-height: 700px) {
  #split .exp-stage { position: sticky; top: calc(var(--hl-bar-h, 48px) + 24px); align-self: start; }
}
@media (max-width: 560px) {
  .ss-grid-wrap { padding: 12px 12px 2px; }
  .ss-tiles { left: 12px; top: 12px; }
  .ss-pads { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 14px 12px; }
  .ss-foot-r { text-align: left; }
  /* On the 2 × 3 grid the middle is a label row (MALLETS … YOU): sit on the bottom row's rolls instead */
  .ss-hint { top: auto; bottom: 12px; transform: translateX(-50%); max-width: calc(100% - 40px); font-size: 12px; border-radius: 16px; }
  #split .stage > .inline-msg { margin: 0 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #split .btn.nudge { box-shadow: 0 0 0 1px var(--h1); border-color: var(--h1); }
}
