/* One aligned ad group, not an inline glyph with a separate text baseline. */
#home-screen ~ #league-hall-panel[data-view='stipend'] .league-ad-stipend {
  display: grid; gap: 8px; padding-top: 12px;
}
#home-screen ~ #league-hall-panel[data-view='stipend'] .league-ad-stipend :is(h3,p) { margin: 0 !important; }
#home-screen ~ #league-hall-panel .league-button[data-action='stipend-ad'] {
  display: flex !important; align-items: center; justify-content: center;
  gap: 10px; min-height: 44px; padding: 8px 12px !important;
  line-height: 1.2 !important; white-space: nowrap;
}
#home-screen ~ #league-hall-panel .league-button[data-action='stipend-ad']::before {
  display: block !important; flex: none; margin: 0 !important; vertical-align: initial;
}
/* Theme keyboard focus inside the existing circular control; no green square
   after touch/programmatic focus. Do not change hit targets or close events. */
body :is(#league-close,#daily-reward-close,#stamina-close,#home-review-close,
  #home-profile-close,#close-settings,#official-announcement-close,#leaderboard-close,#rank-detail-close) {
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none !important; border-radius: 50% !important;
}
body :is(#league-close,#daily-reward-close,#stamina-close,#home-review-close,
  #home-profile-close,#close-settings,#official-announcement-close,#leaderboard-close,#rank-detail-close):focus-visible {
  box-shadow: inset 0 0 0 2px #f3d79a !important;
}
/* Text is native type, not stretched art. Nine-slice the secondary frame and
   draw the approved video sprite independently at its original aspect ratio. */
#result .reward-actions :is(#claim-reward,#double-reward) {
  height: 60px; min-height: 60px; padding: 8px;
  gap: 10px; font-size: clamp(18px, 5.2vw, 24px);
  font-style: normal; font-stretch: normal; font-synthesis: none;
  line-height: 1.2; letter-spacing: 0; text-shadow: none;
}
#result .reward-actions #double-reward {
  border: 8px solid transparent;
  border-image: url('https://sgcdn.gxqlove.top/zhimajiangjun/static-20261103-9e2f00eadfcd/assets/home-dialog-art-v2/button-parchment.png') 16 stretch;
  background: #efdfbd;
  padding: 8px;
}
#result .reward-actions #double-reward::before {
  --ad-mark-size: clamp(24px, 6.6vw, 30px);
  content: '' !important; display: block !important; flex: none;
  width: var(--ad-mark-size); height: calc(var(--ad-mark-size) * .829268293);
  margin: 0; border: 0; border-radius: 0; box-shadow: none;
  background: var(--campaign-ad-mark-image) no-repeat;
  background-size: calc(var(--ad-mark-size) * 9.56097561) calc(var(--ad-mark-size) * 2.04878049);
  background-position: calc(var(--ad-mark-size) * -1.09756098) calc(var(--ad-mark-size) * -.56097561);
  clip-path: inset(0 round calc(var(--ad-mark-size) * .13));
  pointer-events: none;
}
@media (max-height: 600px) {
  #home-screen ~ #league-hall-panel[data-view='stipend'] .league-ad-stipend { gap: 4px; padding-top: 4px; }
}
