/* Clear-playthrough option, separate from the title's handwritten menu. */
#game .title-home .reset-progress-button {
  position: absolute;
  z-index: 4;
  right: 3%;
  bottom: 4%;
  min-height: 44px;
  max-width: 36%;
  padding: 8px 14px;
  border: 1px solid rgba(255,244,219,.74);
  border-radius: 7px;
  background: rgba(18,15,19,.78);
  color: #fffaf0;
  font: clamp(11px,1.3cqw,16px)/1.4 "DotGothic16",sans-serif;
  letter-spacing: .03em;
  cursor: pointer;
}
#game .title-home .reset-progress-button:hover,
#game .title-home .reset-progress-button:focus-visible {
  background: rgba(75,49,49,.95);
  outline: 2px solid #fffaf0;
  outline-offset: 2px;
}
#game .reset-progress-overlay {
  position: absolute;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.75);
  color: #302825;
  font: 16px/1.7 "DotGothic16",sans-serif;
}
#game .reset-progress-panel {
  width: min(560px,100%);
  max-height: 96%;
  overflow-y: auto;
  padding: clamp(16px,2.8cqw,32px);
  border: 1px solid #d6c6ad;
  border-radius: 12px;
  background: #fffaf2;
  box-shadow: 0 10px 36px rgba(0,0,0,.4);
}
#game .reset-progress-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(20px,2.4cqw,28px);
  font-weight: normal;
}
#game .reset-progress-panel p { margin: 0 0 12px; }
#game .reset-progress-error { color: #942c26; }
#game .reset-progress-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 24px;
}
#game .reset-progress-actions button {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid #968879;
  border-radius: 7px;
  background: #fff;
  color: #302825;
  font: inherit;
  cursor: pointer;
}
#game .reset-progress-actions [data-action="delete"] {
  border-color: #923a34;
  background: #923a34;
  color: #fff;
}
#game .reset-progress-actions button:focus-visible {
  outline: 3px solid #3e679a;
  outline-offset: 2px;
}
@container game-viewport (max-width: 650px) {
  #game .title-home .reset-progress-button {
    right: 2%;
    bottom: 2%;
    max-width: 28%;
    padding: 6px 8px;
    font-size: 11px;
  }
  #game .reset-progress-overlay { font-size: 13px; padding: 12px; }
  #game .reset-progress-actions { margin-top: 10px; }
}
