.random-panel { padding: 26px 24px; border: 1px solid #c4e4ce; border-radius: 8px; background: #eefaf1; }
.random-fields { display: grid; grid-template-columns: 80px minmax(0, 340px); align-items: center; justify-content: center; gap: 12px 24px; }
.random-fields label { font-weight: 700; }
.random-fields select { width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: white; color: var(--navy); font: inherit; cursor: pointer; }
.random-button { display: inline-grid; place-items: center; min-height: 46px; padding: 10px 18px; border: 1px solid var(--border); border-radius: 7px; background: white; color: var(--navy); font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.random-primary { border-color: var(--navy); background: var(--navy); color: white; }
.random-button:not(:disabled):hover, .random-fields select:hover { border-color: #608bac; background: #f5faff; }
.random-primary:not(:disabled):hover { background: #184570; }
.random-button:disabled { color: #788593; background: #f3f5f4; cursor: default; }
.random-start { display: grid; width: 260px; max-width: 100%; margin: 30px auto 0; font-size: 22px; }
.random-session { width: 460px; max-width: 100%; margin: 0 auto; padding-top: 32px; }
#random-progress { margin: 0 0 12px; text-align: center; font-size: 20px; }
.random-card { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px; padding: 28px 18px; border: 1px solid var(--border); border-radius: 8px; background: white; text-align: center; overflow-wrap: anywhere; }
#random-question { max-width: 100%; margin: 0 0 24px; font-size: 36px; line-height: 1.5; }
#random-reveal { min-width: 180px; margin-top: 16px; }
#random-answer { max-width: 100%; font-size: 30px; line-height: 1.5; }
#random-answer p { margin: 0 0 8px; }
#random-answer .pronunciation { height: 44px; }
#random-answer svg { width: 26px; height: 26px; }
.random-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.random-result { text-align: center; }
.random-result h2 { margin-top: 0; }
.random-result-actions { display: grid; gap: 12px; max-width: 320px; margin: 28px auto 0; }
@media (max-width: 600px) {
  .random-panel { padding: 20px 14px; }
  .random-fields { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .random-fields label:not(:first-child) { margin-top: 8px; }
  .random-fields select { font-size: 14px; }
  .random-start { font-size: 18px; margin-top: 24px; }
  .random-card { min-height: 240px; padding: 24px 12px; }
  #random-question { font-size: 28px; }
  #random-answer { font-size: 25px; }
  .random-actions { gap: 10px; }
  .random-actions .random-button { padding: 10px 6px; font-size: 14px; }
}
