/* Daily check-in card and sheet on the account page (checkin.js). */
html.ui-v2 .v2-checkin-card.is-done { border-color: var(--v2-line); background: var(--v2-surface); }
html.ui-v2 .v2-checkin-card.is-done .v2-invite-card-cta { background: var(--v2-raised); color: var(--v2-muted); }
html.ui-v2 .v2-account .v2-checkin-card + .v2-invite-card { margin-top: -4px; }

html.ui-v2 #v2CheckinSheet .v2-sheet-body { display: flex; flex-direction: column; gap: 16px; }
html.ui-v2 .v2-checkin-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px; border: 1px solid rgba(216, 255, 79, .28); border-radius: 16px; background: linear-gradient(135deg, rgba(216, 255, 79, .12), rgba(216, 255, 79, .03)); text-align: center; }
html.ui-v2 .v2-checkin-hero b { color: var(--v2-accent); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
html.ui-v2 .v2-checkin-hero span { color: var(--v2-muted); font-size: 13px; line-height: 1.5; }
html.ui-v2 .v2-checkin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html.ui-v2 .v2-checkin-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--v2-line); border-radius: 12px; background: var(--v2-raised); }
html.ui-v2 .v2-checkin-stats b { font-size: 16px; font-variant-numeric: tabular-nums; }
html.ui-v2 .v2-checkin-stats small { color: var(--v2-muted); font-size: 12px; }

html.ui-v2 .v2-checkin-form { display: flex; flex-direction: column; gap: 10px; }
html.ui-v2 .v2-checkin-label { color: var(--v2-muted); font-size: 13px; }
html.ui-v2 .v2-checkin-captcha { display: flex; align-items: center; gap: 10px; }
html.ui-v2 .v2-checkin-image { width: 168px; height: 60px; flex: none; border: 1px solid var(--v2-line); border-radius: 10px; background: var(--v2-raised); cursor: pointer; object-fit: cover; transition: opacity .2s ease; }
html.ui-v2 .v2-checkin-image.is-loading { opacity: .4; }
html.ui-v2 .v2-checkin-refresh { min-height: 40px; padding: 0 14px; border: 1px solid var(--v2-line-strong); border-radius: 999px; background: transparent; color: var(--v2-text); font: inherit; font-size: 13px; cursor: pointer; }
html.ui-v2 .v2-checkin-input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--v2-line-strong); border-radius: 12px; background: var(--v2-bg); color: var(--v2-text); font: inherit; font-size: 20px; letter-spacing: .4em; text-transform: uppercase; }
html.ui-v2 .v2-checkin-input:focus { outline: none; border-color: var(--v2-accent); }
html.ui-v2 .v2-checkin-input::placeholder { color: var(--v2-muted); font-size: 15px; letter-spacing: normal; }
html.ui-v2 .v2-checkin-message { min-height: 18px; margin: 0; color: var(--v2-danger-text); font-size: 13px; }
html.ui-v2 .v2-checkin-message:empty { min-height: 0; }
html.ui-v2 .v2-checkin-submit:disabled { opacity: .6; }

/* "到账" card shown after a redeem code or a check-in (showRewardSuccess in app.js). */
.reward-success-dialog { width: min(340px, calc(100vw - 40px)); padding: 28px 22px 20px; border: 1px solid rgba(216, 255, 79, .35); border-radius: 22px; background: radial-gradient(120% 80% at 50% 0%, rgba(216, 255, 79, .16), transparent 60%), #161c22; color: #eef2f4; text-align: center; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(12px) scale(.94); transition: opacity .22s ease, transform .32s cubic-bezier(.2, 1.3, .3, 1); }
.reward-success-dialog.is-shown { opacity: 1; transform: none; }
.reward-success-dialog::backdrop { background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); }
.reward-success-mark { width: 68px; height: 68px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: #d8ff4f; color: #11150a; box-shadow: 0 0 0 8px rgba(216, 255, 79, .14), 0 0 40px rgba(216, 255, 79, .35); }
.reward-success-mark span { font-size: 34px; font-weight: 800; line-height: 1; }
.reward-success-dialog.is-shown .reward-success-mark { animation: reward-pop .5s cubic-bezier(.2, 1.4, .3, 1); }
@keyframes reward-pop { from { transform: scale(.4); } to { transform: scale(1); } }
.reward-success-dialog h2 { margin: 0; font-size: 20px; font-weight: 700; }
.reward-success-amount { margin: 10px 0 14px; color: #d8ff4f; }
.reward-success-amount b { font-size: 40px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.reward-success-amount small { margin-left: 6px; font-size: 16px; font-weight: 600; }
.reward-success-lines { display: grid; gap: 6px; margin: 0 0 20px; padding: 12px 14px; list-style: none; border-radius: 14px; background: rgba(255, 255, 255, .04); color: #b9c4cb; font-size: 13px; line-height: 1.5; }
.reward-success-lines:empty { display: none; }
.reward-success-ok { width: 100%; min-height: 48px; border: 0; border-radius: 14px; background: #d8ff4f; color: #11150a; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.reward-success-ok:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Error under the 兑换码 box (replaces a toast that the open sheet would cover). */
.redeem-form-message { grid-column: 1 / -1; flex-basis: 100%; margin: 6px 0 0; color: #ff9aa4; font-size: 13px; }
.redeem-form-message:empty { display: none; }
