.egg-trigger:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .3em .45em;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .875rem;
  text-decoration: underline dashed;
  text-underline-offset: .25em;
  cursor: pointer;
}

.egg-trigger:hover {
  text-decoration-style: solid;
}

.egg-trigger:focus-visible,
.egg-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.egg-dialog {
  --egg-paper: #f5e8cc;
  --egg-ink: #253831;
  --egg-accent: #744036;
  box-sizing: border-box;
  width: min(33rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .4rem;
  border: 1px solid #bfa782;
  border-radius: .4rem;
  color: var(--egg-ink);
  color-scheme: light;
  background: var(--egg-paper);
  box-shadow: 0 15px 60px #0d131980;
}

.egg-dialog[data-kind="glovebox"] {
  --egg-paper: #e8e9d9;
  --egg-accent: #2c594d;
}

.egg-dialog[data-kind="receipt"] {
  --egg-paper: #faf1da;
  --egg-accent: #72403c;
}

.egg-dialog::backdrop {
  background: #091514c7;
}

.egg-note {
  padding: clamp(1.05rem, 5vw, 2rem);
  border: 1px solid #ab9779;
  border-radius: .15rem;
}

.egg-dialog .egg-dialog-title {
  margin: 0 0 .75rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid #bba98c;
  color: var(--egg-accent);
  font: 700 clamp(1.4rem, 5vw, 2rem)/1.15 Georgia, serif;
  letter-spacing: -.02em;
}

.egg-story {
  font: 1.025rem/1.55 Georgia, serif;
}

.egg-story p {
  margin: 0 0 .75rem;
  color: inherit;
}

.egg-close {
  min-height: 44px;
  margin-top: .35rem;
  padding: .4rem .8rem;
  border: 1px solid #76624a;
  border-radius: .25rem;
  color: var(--egg-ink);
  background: #fff7e4;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.egg-close:hover {
  background: #fffdf4;
}
