/* Content surfaces inside the shared gothic popup frame. */
.gothic-panel h3 {
  color: #e4e5e3;
}
.gothic-panel :is(input, button, a):focus-visible {
  outline: 2px solid #c2eaff;
  outline-offset: 3px;
}
.gothic-panel button:not(.primary, .close, .part, .slot) {
  min-height: 44px;
  padding: 10px 14px;
  color: #d5dce0;
  background: #1a272d;
  border: 1px solid #405158;
  border-radius: 6px;
  box-shadow: none;
}
.gothic-panel button:not(.primary, .close, .part, .slot):hover {
  background: #2d404e;
  border-color: #b7cfdf;
}
.gothic-panel button:not(.primary):disabled {
  color: #84919c;
  background: #151b22;
  border-color: #46525d;
  cursor: not-allowed;
}
#journal-dialog #player-panel input:not([type="checkbox"]),
#station-dialog.gothic-panel input {
  background: #0b121b;
  color: #e5edf2;
  border: 1px solid #637887;
  border-radius: 3px 3px 8px 8px;
  box-shadow: inset 0 2px 10px #0008;
}
.gothic-panel input[type="checkbox"] {
  accent-color: #a8d6ec;
}
#journal-dialog #player-panel .player-actions {
  flex-wrap: wrap;
  align-items: stretch;
}
#player-panel .player-actions button {
  flex: 1 1 130px;
  margin-top: 0;
}
#save-recovery button {
  width: 100%;
  margin-bottom: 12px;
}
#journal-dialog #player-panel #player-error {
  color: #c4e8ff;
}
#help-reset {
  width: 100%;
  margin-top: 12px;
}
.gothic-panel .requirement {
  color: #d1dbe3;
  border: 1px dashed #8598a7;
  background: #0b121b;
}
.gothic-panel .requirement.ready {
  color: #d4ecf8;
  border: 1px solid #7798ac;
  background: #243948;
}
.gothic-panel #customer-avatar {
  background: #293c4a;
  color: #e4edf2;
}
#journal-dialog.gothic-panel .journal-entry {
  padding: 14px 12px;
  border-top: 1px solid #637887;
  background: #1a272d;
}
#journal-dialog.gothic-panel progress {
  accent-color: #a8d6ec;
}

/* Phone reading sizes: let long panels scroll instead of shrinking text. */
@media (max-width: 760px), (pointer: coarse) {
  dialog.gothic-panel {
    font-size: 17px;
    overflow-wrap: anywhere;
  }
  dialog.gothic-panel p,
  dialog.gothic-panel li,
  #journal-dialog #player-panel p,
  #journal-dialog #player-panel #guest-import {
    font-size: 17px;
    line-height: 1.6;
    color: #d7dfe5;
  }
  #journal-dialog.gothic-panel p {
    font-size: 18px;
    margin: 16px 0;
  }
  dialog.gothic-panel h2 {
    font-size: 30px;
    line-height: 1.2;
  }
  #journal-dialog.gothic-panel h3 {
    font-size: 25px;
    line-height: 1.25;
    margin-top: 28px;
  }
  dialog.gothic-panel button:not(.close, .part, .slot),
  #journal-dialog #player-panel input:not([type="checkbox"]),
  #station-dialog.gothic-panel input {
    font-size: 17px;
    line-height: 1.4;
    min-height: 48px;
  }
  .gothic-panel .eyebrow {
    font-size: 12px;
    letter-spacing: 0.12em;
  }
  .gothic-panel .requirement,
  .gothic-materials span:nth-child(2),
  .gothic-materials strong {
    font-size: 15px;
    line-height: 1.4;
  }
  .gothic-panel #requirements {
    flex-wrap: wrap;
  }
  #repair-dialog.gothic-panel :is(.repair-tip, #repair-progress) {
    font-size: 15px !important;
    line-height: 1.5;
  }
  #mobile-menu button {
    font-size: 14px;
    height: 60px;
  }
  #story-line {
    font-size: 17px;
    line-height: 1.5;
  }
}
