@charset "UTF-8";
* {
  box-sizing: border-box;
  transition: color 0.2s linear, background-color 0.2s linear, border-color 0.2s linear;
}
*:link, *:visited, *:hover, *:active, *:focus {
  transition: color 0.2s linear, background-color 0.2s linear, border-color 0.2s linear;
}

.eventPage .boom {
  animation: boom 0.75s ease;
  /*boom效果*/
}
.eventPage .shiny {
  animation: shiny 6s infinite both 0.3s;
  /*shiny效果*/
}
.eventPage .btn {
  cursor: pointer;
}

@keyframes boom {
  0%, 10%, 60%, 100% {
    opacity: 0;
  }
  30%, 50%, 80% {
    opacity: 1;
  }
}
@keyframes boom {
  0%, 20%, 40%, 60%, 80%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }
  40% {
    transform: scale3d(0.9, 0.9, 0.9);
  }
  60% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }
  80% {
    transform: scale3d(0.97, 0.97, 0.97);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}
@keyframes shiny {
  0%, 10%, 60%, 100% {
    opacity: 0;
  }
  30%, 50%, 80% {
    opacity: 1;
  }
}
@keyframes btn {
  0% {
    transform: scale(1);
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
/* 更新預設小網寬度 */
#CONTENT {
  width: 100% !important;
  max-width: 768px;
  min-width: 320px;
}

.eventPage {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
@media all and (min-width: 768px) {
  .eventPage {
    max-width: 1200px;
  }
}
.eventPage.flowbg {
  background: url("https://www.myfone.com.tw/buy/myfoneweb/buy/event2026/event260101-wheel/images/bg.jpg") no-repeat, #040410;
  background-size: 100% auto, auto;
  background-position: center top, center top;
}
.eventPage .container {
  position: relative;
  z-index: 1;
  padding-top: calc(20px + (100vw - 375px) * 0.064);
}
@media all and (min-width: 768px) {
  .eventPage .container {
    padding-top: 15px;
  }
}
.eventPage .container .title {
  display: block;
  margin: 0 auto 0px;
  width: 100%;
  max-width: 636px;
  padding: 0 15px;
  transform-origin: center center;
  animation: titleIntro 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both, titleFloat 2.6s ease-in-out 1.9s infinite;
}
.eventPage .container .giftbox_subtitle {
  display: block;
  margin: 30px auto 0px;
  width: 100%;
  max-width: 636px;
  padding: 0 15px;
}
@keyframes titleFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.04);
  }
}
@keyframes giftTopIntro {
  0% {
    opacity: 0;
    transform: translateY(10px) rotate(0deg);
  }
  60% {
    opacity: 1;
    transform: translateY(-14px) rotate(-4deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}
@keyframes titleIntro {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.9);
  }
  60% {
    opacity: 1;
    transform: translateY(-6px) scale(1.06);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}
.eventPage .container .button {
  display: flex;
  justify-content: center;
  align-items: top;
  gap: 0px;
  margin: 15px 0px;
  perspective: 1000px;
}
@media all and (min-width: 768px) {
  .eventPage .container .button {
    margin: 15px 0px;
  }
}
.eventPage .container .button a {
  margin: 0 15px;
  display: inline-block;
}
.eventPage .container .button img {
  display: block;
  width: 100%;
  max-width: 320px;
  transform: translateY(0) scale(1) rotateX(0deg) rotateY(0deg);
  transition: filter 0.3s ease;
  will-change: transform, filter;
  /* 原本 heroFloat 3.8s → 1.9s, heroTilt 6s → 3s */
  animation: heroFloat 1.9s ease-in-out infinite, heroTilt 3s ease-in-out infinite;
  transform-origin: center 85%;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
}
@media all and (min-width: 768px) {
  .eventPage .container .button img {
    max-width: 400px;
  }
}
.eventPage .container .button a:nth-child(1) img {
  animation-delay: 0s, 0.3s;
}
.eventPage .container .button a:nth-child(2) img {
  animation-delay: 0.45s, 0.9s;
}
@keyframes heroTilt {
  0% {
    transform: translateY(0) scale(1) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: translateY(-2px) scale(1.005) rotateX(3deg) rotateY(-2deg);
  }
  50% {
    transform: translateY(0) scale(1) rotateX(0deg) rotateY(0deg);
  }
  75% {
    transform: translateY(-2px) scale(1.005) rotateX(-3deg) rotateY(2deg);
  }
  100% {
    transform: translateY(0) scale(1) rotateX(0deg) rotateY(0deg);
  }
}
.eventPage .container .kv {
  position: relative;
  display: flex;
  justify-content: center;
}
.eventPage .container .kv img {
  margin-top: 1vw;
  width: 100%;
  max-width: 1000px;
}

.giftbox {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}
.giftbox .star {
  position: absolute;
  animation: starTwinkle 2.2s ease-in-out infinite;
  z-index: 600px;
}
.giftbox .star img {
  width: 100%;
  display: block;
}
.giftbox .star:nth-child(1) {
  top: 0px;
  left: 10%;
  animation-delay: 0s;
}
.giftbox .star:nth-child(2) {
  top: 20%;
  right: 5%;
  animation-delay: 0.6s;
}
.giftbox .star:nth-child(3) {
  bottom: 15%;
  left: 0;
  animation-delay: 1.2s;
}
.giftbox .star:nth-child(4) {
  bottom: 5%;
  left: 10%;
  animation-delay: 1.8s;
}
.giftbox .star:nth-child(5) {
  top: 15%;
  left: 46%;
  transform: translateX(-50%);
  animation-delay: 0.9s;
}
.giftbox .gifts {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 700px;
  padding: 0 15px;
  margin-top: 60px;
}
.giftbox .gifts img {
  width: 100%;
}
@keyframes starTwinkle {
  0% {
    opacity: 0.3;
    transform: scale(0.8) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) rotate(10deg);
  }
  100% {
    opacity: 0.3;
    transform: scale(0.8) rotate(0deg);
  }
}
@keyframes giftFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}