.activity-content { color-scheme: light; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; --pink: #fb147b; --gold: #ff773e; }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: #f6f0fd; color: #202024; }
.activity-content { font-size: 14px; line-height: 1.4; }
:where(.activity-content) button, :where(.activity-content) a { font: inherit; -webkit-tap-highlight-color: transparent; }
:where(.activity-content) button { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
:where(.activity-content) a { color: inherit; text-decoration: none; }
:where(.activity-content) button:focus-visible, :where(.activity-content) a:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
:where(.activity-content) [hidden] { display: none !important; }
:where(.activity-content) h1, :where(.activity-content) h2, :where(.activity-content) p { margin: 0; }
.activity-shell { position: relative; max-width: 480px; min-height: 100dvh; margin: 0 auto; overflow: hidden; background: #f6f0fd url("/static/activities/task-wall/assets/mobile-background.svg?v=20260915-figma-1") center -44px / 100% 351px no-repeat; }
.navbar { position: relative; z-index: 2; height: 58px; padding: env(safe-area-inset-top, 0) 16px 0; display: grid; grid-template-columns: 54px 1fr 54px; align-items: center; color: #fff; }
.navbar::after { content: ""; position: absolute; inset: 0 -80px auto 100px; height: 110px; background: linear-gradient(45deg, transparent 44%, #ffffff12 45%, #ffffff12 70%, transparent 71%); pointer-events: none; }
.navbar h1 { font-size: 18px; text-align: center; font-weight: 600; }
.back { display: flex; align-items: center; width: 44px; height: 44px; filter: brightness(0) invert(1); }
.back img { width: 22px; height: 22px; }
.rules-link { z-index: 1; justify-self: end; color: #fff9; font-size: 12px; }
.task-wall-desktop-navigation, .hero-star { display: none; }
#wall-view > .activity-assets-bar { position: relative; top: auto; left: auto; margin: 4px auto 0; transform: none; }
main { position: relative; min-height: calc(100dvh - 102px); padding: 0 16px max(24px, env(safe-area-inset-bottom)); }
.hero { position: relative; z-index: 1; height: 292px; display: grid; place-items: center; margin-top: -2px; }
.hero::after { content: ""; position: absolute; width: 88%; height: 36px; bottom: 12px; border-radius: 50%; background: radial-gradient(ellipse, #ff6aa288, transparent 68%); filter: blur(6px); }
.hero img { position: relative; z-index: 1; width: 300px; height: 300px; object-fit: contain; animation: hero-enter .7s cubic-bezier(.2,.8,.3,1.1) both, hero-float 3.4s .8s ease-in-out infinite; }
.task-list { position: relative; z-index: 2; display: grid; gap: 12px; margin-top: -57px; padding: 14px 12px; border: 2px solid #fff; border-radius: 22px; background: #ffffff8c; box-shadow: inset 0 0 14px #fff, 0 8px 24px #a6427712; backdrop-filter: blur(10px); }
.task-card { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 72px; padding: 8px 10px 8px 8px; border: 1px solid #fff; border-radius: 16px; background: #fff; box-shadow: 0 4px 11px #cb4d8b0d; transition: transform .2s ease, opacity .2s ease; }
.task-card.is-complete { opacity: .82; }
.task-icon-frame { position: relative; display: block; width: 54px; height: 54px; overflow: hidden; }
.task-icon { display: block; width: 54px; height: 54px; object-fit: contain; }
.task-copy { min-width: 0; }
.task-title { display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 600; }
.limit { position: relative; isolation: isolate; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: auto; min-width: 36px; height: 16px; overflow: hidden; padding: 0 6px; border-radius: 26px; color: #fff; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10px; font-weight: 400; line-height: 16px; white-space: nowrap; }
.limit::before { position: absolute; z-index: 0; inset: 0; border-radius: inherit; background: linear-gradient(95.58deg, #ffbebe 0%, #ff1f22 39.196%); content: ""; }
.limit::after { position: absolute; z-index: 2; inset: 0; border-radius: inherit; box-shadow: inset 0 0 6px rgba(255, 255, 255, .7); content: ""; pointer-events: none; }
.limit > span { position: relative; z-index: 1; display: block; line-height: 16px; }
.rewards { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; color: var(--gold); font-size: 11px; white-space: nowrap; }
.reward-chip { display: inline-flex; align-items: center; gap: 1px; }
.reward-chip img { width: 15px; height: 15px; object-fit: contain; }
.task-note { margin-top: 2px; overflow: hidden; color: #999; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.task-action { min-width: 57px; padding: 7px 9px; border-radius: 999px; background: linear-gradient(#ff75b1, #fa087f 58%, #ee0072); box-shadow: 0 2px 7px #f9008370, inset 0 1px 3px #fff9; color: #fff; font-size: 11px; white-space: nowrap; }
.task-action.is-complete { background: #d7d7d7; box-shadow: none; color: #777; cursor: pointer; }
.task-action.is-complete:disabled { cursor: default; }
.task-action.is-unavailable { min-width: 70px; background: #d7d7d7; box-shadow: none; color: #777; cursor: not-allowed; }
.dialog { width: min(320px, calc(100vw - 36px)); max-height: 82dvh; padding: 28px 24px 24px; border: 0; border-radius: 14px; background: #fff; color: #25252b; }
.dialog::backdrop, .reward-dialog::backdrop { background: #000a; }
.dialog h2 { padding-bottom: 17px; border-bottom: 1px solid #eee; text-align: center; font-size: 20px; }
.dialog ol { max-height: 45dvh; overflow: auto; margin: 19px 0 24px; padding-left: 20px; color: #777; font-size: 13px; line-height: 1.75; }
.primary { display: block; width: 100%; min-height: 44px; padding: 10px 16px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 15px; font-weight: 500; }
.reward-dialog { position: fixed; inset: 0; width: min(340px, calc(100vw - 36px)); height: fit-content; max-height: calc(100dvh - 30px); margin: auto; padding: 0; overflow: visible; border: 0; background: transparent; color: #25252b; }
.reward-celebration { position: relative; padding-top: 145px; }
.reward-panel { position: relative; padding: 85px 20px 24px; border-radius: 26px; background: linear-gradient(#ff85b9, #fff8f2 90px, #fff 136px); box-shadow: 0 17px 0 -8px #97004780; }
.reward-panel h2 { text-align: center; font-size: 20px; }
.reward-gift { position: absolute; z-index: 2; top: -2px; left: 50%; width: 258px; height: 238px; object-fit: contain; transform: translateX(-50%); pointer-events: none; }
.reward-glow { position: absolute; inset: 45px -20px 30px; border-radius: 50%; background: radial-gradient(ellipse, #ffdff1dd, #dc77ff44 45%, transparent 70%); }
.reward-items { display: flex; justify-content: center; gap: 11px; margin: 20px 0 27px; }
.reward-item { min-width: 68px; text-align: center; color: var(--pink); font-size: 11px; }
.reward-item picture { display: contents; }
.reward-item img { display: block; width: 57px; height: 57px; margin: 0 auto 6px; object-fit: contain; }
.reward-panel .primary { background: linear-gradient(#ff85c2, #fb0a82 55%, #f80078); box-shadow: inset 0 0 8px #fff8; }
.reward-close { display: block; position: relative; width: 32px; height: 32px; margin: 27px auto 0; border: 2px solid #fff; border-radius: 50%; color: #fff; font-size: 29px; line-height: 24px; }
.reward-close img, .reward-sparkle, .reward-bridge { display: none; }
.reward-dialog[open] .reward-panel { animation: modal-enter .4s ease-out both; }
.reward-dialog[open] .reward-gift { animation: gift-enter .65s cubic-bezier(.2,.8,.3,1.15) both; }
.ad-view { position: absolute; z-index: 20; inset: 0; min-height: 100dvh; background: #000; }
.ad-dialog-panel { position: relative; width: 100%; height: 100dvh; overflow: hidden; background: #000; }
.ad-media-link { display: block; width: 100%; height: 100%; }
.ad-media { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-controls { position: absolute; top: max(18px, env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.ad-controls > button, .ad-controls > div { min-height: 35px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 999px; background: #0007; backdrop-filter: blur(7px); }
.ad-controls > div { padding-right: 5px; }
.ad-controls span { font-size: 11px; }
#sound-button b { padding-left: 8px; border-left: 1px solid #fff4; font-size: 13px; }
#close-ad { width: 27px; height: 27px; border-left: 1px solid #fff4; color: #fff; font-size: 23px; line-height: 20px; }
.claim-ad { position: absolute; left: 50%; bottom: max(38px, env(safe-area-inset-bottom)); min-width: 136px; padding: 12px 22px; border-radius: 999px; background: #fff; color: var(--pink); font-weight: 600; transform: translateX(-50%); box-shadow: 0 5px 20px #0006; }
.target-options { display: grid; gap: 10px; margin: 18px 0; }
.target-options button { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; border: 1px solid #ffd0e5; border-radius: 12px; background: #fff7fb; }
.target-options button b { color: var(--pink); font-weight: 500; }
.secondary { display: block; width: 100%; min-height: 42px; margin-top: 12px; border: 1px solid #ddd; border-radius: 999px; background: #fff; color: #666; }
.secondary:disabled { background: #eee; color: #aaa; cursor: not-allowed; }
.qr-dialog { text-align: center; }
.qr-image { display: block; width: 210px; height: 210px; margin: 20px auto 14px; object-fit: contain; }
.qr-dialog .dialog-hint { margin: 12px 0; }
.dialog-hint, .task-load-error { color: #737888; font-size: 13px; line-height: 1.7; }
.task-load-error { width: 100%; padding: 36px 16px; text-align: center; }
@keyframes hero-enter { from { opacity: 0; transform: translateY(18px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes hero-float { 50% { transform: translateY(-4px); } }
@keyframes modal-enter { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes gift-enter { from { opacity: 0; transform: translateX(-50%) translateY(25px) scale(.72); } to { opacity: 1; transform: translateX(-50%); } }
@media (max-width: 768px) {
  .navbar { height: 48px; }
  .navbar::after { display: none; }
  #wall-view > .activity-assets-bar { margin-top: 12px; }
  .hero { height: 247px; }
  .hero > .hero-star { display: none; }
  .hero > .hero-art { width: 317px; height: 317px; }
  .task-list { gap: 12px; margin-top: -57px; padding: 16px 12px; border: 0; border-radius: 20px; background: linear-gradient(180deg, rgba(250, 249, 254, .4) 0%, #faf9fe 18.185%, #faf9fe 100%); box-shadow: inset 0 0 0 1px #fff, 0 0 4px #fbf6fd; backdrop-filter: blur(6px); }
  .task-card { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 8px; height: 83px; min-height: 83px; padding: 10px 12px; border-radius: 12px; background: #fefefd url("/static/activities/task-wall/assets/task-card-radial.png?v=20260915-figma-1") calc(100% + 41px) 0 / 113px 113px no-repeat; box-shadow: 0 0 12px #fdf3fd; }
  .task-icon-frame { width: 60px; height: 60px; }
  .task-icon { position: absolute; top: -5px; left: -6px; width: 72px; height: 72px; }
  .task-copy { display: flex; flex-direction: column; gap: 2px; }
  .task-title { gap: 8px; font-size: 14px; line-height: 20px; }
  .rewards { gap: 8px; margin-top: 0; color: #f54570; font-size: 12px; line-height: 16px; }
  .reward-chip { gap: 2px; }
  .reward-chip img { width: 16px; height: 16px; }
  .task-note { margin-top: 0; color: #656565; font-size: 10px; line-height: 16px; }
  .task-action { min-width: 0; height: 28px; padding: 3px 12px; border-radius: 18px; background: linear-gradient(180deg, #e5005c 0%, #ff22ae 100%); box-shadow: inset 0 1px 4px 2px #ffd9e8; font-size: 12px; line-height: 18px; }
}
@media (max-width: 355px) { #wall-view > .activity-assets-bar { width: calc(100% - 28px); } main { padding-inline: 10px; } .task-list { padding-inline: 8px; } .task-card { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 5px; } .task-icon-frame, .task-icon { width: 48px; height: 48px; } .task-action { min-width: 52px; padding-inline: 7px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (min-width: 769px) {
  html, body { background: #fafafa; }
  .activity-shell { max-width: none; min-height: 767px; overflow: hidden; background: #fafafa; }
  #wall-view { position: relative; min-height: 767px; background: #fafafa; }
  #wall-view::before { position: absolute; inset: 0 0 auto; height: 391px; background: url('./assets/desktop-background.svg') center top / 100% 391px no-repeat; content: ""; pointer-events: none; }
  #wall-view::after { content: none; }
  #wall-view > .navbar { display: none; }
  .task-wall-desktop-navigation { position: absolute; z-index: 4; top: 32px; left: 50%; display: block; width: min(1200px, calc(100% - 48px)); transform: translateX(-50%); }
  #wall-view > .activity-assets-bar { position: absolute; top: 52px; left: 50%; margin: 0; transform: translateX(-50%); }
  #wall-view main { position: relative; width: 100%; min-height: 767px; margin: 0; padding: 0; }
  #wall-view .hero { position: absolute; z-index: 1; top: 84px; left: 50%; display: block; width: 423px; height: 423px; margin: 0; transform: translateX(-50%); }
  #wall-view .hero::after { content: none; }
  #wall-view .hero-star { position: absolute; z-index: 0; top: 61px; left: 26px; display: block; width: 347px; height: 321px; object-fit: fill; transform: rotate(13.97deg); }
  #wall-view .hero-art { position: absolute; z-index: 1; top: 50%; left: 50%; display: block; width: 349.034px; height: 349.034px; object-fit: contain; transform: translate(-50%, -50%) rotate(13.97deg); animation: none; }
  #wall-view .task-list { position: absolute; z-index: 2; top: 400px; left: 50%; display: grid; width: min(1200px, calc(100% - 48px)); min-height: 248px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 100px 102px; grid-auto-rows: 100px; gap: 12px; margin: 0; padding: 16px 12px; border: 1px solid rgba(255,255,255,.92); border-radius: 22px; background: rgba(255,255,255,.5); box-shadow: inset 0 0 14px #fff, 0 8px 24px rgba(166,66,119,.07); backdrop-filter: blur(10px); transform: translateX(-50%); }
  #wall-view .task-card { min-height: 100px; grid-template-columns: 60px minmax(0, 1fr) 82px; gap: 8px; padding: 16px 12px; border-radius: 12px; background: #fefefd; box-shadow: 0 0 12px #fdf3fd; }
  #wall-view .task-icon-frame { width: 60px; height: 60px; }
  #wall-view .task-icon { position: absolute; top: -5px; left: -6px; width: 72px; height: 72px; }
  #wall-view .task-title { gap: 8px; font-size: 16px; font-weight: 600; line-height: 22px; }
  #wall-view .limit { height: 16px; padding: 0 6px; font-size: 10px; line-height: 16px; }
  #wall-view .rewards { gap: 8px; margin-top: 2px; color: #f54570; font-size: 14px; line-height: 20px; }
  #wall-view .reward-chip { gap: 2px; }
  #wall-view .reward-chip img { width: 16px; height: 16px; }
  #wall-view .task-note { margin-top: 0; color: #656565; font-size: 12px; font-weight: 500; line-height: 18px; }
  #wall-view .task-action { width: 82px; min-width: 82px; height: 36px; padding: 0; border-radius: 18px; background: linear-gradient(#e5005c, #ff22ae); box-shadow: inset 0 1px 4px 2px #ffd9e8; font-size: 14px; font-weight: 500; line-height: 20px; }
  #wall-view .task-action.is-complete, #wall-view .task-action.is-unavailable { background: #d7d7d7; box-shadow: none; color: #777; }
  #wall-view[hidden] { display: block !important; }
  .ad-view { position: fixed; display: grid; min-height: 0; place-items: center; padding: 48px 24px; background: transparent; backdrop-filter: none; }
  .ad-dialog-panel { width: min(360px, calc(100vw - 48px)); height: min(600px, calc(100dvh - 96px)); border: 1px solid rgba(255, 255, 255, .2); border-radius: 18px; box-shadow: 0 24px 70px rgba(0, 0, 0, .48); }
  .ad-media-link { width: 100%; height: 100%; margin: 0; }
  .ad-controls { top: 14px; right: 14px; left: 14px; width: auto; transform: none; }
  .claim-ad { bottom: 18px; }
  .dialog { width: 350px; }
  .reward-dialog { width: 343px; max-height: calc(100dvh - 24px); transform: translateY(-25px); }
  .reward-dialog::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); }
  .reward-celebration { width: 343px; padding-top: 129px; }
  .reward-glow { display: none; }
  .reward-sparkle, .reward-bridge { position: absolute; display: block; pointer-events: none; }
  .reward-sparkle { z-index: 2; width: 124px; height: 124px; object-fit: contain; }
  .reward-sparkle-left { top: 15px; left: 0; transform: rotate(9.57deg); }
  .reward-sparkle-right { top: 4px; left: 175px; transform: rotate(120deg); }
  .reward-bridge { z-index: 2; top: 164px; left: 105px; width: 132px; height: 51px; }
  .reward-gift { z-index: 4; top: -11px; width: 240px; height: 240px; }
  .reward-panel { width: 300px; height: 322px; margin: 0 auto; overflow: hidden; padding: 94px 24px 24px; border-radius: 24px; background: #fff; box-shadow: inset 0 3px 4px rgba(255, 255, 255, .8); }
  .reward-panel::before { position: absolute; z-index: 0; top: -10px; left: 0; width: 300px; height: 95px; background: linear-gradient(180deg, #fd5995 0%, #fec7db 100%); content: ""; filter: blur(10px); }
  .reward-panel::after { position: absolute; z-index: 1; inset: 0; background-image: url("./assets/reward-bloom-left.svg"), url("./assets/reward-bloom-right.svg"), url("./assets/reward-bloom-top.svg"), url("./assets/reward-panel-light.svg"); background-position: -85px -111px, 204px -111px, -65px -200px, -24px 16px; background-repeat: no-repeat; background-size: 184px 184px, 184px 184px, 430px 304px, 348px 151px; content: ""; pointer-events: none; }
  .reward-panel > * { position: relative; z-index: 2; }
  .reward-panel h2 { font-size: 20px; font-weight: 600; line-height: 28px; white-space: nowrap; }
  .reward-items { align-items: flex-start; gap: 16px; height: 96px; margin: 12px 0 0; }
  .reward-item { display: flex; width: 72px; min-width: 72px; flex-direction: column; align-items: center; gap: 4px; color: #f81e7b; font-size: 14px; font-weight: 500; line-height: 20px; }
  .reward-item picture { position: relative; display: block; width: 72px; height: 72px; overflow: hidden; flex: 0 0 72px; }
  .reward-item img { position: absolute; display: block; width: 72px; height: 72px; margin: 0; object-fit: contain; }
  .reward-item--coins img { top: -4.13px; left: -6.2px; width: 82.623px; height: 82.623px; }
  .reward-item--tickets img { top: -.32px; left: -2.39px; width: 75px; height: 75px; }
  .reward-panel .primary { position: absolute; right: 24px; bottom: 24px; left: 24px; isolation: isolate; width: auto; min-height: 46px; overflow: hidden; padding: 11px 24px; border: 1px solid #fff; background: linear-gradient(180deg, #e5005c 0%, #ff22ae 100%); box-shadow: inset 0 1px 18px #ffd9e8, inset 0 1px 4px #ffd9e8; font-size: 16px; line-height: 22px; }
  .reward-panel .primary::before { position: absolute; z-index: 0; inset: 0; border-radius: inherit; background: url("./assets/reward-button-noise.png") center / 307px 307px; content: ""; mix-blend-mode: plus-lighter; opacity: .4; pointer-events: none; }
  .reward-panel .primary > span { position: relative; z-index: 1; }
  .reward-close { width: 36px; height: 36px; margin: 24px auto 0; border: 0; border-radius: 0; font-size: 0; line-height: 0; }
  .reward-close span { display: none; }
  .reward-close img { display: block; width: 36px; height: 36px; }
}
