 
#dialogue-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  











  min-height: 40%;
  max-height: 56%;
  display: flex;
  align-items: stretch;
  padding: 18px 28px 20px;
  background: linear-gradient(180deg, rgba(8, 6, 5, 0.88), rgba(12, 10, 8, 0.96));
  border-top: 4px solid var(--red);
  box-shadow: 0 -6px 0 rgba(0, 0, 0, 0.5);
  z-index: 30;
  animation: dlg-in 0.16s steps(3) both;
}
@keyframes dlg-in { from { transform: translateY(24px); } to { transform: none; } }







.dlg-main {
  flex: 1;
  display: flex; flex-direction: column;
  min-width: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  border-left: 4px solid var(--gold);
}
.dlg-speaker {
  color: var(--gold);
  font-size: var(--fs-xl); font-weight: bold;
  letter-spacing: 0.22em;
}
.dlg-speaker::before { content: "★ "; }
.dlg-text {
  color: var(--paper);
  font-size: clamp(16px, 1.35vw, 21px); line-height: 1.35;
  margin: 6px 0 10px;
  



  min-height: 2.4em;
  











  flex: 0 1 auto;
  max-height: 34vh;
  overflow-y: auto;
  cursor: pointer;
  white-space: pre-wrap;
  




}
.dlg-choices {
  

  display: flex; flex-direction: column; gap: 5px;
  








  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
}
.dlg-choice {
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--red);
  


  padding: 6px 14px;
  font-family: var(--font);
  font-size: clamp(13px, 1.05vw, 17px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}
.dlg-choice:hover { background: var(--red); color: #fff; }
.dlg-choice .dlg-num { color: var(--gold); font-weight: bold; margin-right: 10px; }

 
.dlg-choice .dlg-tag {
  display: inline-block;
  padding: 1px 6px;
  margin-right: 8px;
  border: 1px solid var(--paper);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.35);
  color: var(--paper);
  font-size: var(--fs-xs);
  font-weight: bold;
  letter-spacing: 0.14em;
}
.dlg-choice .dlg-tag-stern { border-color: var(--red); color: #e05858; }
.dlg-choice .dlg-tag-compassionate { border-color: var(--gold); color: var(--gold); }
.dlg-choice .dlg-tag-patriotic { border-color: var(--red); color: var(--red); }
.dlg-choice .dlg-tag-patriotic::before { content: "★ "; color: var(--gold); }
.dlg-choice .dlg-tag-cynical { border-color: var(--grey); color: var(--grey); }
.dlg-choice:hover .dlg-tag { background: rgba(0, 0, 0, 0.25); }














.dlg-choice .dlg-check { border-color: var(--gold); color: var(--gold); }
.dlg-choice .dlg-check.failed { border-color: var(--grey); color: var(--grey); }
.dlg-choice.dlg-locked {
  border-color: var(--grey);
  color: var(--grey);
  opacity: 0.62;
  cursor: not-allowed;
}
.dlg-choice.dlg-locked:hover { background: var(--ink); color: var(--grey); }
.dlg-choice.dlg-locked .dlg-num { color: var(--grey); }
.dlg-choice.dlg-locked:hover .dlg-tag { background: rgba(0, 0, 0, 0.35); }
.dlg-hint {
  margin-top: auto;
  padding-top: 8px;
  color: var(--grey);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
}





















@media (max-width: 900px), (max-height: 560px) {
  




  .dlg-choice {
    min-height: 44px;
    padding: 13px 12px;
    font-size: 14px;           
    letter-spacing: 0.06em;    
  }
  .dlg-choices {
    gap: 6px;                  
    





    min-height: min(152px, 46vh);
  }
  .dlg-speaker { font-size: 17px; letter-spacing: 0.14em; }
  


  .dlg-text { font-size: 15px; margin: 5px 0 8px; overflow-wrap: anywhere; }
  .dlg-main { padding-left: 12px; border-left-width: 3px; }
  #dialogue-overlay { padding: 12px 14px 12px; }
}







body.tc-active .dlg-hint { display: none; }












@media (max-height: 480px) and (orientation: landscape) {
  #dialogue-overlay {
    min-height: 62%;
    





    max-height: 96%;
    padding: 8px 14px 6px;
  }
  .dlg-speaker { font-size: 16px; }
  .dlg-text {
    font-size: 14px;
    

    max-height: 2.8em;
    min-height: 1.3em;
    margin: 4px 0 4px;
  }
  .dlg-choice { padding: 12px; font-size: 13px; }
  .dlg-choices { gap: 4px; min-height: min(148px, 62vh); }
  .dlg-hint { padding-top: 4px; }
}
