.reverse-console [hidden] { display: none; }
.reverse-mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-bottom: 17px; padding: 4px; border: 1px solid #4e4167; border-radius: 13px; background: #100e22; }
.reverse-mode-switch button { min-width: 0; min-height: 44px; padding: 6px 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #ddd2ed; font-size: 13px; font-weight: 730; line-height: 1.35; overflow-wrap: anywhere; }
.reverse-mode-switch button:not(:disabled):hover { color: #fff; background: #2e2347; }
.reverse-mode-switch button[aria-pressed="true"] { border-color: #a886dc; background: #342752; color: #fcf6ff; }
.reverse-mode-switch button[aria-pressed="true"] span { color: #cbf681; }
.reverse-mode-switch span { margin-inline-end: 2px; color: #bc9fea; font-size: 10px; }
.reverse-mode-switch button:disabled { cursor: default; }
.reverse-studio { display: grid; gap: 9px; }
.reverse-studio-intro { margin-bottom: 2px; }
.reverse-studio-intro h2, .reverse-game-intro h2, .reverse-game-finish h2 { margin: 0; color: #fcf7ff; font-size: clamp(21px, 3.3vw, 30px); line-height: 1.16; letter-spacing: -.035em; }
.reverse-studio-intro p, .reverse-game-intro p { margin: 4px 0 0; color: #d9cce9; font-size: 14px; }
.reverse-console .reverse-studio-record, .reverse-studio-playback button { justify-content: center; min-height: 46px; text-align: center; }
.reverse-studio-record .record-dot { background: #8e382f; }
.reverse-studio-record[aria-pressed="true"] { background: #ffc3bd; border-color: #ffada5; }
.reverse-studio-playback { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.reverse-studio-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; column-gap: 8px; }
.reverse-studio-meta .reverse-reveal { font-size: 12px; }
.reverse-studio-status { margin: 0; color: #eeebf9; font-size: 13px; line-height: 1.4; }
.reverse-studio-status:empty { margin-top: -9px; }
.reverse-game-intro, .reverse-game, .reverse-game-finish { display: grid; gap: 12px; }
.reverse-game-intro { align-content: center; min-height: 264px; }
.reverse-game-intro .reverse-game-meta { color: #cbb7e7; font-size: 12px; }
.reverse-console .reverse-wave { min-height: 76px; margin: 0; }
.reverse-console .reverse-game-start, .reverse-console .reverse-play-round { justify-content: center; min-height: 46px; padding-inline: 14px; font-size: 15px; }
.reverse-console .reverse-game-start { width: fit-content; }
.reverse-console .reverse-play-round { width: 100%; }
.reverse-console :is(button, input, summary):focus-visible { outline: 2px solid #d3fa99; outline-offset: 2px; }
.reverse-game-meter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; }
.reverse-round-caption { margin: 0; color: #f7edff; font-size: 14px; font-weight: 740; }
.reverse-round-caption strong { color: #ddfda9; font-variant-numeric: tabular-nums; }
.reverse-game-points { display: flex; gap: 6px; margin: 0; }
.reverse-game-points div { display: flex; align-items: baseline; gap: 5px; padding: 3px 7px; border: 1px solid #5d4d7c; border-radius: 8px; background: #29203f; }
.reverse-game-points dt, .reverse-final-metrics dt { color: #e7daf9; font-size: 12px; }
.reverse-game-points dd, .reverse-final-metrics dd { margin: 0; color: #fdfaff; font-weight: 800; font-variant-numeric: tabular-nums; }
.reverse-round-dots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.reverse-round-dots span { height: 6px; border: 1px solid #645376; border-radius: 99px; background: #392e52; }
.reverse-round-dots span[data-round-state="current"] { border-color: #d4b6ff; background: #a47dde; }
.reverse-round-dots span[data-round-state="correct"] { border-color: #a4cc69; background: #c4f479; }
.reverse-round-dots span[data-round-state="revealed"] { border-color: #bbae80; background: #d5bf77; }
.reverse-round-dots span[aria-current="step"] { outline: 1px solid #dcd0e9; outline-offset: 1px; }
.reverse-guess-form { display: grid; gap: 6px; }
.reverse-guess-form label { color: #f4ebff; font-size: 14px; font-weight: 720; }
.reverse-guess-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.reverse-guess-fields input { width: 100%; min-width: 0; min-height: 46px; padding: 7px 10px; border: 1px solid #8d77ac; border-radius: 10px; background: #231b35; color: #fff; font: inherit; }
.reverse-guess-fields input::placeholder { color: #c0abd8; }
.reverse-guess-fields input:disabled { opacity: .72; }
.reverse-guess-fields .reverse-control { justify-content: center; min-height: 46px; padding-inline: 13px; }
.reverse-reveal { justify-self: start; min-height: 37px; border: 0; padding: 5px 1px; background: transparent; color: #e0ccff; font: inherit; font-size: 13px; text-align: start; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.reverse-reveal:disabled { opacity: .58; cursor: default; }
.reverse-game-feedback, .reverse-game-hint, .reverse-game-status { margin: 0; color: #ede0fb; font-size: 13px; line-height: 1.42; }
.reverse-game-feedback { font-weight: 720; }
.reverse-game-hint { border-radius: 8px; padding: 6px 8px; background: #392e42; color: #f8e4a5; }
.reverse-game-feedback:empty, .reverse-game-hint:empty { margin-top: -12px; padding: 0; }
.reverse-game-status:not(:empty) { margin-top: 10px; }
.reverse-game-result { display: grid; gap: 11px; padding: clamp(11px, 2vw, 15px); border: 1px solid #73618c; border-radius: 13px; background: #28203e; }
.reverse-result-caption { margin: 0 0 2px; color: #edebf3; font-size: 13px; font-weight: 700; }
.reverse-answer-word { display: block; color: #e2ffb2; font-size: clamp(27px, 4.5vw, 39px); line-height: 1.11; letter-spacing: -.04em; overflow-wrap: anywhere; }
.reverse-result-ipa, .reverse-result-meaning { margin: 2px 0 0; color: #ece1fa; font-size: 14px; overflow-wrap: anywhere; }
.reverse-result-ipa { color: #d4bee7; }
.reverse-game-original { min-height: 43px; }
.reverse-result-practice summary { min-height: 34px; padding-block: 5px; color: #decafb; font-size: 13px; font-weight: 700; cursor: pointer; }
.reverse-practice-buttons, .reverse-round-navigation { display: grid; gap: 7px; }
.reverse-practice-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reverse-practice-buttons .reverse-control { min-height: 43px; }
.reverse-round-navigation { grid-template-columns: 43px minmax(0, 1fr); }
.reverse-round-navigation .reverse-control { justify-content: center; min-height: 43px; }
.reverse-previous-round { padding: 0; }
.reverse-round-tip { margin: -4px 0 0; color: #d4c1ea; font-size: 11px; line-height: 1.45; }
.reverse-game[data-duz-swipe] { touch-action: pan-y pinch-zoom; }
.reverse-final-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.reverse-final-metrics div { display: grid; align-content: space-between; gap: 2px; padding: 7px 8px; border: 1px solid #685483; border-radius: 9px; background: #29213f; overflow-wrap: anywhere; }
.reverse-final-metrics dd { font-size: clamp(18px, 2.8vw, 24px); }
@media (max-width: 390px) {
  .reverse-game-intro { min-height: 215px; }
  .reverse-console .reverse-wave { min-height: 63px; }
  .reverse-guess-fields { gap: 5px; }
  .reverse-guess-fields .reverse-control { padding-inline: 9px; }
  .reverse-practice-buttons { grid-template-columns: minmax(0, 1fr); }
}
