/* ABCPLAY · help.css
 * Fælles udseende for knapper og vinduer med spilleregler.
 * .navn vælger en CSS-klasse; #navn vælger et HTML-id.
 * @media tilpasser udseendet til bestemte skærmstørrelser.
 */

/* ABCPLAY – fælles, mobilvenlig spilleregler */
.abc-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #ffffff77;
  border-radius: 10px;
  background: #f5c75d;
  color: #172a23;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
}
.abc-help-button:hover {
  background: #ffe08a;
}
.abc-help-button:focus-visible,
.abc-help-close:focus-visible {
  outline: 3px solid #f5c75d;
  outline-offset: 3px;
}
.abc-help-backdrop[hidden] {
  display: none !important;
}
.abc-help-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 16, 13, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.abc-help-dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: min(86dvh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  background: #fffdf7;
  color: #192b24;
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 20px 65px #0008;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
}
.abc-help-dialog h2 {
  font-size: 1.65rem;
  margin: 0 42px 6px 0;
  color: #173f34;
}
.abc-help-intro {
  font-size: 1.05rem;
  margin: 0 0 18px;
}
.abc-help-dialog h3 {
  font-size: 1.06rem;
  margin: 17px 0 4px;
  color: #174d3d;
}
.abc-help-dialog p {
  margin: 0 0 8px;
}
.abc-help-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #e9eee9;
  color: #173f34;
  font-size: 25px;
  cursor: pointer;
}
.abc-help-ok {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 22px;
  border: 0;
  border-radius: 10px;
  background: #196346;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
/* Tilpasning til skærmstørrelse eller skærmretning. */
@media (max-width: 480px) {
  .abc-help-backdrop {
    padding: 10px;
  }
  .abc-help-dialog {
    padding: 22px 18px;
    max-height: 92dvh;
  }
  .abc-help-dialog h2 {
    font-size: 1.35rem;
  }
  .abc-help-button {
    padding: 8px 11px;
  }
}
