/* HONGLOU local preview: content first, existing black / gold / green palette. */
:root{--reward-bg:#0d0f10;--reward-panel:#15191a;--reward-line:#303737;--reward-muted:#b1b6b6;--reward-gold:#e0c28a;--reward-ink:#f3f1eb;--reward-action:#28d6a0}
.reward-page{background:var(--reward-bg);color:var(--reward-ink);margin:0;font-family:Inter,system-ui,-apple-system,sans-serif}
.reward-page *{box-sizing:border-box}.reward-page [hidden],.reward-help[hidden],.home-resume[hidden]{display:none!important}
.reward-shell{width:100%;max-width:780px;margin:0 auto;padding:28px 24px 52px}
.reward-header{gap:16px}.reward-brand{font-size:24px;color:var(--reward-gold);text-decoration:none;white-space:nowrap}.reward-brand span{font-size:12px;letter-spacing:2px;color:var(--reward-ink)}
#reward-language,#recover-language{max-width:150px;font:inherit;font-size:14px;min-height:44px;background:var(--reward-panel);color:var(--reward-ink);border:1px solid var(--reward-line);border-radius:8px;padding:8px}
.reward-shell h1{font-size:clamp(26px,4vw,34px);line-height:1.2;margin:0;letter-spacing:-.025em}.reward-shell h2{font-size:19px;line-height:1.35;margin:0}.reward-shell h3{font-size:16px;margin:0}.reward-shell p{color:var(--reward-muted);line-height:1.6;margin:10px 0;font-size:14px}.reward-kicker{font-size:12px;letter-spacing:.1em;color:var(--reward-gold)!important}
.reward-page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.reward-page-heading>div{min-width:0}.reward-balance-short{flex-shrink:0;text-align:end;text-decoration:none;color:var(--reward-gold);padding-block:4px;min-height:44px}.reward-balance-short span{display:block;color:var(--reward-muted);font-size:12px;margin-bottom:4px}.reward-balance-short bdi{font-size:17px;font-weight:700}
.reward-panel{padding:22px;border:1px solid var(--reward-line);border-radius:12px;background:var(--reward-panel);margin-block:20px}
.reward-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;width:100%}.reward-amount{color:var(--reward-gold);font-size:20px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.reward-daily{border-color:#586044;margin-top:0}.reward-daily>.reward-btn{margin-top:18px;width:100%}.reward-daily .reward-amount{font-size:26px}.reward-daily .reward-note{font-size:12px;margin-bottom:0}.reward-claimed{font-weight:600;margin-top:16px!important}
.reward-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:18px 0 12px}.reward-day{text-align:center;border-radius:8px;background:#202526;border:1px solid transparent;padding:10px 1px;font-size:11px;color:var(--reward-muted);min-width:0}.reward-day bdi{display:block;font-size:18px;font-weight:700;color:var(--reward-ink);margin-top:6px}.reward-day.current{border-color:var(--reward-gold);background:#302b20}.reward-day.done{color:#a7d1be;background:#19342b}.reward-day.done bdi{color:#b1e0cb}
.reward-btn{font:inherit;font-weight:650;font-size:14px;display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:46px;padding:11px 18px;border-radius:8px;border:1px solid var(--reward-action);background:var(--reward-action);color:#071611;text-decoration:none;cursor:pointer;line-height:1.45;text-align:center;box-sizing:border-box;max-width:100%}.reward-btn.secondary{background:transparent;color:var(--reward-ink);border-color:#56615d}.reward-btn:disabled{cursor:default;background:#29322e;border-color:#3d5148;color:#bfd0c7}.reward-btn:focus-visible,.reward-link:focus-visible,.reward-entry-inner:focus-visible,.home-resume-card:focus-visible,.reward-balance-short:focus-visible,summary:focus-visible{outline:2px solid var(--reward-gold);outline-offset:4px}.reward-btn:hover:not(:disabled):not(.secondary){background:#51e8b6}
.reward-tasks{margin-block:20px 24px}.reward-section-title{margin-bottom:6px!important}.reward-task{padding:20px 0;margin:0;border:0;border-bottom:1px solid var(--reward-line);border-radius:0;background:none}.reward-task .reward-heading h2{font-size:16px}.reward-task .reward-amount{font-size:18px}.reward-task p{margin:8px 0 12px}.reward-task.is-complete{padding:14px 0}.is-complete .reward-heading{align-items:center}.is-complete .reward-heading h2{font-size:14px}.is-complete .reward-status{font-size:12px;text-align:end;flex-shrink:0}.is-complete details{margin-top:0}.reward-completed{margin-block:20px}
.reward-note{font-size:13px;color:var(--reward-muted)}.reward-status{font-size:13px;color:#a9d1bd!important}.reward-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.reward-actions .reward-btn{flex:1;min-width:110px}
.reward-row{padding-block:14px;display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--reward-line);font-size:14px;align-items:start}.reward-row span{display:block;color:var(--reward-muted);font-size:12px;margin-top:5px}.reward-row bdi{color:var(--reward-gold);white-space:nowrap;font-weight:700}.reward-row>div{min-width:0}.reward-friend{display:grid;grid-template-columns:1fr auto;gap:6px 12px}.reward-friend .reward-note{margin:0;line-height:1.5}.reward-friend .reward-note:last-child{grid-column:1/-1}.reward-friend>.reward-note:nth-child(2){text-align:end}
.reward-shell details{width:100%}.reward-shell summary{font-size:14px;cursor:pointer;padding-block:12px;min-height:44px;box-sizing:border-box;line-height:1.5;color:var(--reward-ink)}.reward-shell details p{font-size:13px}.reward-panel details{margin-top:6px}.reward-log,.reward-campaign{border-top:1px solid var(--reward-line);padding-block:4px}.reward-log>summary,.reward-completed>summary{font-weight:600}.reward-invite-link{display:block;width:100%;min-width:0;background:#0d1010;border:1px solid #505958;border-radius:8px;color:var(--reward-ink);padding:12px;font:inherit;font-size:13px;box-sizing:border-box;margin-block:14px;direction:ltr}
.reward-wallet-panel{scroll-margin-top:90px}.reward-balance{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap;margin-top:14px}.reward-total{font-size:32px;line-height:1.2;font-variant-numeric:tabular-nums}.reward-total small{font-size:13px;color:var(--reward-muted);margin-inline-start:8px}.reward-split{display:flex;gap:20px;flex-wrap:wrap;font-size:12px;color:var(--reward-muted)}.reward-split b{display:block;color:var(--reward-ink);font-size:18px;margin-top:4px}
.rewards-entry{max-width:1400px;margin:16px auto;padding:0 24px;box-sizing:border-box}.rewards-entry[data-rewards-entry=account]{padding:0;margin:0}.reward-entry-inner{display:flex;gap:18px;justify-content:space-between;align-items:center;padding:14px 18px;background:#181c19;border:1px solid #363e32;border-radius:10px;color:var(--reward-ink);text-decoration:none;min-height:64px;box-sizing:border-box}.reward-entry-inner h2{font-size:15px;margin:0 0 3px;line-height:1.4}.reward-entry-inner p{font-size:12px;margin:0;line-height:1.5;color:var(--reward-muted)}.reward-entry-arrow{font-size:28px;color:var(--reward-gold);line-height:1;flex-shrink:0}[dir=rtl] .reward-entry-arrow{transform:scaleX(-1)}.reward-wallet-detail{font-size:12px!important;color:var(--reward-muted);line-height:1.6;margin-top:8px}.reward-wallet-detail summary{cursor:pointer;min-height:44px;padding-block:12px}.reward-wallet-detail p{font-size:12px;line-height:1.6;margin:4px 0}
.home-resume{max-width:1400px;margin:18px auto 0;padding-inline:24px;box-sizing:border-box}.home-resume-card{display:flex;gap:14px;align-items:center;padding:12px 16px;border-radius:10px;border:1px solid #303b36;color:var(--reward-ink);background:#151a18;text-decoration:none}.home-resume-card img{width:48px;height:66px;object-fit:cover;border-radius:5px;flex-shrink:0}.home-resume-card>div{min-width:0;flex:1}.home-resume-card strong{display:block;font-size:15px;line-height:1.4;margin:4px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-resume-label{font-size:12px;color:#9fd1bc}.home-resume-card .reward-note{font-size:12px}.resume-play{border-radius:50%;width:40px;height:40px;display:grid;place-items:center;background:var(--reward-action);color:#071611;font-size:14px;flex-shrink:0}
.reward-dock{position:fixed;inset-inline:0;bottom:0;z-index:30;background:#121515f5;border-top:1px solid #333b39;display:flex;justify-content:space-around;padding:6px 8px max(6px,env(safe-area-inset-bottom));backdrop-filter:blur(12px)}.reward-dock a{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;min-height:48px;font-size:12px;padding:4px;color:var(--reward-muted);text-decoration:none;text-align:center;flex:1;line-height:1.3;border-radius:8px}.reward-dock svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.reward-dock a[aria-current=page]{color:var(--reward-gold)}
.reward-message{position:fixed;bottom:92px;inset-inline:20px;margin:auto;max-width:520px;background:#e8e1d2;color:#151719;padding:15px 18px;z-index:100;border-radius:10px;box-shadow:0 6px 24px #0008;font-size:14px;line-height:1.5}.reward-message[hidden]{display:none}.reward-error{color:#ffc1b9!important}.reward-help{background:#252b2b;padding:16px;border-radius:10px;margin-top:12px;font-size:14px;line-height:1.6}.reward-share-inline{display:flex;flex-direction:column;gap:8px;width:100%;margin:10px 0}.reward-share-inline .reward-btn{font-size:12px;min-height:44px;padding:8px}.reward-loading{padding:32px;text-align:center}
@media(max-width:700px){.reward-shell{padding:24px 16px 32px}.reward-header{padding:14px 16px!important}.reward-page-heading{margin-bottom:20px;gap:12px}.reward-page-heading h1{font-size:26px}.reward-balance-short bdi{font-size:15px}.reward-panel{padding:18px 16px;margin-block:18px}.reward-daily{margin-top:0}.reward-days{gap:4px}.reward-day{font-size:10px}.reward-day bdi{font-size:17px}.reward-btn{min-height:48px}.reward-task{padding:18px 0;margin:0}.reward-task .reward-btn{width:auto}.reward-entry-inner{padding:12px 14px}.rewards-entry,.home-resume{padding-inline:16px;margin-block:14px}.reward-message{bottom:92px;inset-inline:12px}body:has(.reward-dock){padding-bottom:var(--reward-dock-clearance,calc(65px + env(safe-area-inset-bottom)))}.reward-balance{gap:12px}.reward-split{gap:18px}.reward-total{font-size:30px}}
@media(max-width:360px){.reward-page-heading{flex-wrap:wrap}.reward-page-heading h1{font-size:25px}.reward-balance-short{text-align:start}.reward-shell{padding-inline:12px}.reward-panel{padding-inline:12px}.reward-task{padding-inline:0}.reward-day{font-size:9px}.reward-day bdi{font-size:16px}.series-header .brand-emblem{display:none}.series-header.site-header{padding-inline:10px;gap:6px}.series-header .header-actions{gap:6px}#watch-panel .subtitle-row{min-width:0;max-width:100%}#watch-panel .subtitle-picker{min-width:0;flex:1}#watch-panel .subtitle-picker .language-control{min-width:0;max-width:100%}}
@media(min-width:701px){.reward-dock{position:static;max-width:560px;border:0;margin:0 auto 24px;border-radius:12px}.reward-dock a{flex-direction:row;gap:10px}.reward-message{bottom:24px}.reward-task{display:grid;grid-template-columns:1fr auto;column-gap:24px}.reward-task .reward-heading{grid-column:1/-1}.reward-task>p{grid-column:1;max-width:56ch}.reward-task>.reward-btn{grid-column:2;align-self:center}.reward-task.is-complete{display:block}}
@media(prefers-reduced-motion:reduce){.reward-btn{transition:none;transform:none!important}}
/* Keep the existing top-up path visually dominant when the episode is unaffordable. */
#checkout-topup:not([hidden]){background:#28d6a0;color:#071611;border-color:#28d6a0;font-weight:750;min-height:48px}
#checkout-dialog:has(#checkout-topup:not([hidden])) #checkout-submit:disabled{background:#242b28;color:#a2ada7;border-color:#3d4943;box-shadow:none}

.reward-task details{grid-column:1/-1}.reward-task details p{margin:4px 0 10px}.reward-task details summary{font-size:13px;color:var(--reward-muted)}

.home-resume-card strong{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:2.8em}.home-resume-progress{height:3px;background:#38403b;border-radius:4px;margin-top:8px;overflow:hidden;max-width:240px}.home-resume-progress span{display:block;height:100%;background:var(--reward-action)}
#honglou-pix .reward-package-bonus{display:block;color:var(--reward-gold);font-size:12px;line-height:1.5;white-space:normal;margin-top:6px}#honglou-pix .reward-package-expiry{font-size:12px;line-height:1.55;color:#b9c2bc;margin-top:10px}.reward-entry-inner h2{font-weight:650}.reward-friend .reward-note{overflow-wrap:anywhere}
@media(max-width:700px){.reward-shell .reward-claimed{font-size:14px}.rewards-entry[data-rewards-entry=home] .reward-entry-inner{min-height:52px}.home-resume-card{padding:12px}.home-resume-card strong{font-size:14px}.home-resume-card img{height:72px;width:50px}}

[id^="reward-task-"]{scroll-margin-top:90px}

/* Keep existing close actions, expand their touch areas. */
.auth-close,.close-dialog,.watch-close,#honglou-pix .close{min-width:44px;min-height:44px}
#honglou-pix .package .pack-description .reward-package-bonus{font-size:12px;line-height:1.5;white-space:normal;color:var(--reward-gold)}
#honglou-pix .sheet-intro .reward-package-expiry{font-size:12px;line-height:1.55;color:#b9c2bc}

/* One reward vocabulary across discovery, tasks, the wallet and navigation. */
.reward-header{justify-content:space-between}
.honglou-coin{display:inline-block;width:24px;height:24px;object-fit:contain;vertical-align:middle;flex-shrink:0}
.header-coins i:has(.honglou-coin),.coin-symbol:has(.honglou-coin){border:0;background:none;border-radius:0}
.coin-symbol .honglou-coin{width:38px;height:38px}
.header-wallet .honglou-coin{width:21px;height:21px}
.hero-wallet strong:has(.honglou-coin){display:inline-flex;align-items:center;gap:6px}
.hero-wallet .honglou-coin{width:26px;height:26px}
.hero-wallet .reward-share-inline{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin:12px 0 0;padding-top:12px;border-top:1px solid #36413a}
.hero-wallet .reward-share-inline .reward-btn{min-width:0;min-height:44px;padding:8px;font-size:13px;gap:7px;color:#b9dfca;border-color:#355745;background:#192b22}
.hero-wallet .reward-share-inline .reward-art{width:26px;height:26px}
.hero-wallet .reward-share-inline svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.hero-wallet .reward-share-inline .reward-btn:hover{border-color:#6ba88b;background:#223a2e}
.series-account-link{border-color:#79663b;background:#15251d;box-shadow:none}
#series-account-avatar{background:#274330;color:#f1ddb1}
/* Fit the actual header controls instead of hiding page overflow. */
@media(max-width:760px){
 .series-header .brand-en{display:none}
 .series-header .header-actions{min-width:0;gap:7px}
 .series-header .series-back-link{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
 .series-header .series-language-picker .language-control{display:flex;width:88px;min-width:88px;max-width:88px;min-height:44px;padding-inline:10px 25px;gap:6px}
 .series-header .language-current-name{display:none}
 .series-header .language-current-code{font-size:12px}
 .series-header .series-language-picker .language-control i{inset-inline-end:10px;inset-inline-start:auto}
 .hero-wallet .reward-share-inline{margin-top:4px}
 .hero-wallet .reward-share-inline .reward-btn{flex:1;min-width:0;min-height:44px;font-size:12px}
}
.reward-art{display:block;object-fit:contain;flex-shrink:0;pointer-events:none}
.reward-art-gift{width:48px;height:48px}
.reward-art-coin{width:24px;height:24px}
.reward-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.reward-coins{display:inline-flex;align-items:center;justify-content:flex-end;gap:6px;flex-shrink:0;line-height:1.25;font-variant-numeric:tabular-nums}
.reward-coins bdi{font-size:inherit;font-weight:inherit;line-height:inherit}
.reward-heading h2{min-width:0;text-wrap:pretty}
.reward-heading{align-items:center;gap:12px}
.reward-btn{border-radius:10px;transition:background-color .15s,border-color .15s}
.reward-btn:active:not(:disabled){filter:brightness(.94)}
.reward-page-heading{margin-bottom:20px}
.reward-balance-short .reward-wallet-amount{display:flex;gap:5px;color:var(--reward-gold);font-size:18px;font-weight:700;margin:0}
.reward-balance-short .reward-wallet-amount bdi{font-size:inherit}
.reward-balance-short .reward-art-coin{width:22px;height:22px}
.reward-total{display:flex;align-items:center;gap:8px}
.reward-total .reward-art-coin{width:32px;height:32px}
.reward-total small{margin-inline-start:0}
.reward-daily{background:linear-gradient(135deg,#1d241e 0%,#151b18 60%);border-color:#626344;border-radius:16px}
.reward-daily .reward-amount .reward-art{width:30px;height:30px}
.reward-day{padding:10px 1px 9px;border-radius:9px;background:#252a27;font-size:11px}
.reward-day>.reward-art-coin{width:26px;height:26px;margin:8px auto 5px}
.reward-day bdi{margin:0;font-size:18px}
.reward-day.current{background:#3a3320;border-color:#b5985e}
.reward-day.done{background:#1c382c}
.reward-day.done .reward-art-coin{opacity:.7}
.reward-claimed{color:#b5d7c5!important;line-height:1.5!important}
.reward-tasks{margin-block:28px 24px}
.reward-tasks-intro{display:flex;align-items:center;gap:12px;padding:12px 14px;margin-bottom:2px;border-radius:12px;background:linear-gradient(105deg,#2c281d88,#1b211c66)}
.reward-tasks-intro>div{min-width:0}
.reward-tasks-intro .reward-section-title{font-size:21px;line-height:1.3;color:#edcf96;margin:0!important;text-wrap:pretty}
.reward-tasks-intro .reward-note{font-size:12px;line-height:1.5;margin:5px 0 0}
.reward-task{padding-block:22px}
.reward-task .reward-heading h2{font-size:17px}
.reward-task .reward-amount{font-size:20px}
.reward-task>p{max-width:58ch;color:#bac1bc;font-size:13px;line-height:1.6;margin:10px 0 14px}
.reward-task details{margin-top:4px}
.reward-task details summary{min-height:44px;padding-block:10px}
.reward-task.is-complete{padding-block:14px}
.reward-task.is-complete .reward-heading h2{font-size:14px}
.reward-invitation{border-color:#405648;border-radius:16px}
.reward-invite-link{margin-block:14px 10px;color:#b4c3b9;background:#111713;border-color:#3b4b40;font-size:12px}
.reward-invitation .reward-actions{margin-top:0}
#reward-copy-share{min-height:54px;font-size:16px;font-weight:750;box-shadow:0 4px 16px #071e1526}
#reward-copy-share .reward-art{width:30px;height:30px}
.reward-row .reward-log-amount{display:flex;align-items:center;gap:5px;margin:0;color:var(--reward-gold);font-size:16px;font-weight:700}
.reward-row .reward-log-amount .reward-art{width:20px;height:20px}
.reward-entry-inner{gap:12px;padding:10px 14px;border-radius:12px;background:linear-gradient(105deg,#25281d,#161d18 70%);border-color:#484b33;min-height:66px}
.reward-entry-copy{flex:1;min-width:0}
.reward-entry-inner .reward-art-gift{width:44px;height:44px}
.reward-entry-inner h2{font-size:15px;line-height:1.4;margin:0;color:#f0e5ce}
.reward-entry-inner p{margin-top:4px}
.reward-entry-arrow{font-size:26px}
.reward-dock{align-items:center;padding-top:4px;padding-bottom:max(5px,env(safe-area-inset-bottom))}
.reward-dock a{gap:3px;min-height:55px;font-weight:550}
.reward-dock svg{width:24px;height:28px}
.reward-dock .reward-art-gift{width:32px;height:28px;object-fit:contain;transform:scale(1.2)}
.reward-dock a[aria-current=page]{background:#d3bb7a0b}
/* Native focus/anchor scrolling must leave room for the sticky header and dock. */
html:has(.reward-dock){scroll-padding-block:90px calc(var(--reward-dock-clearance,65px) + 8px)}
body:has(.reward-dock) :is(a,button,input,select,textarea,summary,[tabindex]){scroll-margin-block:8px}
/* Keep keyboard skip links above sticky headers and the local preview toolbar. */
.skip-link:focus{z-index:60}
@media(max-width:700px){
 .reward-page-heading{gap:10px}.reward-page-heading h1{font-size:25px}
 .reward-shell{padding-top:20px}
 .reward-panel{padding:18px 15px}
 .reward-task{padding:20px 0}
 .reward-tasks-intro{padding:12px;gap:10px}
 .reward-tasks-intro .reward-art{width:42px;height:42px}
 .reward-tasks-intro .reward-section-title{font-size:20px}
 .reward-entry-inner .reward-art-gift{width:40px;height:40px}
 .rewards-entry[data-rewards-entry=home]{margin-block:12px}
 .rewards-entry[data-rewards-entry=home] .reward-entry-inner{min-height:62px}
 .reward-invitation .reward-heading{align-items:start}
}
@media(max-width:360px){
 .reward-panel{padding-inline:12px}.reward-task{padding-inline:0}
 .reward-days{gap:3px}.reward-day{padding-top:8px;font-size:10px}.reward-day>.reward-art-coin{width:22px;height:22px;margin:7px auto 5px}.reward-day bdi{font-size:16px}
 .reward-task .reward-heading h2{font-size:16px}.reward-task .reward-amount{font-size:18px}
 .reward-tasks-intro .reward-section-title{font-size:18px}
 .reward-balance-short .reward-wallet-amount{font-size:16px}
 .reward-entry-inner{gap:8px;padding-inline:10px}.reward-entry-inner h2{font-size:14px}
}
@media(min-width:701px){
 .reward-dock{position:fixed;bottom:18px;max-width:420px;margin:0 auto;border:1px solid #3a433d;border-radius:14px;padding:4px 8px;box-shadow:0 8px 24px #0005}
 .reward-dock a{min-height:48px;gap:8px}
 .reward-message{bottom:100px}
 body:has(.reward-dock){padding-bottom:var(--reward-dock-clearance,76px)}
 html:has(.reward-dock){scroll-padding-bottom:calc(var(--reward-dock-clearance,76px) + 8px)}
}
/* Tablet portrait keeps the existing player and episode column, with readable tools. */
@media(min-width:761px) and (max-width:1194px){
 #watch-panel .screen-section{justify-content:flex-start;overflow-y:auto;overscroll-behavior:contain}
 #watch-panel .player-quick-controls{grid-template-columns:repeat(3,minmax(0,1fr));flex-shrink:0}
 #watch-panel .player-quick-controls .player-tool{min-height:44px}
 #watch-panel .player-quick-controls .player-tool>span{flex-shrink:0}
 #watch-panel .player-quick-controls .player-tool b{white-space:normal;overflow:visible;text-overflow:clip;font-size:10px;line-height:1.3}
}
@media(prefers-reduced-motion:reduce){.reward-btn{transition:none}}

/* Keep today's check-in compact without shrinking its touch targets. */
.reward-daily{padding:14px;margin-block:14px}
.reward-daily .reward-heading h2{font-size:18px}
.reward-daily .reward-amount{font-size:24px}
.reward-daily .reward-amount .reward-art{width:26px;height:26px}
.reward-daily>.reward-btn{margin-top:12px}
.reward-daily .reward-claimed{margin-top:10px!important;margin-bottom:8px;line-height:1.4!important}
.reward-daily .reward-days{margin:12px 0 8px;gap:4px}
.reward-daily .reward-day{padding:7px 1px}
.reward-daily .reward-day>.reward-art-coin{width:22px;height:22px;margin:5px auto 3px}
.reward-daily .reward-note{margin:8px 0 0;line-height:1.4}
.reward-daily details{margin-top:0}
.reward-daily summary{min-height:44px;padding-block:8px}
.reward-tasks{margin-top:18px}
.reward-tasks>.reward-invitation{margin-block:14px 6px}
.reward-wallet-panel>.reward-log{margin-top:10px}
.hero-wallet .reward-share-inline .reward-more-dramas{background:var(--reward-action);border-color:var(--reward-action);color:#071611;font-weight:750}
.hero-wallet .reward-share-inline .reward-more-dramas:hover{background:#51e8b6;border-color:#51e8b6}
.hero-wallet .reward-share-inline .reward-more-dramas svg{width:17px;height:17px}

/* Dismiss only the home reminder; the viewing link and history remain independent. */
.home-resume-panel{display:grid;grid-template-columns:minmax(0,1fr) 48px;align-items:center;gap:4px;padding-inline-end:6px;border:1px solid #303b36;border-radius:10px;background:#151a18}
.home-resume-panel .home-resume-card{min-width:0;border:0;background:transparent;gap:12px;border-radius:9px}
.home-resume-dismiss{display:grid;place-items:center;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--reward-muted);cursor:pointer;touch-action:manipulation}
.home-resume-dismiss svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.home-resume-dismiss:hover{color:var(--reward-ink);background:#27312c;border-color:#3d4b43}
.home-resume-dismiss:focus-visible{outline:2px solid var(--reward-gold);outline-offset:2px;background:#27312c;color:var(--reward-ink)}
.home-resume-dismiss:active{background:#354139}
@media(max-width:360px){.home-resume-panel .home-resume-card{gap:10px;padding-inline:10px}.home-resume-panel .resume-play{width:36px;height:36px}.home-resume-panel .home-resume-card img{width:44px;height:64px}}

/* Free reward introduction uses the page width, with one clear registration action. */
.reward-welcome{padding:clamp(22px,4vw,36px);border-color:#62553b;border-radius:20px;background:radial-gradient(ellipse at 100% 0,#af87341c,transparent 60%),#151a17}
.reward-welcome-head{display:flex;align-items:center;justify-content:space-between;gap:18px}
.reward-welcome-head>div{min-width:0}.reward-welcome-head>.reward-art{width:64px;height:64px;flex:0 0 64px}
.reward-welcome .reward-kicker{display:block;margin-bottom:12px;font-weight:650;letter-spacing:.03em}
.reward-welcome :is(h1,h2){color:#f3d68f;font-size:clamp(25px,4.4vw,36px);font-weight:750;line-height:1.25;text-wrap:balance}
.reward-welcome .reward-welcome-lead{margin:20px 0 8px;font-size:16px;line-height:1.65;color:#e1e6df;max-width:38em}
.reward-welcome .reward-welcome-period{font-size:13px;margin:0;color:#aebbb2}
.reward-welcome-action{margin:24px 0 12px}.reward-welcome-action>.reward-btn{width:100%;font-size:16px;min-height:52px;padding:14px 18px;text-align:center}
.reward-welcome .reward-welcome-limit{font-size:12px;line-height:1.65;margin:0;color:#b6bdb5}
.reward-offer-details{margin-top:20px;border-top:1px solid #42473d;padding-top:8px}
.reward-offer-details>summary{min-height:48px;padding-block:14px;font-size:14px;color:#e0c28a;cursor:pointer}
.reward-offer-list{padding:0;margin:0;list-style:none}.reward-offer-list>li{padding:16px 0;border-top:1px solid #ffffff10}
.reward-offer-row{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:15px;font-weight:650}.reward-offer-row .reward-amount{font-size:19px}
.reward-offer-list .reward-note{font-size:12px;margin-bottom:0}.reward-welcome:has(.reward-btn:disabled){border-color:var(--reward-line)}
@media(max-width:390px){.reward-welcome{padding:22px 18px}.reward-welcome-head{gap:10px}.reward-welcome-head>.reward-art{width:48px;height:48px;flex-basis:48px}.reward-welcome :is(h1,h2){font-size:26px}.reward-welcome .reward-welcome-lead{font-size:15px}.reward-welcome .reward-kicker{font-size:11px}.reward-welcome-action{margin-top:20px}}

/* One welcome title; busy controls retain focus while duplicate clicks are blocked. */
.reward-welcome h1{margin:0}
.reward-btn:not(:disabled)[aria-disabled="true"]{opacity:.6;cursor:wait}
.reward-panel h2[tabindex="-1"]:focus-visible{outline:2px solid var(--reward-gold);outline-offset:4px;border-radius:4px}

/* Detail polish: readable invite conditions and a clear returning-user path. */
.reward-welcome-action .reward-login-link{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:8px;color:#b5d7c9;font-size:14px;text-align:center;text-decoration:underline;text-underline-offset:4px}
.reward-welcome-action .reward-login-link:focus-visible{outline:2px solid #29d5a6;outline-offset:3px;border-radius:8px}
.reward-invitation .reward-invite-lead{color:#edcf96;font-weight:700;font-size:17px;line-height:1.5;margin:12px 0 8px}
.reward-invite-steps{padding-inline-start:20px;margin:0 0 12px;color:#bbc4c1;font-size:14px;line-height:1.65}
.reward-invite-steps li+li{margin-top:4px}
.reward-invitation .reward-actions{margin-top:12px}
.reward-invitation>details{margin-top:8px}

/* Installation help stays readable as steps, including long translations and RTL. */
.reward-install-guide{border:1px solid #4b5c51;background:#17211d;padding:16px;overflow-wrap:anywhere}
.reward-install-guide .reward-install-title{margin:0 0 6px;font-size:16px;line-height:1.4;color:#eed49c}
.reward-install-guide .reward-install-intro{margin:0;color:#e1e9e3;font-size:14px;line-height:1.6}
.reward-install-guide .reward-install-browser{margin:12px 0;padding-inline-start:10px;border-inline-start:2px solid #c4a96b;color:#c4ccc7;font-size:13px;line-height:1.6}
.reward-install-platforms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.reward-install-platform h4{margin:0 0 6px;color:#f0f2ed;font-size:14px;line-height:1.4}
.reward-install-platform ol{margin:0;padding-inline-start:21px;color:#d4ddd6;font-size:14px;line-height:1.65}
.reward-install-platform li+li{margin-top:6px}
.reward-install-guide .reward-install-finish{margin:14px 0 0;padding-top:12px;border-top:1px solid #3b4a41;color:#c0e8d4;font-size:14px;line-height:1.6;font-weight:600}
@media(max-width:540px){.reward-install-platforms{grid-template-columns:1fr;gap:12px}.reward-install-guide{padding:14px}}
