/* Local popup proposal. The published site is not modified. */
.intro-pending body { background: #f3f2ed; }
.intro-pending main { visibility: visible; }
dialog.intro {
  width: min(440px, calc(100vw - 32px));
  height: min(780px, calc(100vh - 48px));
  height: min(780px, calc(100dvh - 48px));
  margin: auto; border: 1px solid #e5ded4; border-radius: 20px;
  background: #f3f2ed; color: #57000c;
  box-shadow: 0 28px 100px #16050966;
  transition: opacity 240ms ease, transform 240ms ease;
  transform: translateY(0) scale(1);
}
.intro::backdrop { background: #23131788; backdrop-filter: blur(5px); }
.intro.is-leaving { opacity: 0; transform: translateY(12px) scale(.98); }
.intro-shell {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px; padding: 22px 20px 20px;
}
.intro-header { position: relative; display: block; padding-right: 34px; }
.intro-header h2 { font-size: 29px; line-height: 1.06; max-width: 300px; }
.intro-kicker { color: #796862; font-size: 9px; letter-spacing: 1.5px; margin-bottom: 9px; }
.intro-skip {
  position: absolute; right: -9px; top: -11px; width: 44px; height: 44px;
  display: grid; place-items: center; padding: 0; border-radius: 50%; color: #57000c;
}
.intro-skip:hover { background: #e8e2da; }
.intro-skip svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.intro-stage { border-radius: 12px; overflow: hidden; background: #808080; }
.intro-play {
  top: auto; bottom: 20px; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 24px); min-height: 52px;
  background: #57000cf5; border: 1px solid #ffffff66; border-radius: 8px;
  font-size: 14px; padding: 12px 18px;
}
.intro-progress { background: #d2c5bc; height: 3px; }
.intro-progress span { background: #57000c; }
.intro-controls { gap: 8px; margin-top: 12px; }
.intro-control { color: #57000c; border-color: #b3a399; font-size: 12px; padding: 10px; border-radius: 6px; }
.intro-control:hover { background: #e9e2d8; }
.intro-pause { flex: 0 0 44px; min-width: 44px; }
.intro-continue { background: #57000c; border-color: #57000c; color: white; border-radius: 6px; font-size: 13px; padding: 12px 13px; gap: 12px; }
.intro-continue:hover { background: #75051a; }
.intro-footer .intro-description, .intro-footer .intro-status { color: #6e5c54; font-size: 12px; margin: 10px auto 0; max-width: 320px; }
@media (max-width: 400px) {
  dialog.intro { width: calc(100vw - 24px); height: calc(100dvh - 32px); }
  .intro-shell { padding: 18px 14px 16px; gap: 12px; }
  .intro-header h2 { font-size: 26px; max-width: 265px; }
  .intro-kicker { font-size: 8px; letter-spacing: 1.2px; }
  .intro-controls { flex-wrap: wrap; }
  .intro-control { flex: 1; }
  .intro-pause { flex: 0 0 44px; }
  .intro-continue { flex: 1 0 100%; justify-content: center; min-height: 44px; }
  .intro-footer .intro-description { font-size: 11px; }
}
@media (max-height: 500px) and (min-width: 600px) {
  dialog.intro { width: min(680px, calc(100vw - 48px)); height: calc(100dvh - 32px); }
  .intro-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: 1fr auto; gap: 12px 20px; padding: 18px; }
  .intro-header { grid-column: 2; grid-row: 1; align-self: start; }
  .intro-header h2 { font-size: 25px; }
  .intro-stage { grid-column: 1; grid-row: 1 / 3; }
  .intro-footer { grid-column: 2; grid-row: 2; }
  .intro-controls { flex-wrap: wrap; }
  .intro-continue { flex: 1 0 100%; justify-content: center; }
  .intro-footer .intro-description { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.intro { transition: none; }
}
