.practice-console {
  max-width: 1040px;
  margin: 12px auto;
  padding: 18px 22px;
  border: 1px solid #33527d;
  border-radius: 16px;
  background: linear-gradient(120deg, #132d4e, #0d1930);
  color: #f1f5ff;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  font:
    16px/1.5 system-ui,
    sans-serif;
}
.practice-console strong {
  font-size: 20px;
}
.practice-console p {
  margin: 6px 0 0;
  color: #c8d6ec;
  max-width: 70ch;
}
#practice-objective {
  margin: 8px 0 0;
  color: #fde68a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}
.practice-console-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.practice-console-actions button,
.practice-console-actions a {
  border: 1px solid #548bb7;
  border-radius: 10px;
  background: #17395c;
  color: #fff;
  padding: 10px 14px;
  font: 700 16px/1.4 system-ui;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
}
.practice-console-actions button {
  background: #a8f1d2;
  color: #092b23;
  border-color: #a8f1d2;
}
.practice-console-actions :focus-visible {
  outline: 3px solid #fde68a;
  outline-offset: 3px;
}
.practice-console [hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  .practice-console {
    margin: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .practice-console-actions > * {
    flex: 1;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .practice-console * {
    animation: none !important;
    transition: none !important;
  }
}

.practice-text-controls {
  max-width: 1040px;
  margin: 12px auto;
  padding: 16px 22px;
  border: 1px solid #33527d;
  border-radius: 16px;
  background: #12273d;
  color: #f1f5ff;
  font: 17px/1.5 system-ui;
}
.practice-text-controls[hidden] {
  display: none !important;
}
.practice-text-controls summary {
  cursor: pointer;
  font-weight: 800;
  min-height: 32px;
}
.practice-native-prompt {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}
.practice-native-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.practice-native-actions button,
.practice-native-actions select {
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #648eac;
  border-radius: 10px;
  background: #214661;
  color: #fff;
  font: 700 17px/1.4 system-ui;
  cursor: pointer;
}
.practice-native-actions button[aria-pressed="true"] {
  background: #b2efd7;
  color: #10372c;
}
.practice-native-actions button:disabled {
  opacity: 0.6;
}
.practice-native-actions label {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}
.practice-native-actions select {
  max-width: 65%;
}
.practice-native-actions :focus-visible {
  outline: 3px solid #fde68a;
  outline-offset: 3px;
}
#practice-native-feedback {
  min-height: 26px;
  color: #cef1db;
}
#practice-marker-value {
  font-size: 20px;
  font-weight: 700;
}
@media (max-width: 700px) {
  .practice-text-controls {
    margin: 12px;
    padding: 16px;
  }
  .practice-native-actions button {
    width: 100%;
  }
  .practice-native-actions label {
    flex-direction: column;
    align-items: stretch;
  }
  .practice-native-actions select {
    max-width: 100%;
  }
  .practice-native-prompt {
    font-size: 21px;
  }
}

/* Compact chrome: the world badge and the session console share one bar so
   the game board (and its START button) fits a 1366x768 Chromebook screen. */
.ewl-arcade-header-bar.pa-head {
  margin: 6px auto;
  padding: 6px 14px;
  gap: 10px;
  flex-wrap: wrap;
}
.pa-head .practice-console {
  flex: 1 1 520px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  gap: 10px;
}
.pa-head .practice-console strong {
  font-size: 16px;
}
.pa-head .practice-console p {
  margin: 1px 0 0;
  font-size: 13.5px;
  line-height: 1.3;
}
.pa-head #practice-objective {
  margin: 1px 0 0;
  font-size: 15px;
}
@media (min-width: 701px) {
  .pa-head .practice-console > div > p:not(#practice-objective) {
    display: none;
  }
  .game-tools-menu {
    margin: 4px auto !important;
    padding: 4px 12px !important;
  }
}
.practice-text-controls {
  margin-top: 12px;
}
@media (max-width: 700px) {
  .pa-head .practice-console {
    margin: 0;
    padding: 0;
    flex-basis: 100%;
    gap: 6px;
  }
  body.pa-playing .ewl-arcade-header-bar.pa-head {
    margin: 4px auto;
    padding: 6px 12px;
    gap: 6px;
  }
  body.pa-playing .pa-head .practice-console p {
    font-size: 13px;
    line-height: 1.25;
  }
  body.pa-playing .pa-head .practice-console-actions button {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 14px;
  }
}


/* Typed-answer rounds: the native input mirrors the on-canvas keypad. */
.practice-entry-input {
  min-height: 48px;
  width: 12ch;
  padding: 10px 14px;
  border: 2px solid #fde68a;
  border-radius: 10px;
  background: #0b1020;
  color: #fff;
  font: 700 22px/1.2 system-ui;
}
.practice-entry-input:focus-visible {
  outline: 3px solid #fde68a;
  outline-offset: 3px;
}
