/* Квесты FORMA: страница и белые модалки по quests-v90. */
html body.fw36.fw-quests #casinoApp,
html body.fw36.fw-quests .casino-layout,
html body.fw36.fw-quests #casinoMain,
html body.fw36.fw-quests .casino-main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

html body.fw36.fw-quests #pageQuests > :not(#fwQuests) {
  display: none !important;
}

html body.fw36.fw-quests #pageQuests,
html body.fw36 #pageQuests {
  background: transparent;
  padding: 0 !important;
  margin: 0;
  overflow-x: hidden;
}

html body.fw36 #fwQuests {
  display: none;
  font-family: ManropeFW, Manrope, sans-serif;
  color: #f4f2f8;
}

html body.fw36.fw-quests #fwQuests,
html body.fw36 #pageQuests:not(.hidden) #fwQuests {
  display: block;
  /* Как #fwBonuses / #fwVip: шапку уже отодвигает body padding-top 64/76/88. */
  padding: 8px 12px 28px !important;
}

html body.fw36 #fwQuests button {
  font: inherit;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

html body.fw36 #fwQuests button:focus-visible,
html body.fw36 .fw-qs-dialog button:focus-visible {
  outline: 2px solid #ad95ff;
  outline-offset: 3px;
}

.qs-action { overflow-wrap: anywhere; }
.qs-info { min-width: 44px; min-height: 44px; }

#fwQuests h1,
#fwQuests h2,
#fwQuests h3,
#fwQuests p { margin: 0; }
#questsTitle:focus { outline: 0; }

