/* Leave the entire rectangle tappable, including the punched edges of the foil. */
#dailyWelcome .dailyWelcomeCopy {
  position: relative;
}

#dailyWelcome .greetingPassStub {
  position: absolute;
  inset-block-start: var(--greeting-stub-top, clamp(.55rem, 1.7vw, .95rem));
  inset-inline-end: max(0px, env(safe-area-inset-right));
  z-index: 2;
  isolation: isolate;
  display: inline-grid;
  align-content: center;
  justify-items: center;
  gap: .18rem;
  inline-size: 4.8rem;
  min-inline-size: 44px;
  min-block-size: max(3.2rem, 44px);
  box-sizing: border-box;
  padding: .23rem .28rem .3rem .78rem;
  border: 0;
  border-radius: .3rem 0 0 .3rem;
  color: color-mix(in srgb, rgb(23 19 47 / 1), rgb(var(--t-surf) / 1) var(--t-mix));
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.greetingPassStub::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(151deg, transparent 28%, #f3e9ff7a 45%, transparent 58%),
    linear-gradient(108deg, #8982dd, #dbd7ff 29%, #b0aff3 68%, #94d5fb);
  box-shadow: inset 0 1px #f2edff, inset 0 -1px #655d9b, inset 2px 0 #c0a9ff;
  mask-image:
    radial-gradient(circle at .55rem 0, transparent 2.6px, #000 3.3px),
    radial-gradient(circle at .55rem 100%, transparent 2.6px, #000 3.3px);
  mask-composite: intersect;
}

.greetingPassStub::after {
  content: "";
  position: absolute;
  inset-block: .31rem;
  inset-inline-start: .53rem;
  border-inline-start: 1px dashed #665894;
  pointer-events: none;
}

.greetingPassImprint {
  font: 800 .67rem/1 "HVR Tight", system-ui, sans-serif;
  letter-spacing: .16em;
  text-indent: .16em;
  color: #393158;
  text-shadow: 0 1px #f7f1ffa6;
}

.greetingPassTitle {
  font: 780 .97rem/1.1 "HVR Tight", system-ui, sans-serif;
  letter-spacing: -.02em;
  text-shadow: 0 1px #f7f1ffba;
}

#dailyWelcome .greetingPassStub:focus-visible {
  outline: 3px solid #92f8ff;
  outline-offset: -2px;
}

@media (hover: hover) {
  .greetingPassStub:hover::before {filter: brightness(1.075)}
}

@media (forced-colors: active) {
  #dailyWelcome .greetingPassStub {border: 1px solid ButtonText; background: ButtonFace}
  .greetingPassStub::before {display: none}
  .greetingPassStub::after {border-color: ButtonText}
  .greetingPassImprint, .greetingPassTitle {color: ButtonText; text-shadow: none}
  #dailyWelcome .greetingPassStub:focus-visible {outline-color: Highlight}
}
