/* Leseprompter-Spiele: nur dezente Steuerung und Hinweise IM Scrolltext. */
.controls.responsive-ready .responsive-games {
  padding: 9px 12px;
}
.controls.responsive-ready .lp-game-form {
  display: flex;
  align-items: end;
  gap: 8px 12px;
  flex-wrap: wrap;
}
.controls.responsive-ready .lp-game-field {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 12px;
  color: #53657b;
  font-weight: 600;
}
.controls.responsive-ready .lp-game-field select {
  box-sizing: border-box;
  min-width: 142px;
  max-width: 240px;
  min-height: 33px;
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid #c4ceda;
  color: #263e54;
  background: white;
  font-size: 13px;
  line-height: 1.3;
}
.controls.responsive-ready .lp-game-field.lp-game-letter-field select { min-width: 76px; }
.controls.responsive-ready .lp-game-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.controls.responsive-ready .lp-game-actions button {
  box-sizing: border-box;
  min-height: 33px;
  border-radius: 7px;
  border: 1px solid #b7c6d6;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.controls.responsive-ready .lp-game-actions .lp-game-start { background: #e2f0ff; color: #154e86; }
.controls.responsive-ready .lp-game-actions .lp-game-end { background: #fff; color: #4b596a; }
.controls.responsive-ready .lp-game-actions button:disabled { opacity: .5; cursor: not-allowed; }
.controls.responsive-ready .responsive-games [hidden] { display: none !important; }
.controls.responsive-ready .lp-game-instructions {
  flex-basis: 100%;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  color: #506982;
}
.controls.responsive-ready .lp-game-instructions[role='status'] { min-height: 18px; }
body.theme-dark .controls.responsive-ready .lp-game-field,
body.theme-dark .controls.responsive-ready .lp-game-instructions { color: #ddd; }
body.theme-dark .controls.responsive-ready .lp-game-field select { color: #fff4a8; background: #1c1c1c; border-color: #707070; }
body.theme-dark .controls.responsive-ready .lp-game-actions .lp-game-start { background: #24465e; color: #fff4a8; border-color: #647b91; }
body.theme-dark .controls.responsive-ready .lp-game-actions .lp-game-end { background: #292929; color: #fff4a8; border-color: #777; }
/* Spielhinweis ist ein kleiner Infostreifen am unteren Rand der originalen Anzeige. */
body.responsive-ui-ready .lp-game-hud {
  position: absolute;
  left: 11px;
  bottom: 9px;
  max-width: calc(100% - 22px);
  box-sizing: border-box;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #9fb9d1;
  color: #173f65;
  background: rgba(248,252,255,.95);
  box-shadow: 0 2px 7px rgba(25,55,80,.12);
  font: 600 13px/1.35 Arial, sans-serif;
  white-space: normal;
  pointer-events: none;
  z-index: 10001;
}
body.responsive-ui-ready .lp-game-hud.lp-game-success { background: #e5f6e8; color: #165b30; border-color: #81bc98; }
body.responsive-ui-ready .lp-game-hud.lp-game-warning { background: #fff4e3; color: #784e14; border-color: #dfbb84; }
body.theme-dark.responsive-ui-ready .lp-game-hud { background: rgba(35,42,48,.97); color: #fff4a8; border-color: #778e9c; }
body.theme-dark.responsive-ui-ready .lp-game-hud.lp-game-success { background: #1c4430; color: #cdffd9; border-color: #67aa79; }
body.theme-dark.responsive-ui-ready .lp-game-hud.lp-game-warning { background: #483721; color: #ffe3a9; border-color: #bb925a; }
/* Einzige visuelle Spieleingriffe in den durchlaufenden Text. */
body.responsive-ui-ready #scrollText .lp-game-clickable { cursor: pointer; touch-action: manipulation; }
body.responsive-ui-ready #scrollText .lp-game-clickable:not(.lp-game-hit):not(.lp-game-miss):hover {
  /* Kein Platzbedarf unter den Buchstaben: bleibt bei grossen Schriften sichtbar. */
  text-decoration: none;
  background: rgba(46, 125, 210, .16);
  border-radius: .12em;
}
body.theme-dark.responsive-ui-ready #scrollText .lp-game-clickable:not(.lp-game-hit):not(.lp-game-miss):hover {
  background: rgba(147, 194, 255, .24);
}
body.responsive-ui-ready #scrollText .lp-game-hit {
  background: rgba(63,174,92,.27);
  border-radius: .09em;
  box-shadow: 0 0 0 .08em rgba(63,174,92,.27);
}
body.responsive-ui-ready #scrollText .lp-game-miss {
  background: rgba(238,126,60,.24);
  border-radius: .09em;
}
body.responsive-ui-ready .lp-game-stop-line {
  position: absolute;
  z-index: 9998;
  left: 30%;
  top: 18%;
  bottom: 18%;
  width: 0;
  border-left: 3px dashed #1583c5;
  box-shadow: 0 0 2px rgba(255,255,255,.8);
  pointer-events: none;
}
body.responsive-ui-ready .lp-game-stop-line::after {
  content: 'STOPP';
  position: absolute;
  left: -21px;
  top: -18px;
  font: 700 10px/1 Arial, sans-serif;
  letter-spacing: .06em;
  color: #126495;
  text-shadow: 0 1px 1px white;
}
body.theme-dark.responsive-ui-ready .lp-game-stop-line { border-color: #7bc8ff; }
body.theme-dark.responsive-ui-ready .lp-game-stop-line::after { color: #abdfff; text-shadow: 0 1px 1px #111; }
@media (max-width: 550px) {
  .controls.responsive-ready .responsive-games { padding: 8px; }
  .controls.responsive-ready .lp-game-form { align-items: end; gap: 7px; }
  .controls.responsive-ready .lp-game-field { flex: 1 1 125px; min-width: 0; }
  .controls.responsive-ready .lp-game-field select { width: 100%; min-width: 0; }
  body.responsive-ui-ready .lp-game-hud { left: 6px; bottom: 6px; padding: 4px 7px; font-size: 11px; }
}
