:root { --gutl-entrance-css: ready; }

.gutl-entrance {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  isolation: isolate;
  display: grid;
  place-items: center;
  background: #00356b;
  color: #f6f4ef;
  animation: gutl-entrance-expire 1800ms step-end forwards;
}
.gutl-entrance.is-writing {
  animation: gutl-entrance-leave 220ms ease-out 1030ms forwards;
}
.gutl-entrance__signature {
  position: relative;
  width: clamp(180px, 30vw, 292px);
  color: inherit;
}
.gutl-entrance .gutl-entrance__mark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.gutl-entrance__pen {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}
.gutl-entrance.is-writing .gutl-entrance__pen {
  animation: gutl-entrance-ink var(--ink-time) cubic-bezier(.32,.05,.25,1) var(--ink-start) forwards;
}
.gutl-entrance .gutl-entrance__name {
  position: absolute;
  inset: calc(100% + 14px) auto auto 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 0;
  color: inherit;
  text-align: center;
  font: 400 clamp(16px, 2vw, 21px)/1.4 Georgia, serif;
  letter-spacing: .01em;
  opacity: 0;
}
.gutl-entrance.is-writing .gutl-entrance__name {
  animation: gutl-entrance-name 210ms ease-out 700ms forwards;
}
.gutl-entrance .gutl-entrance__skip {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #63aaff;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: 500 14px/1.25 system-ui, sans-serif;
}
.gutl-entrance .gutl-entrance__skip:is(:focus-visible, :hover) {
  background: #f6f4ef;
  border-color: #f6f4ef;
  color: #00356b;
}
.gutl-entrance .gutl-entrance__skip:focus-visible {
  outline: 2px solid #f6f4ef;
  outline-offset: 3px;
}
@keyframes gutl-entrance-ink {
  from { opacity: 1; stroke-dashoffset: 1; }
  to { opacity: 1; stroke-dashoffset: 0; }
}
@keyframes gutl-entrance-name { to { opacity: 1; } }
@keyframes gutl-entrance-leave {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
@keyframes gutl-entrance-expire {
  to { visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce), print {
  .gutl-entrance { display: none !important; }
}