.qs-page-heading { display: flex; align-items: baseline; gap: 15px; margin-bottom: 22px; }
.qs-page-heading h1 { font-size: 33px; font-weight: 800; line-height: 1.15; letter-spacing: -1px; }
.qs-page-heading > span { font-size: 10px; letter-spacing: .08em; color: #9b94a8; font-weight: 700; }

.qs-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 100% 10%, #73609b25, transparent 70%), #232226;
  border-radius: 21px;
  padding: 24px 21px 20px;
  margin-bottom: 31px;
}
.qs-kicker { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #bca8ed; line-height: 1.5; }
.qs-hero-copy { position: relative; z-index: 1; }
.qs-hero-copy h2 { font-size: 26px; font-weight: 800; letter-spacing: -.85px; line-height: 1.14; margin: 12px 0 16px !important; max-width: 270px; }
.qs-hero-description { font-size: 13px; line-height: 1.6; color: #bfb7cc; max-width: 190px; min-height: 64px; }
.qs-hero-art { position: absolute; width: 205px; height: 147px; right: -48px; top: 88px; object-fit: contain; z-index: 0; pointer-events: none; }
.qs-journey { position: relative; z-index: 1; margin-top: 27px; padding-top: 17px; border-top: 1px solid #ffffff0a; }
.qs-journey > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.qs-journey strong { font-size: 11px; line-height: 1.4; font-weight: 500; color: #bfb7cc; }
.qs-journey span { font-size: 10px; color: #d1c5e1; line-height: 1.5; text-align: right; }
.qs-journey-track { display: flex; gap: 5px; height: 5px; }
.qs-journey-track > i { flex: 1; min-width: 0; border-radius: 3px; background: #45404e; }
.qs-journey-track > .qs-step-done { background: #a48bea; }

.qs-tasks-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 10px; }
.qs-tasks-heading h2,
.qs-faq h2 { font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -.65px; }
.qs-refresh { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: #242427; color: #c4b8da; font-size: 26px; }
.qs-filters { display: flex; gap: 19px; overflow: auto; scrollbar-width: none; margin-bottom: 21px; border-bottom: 1px solid #ffffff0c; }
.qs-filters::-webkit-scrollbar { display: none; }
.qs-filters > button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex: none;
  min-height: 45px;
  padding: 0 1px 12px;
  color: #a39aad;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}
.qs-filters > button > span { font-size: 10px; font-weight: 500; color: #8e829f; }
.qs-filters > button[aria-pressed=true] { color: #f6efff; }
.qs-filters > button[aria-pressed=true]::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; border-radius: 2px; background: #8f73f7; }
.qs-filters > button[aria-pressed=true] > span { color: #c1aef6; }

.qs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.qs-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 17px; background: #242327; }
.qs-card-next { box-shadow: inset 0 2px #9479f7; background: #282430; }
.qs-card-visual {
  position: relative;
  isolation: isolate;
  height: 128px;
  padding: 22px 13px;
  display: flex;
  align-items: flex-start;
  background: linear-gradient(145deg, #71608635, #29252e00);
  overflow: hidden;
}
.qs-card-visual img { position: absolute; right: 3px; bottom: 0; width: 86px; height: 86px; z-index: -1; object-fit: contain; filter: none; }
.qs-reward { display: block; max-width: 100%; color: #f3edf9; font-size: 28px; font-weight: 800; letter-spacing: -.9px; line-height: 1.1; text-shadow: 0 2px 14px #15111a36; }
.qs-reward-long { font-size: 21px; max-width: 105px; letter-spacing: -.6px; }
.qs-info {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: #b5a5cb;
  font-size: 13px;
  font-weight: 700;
}
.qs-info::before { content: ""; position: absolute; width: 18px; height: 18px; background: #ffffff0a; border-radius: 50%; z-index: -1; }
.qs-art-telegram-link { background: linear-gradient(145deg, #4f8ba444, transparent); }
.qs-art-verification { background: linear-gradient(145deg, #4c907a33, transparent); }
.qs-art-telegram-channel { background: linear-gradient(145deg, #ab8b5638, transparent); }
.qs-art-first-deposit { background: linear-gradient(145deg, #6b4eff35, transparent); }
.qs-card-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 0 13px 14px; }
.qs-card-state { font-size: 10px; color: #9b8eac; min-height: 17px; line-height: 1.5; margin: 0 0 6px; }
.qs-next-label { color: #c5b0ff; }
.qs-card-state .qs-done { color: #9dcab7; }
.qs-card h3 { font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -.2px; min-height: 44px; overflow-wrap: anywhere; }
.qs-card-hint { font-size: 11px; line-height: 1.5; color: #a99eb8; min-height: 34px; padding-top: 8px; margin-bottom: 15px !important; overflow-wrap: anywhere; }
.qs-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 11px 12px;
  min-height: 44px;
  width: 100%;
  border-radius: 10px;
  background: #ffffff09;
  color: #d3c5e8;
  text-align: left;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  margin-top: auto;
}
.qs-action > span { flex: none; font-size: 16px; }
.qs-action-primary { background: #6b4eff; color: #fff; }
.qs-task-progress { margin: 0 0 14px; font-size: 10px; color: #a89db7; }
.qs-task-progress > div { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.qs-task-progress progress { display: block; width: 100%; height: 4px; accent-color: #a58bec; border: 0; border-radius: 3px; }
.qs-empty { padding: 26px 20px; border-radius: 15px; background: #242427; color: #b9afc8; font-size: 14px; line-height: 1.7; }
.qs-empty .qs-action { max-width: 210px; margin-top: 17px; }
.qs-card-complete { background: #202224; }
.qs-card-complete .qs-card-visual { opacity: .7; }
.qs-faq { margin-top: 37px; }
.qs-faq > div { display: grid; gap: 9px; margin-top: 20px; }
.qs-faq button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 18px 16px;
  min-height: 66px;
  background: #242427;
  border-radius: 12px;
  color: #ddd6e8;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  font-weight: 600;
}
.qs-faq button > span { flex: none; color: #baa1ed; }
#qsTasksTitle { scroll-margin-top: 25px; }

html body.fw36 .fw-qs-shade {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 7, 12, 0.72);
}
html body.fw36 .fw-qs-shade[hidden] { display: none; }
html body.fw36 .fw-qs-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(500px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  overscroll-behavior: contain;
  border-radius: 23px;
  background: #fff;
  color: #292330;
  padding: 27px 24px;
}
html body.fw36 .fw-qs-dialog h2 {
  flex: none;
  margin: 0 42px 20px 0;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.6px;
  color: #292330;
}
html body.fw36 .fw-qs-dialog [data-fw-qs-body] {
  overflow: auto;
  min-height: 0;
  max-height: calc(88dvh - 54px);
  overscroll-behavior: contain;
  padding-right: 2px;
}
html body.fw36 .fw-qs-x {
  position: absolute;
  width: 44px;
  height: 44px;
  top: 11px;
  right: 11px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #f3f0f6;
  color: #6a5e76;
  border: 0;
  border-radius: 12px;
  font-size: 28px;
  line-height: 1;
  z-index: 2;
  cursor: pointer;
}
html body.fw36.fw-qs-lock,
html.fw-qs-lock {
  overflow: hidden;
}
.qs-sheet-reward { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; background: #f1ecf8; border-radius: 15px; margin-bottom: 21px; min-width: 0; }
.qs-sheet-reward > div { min-width: 0; }
.qs-sheet-reward strong { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.9px; line-height: 1.15; color: #6a4ac4; overflow-wrap: anywhere; }
.qs-sheet-reward span { display: block; font-size: 14px; color: #80718c; line-height: 1.5; margin-top: 8px; }
.qs-sheet-reward img { width: 100px; height: 100px; object-fit: contain; flex: none; }
.fw-qs-dialog .qs-sheet-description { font-size: 16px; line-height: 1.75; color: #54485e; margin: 0 0 20px; white-space: pre-line; }
.qs-sheet-terms { padding: 17px; background: #f6f3f9; border-radius: 12px; margin-bottom: 17px; }
.qs-sheet-terms > strong { font-size: 14px; font-weight: 700; color: #45394f; }
.fw-qs-dialog .qs-sheet-terms > p { font-size: 14px; line-height: 1.75; color: #75667f; margin: 7px 0 0; white-space: pre-line; }
.fw-qs-dialog .qs-sheet-note { font-size: 13px; color: #8d8099; line-height: 1.6; margin: 0 0 20px; }
.fw-qs-dialog .qs-action { font-size: 14px; min-height: 47px; padding: 12px 16px; background: #6b4eff; color: #fff; }

@media (max-width: 350px) {
  .qs-grid { gap: 9px; }
  .qs-card-copy { padding: 0 11px 12px; }
  .qs-card h3 { font-size: 14px; min-height: 40px; }
  .qs-card-visual { padding: 20px 11px; height: 112px; }
  .qs-card-visual img { width: 74px; height: 74px; right: 2px; bottom: 0; }
  .qs-reward { font-size: 25px; }
  .qs-reward-long { font-size: 19px; max-width: 86px; }
  .qs-action { font-size: 10px; padding: 10px; }
  .qs-card-hint { font-size: 10px; }
  .qs-hero { padding: 22px 18px 18px; }
  .qs-hero-copy h2 { font-size: 24px; max-width: 245px; }
  .qs-hero-description { max-width: 166px; font-size: 12px; }
  .qs-hero-art { width: 178px; right: -49px; top: 95px; }
  .qs-journey strong { font-size: 10px; }
  .qs-journey span { font-size: 9px; }
  .qs-journey > div:first-child { gap: 8px; }
  .qs-filters { gap: 15px; }
  .qs-filters > button { font-size: 11px; }
  .qs-sheet-reward { padding: 16px; gap: 12px; }
  .qs-sheet-reward img { width: 78px; height: 78px; }
  .qs-sheet-reward strong { font-size: 28px; }
}

@media (min-width: 700px) {
  html body.fw36.fw-quests #fwQuests,
  html body.fw36 #pageQuests:not(.hidden) #fwQuests { padding: 8px 0 36px !important; }
  .qs-page-heading { margin-bottom: 26px; }
  .qs-page-heading h1 { font-size: 41px; }
  .qs-page-heading > span { font-size: 11px; }
  .qs-hero { padding: 33px 31px 25px; margin-bottom: 38px; border-radius: 24px; }
  .qs-hero-copy { max-width: 60%; }
  .qs-hero-copy h2 { font-size: 34px; max-width: 430px; }
  .qs-kicker { font-size: 11px; }
  .qs-hero-description { font-size: 15px; max-width: 345px; min-height: 0; }
  .qs-hero-art { width: 295px; height: 210px; top: 24px; right: -24px; }
  .qs-journey { margin-top: 29px; }
  .qs-journey strong { font-size: 13px; }
  .qs-journey span { font-size: 12px; }
  .qs-journey-track { gap: 7px; height: 6px; }
  .qs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
  .qs-card-visual { height: 158px; padding: 26px 19px; }
  .qs-card-visual img { width: 110px; height: 110px; right: 2px; bottom: 0; }
  .qs-card-copy { padding: 0 19px 20px; }
  .qs-reward { font-size: 35px; }
  .qs-reward-long { font-size: 26px; max-width: 140px; }
  .qs-card-state { font-size: 11px; min-height: 18px; margin-bottom: 8px; }
  .qs-card h3 { font-size: 19px; min-height: 51px; }
  .qs-card-hint { font-size: 12px; min-height: 40px; margin-bottom: 19px !important; }
  .qs-action { font-size: 12px; min-height: 46px; padding: 12px 14px; }
  .qs-info { width: 44px; height: 44px; right: 1px; top: 1px; }
  .qs-tasks-heading h2,
  .qs-faq h2 { font-size: 29px; }
  .qs-filters { gap: 26px; margin-bottom: 24px; }
  .qs-filters > button { font-size: 14px; gap: 8px; min-height: 49px; }
  .qs-filters > button > span { font-size: 12px; }
  .qs-faq > div { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .qs-faq button { font-size: 14px; min-height: 83px; }
  .qs-card { border-radius: 19px; }
}

@media (min-width: 1200px) {
  html body.fw36.fw-quests #fwQuests,
  html body.fw36 #pageQuests:not(.hidden) #fwQuests { padding: 8px 0 48px !important; }
  .qs-hero { padding: 35px 39px 27px; }
  .qs-hero-copy { max-width: 64%; }
  .qs-hero-copy h2 { font-size: 39px; max-width: 590px; }
  .qs-hero-description { font-size: 16px; max-width: 550px; }
  .qs-hero-art { width: 355px; height: 235px; right: 46px; top: 2px; }
  .qs-journey { margin-top: 26px; max-width: 100%; }
  .qs-journey > div:first-child { margin-bottom: 12px; }
  .qs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .qs-card-visual { height: 143px; padding: 28px 23px; }
  .qs-card-visual img { width: 140px; height: 140px; right: 5px; bottom: 1px; }
  .qs-reward { font-size: 40px; }
  .qs-reward-long { font-size: 28px; max-width: 170px; }
  .qs-card-copy { padding: 0 23px 23px; }
  .qs-card h3 { font-size: 21px; min-height: 57px; }
  .qs-card-hint { font-size: 13px; min-height: 42px; }
  .qs-action { font-size: 13px; }
  .qs-info { right: 8px; top: 8px; }
  .qs-tasks-heading h2,
  .qs-faq h2 { font-size: 31px; }
  .qs-faq { margin-top: 44px; }
  .qs-faq button { font-size: 15px; padding: 21px; }
  #qsTasksTitle { scroll-margin-top: 112px; }
}

/* Перебивает html body.fw36 .fw36-main button { background: transparent }. */
html body.fw36 #fwQuests .qs-action {
  background: #ffffff09;
  color: #d3c5e8;
}
html body.fw36 #fwQuests .qs-action-primary,
html body.fw36 #fwQuests .qs-empty .qs-action-primary {
  background: #6b4eff;
  color: #fff;
}
html body.fw36 #fwQuests .qs-refresh {
  background: #242427;
  color: #c4b8da;
}
html body.fw36 #fwQuests .qs-faq button {
  background: #242427;
  color: #ddd6e8;
}
html body.fw36 #fwQuests .qs-filters > button {
  background: transparent;
  color: #a39aad;
}
html body.fw36 #fwQuests .qs-filters > button[aria-pressed="true"] {
  color: #f6efff;
}
html body.fw36 #fwQuests .qs-info {
  background: transparent;
  color: #b5a5cb;
}
html body.fw36 .fw-qs-dialog .qs-action {
  background: #6b4eff;
  color: #fff;
}
