#tasksOpen {
  position: relative;
  z-index: auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}
#tasksOpen > span {
  display: none !important;
}
#tasksOpen .tasks-launch-icon {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px #34220e55);
}
#tasksOpen b {
  position: absolute;
  top: 1px;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border: 2px solid #fff8dd;
  border-radius: 50%;
  background: #d93e25;
  color: #fff;
  font: bold 11px Arial;
}
#tasksOpen b[hidden] {
  display: none;
}
#tasksDialog {
  position: fixed !important;
  inset: 50% auto auto 50% !important;
  transform: translate(-50%, -50%) !important;
  box-sizing: border-box;
  display: none;
  flex-direction: column;
  width: min(1020px, calc(100vw - 32px)) !important;
  height: min(1020px, calc(100dvh - 20px)) !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 20px) !important;
  margin: 0 !important;
  padding: 10px 10px 0 !important;
  overflow: visible;
  border: 4px solid #68320d;
  border-radius: 38px;
  background: repeating-linear-gradient(
    0deg,
    #95501a 0,
    #b76524 4px,
    #a8571d 12px,
    #cf792d 19px,
    #ab5d1f 25px,
    #93501d 34px
  );
  box-shadow:
    inset 0 0 0 3px #e79d47,
    inset 0 0 0 8px #8d430e,
    0 14px 0 #60300f,
    0 25px 42px #3923124d;
  color: #6a350d;
  font:
    14px Georgia,
    "Times New Roman",
    serif;
}
#tasksDialog[open] {
  display: flex;
}
#tasksDialog::backdrop {
  background: #152b1c88;
  backdrop-filter: blur(2px);
}
#tasksDialog .tasks-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  flex: none;
  height: 132px;
  min-height: 132px;
  margin: 0;
  border: 2px solid #7b380d;
  border-radius: 24px 24px 10px 10px;
  background: repeating-linear-gradient(
    0deg,
    #8c4616 0,
    #a85a21 3px,
    #c6772f 10px,
    #a85c23 22px,
    #97501c 31px
  );
  box-shadow:
    inset 0 2px #edab5a,
    inset 0 -3px #69310c;
}
#tasksDialog .tasks-heading:after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 16px;
  border-top: 2px solid #8a471b;
  border-radius: 8px;
  background: linear-gradient(#b76b2b, #99521d);
  content: "";
  pointer-events: none;
}
#tasksDialog .tasks-heading > div {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  margin: 31px 120px 0 215px;
  text-align: center;
}
#tasksDialog .tasks-heading h2 {
  margin: 0;
  color: #fff2c3;
  font:
    900 clamp(27px, 4.2vw, 57px) / 1.18 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: 0;
  text-shadow:
    0 3px #682e0b,
    2px 5px 1px #63310b,
    1px -1px #fff8e6,
    0 7px 7px #32150070;
  -webkit-text-stroke: 1.2px #96511e;
  white-space: nowrap;
}
#tasksDialog .tasks-barn-badge {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50px;
  display: grid;
  place-items: center;
  width: 146px;
  height: 146px;
  border: 4px solid #ffcf68;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7cb 0 54%, #e8a634 57% 66%, #6d350c 69%);
  box-shadow:
    0 0 0 3px #8c3e0c,
    0 0 0 5px #efb54f;
  filter: drop-shadow(0 5px 3px #54270780);
}
#tasksDialog .tasks-barn-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#tasksDialog #tasksClose {
  position: absolute;
  z-index: 10;
  top: 15px;
  right: 40px;
  display: grid;
  place-items: center;
  width: 73px;
  height: 73px;
  padding: 0;
  border: 3px solid #7c390b;
  border-radius: 18px;
  background: linear-gradient(#ffa634, #c56e1e);
  box-shadow:
    inset 0 0 0 3px #ffc55b,
    0 4px 1px #78370d,
    0 6px 8px #49270744;
  color: #fff7dc;
  font:
    bold 44px/1 Arial,
    sans-serif;
  text-shadow:
    2px 2px #783800,
    -2px -1px #7c380b;
}
#tasksDialog #tasksClose:hover {
  filter: brightness(1.1);
}
#tasksDialog .tasks-workspace {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin: 0 8px;
  overflow: hidden;
  border: 3px solid #844015;
  border-top-width: 3px;
  border-radius: 23px 23px 17px 17px;
  background: linear-gradient(120deg, #fff1c8, #fff8e3 45%, #ffe8a8);
  box-shadow:
    inset 0 0 0 3px #f9c476,
    0 0 0 2px #dd9948;
}
#tasksDialog .tasks-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
#tasksDialog .tasks-tabs {
  display: flex;
  flex: none;
  align-items: flex-end;
  height: 89px;
  min-height: 89px;
  gap: 13px;
  padding: 0 20px 0 25px;
}
#tasksDialog .tasks-tabs button {
  flex: 0 0 225px;
  height: 69px;
  min-width: 0;
  padding: 11px 23px;
  border: 2px solid #a9631c;
  border-radius: 17px 17px 0 0;
  background: linear-gradient(#fff1d0, #e2b87b);
  box-shadow:
    inset 0 2px #fff9e0,
    0 0 0 2px #fff6d1;
  color: #693908;
  font:
    bold clamp(23px, 3vw, 34px) Georgia,
    serif;
  text-shadow: 0 1px #fff5df;
}
#tasksDialog .tasks-tabs button.selected {
  background: linear-gradient(#86c628, #5d9b17 30%, #2d7610 78%, #226308);
  box-shadow:
    inset 0 3px 2px #b6ea5c,
    0 0 0 2px #f7dda2;
  color: #fffcdc;
  text-shadow:
    1px 3px 2px #1c3c04,
    -1px -1px #386716;
}
#tasksDialog .tasks-tabs button:not(.selected):hover {
  filter: brightness(1.045);
}
#tasksFeature {
  z-index: 1;
  display: flex;
  flex: none;
  flex-direction: column;
  margin: -1px 0 0;
  padding: 10px 11px 12px;
  border: 1px solid #e5ac60;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(125deg, #fff1cb, #fff4d6 58%, #fff1c4);
  box-shadow: 0 2px 3px #7c521145;
  color: #754011;
}
#tasksFeature .tasks-summary-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 1px 24px 14px;
  color: #754011;
  font:
    bold clamp(13px, 1.9vw, 22px) / 1.2 Arial,
    sans-serif;
}
#tasksFeature .tasks-summary-meta span {
  text-align: right;
}
#tasksFeature .tasks-summary-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 121px;
  min-height: 121px;
  padding: 12px 15px 12px 12px;
  overflow: hidden;
  border: 2px solid #f5ba57;
  border-radius: 18px;
  background: linear-gradient(115deg, #ffe0a5, #fff5d9 47%, #ffdf9e);
  box-shadow:
    inset 0 2px #fff8df,
    0 2px 2px #c88d3990;
}
#tasksFeature .tasks-clipboard {
  position: relative;
  display: block;
  flex: 0 0 130px;
  width: 100px;
  height: 105px;
  filter: drop-shadow(2px 3px 1px #8a4e0e55);
}
#tasksFeature .tasks-summary-main {
  flex: 1;
  min-width: 0;
}
#tasksFeature .tasks-summary-main h3 {
  margin: 0 0 12px;
  color: #703709;
  font-size: clamp(19px, 2.9vw, 31px);
  font-weight: 900;
  text-shadow: 0 1px #fffae7;
  white-space: nowrap;
}
#tasksFeature .tasks-summary-line {
  display: flex;
  align-items: center;
  gap: 22px;
}
#tasksFeature .tasks-summary-line > b {
  flex: 0 0 auto;
  color: #6c350d;
  font:
    bold clamp(19px, 2.2vw, 26px) Arial,
    sans-serif;
  white-space: nowrap;
}
#tasksFeature .tasks-gift {
  flex: 0 0 135px;
  width: 135px;
  height: 110px;
  overflow: visible;
  filter: drop-shadow(1px 4px 1px #97531344);
}
#tasksFeature .tasks-summary-track {
  flex: 1;
  height: 22px;
  min-width: 0;
  overflow: hidden;
  border: 2px solid #96602e;
  border-radius: 15px;
  background: linear-gradient(#d7b98f, #f5e9d1 42%, #e8d0a5);
  box-shadow:
    inset 0 2px 3px #4a2c1266,
    0 1px #fff8d8;
}
#tasksFeature .tasks-summary-track i {
  display: block;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(#c9ff57, #79d910 18%, #35b800 60%, #299e00);
  box-shadow:
    inset 0 1px 1px #e2ffb8,
    inset 0 -2px #237f04,
    2px 0 1px #448a1788;
  transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
#tasksDialog .tasks-board {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 18px 19px 17px 16px;
  border-bottom: 3px solid #b67b2c;
  background: linear-gradient(100deg, #064925, #096136 5%, #0a5c31 80%, #12431c);
  box-shadow: inset 0 0 0 3px #0d3e21;
}
#tasksDialog .tasks-scroll-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 23px;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 0;
}
#tasksList {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
  padding: 6px 3px 8px 1px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline-offset: -2px;
}
#tasksList::-webkit-scrollbar {
  display: none;
}
#tasksDialog .tasks-scrollbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 23px;
  height: 100%;
  min-height: 0;
  user-select: none;
  touch-action: none;
}
#tasksDialog .tasks-scroll-arrow {
  position: relative;
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  width: 23px;
  height: 24px;
  padding: 0;
  border: 1px solid #744012;
  border-radius: 6px;
  background: linear-gradient(#ffdf8c, #d49336);
  box-shadow:
    inset 0 1px #fff7ca,
    0 2px 1px #052d16;
  cursor: pointer;
}
#tasksDialog .tasks-scroll-arrow:after {
  width: 0;
  height: 0;
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
  filter: drop-shadow(0 1px #fff2c4);
  content: "";
}
#tasksDialog .tasks-scroll-arrow.up:after {
  border-bottom: 10px solid #5f360d;
}
#tasksDialog .tasks-scroll-arrow.down:after {
  border-top: 10px solid #5f360d;
}
#tasksDialog .tasks-scroll-arrow:disabled {
  opacity: 0.5;
  cursor: default;
}
#tasksDialog .tasks-scroll-rail {
  position: relative;
  flex: 1;
  width: 21px;
  min-height: 20px;
  overflow: hidden;
  border: 2px solid #bd7426;
  border-radius: 12px;
  background: linear-gradient(90deg, #80501c, #f9d178 40%, #e6aa48 68%, #9b631e);
  box-shadow:
    inset 0 0 0 1px #5f350d,
    0 1px 2px #042d17;
  cursor: pointer;
  touch-action: none;
}
#tasksDialog .tasks-scroll-thumb {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  min-height: 46px;
  border: 2px solid #8b4c15;
  border-radius: 10px;
  background: linear-gradient(90deg, #c17722, #ffe6a1 38%, #ffd576 62%, #b96b22);
  box-shadow:
    inset 0 0 0 1px #fff0ae,
    0 1px 3px #663b0e;
  cursor: grab;
  touch-action: none;
  will-change: transform;
}
#tasksDialog .tasks-scroll-thumb:active {
  cursor: grabbing;
}
#tasksDialog .tasks-scroll-thumb:after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  color: #9e571b;
  font:
    bold 17px Arial,
    sans-serif;
  text-shadow: 0 1px #fff0b6;
  content: "≡";
}
#tasksDialog .task-card {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 17px;
  min-height: 139px;
  padding: 10px 17px 10px 19px;
  border: 2px solid #e5a74a;
  border-radius: 20px;
  background: linear-gradient(110deg, #fff0c8, #fff8e4 62%, #ffebc6);
  box-shadow:
    inset 0 2px #fffef1,
    0 3px 4px #002c155e;
  color: #693209;
}
#tasksDialog .task-card.is-claimed {
  border-color: #91bb39;
  background: linear-gradient(105deg, #e6f8a7, #f2ffce 55%, #d5f796);
  box-shadow:
    inset 0 1px 1px #fffbd8,
    0 3px 5px #003a1980;
}
#tasksDialog .task-card.is-ready {
  border-color: #57b12a;
  background: linear-gradient(100deg, #effad0, #f8ffe2 60%, #e0ffbe);
}
#tasksDialog .task-pin {
  position: absolute;
  z-index: 2;
  top: -8px;
  left: 22px;
  width: 25px;
  height: 25px;
  border: 2px solid #98500f;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 18%, #fff7ad, #f0a51e 42%, #c36a02 68%, #8d4605);
  box-shadow: 1px 3px 2px #8d4b1a9c;
}
#tasksDialog .task-art {
  flex: 0 0 115px;
  width: 115px;
  height: 115px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px #a76a1855);
}
#tasksDialog .task-info {
  flex: 1;
  align-self: center;
  min-width: 0;
}
#tasksDialog .task-info h3 {
  margin: 0 0 14px;
  color: #693209;
  font:
    900 clamp(19px, 2.7vw, 29px) / 1.12 Georgia,
    serif;
  text-shadow: 0 1px #fff8dc;
}
#tasksDialog .task-progress {
  display: flex;
  align-items: center;
  gap: 16px;
}
#tasksDialog .task-progress > div {
  flex: 1;
  height: 22px;
  min-width: 0;
  overflow: hidden;
  border: 2px solid #96602e;
  border-radius: 15px;
  background: linear-gradient(#d7b98f, #f5e9d1 42%, #e8d0a5);
  box-shadow:
    inset 0 2px 3px #4a2c1266,
    0 1px #fff8d8;
}
#tasksDialog .task-progress > div > i {
  display: block;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(#c9ff57, #79d910 18%, #35b800 60%, #299e00);
  box-shadow:
    inset 0 1px 1px #e2ffb8,
    inset 0 -2px #237f04,
    2px 0 1px #448a1788;
}
#tasksDialog .task-progress > span {
  flex: 0 0 62px;
  color: #723908;
  font:
    800 clamp(18px, 2.6vw, 27px) Arial,
    sans-serif;
  text-align: center;
}
#tasksDialog .task-rewards {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 7px;
  color: #79400d;
  font:
    900 clamp(17px, 2.1vw, 24px) Georgia,
    serif;
}
#tasksDialog .task-rewards > span {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
#tasksDialog .task-rewards img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  filter: drop-shadow(0 2px 1px #7b49184d);
}
#tasksDialog .task-cta {
  flex: 0 0 175px;
  align-self: center;
}
#tasksDialog .task-cta button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 65px;
  padding: 7px 5px;
  border: 2px solid #c88f44;
  border-radius: 16px;
  background: linear-gradient(#fff1d2, #e8cb95);
  box-shadow:
    inset 0 0 0 3px #fff9e5,
    0 4px 0 #ac793b,
    0 6px 3px #7c50154a;
  color: #754312;
  font:
    bold clamp(13px, 1.65vw, 18px) Arial,
    sans-serif;
  text-align: center;
  text-shadow: 0 1px #fffaf0;
}
#tasksDialog .task-cta button:disabled {
  cursor: default;
}
#tasksDialog .task-cta button:not(:disabled) {
  border-color: #457d10;
  background: linear-gradient(#a8d536, #539d0f 42%, #307407);
  box-shadow:
    inset 0 0 0 3px #cbf36c,
    0 4px 0 #205209,
    0 6px 3px #7c50154a;
  color: #fff5cb;
  font-size: 20px;
  text-shadow: 1px 2px #26540d;
}
#tasksDialog .task-cta button:not(:disabled):hover {
  filter: brightness(1.1);
}
#tasksDialog .task-stamp {
  padding: 8px;
  border: 3px solid #29940d;
  border-radius: 10px;
  background: #dcffad88;
  box-shadow: inset 0 0 0 1px #53b325;
  color: #267b0b;
  font:
    bold clamp(16px, 2vw, 24px) Georgia,
    serif;
  text-align: center;
  text-shadow: 0 1px #f8ffd6;
  transform: rotate(-8deg);
  white-space: nowrap;
}
#tasksDialog > footer {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 5px 50px 10px;
  border-top: 3px solid #f2b357;
  border-radius: 0 0 22px 22px;
  background: repeating-linear-gradient(0deg, #9c531e, #bb6825 8px, #d37e34 16px, #a85b1f 22px);
  box-shadow: inset 0 3px #743812;
  color: #fff3db;
  text-align: center;
  text-shadow:
    1px 2px #9b470d,
    0 2px 3px #4f2b0a;
}
#tasksDialog #tasksMessage {
  margin: 0;
  font:
    500 clamp(14px, 2vw, 23px) Arial,
    sans-serif;
}
#tasksDialog .tasks-screw {
  position: absolute;
  z-index: 6;
  width: 27px;
  height: 27px;
  border: 2px solid #793d0a;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 25%,
    #ffe78e,
    #f4b339 24%,
    #bf7217 57%,
    #794010 82%,
    #ffce67 93%
  );
  box-shadow:
    inset 1px 1px #fff1ab,
    0 2px 2px #4e280c8c;
}
#tasksDialog .tasks-screw.top-left {
  top: 15px;
  left: 10px;
}
#tasksDialog .tasks-screw.top-right {
  top: 15px;
  right: 10px;
}
#tasksDialog .tasks-screw.bottom-left {
  bottom: 10px;
  left: 13px;
}
#tasksDialog .tasks-screw.bottom-right {
  right: 13px;
  bottom: 10px;
}
#tasksDialog .tasks-leaves {
  position: absolute;
  z-index: 5;
  width: 185px;
  height: 80px;
  pointer-events: none;
  filter: drop-shadow(0 3px 1px #44270b75);
}
#tasksDialog .tasks-leaves.top-left {
  top: -33px;
  left: 100px;
}
#tasksDialog .tasks-leaves.top-right {
  top: -31px;
  right: 97px;
  transform: scaleX(-1);
}
#tasksDialog .tasks-leaves.bottom-left {
  bottom: -25px;
  left: 17px;
  width: 120px;
  transform: rotate(30deg);
}
#tasksDialog .tasks-leaves.bottom-right {
  right: 16px;
  bottom: -25px;
  width: 120px;
  transform: scaleX(-1) rotate(30deg);
}
#tasksDialog button:focus-visible,
#tasksOpen:focus-visible,
#tasksDialog .tasks-scroll-thumb:focus-visible {
  outline: 4px solid #41c9ff;
  outline-offset: 3px;
}
.task-completion-toast {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 30px);
  padding: 13px 20px;
  transform: translateX(-50%);
  border: 3px solid #b17724;
  border-radius: 15px;
  background: #fff1c1;
  box-shadow: 0 8px 22px #573a2061;
  color: #643509;
  font:
    700 18px Arial,
    sans-serif;
  text-align: left;
  cursor: pointer;
  animation:
    task-toast-in 0.2s ease-out,
    task-toast-out 0.25s ease-in 4.5s forwards;
}
.task-toast-check {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #7d9c43;
  color: #fff8d7;
  font: bold 24px Georgia;
}
.task-completion-toast b,
.task-completion-toast div > span,
.task-completion-toast small {
  display: block;
}
.task-completion-toast div > span {
  margin-top: 4px;
  font: 12px Arial;
}
.task-completion-toast small {
  margin-top: 5px;
  color: #929358;
  font: 10px Arial;
}
.task-reward-celebration {
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 75;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  min-width: 205px;
  padding: 21px 28px;
  transform: translate(-50%, -50%) rotate(-3deg);
  border: 3px double #c09640;
  border-radius: 13px;
  background: linear-gradient(#fff7cc, #ead496);
  box-shadow:
    0 5px #80582c,
    0 12px 30px #2c3c2755;
  color: #6f8033;
  pointer-events: none;
  animation:
    task-reward-pop 0.55s cubic-bezier(0.18, 1.3, 0.4, 1),
    task-reward-away 0.4s ease-in 1.65s forwards;
}
.task-reward-seal {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid #c7d484;
  border-radius: 50%;
  background: #85a24c;
  color: #fff6cc;
  font: bold 32px Georgia;
}
.task-reward-celebration > b {
  font: bold 24px Georgia;
}
.task-reward-celebration > span:last-of-type {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9e7636;
  font: bold 14px Arial;
}
.task-reward-celebration img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}
.task-reward-celebration img:nth-of-type(2) {
  margin-left: 8px;
}
.task-confetti {
  position: absolute;
  top: 35%;
  left: 50%;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  opacity: 0;
  animation: task-confetti-fly 1.2s ease-out var(--delay) forwards;
}
#tasksDialog .just-completed {
  animation: task-card-complete 1s ease-out;
}
.task-toast-check {
  line-height: 1;
}
@keyframes task-toast-in {
  from {
    opacity: 0;
    translate: 0 -25px;
    scale: 0.9;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
@keyframes task-toast-out {
  to {
    opacity: 0;
    translate: 0 -15px;
  }
}
@keyframes task-reward-pop {
  from {
    opacity: 0;
    scale: 0.45;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
@keyframes task-reward-away {
  to {
    opacity: 0;
    translate: 0 -35px;
    scale: 0.9;
  }
}
@keyframes task-confetti-fly {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--spin));
  }
}
@keyframes task-card-complete {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.025);
    filter: brightness(1.18);
  }
}
@media (max-width: 760px) {
  #tasksOpen {
    width: 32px;
    height: 32px;
  }
  #tasksOpen .tasks-launch-icon {
    width: 28px;
    height: 28px;
  }
  #tasksDialog {
    width: calc(100vw - 14px) !important;
    height: calc(100dvh - 18px) !important;
    max-height: calc(100dvh - 18px) !important;
    padding: 5px 5px 0 !important;
    border-width: 3px;
    border-radius: 22px;
  }
  #tasksDialog .tasks-heading {
    height: 89px;
    min-height: 89px;
    border-radius: 16px 16px 8px 8px;
  }
  #tasksDialog .tasks-heading > div {
    margin: 27px 67px 0 98px;
  }
  #tasksDialog .tasks-heading h2 {
    font-size: clamp(20px, 5.1vw, 37px);
    -webkit-text-stroke: 0.5px #96511e;
  }
  #tasksDialog .tasks-barn-badge {
    top: 6px;
    left: 14px;
    width: 76px;
    height: 76px;
    border-width: 2px;
    box-shadow:
      0 0 0 2px #8c3e0c,
      0 0 0 3px #efb54f;
  }
  #tasksDialog #tasksClose {
    top: 14px;
    right: 10px;
    width: 47px;
    height: 47px;
    border-radius: 12px;
    font-size: 28px;
  }
  #tasksDialog .tasks-leaves.top-left {
    top: -24px;
    left: 56px;
    width: 115px;
  }
  #tasksDialog .tasks-leaves.top-right {
    top: -25px;
    right: 32px;
    width: 110px;
  }
  #tasksDialog .tasks-workspace {
    margin: 0 2px;
    border-radius: 13px;
  }
  #tasksDialog .tasks-tabs {
    height: 65px;
    min-height: 65px;
    gap: 8px;
    padding-left: 12px;
  }
  #tasksDialog .tasks-tabs button {
    flex: 1;
    height: 53px;
    padding: 8px 20px;
    border-radius: 11px 11px 0 0;
    font-size: clamp(19px, 4vw, 25px);
  }
  #tasksFeature {
    padding: 9px 6px;
  }
  #tasksFeature .tasks-summary-meta {
    gap: 8px;
    margin: 0 10px 11px;
    font-size: 12px;
  }
  #tasksFeature .tasks-summary-bar {
    height: 88px;
    min-height: 88px;
    gap: 5px;
    padding: 5px;
    border-radius: 12px;
  }
  #tasksFeature .tasks-clipboard {
    flex-basis: 57px;
    width: 57px;
    height: 65px;
  }
  #tasksFeature .tasks-summary-main h3 {
    margin: 0 0 8px;
    font-size: 19px;
  }
  #tasksFeature .tasks-summary-line {
    gap: 8px;
  }
  #tasksFeature .tasks-summary-line > b {
    font-size: 14px;
  }
  #tasksFeature .tasks-gift {
    flex-basis: 65px;
    width: 65px;
    height: 70px;
  }
  #tasksFeature .tasks-summary-track {
    height: 15px;
  }
  #tasksDialog .tasks-board {
    padding: 9px 7px;
  }
  #tasksDialog .tasks-scroll-shell {
    grid-template-columns: minmax(0, 1fr) 21px;
    gap: 5px;
  }
  #tasksDialog .tasks-scrollbar {
    width: 21px;
  }
  #tasksDialog .tasks-scroll-arrow {
    width: 21px;
  }
  #tasksDialog .tasks-scroll-rail {
    width: 19px;
  }
  #tasksDialog .task-card {
    min-height: 110px;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
  }
  #tasksDialog .task-pin {
    top: -6px;
    left: 11px;
    width: 17px;
    height: 17px;
  }
  #tasksDialog .task-art {
    flex-basis: 74px;
    width: 74px;
    height: 74px;
  }
  #tasksDialog .task-info h3 {
    margin-bottom: 9px;
    font-size: clamp(14px, 3.6vw, 21px);
  }
  #tasksDialog .task-progress {
    gap: 4px;
  }
  #tasksDialog .task-progress > div {
    height: 15px;
  }
  #tasksDialog .task-progress > span {
    flex-basis: 35px;
    font-size: 15px;
  }
  #tasksDialog .task-rewards {
    gap: 10px;
    margin-top: 8px;
    font-size: 14px;
  }
  #tasksDialog .task-rewards > span {
    gap: 3px;
  }
  #tasksDialog .task-rewards img {
    width: 23px;
    height: 23px;
  }
  #tasksDialog .task-cta {
    flex-basis: 96px;
  }
  #tasksDialog .task-cta button {
    min-height: 50px;
    padding: 3px;
    border-radius: 11px;
    font-size: 12px;
  }
  #tasksDialog .task-cta button:not(:disabled) {
    font-size: 13px;
  }
  #tasksDialog .task-stamp {
    padding: 7px 1px;
    border-width: 2px;
    font-size: 12px;
  }
  #tasksDialog > footer {
    min-height: 65px;
    padding: 6px 18px;
  }
  #tasksDialog #tasksMessage {
    font-size: 13px;
  }
  #tasksDialog .tasks-leaves.bottom-left,
  #tasksDialog .tasks-leaves.bottom-right {
    bottom: -20px;
    width: 75px;
    height: 46px;
  }
  #tasksDialog .tasks-screw.bottom-left,
  #tasksDialog .tasks-screw.bottom-right {
    bottom: 5px;
  }
}
@media (max-width: 390px) {
  #tasksDialog .tasks-heading h2 {
    font-size: 18px;
  }
  #tasksDialog .tasks-heading > div {
    margin: 32px 44px 0 86px;
  }
  #tasksDialog .tasks-barn-badge {
    width: 66px;
    height: 66px;
  }
  #tasksDialog #tasksClose {
    right: 7px;
    width: 38px;
    height: 38px;
    font-size: 23px;
  }
  #tasksDialog .task-art {
    flex-basis: 57px;
    width: 57px;
    height: 57px;
  }
  #tasksDialog .task-cta {
    flex-basis: 81px;
  }
  #tasksDialog .task-info h3 {
    font-size: 13px;
  }
  #tasksDialog .task-progress > span {
    flex-basis: 30px;
    font-size: 13px;
  }
  #tasksDialog .task-cta button {
    font-size: 10px;
  }
  #tasksDialog .task-stamp {
    font-size: 10px;
  }
  #tasksFeature .tasks-summary-meta {
    font-size: 11px;
  }
  #tasksDialog .tasks-tabs button {
    padding: 8px 13px;
  }
}
@media (max-height: 520px) {
  #tasksDialog {
    height: calc(100dvh - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
    padding-top: 5px !important;
  }
  #tasksDialog .tasks-heading {
    height: 70px;
    min-height: 70px;
  }
  #tasksDialog .tasks-heading > div {
    margin-top: 16px;
  }
  #tasksDialog .tasks-barn-badge {
    width: 72px;
    height: 72px;
  }
  #tasksDialog #tasksClose {
    width: 44px;
    height: 44px;
    font-size: 27px;
  }
  #tasksDialog .tasks-tabs {
    height: 42px;
    min-height: 42px;
  }
  #tasksDialog .tasks-tabs button {
    height: 38px;
    font-size: 18px;
  }
  #tasksFeature {
    padding: 4px 6px;
  }
  #tasksFeature .tasks-summary-meta {
    margin-bottom: 4px;
    font-size: 11px;
  }
  #tasksFeature .tasks-summary-bar {
    height: 70px;
    min-height: 70px;
  }
  #tasksFeature .tasks-clipboard {
    height: 58px;
  }
  #tasksFeature .tasks-gift {
    height: 60px;
  }
  #tasksDialog .task-card {
    min-height: 76px;
  }
  #tasksDialog .task-art {
    flex-basis: 62px;
    width: 62px;
    height: 62px;
  }
  #tasksDialog .task-info h3 {
    margin-bottom: 5px;
    font-size: 16px;
  }
  #tasksDialog .task-rewards {
    margin-top: 3px;
  }
  #tasksDialog .task-rewards img {
    width: 18px;
    height: 18px;
  }
  #tasksDialog .task-cta {
    flex-basis: 140px;
  }
  #tasksDialog .task-cta button {
    min-height: 42px;
  }
  #tasksDialog > footer {
    min-height: 42px;
    padding: 3px 40px;
  }
  #tasksDialog #tasksMessage {
    font-size: 12px;
  }
}
@media (max-height: 520px) and (max-width: 760px) {
  #tasksDialog .tasks-heading {
    height: 64px;
    min-height: 64px;
  }
  #tasksDialog .tasks-heading > div {
    margin-top: 18px;
  }
  #tasksDialog .tasks-barn-badge {
    top: 2px;
    width: 58px;
    height: 58px;
  }
  #tasksDialog #tasksClose {
    top: 8px;
    width: 38px;
    height: 38px;
  }
  #tasksDialog .tasks-tabs {
    height: 37px;
    min-height: 37px;
  }
  #tasksDialog .tasks-tabs button {
    height: 33px;
    padding: 4px;
    font-size: 16px;
  }
  #tasksFeature .tasks-summary-bar {
    height: 58px;
    min-height: 58px;
  }
  #tasksFeature .tasks-clipboard {
    height: 48px;
  }
  #tasksFeature .tasks-gift {
    height: 48px;
  }
  #tasksDialog .task-card {
    min-height: 72px;
    gap: 6px;
    padding: 5px;
  }
  #tasksDialog .task-art {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
  }
  #tasksDialog .task-info h3 {
    margin-bottom: 4px;
    font-size: 13px;
  }
  #tasksDialog .task-rewards {
    margin-top: 2px;
    font-size: 11px;
  }
  #tasksDialog .task-rewards img {
    width: 16px;
    height: 16px;
  }
  #tasksDialog .task-cta {
    flex-basis: 82px;
  }
  #tasksDialog .task-cta button {
    min-height: 36px;
    font-size: 9px;
  }
  #tasksDialog .task-cta button:not(:disabled) {
    font-size: 10px;
  }
  #tasksDialog > footer {
    min-height: 34px;
  }
  #tasksDialog #tasksMessage {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .task-completion-toast,
  #tasksDialog .just-completed,
  #tasksDialog .reward-collected,
  .task-reward-celebration,
  .task-confetti {
    animation: none !important;
  }
}
