@font-face {
  font-family: 'TTTogether';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/TTTogetherA.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* Channel talk settings */
@media screen and (max-width: 700px) {
  #ch-plugin-entry {
    display: none; 
  }
}

/* override bootstrap settings */
h1, h2, h3, h4, h5 {
  font-weight: normal;
  margin-bottom: 0; 
}

.accordion-button {
  font-weight: normal;
}

:root {
  --color-pink-primary: #ff8ac6;
  --color-pink-light: #e57cb2;
  --color-pink-dark: #804563;
}

h3 {
  text-align: center;
  font-size: 2.2rem;
}

.position-sticky {
  z-index: 100;
}

.position-sticky button {
  box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.1);
}

.text-grey-7 {
  color: var(--color-grey-60);
}
.text-grey-9 {
  color: #9ea4aa;
}

/* override global settings */
#page-container {
  margin-bottom: 0;
}

.accordion-body {
  white-space: initial;
  background-color: initial;
}

.accordion-body img {
  width: revert-layer;
}

.text-underline {
  text-decoration: underline;
  text-underline-position: under;
}

[class^=section-] {
  padding: 1.5rem 0;
  text-align: center;
}

[class^=section-] h2 {
  color: var(--color-grey-80);
  font-family: 'TTTogether';
  font-size: 2.6rem;
  text-align: start;
  line-height: normal;
}

#participateBtn,
#getRewardBtn {
  padding: 1.8rem 7rem;
  margin-top: 4rem;
  border-radius: 50px;
  font-size: 2.4rem;
  font-weight: 500;
  width: 100%;
}
#getRewardBtn:disabled {
  background-color: #EBEBED;
  color: #9EA4AA;
  box-shadow: none;
}

#ctaButtonWrapper {
  bottom: 3rem;
}
#ctaButtonWrapper.position-sticky:has(#getRewardBtn:disabled) {
  position: relative !important;
}
#ctaButtonWrapper + section {
  margin-top: 6rem;
}

.wrapper {
  background-color: #f3f4f6;
  padding-bottom: 7rem;
}

.toast-black-transparent {
  position: absolute;
  z-index: 1000; /* no side effect with .toast.hide in html */
  width: fit-content;
  top: -52px;
  right: 15px;
  padding: 5px 1rem;
  font-weight: 300;
  font-size: 1.3rem;
  border-radius: 8px;
  box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.25);
  background-color: rgba(0, 0, 0, 0.8);
}
.toast-black-transparent .toast-body {
  color: #fff;
}

/* accordion: override bootstrap settings -- start */
.wrapper .accordion {
  border-radius: 10px;
  overflow: hidden;
}
.wrapper .accordion-button::after {
  content: none; /* remove bootstrap built in element */
}
.wrapper .accordion-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 2.4rem 2rem;
  background-color: #fff;
  color: var(--color-grey-80);
  font-family: 'TTTogether';
  font-size: 2.6rem;
  transition: all 0.2s ease-in-out;
}
.wrapper .accordion-button:not(.collapsed) {
  box-shadow: none;
  transform: translateY(1rem);
}
.wrapper .accordion-button.collapsed img {
  transform: rotate(-180deg);
}
.wrapper .accordion-button img {
  transition: transform .3s ease-in-out;
}
.wrapper .accordion-button:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
/* override bootstrap settings -- end */

.wrapper .accordion .accordion-body article {
  padding: 4rem 0;
  font-size: 1.8rem;
}
.wrapper .accordion .accordion-body article:not(:last-child) {
  border-bottom: 1.2px solid #e8ebed;
}
.wrapper .accordion .accordion-body article .step {
  width: fit-content;
  padding: .4rem 2.2rem;
  margin: 1rem auto 2rem;
  border: 1.5px solid var(--color-grey-80);
  border-radius: 60px;
  font-weight: 500;
}
.wrapper .accordion .accordion-body article button {
  margin: 1rem 0 3rem;
}
.wrapper .accordion .accordion-body article small {
  color: #9ea4aa;
  font-size: smaller;
  font-weight: normal;
}

/* recap */
.section-recap article {
  text-align: left;
  border-radius: 10px;
  background-color: #fff;
  padding: 2.4rem 2rem;
  font-size: 1.8rem;
  line-height: 1.9;
}

.section-recap .recap-reward li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-recap .recap-reward .my-reward strong,
.section-recap .recap-reward .my-reward strong a {
  color: #00a6ed;
}
.section-recap .recap-reward .my-reward strong a {
  text-decoration: underline;
  text-underline-position: under;
}

