.stamp-ticket .stub { color: #164c6a; }
#stamp-dialog {
  width: 480px;
  padding: clamp(16px, 4vw, 28px);
  overflow: auto;
  overscroll-behavior: contain;
}
#stamp-dialog [hidden] { display: none; }
.stamp-heading, .stamp-card-heading, #stamp-wallet { display: flex; align-items: center; }
.stamp-heading { gap: 11px; margin-bottom: 18px; }
.stamp-heading > img { width: 46px; height: 46px; image-rendering: pixelated; }
.stamp-heading h2 { margin: 0; font-size: 1.65rem; }
.stamp-heading .close { margin-left: auto; }
.stamp-card { border: 1px solid #92bbd2; border-radius: 11px; background: #eff8fe; }
.stamp-card-heading {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 12px;
  padding: 13px 15px;
  border-bottom: 1px dashed #a4bece;
}
#stamp-status { font-size: .95rem; font-weight: 700; color: #183b50; }
#stamp-streak-line { font-size: .875rem; color: #314c5c; }
.stamp-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  margin: 0;
  padding: 17px 12px;
  list-style: none;
}
.stamp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  white-space: nowrap;
  color: #4c6573;
}
.stamp-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: min(90%, 48px);
  aspect-ratio: 1;
  background: #fff;
  border: 1.5px dashed #93aab7;
  border-radius: 50%;
  font: 500 1.28rem/1 var(--heading-font);
  color: #506775;
}
.stamp-step[data-state=current] .stamp-seal { background: #fff; border: 2px solid #193d53; color: #16374b; box-shadow: 0 0 0 3px #c0e5fa; }
.stamp-step[data-state=earned] .stamp-seal { background: var(--blue); border: 1.5px solid #183e54; color: #102d3d; }
.stamp-step[data-state=earned] .stamp-seal::after {
  content: "";
  position: absolute;
  width: .44em;
  height: .25em;
  border: solid #16374b;
  border-width: 0 0 1.7px 1.7px;
  transform: rotate(-45deg);
  bottom: 9%;
}
.stamp-rules { margin: 15px 0; font-size: .875rem; line-height: 1.55; color: #4c5c67; }
#stamp-wallet { gap: 5px; flex-wrap: wrap; font-size: .9rem; line-height: 1.5; }
#stamp-wallet .line-icon { width: 17px; height: 17px; }
#stamp-feedback { font-size: .9rem; line-height: 1.5; color: #23536d; overflow-wrap: anywhere; }
#stamp-feedback:not(:empty) { margin-top: 8px; }
#stamp-feedback[data-error] { color: #972a23; }
#stamp-action { width: 100%; min-height: 45px; margin-top: 18px; }
#stamp-action:disabled { background: #eaf1f5; color: #4a606e; border-color: #b3c1cb; cursor: default; transform: none; }
@media (max-width: 355px) {
  .stamp-card-heading { padding-inline: 9px; }
  .stamp-track { padding-inline: 6px; }
  .stamp-step { font-size: .75rem; }
  .stamp-seal { width: min(88%, 40px); font-size: 1.05rem; }
}
