.hope-challenge {
  box-sizing: border-box;
  width: min(calc(100% - 36px), 420px);
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #d8ac78;
  border-radius: 18px;
  background: #fff1d9;
  color: #472e2b;
  box-shadow: 0 18px 70px #150b12b3;
  text-align: center;
  font-family: system-ui, "PingFang TC", sans-serif;
  overscroll-behavior: contain;
}
.hope-challenge::backdrop { background: #261b24e8; }
.hope-challenge img {
  display: block;
  width: 100%;
  height: clamp(95px, 19vh, 150px);
  object-fit: cover;
  object-position: center 38%;
}
.hope-challenge-body { padding: 23px 24px 15px; }
.hope-challenge h1 { margin: 0 0 12px; font-size: clamp(23px, 6vw, 32px); line-height: 1.2; }
.hope-challenge-invite { margin: 0; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.hope-challenge-class { margin: 8px 0 18px; color: #753c38; font-size: 14px; font-weight: 700; }
.hope-challenge .btn { width: 100%; min-height: 46px; font-size: 17px; }
.hope-challenge-prologue {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: #693c34;
  font-size: 14px;
  text-underline-offset: 3px;
  touch-action: manipulation;
}
.hope-challenge-decline {
  min-height: 44px;
  margin-top: 4px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #6d4943;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.hope-challenge :is(a, button):focus-visible { outline: 3px solid #7d4733; outline-offset: 3px; }

#hopeChallengeResult {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #5f3b39;
  color: #fff1d9;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}
#hopeShareCard .hope-share-actions { display: grid; gap: 7px; margin: 8px 0; }
#hopeShareCard .hope-share-actions .btn { min-height: 44px; }
#hopeShareCard .hope-share-copy-input { width: 100%; box-sizing: border-box; }
