body.eventPlay #floating-wrapper {
  opacity: 0;
  pointer-events: none;
}
body.eventPlay.is-visible-floating #floating-wrapper:not(.is-fade-out) {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease-in-out;
}

.scratch-section {
  position: relative;
}

.scratch-section img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

.scratch-bg.tab-bg {
  display: none;
}
.scratch-bg.tab-bg.active {
  display: block;
}

.scratch-visual .top-img {
  height: 36.5rem;
}
.scratch-visual .top-img img {
  height: 42rem;
  object-fit: cover;
  object-position: top;
}

.scratch-bg .scratch-play-bg {
  display: block;
}

.scratch-bg .scratch-result-bg {
  display: none;
}

.scratch-bg .scratch-result-bg.is-top-prize {
  display: none;
}

.scratch-bg.is-finished .scratch-play-bg {
  display: none;
}

.scratch-bg.is-finished .scratch-result-bg {
  display: block;
}

.scratch-wrap-inner {
  position: relative;
}
.scratch-wrap .tab-focus-img {
  position: absolute;
  width: 1.25rem;
  top: -2.45rem;
  left: 0;
  animation: bounceFadeIn 3s ease-in-out infinite;
  display: none;
}
.scratch-wrap .tab-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(0.2rem);
}
.scratch-wrap .tab-wrap .tab-item {
  position: relative;
  width: 100%;
}
.scratch-wrap .tab-content-wrap {
  position: relative;
}
.scratch-wrap .tab-wrap .share-label {
  position: absolute;
  top: -2rem;
  left: 1.2rem;
  width: 10.6rem;
  animation: bounceFadeIn 3s ease-in-out infinite;
}
.scratch-wrap .tab-content-wrap .tab-content-item:nth-child(1) {
  background: #131313;
}
.scratch-wrap .tab-content-wrap .tab-content-item:nth-child(2) {
  background: linear-gradient(180deg, #eef6a3 0%, #fcc81a 100%), #ffffff;
}

/* tab 1 */
#scratchPlayWrap {
  padding: 2.4rem;
}
#scratchPlay {
  position: relative;
  height: 0;
  padding-bottom: 74.9207%;
}
#scratchPlay.is-not-checked .scratch-start-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23.5rem;
  height: 4.8rem;
  font-size: 1.7rem;
  font-weight: bold;
  border-radius: 1.2rem;

  background: #ffffff;
  background-blend-mode: multiply;
  border: 2px solid #646464;
  box-shadow: 2px 16px 24px 0px #77777766, 1px 1px 4px 0px #676666, 0px 0px 12px 0px #afafaf7a inset;
}

#scratchResult {
  position: relative;
  padding: 2.4rem;
}
#scratchResult .result-btn-wrap {
  position: absolute;
  top: 40.5rem;
  left: 50%;
  transform: translate(-50%, 0);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
#scratchResult .share-use-btn,
#scratchResult .coupon-use-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 23.5rem;
  padding: 0.8rem 1.2rem;
  color: var(--popup-btn-color);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 2.55rem; /* 150% */
  letter-spacing: -0.34px;

  box-sizing: border-box;
  border-radius: 1.2rem;
  border: 2px solid var(--popup-btn-border-color);
  background: var(--popup-btn-bg-color);
  background-blend-mode: multiply, normal;
  box-shadow: var(--popup-btn-shadow);
}

#scratchResult .share-use-btn .arrow-img,
#scratchResult .coupon-use-btn .arrow-img {
  width: 2.2rem;
  height: auto;
}

#scratchResult .share-use-btn {
  border: 2px solid #e3b43a;
  background: linear-gradient(
      148.5deg,
      rgba(235, 243, 166, 0.4) 18.04%,
      rgba(252, 200, 65, 0.4) 81.96%
    ),
    #fcc841;
  box-shadow: 1px 1px 3px #e3b43a, 2px 16px 24px rgba(130, 129, 116, 0.24),
    inset 0px 0px 12px rgba(254, 197, 49, 0.48);
}

