/* 活動說明頁面 */
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.object-scale-down {
  object-fit: scale-down;
}
.shadow {
  box-shadow: 0px 5px 10px #b5800d;
}
.aspect-square {
  aspect-ratio: 1 / 1;
}
.overflow-hide {
  overflow: hidden;
}

.event-btn,
.link-btn {
  background: linear-gradient(to top, #ff4917 0%, #fe6f10 80%, #ff1717 100%);
  border-radius: 0.5rem;
  border: 2px solid #7d4d2f;
  min-width: 8rem;
  box-shadow: inset 0px 0px 3px #ffeb33, 0px 3px 10px #b5800d;
  padding: 0.5rem;
  color: #ffffff;
  text-align: center;
  display: inline-block;
}

.link-btn:hover {
  opacity: 1;
  background: linear-gradient(to bottom, #df4a0a, #ff8215);
  box-shadow: inset 0px 0px 8px #ff0000, 0px 3px 10px #b53a0d;
  transform: translateY(-3px);
  color: #fff;
}

.event-btn.active {
  background: linear-gradient(to bottom, #ff4917 0%, #fe6f10 80%, #ff1717 100%);
  box-shadow: inset 0px 0px 3px #ffd900, 0px 2px 10px #ff963f;
  color: #fffb00;
  border: 2px solid #ff1a1a;
}

.event-block {
  background-image: url(../images/2025signin/door-r.png);
  background-size: 300px;
  background-position: center top;
  background-repeat: repeat-x;
  overflow: hidden;
}
.event-block {
  background-image: url(../images/2025signin/door-all.png);
  background-size: 85%;
  background-position: center top;
  background-repeat: repeat-x;
  overflow: hidden;
}
.event-block::after {
  content: "";
  display: block;
  height: 110vh;
  width: 100%;
  background-image: linear-gradient(
    to bottom,
    #ff7700 10%,
    #ffdd00 50%,
    #fff 100%
  );
  position: absolute;
  top: 0;
  z-index: -1;
}

.event-block-top {
  overflow: hidden;
  max-width: 1600px;
  margin: 0 auto;
  padding: 5rem 10rem;
}

.main-title {
  background-image: url(../images/2025signin/Sign-in.png);
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  aspect-ratio: 205/242;
}

.sub-title {
  gap: 1rem;
  transform: translateY(-30%);
  z-index: 2;
}

.jump {
  animation: jump 2s infinite;
}

@keyframes jump {
  80% {
    transform: translateY(0%);
  }
  90% {
    transform: translateY(-15%);
  }
  100% {
    transform: translateY(3%);
  }
}

.description {
  background-image: linear-gradient(
      to bottom,
      rgba(64, 23, 0, 0.95),
      rgba(0, 0, 0, 0) 5%,
      rgba(0, 0, 0, 0) 95%,
      rgba(64, 23, 0, 0.95) 100%
    ),
    url(../images/2025signin/pattern.png);

  background-size: 4%;
  padding: 3%;
  margin: 1.5rem;
}

.top-deco,
.bottom-deco {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 0;
  transform: scale(1.1);
}

.top-deco {
  top: -1.5rem;
}

.bottom-deco {
  bottom: -1.5rem;
}

.top-deco img,
.bottom-deco img {
  width: 100%;
  height: auto;
  display: block;
}

.middle {
  position: relative; /* 確保內容在圖片之上 */
  z-index: 1;
  padding: 5%;
  border-radius: 0.5rem;
  height: 100%;
  border: 2px solid #714428;
}

.event-btn-group {
  display: flex;
  justify-content: center;
  gap: 5rem;
}

.event-tab-content {
  min-height: 30vh;
}

.event-tab-content .chapter {
  border-bottom: 2px solid #9a7e2a;
  font-size: 1rem;
  color: #9a7e2a;
}

.list-deco {
  width: 1.2rem;
  height: 1rem;
  background-image: url(../images/2025signin/list-deco.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;
  flex: 0 0 1rem;
}

.list-flex {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.bottom-stage {
  background-image: url(../images/2025signin/bottom-deco.png);
  background-repeat: repeat-x;
  background-size: 30rem;
  width: 100%;
  padding-bottom: 2rem;
}

.random-img {
  position: absolute;
  transition: transform 0.3s ease;
  pointer-events: none;
  animation: shine 2s infinite;
}

@keyframes shine {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.title-fade-in {
  animation: fadeIn 1s 0.5s both;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  90% {
    transform: translateX(3%);
  }
  100% {
    transform: translateX(0%);
  }
}

@media screen and (max-width: 1200px) {
  .event-block-top {
    flex-direction: column;
    padding: 0rem;
    max-width: 480px;
  }

  .event-block {
    background-size: 250%;
    background-position: 15% top;
  }
  .description {
    background-image: url(../images/2025signin/pattern.png);
    background-size: 4%;
    padding: 3%;
    margin: 0;
  }
  .top-deco,
  .bottom-deco {
    display: none;
  }
  .event-btn-group {
    gap: 2rem;
  }
}

@media screen and (max-width: 570px) {
  .event-block-top {
    max-width: unset;
  }
  .top-deco,
  .bottom-deco {
    display: none;
  }
  /* .event-block {
    background-size: 40vw;
  } */
}

.app-wrap {
  max-width: 550px;
  margin: 0 auto;
  padding: 0 2vw;
}
.app-wrap > .event-tab-content {
  padding: 2vw;
}
.app-top-bg {
  background-image: linear-gradient(
    to bottom,
    #ff7700 10%,
    #ffdd00 50%,
    #fff 100%
  );
}

.app-bottom-bg {
  background-image: url(../images/2025signin/pattern.png);
  background-size: 24px;
}
.door-bg-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 0;
}
.light-bg-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.door-left,
.door-right {
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}
.door-left {
  object-position: right;
}

.img-fit {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.open-door-left {
  animation: open-left 0.5 1s both;
}
.open-door-right {
  animation: open-right 0.5 1s both;
}

.zoom-title {
  animation: zoomIn 0.5s ease-in-out;
}

@keyframes open-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes open-right {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}
@keyframes zoomIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  85% {
    transform: scale(1.1);
    opacity: 1;
  }
  95% {
    transform: scale(0.9);
    opacity: 1;
  }
  95% {
    transform: scale(1);
    opacity: 1;
  }
}
.sign-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* grid-template-rows: repeat(6, 1fr); */
  gap: 5px;
  width: 100%;
  font-size: 10px;
  text-align: center;
}

.grid-item {
  border: 2px solid #b5800d;
  border-radius: 0.3rem;
  aspect-ratio: 1/1;
  letter-spacing: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  color: #714428;
  justify-content: center;
}
.grid-item.cinema {
  border: 2px solid #b5800d;
  background-color: #faf3ed;
}
.grid-item.manga {
  border: 2px solid #6bd38c;
  background-color: #f1fced;
}
.grid-item.retry {
  border: 2px solid #94a0a3;
  background-color: #eeeeee;
}
.grid-item.video {
  border: 2px solid #ffcc00;
  background-color: #ffffff;
}
.grid-item.vip {
  border: 2px solid #ffffff;
  background-image: url(../images/2025signin/vip-bg.jpg);
}
.grid-item.vvip {
  border: 2px solid #ff5fb2;
  background-image: url(../images/2025signin/vvip-bg.jpg);
}

.grid-item > .day {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: #b5800d;
  border-radius: 0 0 0.3rem 0;
  color: #fff;
  left: -1px;
  top: -1px;
}
.grid-item > .reward {
  font-size: 12px;
  position: relative;
  z-index: 1;
}

.grid-item.cinema > .day {
  background-color: #b5800d;
}
.grid-item.manga > .day {
  background-color: #6bd38c;
}
.grid-item.retry > .day {
  background-color: #94a0a3;
}
.grid-item.video > .day {
  background-color: #ffcc00;
  color: #714428;
}
.grid-item.vip > .day {
  background-color: #ffffff;
  color: #0080ff;
}
.grid-item.vvip > .day {
  background-color: #ff5fb2;
}

.grid-item.vip > .reward {
  color: #0080ff;
}

.grid-item.vvip > .reward {
  color: #ff5fb2;
}

.reward::before {
  content: attr(data-storke);
  position: absolute;
  color: #fff;
  -webkit-text-stroke: 4px #fff;
  text-storke: 4px #ffffff;
  z-index: -1;
}

.stamp {
  position: absolute;
  display: none;
  z-index: 2;
}
.grid-item.signed .stamp {
  display: block;
}

.stamp-action {
  animation: stamp 0.3s;
}

@keyframes stamp {
  0% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

.app-event-modal {
  transform: translate(-50%, -50%);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 85%;
  padding: 5em;
  max-width: 450px;
  min-height: 300px;
  background-image: url(../images/2025signin/firework.png);
  background-repeat: no-repeat;
  background-size: contain;
}

.event-modal-content {
  border-radius: 0.5rem;
  padding: 4rem 1rem 2rem 1rem;
  text-align: center;
  background-image: url(../images/2025signin/lamp.png),
    linear-gradient(
      to bottom,
      rgba(255, 204, 0, 0.95),
      rgb(255, 254, 231) 15%,
      rgb(251, 248, 239) 85%,
      rgb(236, 218, 103) 100%
    );
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
  box-shadow: inset 0px 0px 10px #ffd900, 0 0 20px #fff30c;
  aspect-ratio: 3/4;
  justify-content: flex-end;
}

.congratulations {
  width: 100%;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ff6c03;
}

.event-modal-prize {
  width: 80%;
  text-align: center;
  padding-bottom: 1rem;
  color: #714428;
  text-shadow: 0 0 3px #fff;
}
.modal-close {
  border-radius: 20px;
  background-color: #ff6c03;
  padding: 0.5rem 1rem;
  color: #ffffff;
  font-size: 0.8rem;
}

.disabled {
  pointer-events: none;
  opacity: 0.8;
}