.section-recap .recap-reward .my-reward,
.section-recap .recap-my-record span:has([data-summary]) {
  padding: 1rem 1.4rem;
  border-radius: 10px;
  background-color: #f3f8fd;
}
.section-recap .recap-reward .my-reward {
  padding: 1.8rem 1.6rem;
  line-height: 1.2;
}

.section-recap .recap-reward .my-reward strong small,
.section-recap .recap-reward .my-reward strong span {
  color: #9ea4aa;
  font-size: .8em;
}
.section-recap .recap-reward .my-reward strong small {
  font-weight: normal;
}

.section-recap .recap-my-record ul {
  list-style: inside;
  list-style-type: disc;
  padding-left: 1.2rem;
}
.section-recap .recap-my-record li {
  list-style-position: outside;
}

.section-recap .recap-my-record span:has([data-summary]) {
  font-family: 'TTTogether';
  color: var(--color-pink-50);
}

.section-recap .btn-tooltip {
  position: relative;
  background: none;
  line-height: 1.5;
}
.section-recap .btn-tooltip:hover::before,
.section-recap .btn-tooltip:focus::before {
  position: absolute;
  top: -5px;
  left: 5px;
  content: ' ';
  border-radius: 2px;
  background-color: var(--color-grey-80);
  width: 8.5px;
  height: 8.5px;
  transform: rotate(135deg);
}
.section-recap .btn-tooltip:hover::after,
.section-recap .btn-tooltip:focus::after {
  position: absolute;
  font-size: 1.2rem;
  text-align: left;
  border-radius: 5px;
  padding: 5px 10px;
  background-color: var(--color-grey-80);
  color: #fff;
  white-space: pre;
}

.section-recap .btn-tooltip--lightning:hover::after,
.section-recap .btn-tooltip--lightning:focus::after {
  content: '함께 꾸준히 저금한 기록인 최대 콤보수 기준,\A수익을 모두 균등하게 나눴습니다.';
  white-space: pre; /* This preserves the whitespace and line breaks */
  top: -46px;
  left: -117px;
}
.section-recap .btn-tooltip--coupon:hover::after,
.section-recap .btn-tooltip--coupon:focus::after {
  content: '비트코인 대신 받기를 선택하였거나,\A보상 금액이 1천원 미만입니다. 😊\A금액권으로 저렴하게 프라임도 가입하고\A꾸준히 저금을 이어가 볼까요?';
  white-space: pre; /* This preserves the whitespace and line breaks */
  top: -82px;
  left: -110px;
}
.section-recap .btn-tooltip--rewardelse:hover::after,
.section-recap .btn-tooltip--rewardelse:focus::after {
  content: '아직 보상을 선택 중인 우리의 동료가 있어요. 😊\A모두 같이 나눌 수 있도록 조금만 양해해 주세요.\A나눔이 완료되면, 바로 알림을 보내드릴게요! 🔔';
  white-space: pre; /* This preserves the whitespace and line breaks */
  top: -64px;
  left: -130px;
}

@media screen and (max-width: 440px) {
  .section-recap article {
    padding: 2rem 1.6rem;
  }

  .section-recap h2 {
    font-size: 2.4rem;
  }

  .section-recap ul {
    font-size: 1.5rem;
  }

  .section-recap .recap-reward .my-reward {
    padding: 1.2rem;
  }
  .section-recap .recap-my-record span:has([data-summary]) {
    padding: 8px 1rem;
  }
}

/* title */
.section-title h1 {
  color: var(--color-title-main);
}
.section-title span {
  color: var(--color-title-sub);
}
.section-title h5 {
  width: fit-content;
  padding: .6rem 2rem;
  margin: 2rem auto 0;
  font-size: 1.8rem;
  border-radius: 22px;
  color: #fff;
}
.section-title h1 {
  font-family: 'TTTogether';
  margin: 1.5rem 0 2rem;
  font-size: 6.8rem;
  color: var(--color-title-main);
  white-space: nowrap;
}
.section-title.section-title-large h1 > div:first-child {
  font-size: 7.8rem;
}
.section-title span {
  color: var(--color-title-sub);
}
.section-title p,
.section-title p span {
  font-size: 1.8rem;
  color: var(--color-grey-70);
}
.section-title img {
  margin: 3rem 0;
}

.section-title-small {
  padding: 2rem;
  text-align: start;
}
.section-title-small h5 {
  margin: 0;
  font-size: 1.6rem;
}
.section-title-small h1 {
  font-size: 4.8rem;
  margin: 5px 0;
}
.section-title-small h1 div:nth-of-type(2) {
  font-size: 4.3rem;
}
.section-title-small img {
  width: 100px;
}
@media screen and (max-width: 490px) {
  .section-title-small h5 {
    font-size: 1.4rem;
  }
  .section-title-small h1 {
    font-size: 4.8rem;
  }
  .section-title-small img {
    width: 90px;
  }
}