#scratchResult .coupon-use-btn.used {
  background: #7a7e8c;
  border: 2px solid #7a7e8c;
  box-shadow: 0px 0px 12px 0px rgba(122, 126, 140, 0.48) inset, 1px 1px 3px 0px #7a7e8c,
    2px 16px 24px 0px rgba(122, 126, 140, 0.24);
}
#scratchResult .coupon-use-btn.used img {
  display: none;
}

/* tab 2 */
.sec-share-wrap {
  margin: 0 3rem 4rem;
  padding-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 8rem;
}
.sec-share-wrap .sec-share-url .share-url-box {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}
.sec-share-url .share-url-box .share-url-copy {
  width: 100%;
  display: flex;
  gap: 1.2rem;
  padding: 1.3rem 1.6rem;
  border-radius: 1.2rem;
  border: 1px solid #e7e7e7;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(calc(var(--sds-size-blur-100) / 2));
}
.sec-share-url .share-url-box .share-url-copy input {
  width: 100%;
  border: none;
  background: none;
  outline: none;
  color: #2f2f2f;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 130%; /* 31.2px */
}
.sec-share-url .share-url-box .share-url-copy input.is-blur {
  filter: blur(5px);
  pointer-events: none;
}
.sec-share-url .share-url-box .share-url-copy button {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sec-share-url .share-url-box .share-url-copy button span {
  color: #004eff;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
}
.sec-share-url .share-url-box .share-url-btn {
  width: 100%;
  padding: 0.8rem 1.2rem;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 600;
  text-align: center;

  box-sizing: border-box;
  border-radius: 1.2rem;

  border: 2px solid #e3b43a;
  background: linear-gradient(
      148.5deg,
      rgba(235, 243, 166, 0.4) 18.04%,
      rgba(252, 200, 65, 0.4) 81.96%
    ),
    #fcc841;
  background-blend-mode: multiply, normal;
  box-shadow: 1px 1px 3px #e3b43a, 2px 16px 24px rgba(130, 129, 116, 0.24),
    inset 0px 0px 12px rgba(254, 197, 49, 0.48);
}

.sec-share-wrap .sec-share-rank .share-rank-box {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  width: 100%;
}
.sec-share-rank .share-rank-box .share-rank-title {
  width: 10.4rem;
  margin: 0 auto;
}
.sec-share-rank .share-rank-box .share-rank-content {
  position: relative;
  width: 100%;
  max-height: 34.2rem;
  background: #fff;
  padding-top: 1.2rem;
  border-radius: 2.4rem;
  overflow: hidden;
  overflow-y: scroll;
}
.share-rank-content .rank-item {
  margin: 1rem 0;
  padding: 0 2rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}
.item-num,
.item-count {
  flex: 0 0 auto;
}
.item-name {
  flex: 1;
}
.rank-item .item-num {
  padding: 0.35rem 0.9rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  color: #4c5249;
  font-size: 1.4rem;
  line-height: 150%;
  text-align: center;
}
.rank-item:nth-child(1) .item-num {
  background: #009036;
  color: #f4f02d;
  font-weight: 700;
}
.rank-item:nth-child(2) .item-num,
.rank-item:nth-child(3) .item-num {
  background: #059a251f;
  color: #059a25;
  font-weight: 700;
}
.share-rank-content .rank-item.my-rank {
  position: sticky;
  bottom: 0;
  margin: 1rem auto 0;
  padding: 1.6rem 2rem;
  background: #f4f02d40;
  box-sizing: content-box;
  border-top: 1px solid #e5d4c3;
  box-shadow: 0 -18px 10px rgba(238, 238, 238, 0.15);
}

@keyframes bounceFadeIn {
  0% {
    opacity: 1;
    transform: translateY(-10px);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(0);
  }
  80% {
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(-10px);
  }
}