/* Compact touch controls: two rows, with the full instructions in the start card. */
@media (max-width: 760px) {
  .edition-controls,
  .controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    align-items: stretch;
    gap: 8px;
    margin: 0 0 8px;
  }
  .controls { margin-bottom: 14px; }
  .edition-switch,
  .mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    padding: 3px;
    min-width: 0;
    min-height: 50px;
    border: 1px solid #e0e4d5;
    border-radius: 15px;
    background: #eeefe5;
  }
  .edition-switch button,
  .mode-switch button {
    min-height: 44px;
    padding: 5px 4px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #87917c;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.25;
    box-shadow: none;
  }
  .edition-switch b { font-size: 13px; line-height: 1.25; }
  .edition-switch small { display: none; }
  .edition-switch button.active,
  .mode-switch button.active {
    background: #fffef9;
    color: #47694f;
    box-shadow: 0 1px 3px #50674712;
  }
  .edition-switch button#challengeEdition.active {
    background: #f7ecd8;
    color: #9a743e;
    box-shadow: 0 1px 3px #90754312;
  }
  .translation-select,
  .level-select {
    display: block;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
  }
  .translation-select > span,
  .level-select > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .translation-select select,
  .level-select select {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 52px;
    min-height: 52px;
    padding: 8px 25px 8px 11px;
    border: 1px solid #dbe2cf;
    border-radius: 15px;
    background-color: #fffdf7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%237b9072' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 10px center;
    background-repeat: no-repeat;
    color: #526e4d;
    font-size: 16px;
    line-height: 1.3;
    text-overflow: ellipsis;
    appearance: none;
    -webkit-appearance: none;
  }
}
@media (max-width: 360px) {
  .edition-controls, .controls { grid-template-columns: minmax(0, 1fr) 118px; }
  .edition-switch b, .mode-switch button { font-size: 12px; }
}