/* pyggs */
.section-pyggs {
  padding-top: 5rem;
}
.section-pyggs h4 {
  font-family: 'TTTogether';
  text-align: left;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.section-pyggs .combo-leader {
  top: 54%;
  right: 2%;
  background-color: var(--color-pink-dark);
}
.section-pyggs .combo-leader::after {
  border-top: 45px solid var(--color-pink-dark);
}

.section-pyggs .product-badge {
  padding: 4px 12px 3px;
  font-size: 1.4rem;
  border-radius: 22px;
  background-color: #fff;
  font-weight: 600;
  line-height: 1.2;
}
.section-pyggs ul {
  padding: 2rem 2.8rem 2rem 2rem; 
  font-size: 1.5rem;
  color: #fff;
  border-radius: 5px;
}

.section-pyggs ul.blur {
  border-radius: 5px;
  filter: brightness(0.25);
  z-index: 80; 
}
.section-pyggs ul.blur li {
  filter: blur(5px);
}
.section-pyggs ul.blur ~ .show-in-campaign {
  padding: 2rem;
  font-size: 2rem;
  cursor: default;
  color: #fece00 !important;
}
.section-pyggs ul.blur ~ .show-in-campaign div.position-relative {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 0;
  height: 100%;
}
.section-pyggs ul.blur ~ .show-in-campaign .text-sub {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.6rem;
}

/* 일시정지 해제 버튼 (현재 사용하지 않음)
.section-pyggs ul.blur ~ .CLOSED-content button {
  width: 100%;
  margin: 1.4rem 0 0;
  padding: 1.1rem 0.9rem;
  border-radius: 5px;
  color: #fff;
  font-size: 1.6rem;
} */

.section-pyggs h4.leader-pygg {
  color: var(--color-pink-primary);
}
.section-pyggs .leader-pygg ul {
  background-color: var(--color-pink-primary);
  font-size: 1.5rem;
}
.section-pyggs .leader-pygg .product-badge {
  color: var(--color-pink-primary);
}
.section-pyggs .leader-pygg .board {
  background-color: var(--color-pink-light);
  border-radius: 5px;
}
.section-pyggs .leader-pygg .board > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-pyggs .leader-pygg .board > div .amount {
  display: inline-block;
  text-align: right;
}

.section-pyggs .leader-pygg .settings,
.section-pyggs .leader-pygg .settings * {
  opacity: 0.6;
}

.section-pyggs h4.leader-pygg + .storytelling {
  top: -2.5rem;
  right: 2rem;
  z-index: 100;
  background: none;
}
.section-pyggs h4.leader-pygg + .storytelling img {
  width: 10.5rem;
}
.section-pyggs h4.leader-pygg + .storytelling:focus-visible {
  outline: none;
}

/* curtain effect */
.section-pyggs .leader-pygg .graphic {
  margin: 1.5rem 0 2.5rem;
  background-color: var(--color-pink-primary);
  min-height: 85px; /* set 1 of 3 */
}
.section-pyggs .leader-pygg .graphic div:first-child {
  top: 0; 
  left: calc(50% - 70px);
  min-height: 85px;  /* set 2 of 3 */
}
.section-pyggs .leader-pygg .graphic div:first-child img {
  height: 85px; /* set 3 of 3 */
}
.section-pyggs .leader-pygg .graphic .curtain {
  top: 0; 
  left: calc(50% - 90px);
  width: 200px;
  height: 85px; /* starts from 85px. gradually decrease as saving every day */
  opacity: 0.85;
  /* border-bottom: 1px dashed #fff; */
  background-color: var(--color-pink-primary);
}

#pyggList .btn-extra button {
  margin: 0
}

.section-pyggs .my-pygg h4.my-pygg {
  color: var(--color-grey-40);
}

.section-pyggs .my-pygg .button-dashed {
  padding: 1.8rem 2rem;
  border: 2px dashed var(--color-grey-40);
  border-radius: 5px;
  color: #9ea4aa;
  background: none;
  font-size: 1.8rem;
  text-decoration: underline;
  text-underline-position: under;
}
.section-pyggs .my-pygg .button-dashed:disabled {
  border: none;
  background-color: #e8ebed;
  text-decoration: none;
}

