/* Episode 20 dialogue layout and character colors, retained for Episode 22. */
.dialogue .speech.misa{
  background:rgba(88,42,38,.82);
  border-color:#dc9a88;
}
.dialogue .speech.kana{
  background:rgba(20,65,60,.88);
  border-color:#91cbbc;
}
.dialogue .speech.munehiko{
  background:rgba(24,39,62,.82);
  border-color:#839fb8;
}
.dialogue .speech.tomoya{
  background:rgba(43,34,80,.88);
  border-color:#b5a9e2;
}
.dialogue .speech .speaker{
  display:block;
  margin:0;
  font-size:16px;
  font-weight:600;
  letter-spacing:.08em;
  color:#e5c899;
}
.dialogue .speech.misa .speaker{color:#f4c7b7}
.dialogue .speech.kana .speaker{color:#fff5e7}
.dialogue .speech.munehiko .speaker{color:#c0d7ec}
.dialogue .speech.tomoya .speaker{color:#fff5e7}
.speech-head{
  order:2;
  flex:0 0 auto;
  min-height:32px;
  margin-top:2px;
  margin-bottom:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.speech-body{
  order:1;
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
}
.dialogue .speech p{
  flex:0 0 auto;
  width:100%;
  max-width:48em;
  margin:0 auto;
  text-align:center;
  white-space:normal;
  overflow-wrap:anywhere;
}
.controls{
  width:auto;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-shrink:0;
}
.controls button{
  width:96px;
  min-width:96px;
  min-height:32px;
  padding:2px 10px;
  font-size:14px;
  background:#1e17134d;
}
.controls span{
  min-width:44px;
  font-size:12px;
  text-align:center;
  white-space:nowrap;
  color:#d8c2a3;
}
@media(max-width:600px){
  .speech-head{min-height:44px;gap:12px}
  .controls{width:auto;display:flex;gap:4px}
  .controls button{width:70px;min-width:70px;min-height:44px;padding-inline:6px;font-size:12px}
  .controls span{min-width:37px;font-size:11px}
}
