.luck-launch {
  position: fixed;
  z-index: 18;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
}
.luck-launch a, #luck-claim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .6rem 1.1rem;
  border: 1px solid #fff;
  border-radius: 2rem;
  background: #164ca0;
  color: #fff;
  text-decoration: none;
  font-weight: 750;
}
#luck-dialog {
  box-sizing: border-box;
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 30px clamp(18px, 4vw, 32px);
  border: 0;
  border-radius: 18px;
  background: #edf5ff;
  color: #102f54;
  text-align: center;
}
#luck-dialog::backdrop { background: #082136bf; }
.luck-dismiss { position: absolute; top: 4px; right: 4px; }
.luck-dismiss button, #luck-reveal {
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  color: #123e75;
  border: none;
  cursor: pointer;
}
.luck-dismiss button { font-size: 28px; }
#luck-dialog .luck-logo { width: 88px; height: auto; margin: 0 auto 12px; }
#luck-dialog h2 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 40px); line-height: 1.05; }
#luck-dialog p { margin: 0 0 14px; line-height: 1.45; }
.luck-card {
  position: relative;
  display: grid;
  place-content: center;
  aspect-ratio: 16/7;
  margin-bottom: 10px;
  border: 1px solid #95b4d3;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  color: #1454ab;
  font-size: clamp(24px, 6vw, 38px);
  font-weight: 800;
  line-height: 1;
}
#luck-foil { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
#luck-reveal { font: inherit; text-decoration: underline; text-underline-offset: 3px; }
#luck-dialog [hidden] { display: none; }
#luck-dialog :focus-visible, .luck-launch :focus-visible { outline: 3px solid #e05800; outline-offset: 2px; }
@media (max-width: 760px) {
  .luck-launch { bottom: calc(106px + env(safe-area-inset-bottom, 0px)); }
}