.section-pyggs .my-pygg .smartIndicator  {
  top: -3.5rem; 
  right: 1.5rem;
  width: fit-content !important;
  min-height: 4.5rem;
  border-radius: 5px;
  padding: 6px 2rem 5px 1rem; 
  background-color: var(--color-grey-80);
  font-size: 1.2rem;
  line-height: 1.4;
  color: #fff;
  z-index: 100;
}
.section-pyggs .my-pygg .smartIndicator::before {
  position: absolute;
  bottom: -3px;
  right: 25px;
  content: ' ';
  border-radius: 2px;
  background-color: var(--color-grey-80);
  width: 8.5px;
  height: 8.5px;
  transform: rotate(135deg);
  z-index: -1; 
}
.section-pyggs .my-pygg .smartIndicator small {
  position: absolute;
  top: 3px;
  right: 3px;
}

/* ranking */
.section-ranking .accordion-body {
  font-size: 1.8rem;
  color: var(--color-grey-80);
}
.section-ranking small {
  color: var(--color-grey-60);
  font-size: 1.5rem;
}
.section-ranking ul.table {
  margin: 2rem 0;
  font-weight: bold;
  font-size: 1.8rem;
}
.section-ranking ul.table li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.4rem;
  border-radius: 10px;
}
.section-ranking ul.table .label {
  color: #f3f4f6;
  background-color: var(--color-grey-70);
  padding: 1rem 2.8rem;
  margin-bottom: 8px;
  font-weight: normal;
}
.section-ranking ul.table .others {
  padding: 0;
  margin-left: -3px;
  color: var(--color-grey-60);
  font-size: 1.5rem;
}
.section-ranking ul.table .myself {
  background-color: #2e6ecf;
  padding: 4px 1rem;
  color: #fff;
  border-radius: 22px;
  font-size: 1.6rem;
}

.section-ranking ul.table .ranking {
  margin-bottom: 8px;
  background-color: var(--color-grey-20);
}
.section-ranking ul.table .ranking:has(.myself:not(.hidden)) {
  border: 1.5px solid #2e6ecf;
}
.section-ranking ul.table .divider {
  margin-top: 3rem;
  border-top: 1.5px solid #e8ebed;
}
.section-ranking ul.table .summary-all {
  margin-top: 3rem;
  padding: 1.5rem 2.4rem;
  border-radius: 10px;
  background-color: #f6f4ee;
  font-weight: normal;
}
.section-ranking ul.table > div {
  margin-top: 1rem;
}
.section-ranking ul.table > div p:first-child {
  font-family: 'TTTogether';
  margin: 2rem 0 1rem;
  font-size: 2rem;
  font-weight: 300;
}
.section-ranking ul.table > div p:last-child {
  color: var(--color-grey-60);
  font-size: 1.4rem;
  font-weight: 400;
}
.section-ranking ul.table .summary-my li {
  background-color: var(--color-grey-20);
}
.section-ranking ul.table .summary-my li span {
  padding: 0; /* override bootstrap settings */
}

.section-ranking .bg-blur {
  width: 100%;
  height: 100%;
  position: absolute;
  top: -12px;
  backdrop-filter: brightness(0.2) blur(5px);
  -webkit-backdrop-filter: brightness(0.2) blur(5px); /* for Safari */
  border-radius: 8px;
  overflow: auto;

  display: flex;
  justify-content: center;
  align-items: center;
}
.section-ranking .bg-blur p {
  font-family: 'TTTogether';
  color: #fff !important;
  font-size: 4rem !important;
}

@media screen and (max-width: 400px) {
  .section-ranking ul.table li,
  .section-ranking ul.table .summary-all {
    padding: 1.2rem;
  }
}

.section-note {
  background-color: #e8ebed;
  color: var(--color-grey-60);
}
.section-note > div {
  padding: 3rem;
}
.section-note * {
  text-align: left;
}
.section-note > div p {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}
.section-note > div ul {
  list-style-type: disc;
  padding-left: 1.2rem;
}
.section-note > div ul li {
  padding-left: 4px;
  list-style-position: outside;
}

/* faqs */
.section-faqs {
  color: var(--color-grey-80);
}

.section-faqs .contents {
  margin-top: 2.4rem;
}

.section-faqs li:not(last-child) {
  margin-bottom: 2.4rem;
  line-height: 1.7;
  text-align: start;
}

.section-faqs .q {
  font-weight: bold;
}

.section-faqs a {
  color: var(--color-blue-50);
  text-decoration: underline;
  text-underline-position: under;
}

.section-faqs article,
.section-previous-campaign a {
  border-radius: 10px;
  background-color: #fff;
  padding: 2.4rem 2rem;
  font-size: 1.8rem;
  line-height: 1.9;
}