@charset "UTF-8";
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
}

html * {
  font-family: "Microsoft JhengHei";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*:after,
*:before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-size: 100%;
  background-color: #fff;
  color: #373737;
  font-size: 18px;
  font-weight: bold;
}

* {
  position: relative;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  text-decoration: none;
}

.wrap {
  width: 100%;
  min-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
}

.logo {
  position: absolute;
  display: block;
  width: 177px;
  height: 147px;
  background: url("../images/logo.png") no-repeat;
  left: 20px;
  top: 10px;
  z-index: 100;
}

.top-menu {
  width: 100%;
  height: 65px;
  background: rgba(25, 25, 25, 0.85);
  position: fixed;
  z-index: 100;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

#menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
#menu a {
  width: 150px;
  color: #ababab;
  font-weight: bold;
  text-align: center;
  line-height: 65px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  border-top: 3px solid transparent;
}
#menu a.active, #menu a:hover {
  color: #e95389;
  border-top: 3px solid #e95389;
}

.right-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.top-login-btn, .top-logout-btn, .top-record-btn {
  width: 180px;
  height: 65px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  color: #fff;
}

.top-login-btn {
  background: #e95389;
}
.top-login-btn:hover {
  background: #fe78a8;
}

.top-logout-btn {
  background: #9d9d9d;
}
.top-logout-btn:hover {
  background: #c1c1c1;
}

.top-record-btn {
  background: #a857fe;
}
.top-record-btn:hover {
  background: #b672ff;
}

.header {
  width: 100%;
  height: 1414px;
  background: url(../images/header-bg.jpg) no-repeat center top;
  will-change: transform;
  -webkit-transform: translateZ(0);
          transform: translateZ(0); /* 強制硬體加速 */
}

.inner {
  width: 1280px;
  height: 100%;
  margin: 0 auto;
  border: 1px solid transparent;
}

.title-box {
  position: absolute;
  top: 155px;
  left: 280px;
}

.logo-box {
  width: 90vw;
  max-width: 510px;
  height: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  position: absolute;
  top: -65px;
  left: 105px;
  z-index: 20;
}
.logo-box a {
  -webkit-transition: -webkit-transform 0.3s ease-out;
  transition: -webkit-transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
  display: block;
}
.logo-box a:hover {
  -webkit-transform: scale(0.9);
          transform: scale(0.9);
}
.logo-box img {
  display: block;
  width: 100%;
  height: auto;
}

.rg-logo {
  width: 34%; /* 174 / 510 ≒ 34% */
}

.nfl-logo {
  width: 23%; /* 117 / 510 ≒ 23% */
}

.mo-logo {
  width: 23%; /* 118 / 510 ≒ 23% */
}

.title {
  width: 713px;
  height: 430px;
  background: url(../images/title.png) no-repeat center top;
  -webkit-animation: floatCloud 3s ease-in-out infinite alternate;
          animation: floatCloud 3s ease-in-out infinite alternate;
}

.container {
  width: 100%;
  height: auto;
  margin-top: -350px;
}

#sec1 {
  width: 100%;
  height: 1171px;
  background: url(../images/sec1-bg.png) no-repeat center top;
}
#sec1 .subtitle-box {
  margin-top: 248px;
}

.subtitle-box {
  -webkit-animation: floatCloud 3s ease-in-out infinite alternate;
          animation: floatCloud 3s ease-in-out infinite alternate;
  will-change: transform;
}

@-webkit-keyframes floatCloud {
  0% {
    -webkit-transform: translateY(0) scale(1);
            transform: translateY(0) scale(1);
  }
  50% {
    -webkit-transform: translateY(-6px) scale(1.015);
            transform: translateY(-6px) scale(1.015);
  }
  100% {
    -webkit-transform: translateY(0) scale(1);
            transform: translateY(0) scale(1);
  }
}

@keyframes floatCloud {
  0% {
    -webkit-transform: translateY(0) scale(1);
            transform: translateY(0) scale(1);
  }
  50% {
    -webkit-transform: translateY(-6px) scale(1.015);
            transform: translateY(-6px) scale(1.015);
  }
  100% {
    -webkit-transform: translateY(0) scale(1);
            transform: translateY(0) scale(1);
  }
}
#sec2-1 {
  width: 100%;
  height: 1240px;
  background: url(../images/sec2-1-bg.jpg) no-repeat center top;
}
#sec2-1 .subtitle-box {
  margin-top: 114px;
}

#sec2-2 {
  width: 100%;
  height: 2194px;
  background: url(../images/sec2-2-bg.jpg) no-repeat center top;
}

#sec3 {
  width: 100%;
  height: 1026px;
  background: url(../images/sec3-bg.jpg) no-repeat center top;
}
#sec3 .subtitle-box {
  margin-top: 91px;
}

#sec4 {
  width: 100%;
  height: 1128px;
  background: url(../images/sec4-bg.jpg) no-repeat center top;
}
#sec4 .subtitle-box {
  margin-top: 91px;
}

.sec1-bg-m, .sec2-bg-m, .sec3-bg-m, .sec4-bg-m {
  display: none;
}

.subtitle-box {
  width: 399px;
  height: 188px;
  margin: 0 auto;
}

.sec1-cont {
  width: 1173px;
  height: 576px;
  margin: 20px auto 0 auto;
}

.sec1-pic {
  width: 1173px;
  height: 576px;
  background: url(../images/sec1-pic.png) no-repeat center top;
  z-index: 10;
  padding: 100px 100px;
}
.sec1-pic p {
  color: #37145a;
  line-height: 1.5;
  font-size: 22px;
  font-weight: bold;
}

.p-w {
  color: #e95389;
}

.sec1-event-date {
  background: #e95389;
  color: #fff;
  font-weight: bold;
  font-size: 28px;
  border-radius: 50px;
  padding: 10px;
  width: 600px;
  text-align: center;
  margin: 0 auto 40px auto;
}

.dialogue-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-top: 20px;
}

.character-side {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.avatar {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  margin-right: 10px;
}

.speech-bubble {
  background-color: #fff;
  color: #37145a;
  padding: 6px 12px;
  border-radius: 30px;
  margin-top: 4px;
  border: 2px solid #d4acff;
  white-space: nowrap;
  font-size: 22px;
}

.reply-box {
  max-width: 600px;
}

.reply-bubble {
  background-color: #fff;
  border: 2px solid #d4acff;
  padding: 15px 20px;
  border-radius: 30px;
  font-size: 22px;
  line-height: 1.5;
  color: #37145a;
}

.reply-bubble .link {
  color: #e53981;
  text-decoration: underline;
  -webkit-animation: flashColor 1.2s infinite alternate;
          animation: flashColor 1.2s infinite alternate;
}

@-webkit-keyframes flashColor {
  0% {
    color: #e53981;
  }
  50% {
    color: #f9b96d;
  }
  100% {
    color: #e53981;
  }
}

@keyframes flashColor {
  0% {
    color: #e53981;
  }
  50% {
    color: #f9b96d;
  }
  100% {
    color: #e53981;
  }
}
.sec1-balloon-left {
  position: absolute;
  width: 531px;
  height: 483px;
  background: url(../images/sec1-balloon-left.png) no-repeat center top;
  left: -310px;
  top: 69px;
  z-index: 5;
  -webkit-animation: sway 6s ease-in-out infinite alternate;
          animation: sway 6s ease-in-out infinite alternate;
  will-change: transform;
  -webkit-transform-origin: bottom right;
          transform-origin: bottom right;
}

.sec1-balloon-right {
  position: absolute;
  width: 407px;
  height: 500px;
  background: url(../images/sec1-balloon-right.png) no-repeat center top;
  right: -360px;
  top: 0;
  z-index: 5;
  -webkit-animation: sway 6s ease-in-out infinite alternate;
          animation: sway 6s ease-in-out infinite alternate;
  will-change: transform;
  -webkit-transform-origin: bottom left;
          transform-origin: bottom left;
}

@-webkit-keyframes sway {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  50% {
    -webkit-transform: rotate(3deg);
            transform: rotate(3deg);
  }
  100% {
    -webkit-transform: rotate(-3deg);
            transform: rotate(-3deg);
  }
}

@keyframes sway {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  50% {
    -webkit-transform: rotate(3deg);
            transform: rotate(3deg);
  }
  100% {
    -webkit-transform: rotate(-3deg);
            transform: rotate(-3deg);
  }
}
/* 上下飄浮 */
@-webkit-keyframes floatUp {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(-20px);
            transform: translateY(-20px);
  }
}
@keyframes floatUp {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(-20px);
            transform: translateY(-20px);
  }
}
.machine-box {
  width: 581px;
  height: 911px;
  left: 50px;
}

.remaining-attempts {
  width: 280px;
  height: 60px;
  line-height: 50px;
  border: 5px solid #d23d70;
  background: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 24px;
  position: absolute;
  top: 226px;
  left: 149px;
  z-index: 30;
}

.choose-game {
  position: absolute;
  width: 315px;
  height: 130px;
  background: #ff6394;
  border: 5px solid #d23d70;
  border-radius: 20px;
  z-index: 30;
  top: 290px;
  left: 131px;
  padding-top: 10px;
}

/* 上方左右圓點 */
.choose-game::before,
.choose-game::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 10px;
  height: 10px;
  background-color: #d23d70;
  border-radius: 50%;
}

.choose-game::before {
  left: 10px;
}

.choose-game::after {
  right: 10px;
}

/* 下方左右圓點 */
.choose-game .dot {
  position: absolute;
  bottom: 10px;
  width: 10px;
  height: 10px;
  background-color: #d23d70;
  border-radius: 50%;
}

.choose-game .dot.left {
  left: 10px;
}

.choose-game .dot.right {
  right: 10px;
}

.game-options {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 20px; /* 選項間距 */
}

.game-option {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
}

.game-option input[type=radio] {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 16px;
  height: 16px;
  border: 3px solid #d23d70;
  border-radius: 50%;
  background-color: white;
  cursor: pointer;
  position: relative;
}

.game-option input[type=radio]:checked::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #ff0;
  border-radius: 50%;
  -webkit-box-shadow: 0 0 10px 3px #ff0;
          box-shadow: 0 0 10px 3px #ff0;
}

.game-option img {
  -webkit-filter: grayscale(100%);
          filter: grayscale(100%);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -webkit-transform: scale(0.9);
          transform: scale(0.9);
}

input[type=radio]:checked + label img {
  -webkit-filter: none;
          filter: none;
  -webkit-transform: scale(1);
          transform: scale(1);
}

.game-option label {
  cursor: pointer;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  height: 79px;
}

.game-option label img {
  display: block;
}

.machine-bubble {
  position: absolute;
  width: 137px;
  height: 137px;
  background: url(../images/sec2-machine-btn.png) no-repeat center top;
  top: 470px;
  left: 354px;
  z-index: 20;
}

.machine-btn {
  position: absolute;
  width: 147px;
  height: 147px;
  background: url(../images/machine-btn.png) no-repeat center top;
  outline: none;
  border: none;
  cursor: pointer;
  z-index: 15;
  top: 556px;
  left: 215px;
  border-radius: 50%;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
  -webkit-animation: btn-shine 0.8s ease infinite;
          animation: btn-shine 0.8s ease infinite;
}
.machine-btn:hover {
  -webkit-animation: swing 0.6s ease-in-out;
          animation: swing 0.6s ease-in-out;
}

@-webkit-keyframes btn-shine {
  0% {
    -webkit-box-shadow: 0 0 20px 10px rgb(255, 255, 0);
            box-shadow: 0 0 20px 10px rgb(255, 255, 0);
  }
  50% {
    -webkit-box-shadow: 0 0 0px 0px rgb(255, 255, 0);
            box-shadow: 0 0 0px 0px rgb(255, 255, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 20px 10px rgb(255, 255, 0);
            box-shadow: 0 0 20px 10px rgb(255, 255, 0);
  }
}

@keyframes btn-shine {
  0% {
    -webkit-box-shadow: 0 0 20px 10px rgb(255, 255, 0);
            box-shadow: 0 0 20px 10px rgb(255, 255, 0);
  }
  50% {
    -webkit-box-shadow: 0 0 0px 0px rgb(255, 255, 0);
            box-shadow: 0 0 0px 0px rgb(255, 255, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 20px 10px rgb(255, 255, 0);
            box-shadow: 0 0 20px 10px rgb(255, 255, 0);
  }
}
@-webkit-keyframes swing {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  25% {
    -webkit-transform: rotate(30deg);
            transform: rotate(30deg);
  }
  50% {
    -webkit-transform: rotate(-30deg);
            transform: rotate(-30deg);
  }
  75% {
    -webkit-transform: rotate(20deg);
            transform: rotate(20deg);
  }
  100% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
}
@keyframes swing {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  25% {
    -webkit-transform: rotate(30deg);
            transform: rotate(30deg);
  }
  50% {
    -webkit-transform: rotate(-30deg);
            transform: rotate(-30deg);
  }
  75% {
    -webkit-transform: rotate(20deg);
            transform: rotate(20deg);
  }
  100% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
}
.machine {
  width: 581px;
  height: 911px;
  background: url(../images/machine.png) no-repeat center top;
  z-index: 10;
}

.ball {
  position: absolute;
  width: 135px;
  height: 131px;
  background: url(../images/ball.png) no-repeat center top;
  z-index: 9;
  left: 222px;
  top: 600px;
}

.ball.drop {
  -webkit-animation: dropBall 0.8s ease forwards;
          animation: dropBall 0.8s ease forwards;
}

@-webkit-keyframes dropBall {
  0% {
    top: 600px;
    opacity: 0;
    -webkit-transform: rotate(0deg) scale(1);
            transform: rotate(0deg) scale(1);
  }
  30% {
    opacity: 1;
    top: 600px;
    -webkit-transform: rotate(45deg) scale(1.05, 0.95);
            transform: rotate(45deg) scale(1.05, 0.95);
  }
  60% {
    top: 724px;
    -webkit-transform: rotate(135deg) scale(0.95, 1.1);
            transform: rotate(135deg) scale(0.95, 1.1);
  }
  72% {
    top: 680px;
    -webkit-transform: rotate(194eg) scale(1.03, 0.97);
            transform: rotate(194eg) scale(1.03, 0.97);
  }
  85% {
    top: 724px;
    -webkit-transform: rotate(238deg) scale(0.98, 1.02);
            transform: rotate(238deg) scale(0.98, 1.02);
  }
  100% {
    top: 724px;
    -webkit-transform: rotate(244deg) scale(1);
            transform: rotate(244deg) scale(1);
  }
}

@keyframes dropBall {
  0% {
    top: 600px;
    opacity: 0;
    -webkit-transform: rotate(0deg) scale(1);
            transform: rotate(0deg) scale(1);
  }
  30% {
    opacity: 1;
    top: 600px;
    -webkit-transform: rotate(45deg) scale(1.05, 0.95);
            transform: rotate(45deg) scale(1.05, 0.95);
  }
  60% {
    top: 724px;
    -webkit-transform: rotate(135deg) scale(0.95, 1.1);
            transform: rotate(135deg) scale(0.95, 1.1);
  }
  72% {
    top: 680px;
    -webkit-transform: rotate(194eg) scale(1.03, 0.97);
            transform: rotate(194eg) scale(1.03, 0.97);
  }
  85% {
    top: 724px;
    -webkit-transform: rotate(238deg) scale(0.98, 1.02);
            transform: rotate(238deg) scale(0.98, 1.02);
  }
  100% {
    top: 724px;
    -webkit-transform: rotate(244deg) scale(1);
            transform: rotate(244deg) scale(1);
  }
}
.machine-back {
  position: absolute;
  width: 215px;
  height: 148px;
  background: url(../images/machine-inner.png) no-repeat center top;
  z-index: 5;
  left: 182px;
  bottom: 36px;
}

.sec2-info-box {
  width: 472px;
  height: 772px;
  position: absolute;
  padding: 160px 70px 70px 70px;
  top: 384px;
  left: 719px;
  background: url(../images/sec2-info-bg.png) no-repeat center top;
}

.sec2-login-btn {
  display: block;
  width: 295px;
  height: 104px;
  background: url(../images/sec2-login-btn.png) no-repeat center top;
  outline: none;
  border: none;
  cursor: pointer;
  margin: 0 auto 20px;
}
.sec2-login-btn:hover {
  -webkit-animation: jelly 0.5s ease;
          animation: jelly 0.5s ease;
}

.sec2-logout-btn {
  display: block;
  width: 295px;
  height: 104px;
  background: url(../images/sec2-logout-btn.png) no-repeat center top;
  outline: none;
  border: none;
  cursor: pointer;
  margin: 0 auto 20px;
}
.sec2-logout-btn:hover {
  -webkit-animation: jelly 0.5s ease;
          animation: jelly 0.5s ease;
}

.sec2-record-btn {
  display: block;
  width: 295px;
  height: 104px;
  background: url(../images/sec2-record-btn.png) no-repeat center top;
  outline: none;
  border: none;
  cursor: pointer;
  margin: 0 auto;
  margin: 0 auto 20px;
}
.sec2-record-btn:hover {
  -webkit-animation: jelly 0.5s ease;
          animation: jelly 0.5s ease;
}

@-webkit-keyframes jelly {
  0% {
    -webkit-transform: scale(1, 1);
            transform: scale(1, 1);
  }
  30% {
    -webkit-transform: scale(1.1, 0.9);
            transform: scale(1.1, 0.9);
  }
  50% {
    -webkit-transform: scale(0.95, 1.05);
            transform: scale(0.95, 1.05);
  }
  70% {
    -webkit-transform: scale(1.05, 0.95);
            transform: scale(1.05, 0.95);
  }
  100% {
    -webkit-transform: scale(1, 1);
            transform: scale(1, 1);
  }
}

@keyframes jelly {
  0% {
    -webkit-transform: scale(1, 1);
            transform: scale(1, 1);
  }
  30% {
    -webkit-transform: scale(1.1, 0.9);
            transform: scale(1.1, 0.9);
  }
  50% {
    -webkit-transform: scale(0.95, 1.05);
            transform: scale(0.95, 1.05);
  }
  70% {
    -webkit-transform: scale(1.05, 0.95);
            transform: scale(1.05, 0.95);
  }
  100% {
    -webkit-transform: scale(1, 1);
            transform: scale(1, 1);
  }
}
.reward-info-box {
  width: 100%;
  background: #fff;
  border: 3px solid #bb692b;
  border-radius: 30px;
  padding: 20px;
  color: #4e2b10;
  font-size: 16px;
  font-weight: bold;
}
.reward-info-box li {
  margin-left: 1em;
}

.sec2-prize-pic {
  width: 720px;
  height: 335px;
  background: url(../images/sec2-prize-pic.png) no-repeat center top;
  margin: 0 auto 20px auto;
}

.sec2-tabs {
  width: 970px;
  height: 120px;
  margin: 0 auto;
}

.sec2-tab-btn {
  width: 485px;
  cursor: pointer;
  outline: none;
  border: none;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.sec2-tab-btn1 {
  background: url(../images/sec2-nfl-btn.png) no-repeat center top;
  -webkit-transform: translateY(10px);
          transform: translateY(10px);
}

.sec2-tab-btn1.active {
  background: url(../images/sec2-nfl-btn-ac.png) no-repeat center top;
  -webkit-transform: translateY(0px);
          transform: translateY(0px);
}

.sec2-tab-btn2 {
  background: url(../images/sec2-mo-btn.png) no-repeat center top;
  -webkit-transform: translateY(10px);
          transform: translateY(10px);
}

.sec2-tab-btn2.active {
  background: url(../images/sec2-mo-btn-ac.png) no-repeat center top;
  -webkit-transform: translateY(0px);
          transform: translateY(0px);
}

.sec2-tab-content {
  width: 1175px;
  display: none;
  margin: 0 auto;
}

.sec2-tab-content.active {
  display: block;
}

.sec2-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: -4px;
}

.card-frame {
  padding: 30px;
  border-radius: 40px;
  width: 1175px;
  height: auto;
}

.card-content {
  border-radius: 24px;
  width: 100%;
  height: 100%;
  padding: 40px;
}

#sec2-tab1 .card-frame {
  background: #eb7850;
  -webkit-box-shadow: inset 0 3px 0 #f2a16b, 0 6px 0 #ac4d2c;
          box-shadow: inset 0 3px 0 #f2a16b, 0 6px 0 #ac4d2c;
  border: 3px solid #ac4d2c;
}
#sec2-tab1 .card-content {
  background: #ffeee7;
  -webkit-box-shadow: inset 0 3px 0 #fff9f7, 0 6px 0 #cb5f3a;
          box-shadow: inset 0 3px 0 #fff9f7, 0 6px 0 #cb5f3a;
}

#sec2-tab2 .card-frame {
  background: #5e8be7;
  -webkit-box-shadow: inset 0 3px 0 #7eb3ef, 0 6px 0 #3f64b0;
          box-shadow: inset 0 3px 0 #7eb3ef, 0 6px 0 #3f64b0;
  border: 3px solid #3f64b0;
}
#sec2-tab2 .card-content {
  background: #e7efff;
  -webkit-box-shadow: inset 0 3px 0 #f2f6ff, 0 6px 0 #3f64b0;
          box-shadow: inset 0 3px 0 #f2f6ff, 0 6px 0 #3f64b0;
}

.prize-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 30px;
  -ms-flex-line-pack: start;
      align-content: flex-start;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
}
.prize-list li {
  list-style: none;
}

.amount {
  position: absolute;
  width: 80px;
  height: 28px;
  color: rgb(255, 255, 255);
  line-height: 28px;
  text-align: center;
  z-index: 10;
  bottom: 24px;
  right: 3px;
  background: #c80000;
  border-radius: 30px 0px 0px 30px;
}

.sec3-cont {
  width: 547px;
  height: 605px;
  margin: 10px auto 0 auto;
}

.sec3-pic {
  width: 547px;
  height: 605px;
  background: url(../images/sec3-pic.png) no-repeat center top;
  z-index: 10;
}

.sec3-balloon-left {
  position: absolute;
  width: 411px;
  height: 390px;
  background: url(../images/sec3-balloon-left.png) no-repeat center top;
  left: -320px;
  top: 69px;
  z-index: 5;
  -webkit-animation: sway 6s ease-in-out infinite alternate;
          animation: sway 6s ease-in-out infinite alternate;
  will-change: transform;
  -webkit-transform-origin: bottom right;
          transform-origin: bottom right;
}

.sec3-balloon-right {
  position: absolute;
  width: 531px;
  height: 483px;
  background: url(../images/sec3-balloon-right.png) no-repeat center top;
  right: -310px;
  top: 69px;
  z-index: 5;
  -webkit-animation: sway 8s ease-in-out infinite alternate;
          animation: sway 8s ease-in-out infinite alternate;
  will-change: transform;
  -webkit-transform-origin: bottom left;
          transform-origin: bottom left;
}

.notice {
  width: 1225px;
  margin: 30px auto 0 auto;
  padding-left: 2em;
}
.notice li {
  margin-bottom: 10px;
  font-size: 20px;
  color: #26183e;
  font-weight: bold;
  line-height: 1.4;
}

.notice-link {
  color: #e53981;
  text-decoration: underline;
}

.footer {
  width: 100%;
  height: 100px;
  background: #3d2a60;
  color: #cbb5f2;
  text-align: center;
  line-height: 100px;
}

#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 999;
}

#confirm-popup, #reward-popup {
  text-align: center;
  background: #ffedc9;
  border-radius: 50px;
  border: 5px solid #f9b263;
  -webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
          box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  padding: 2% 5%;
  padding-bottom: 50px;
  z-index: 1000;
  font-weight: bold;
}

#popup-close {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  width: 90px;
  height: 40px;
  background: #f9b263;
  color: white;
  border: none;
  border-radius: 30px 30px 0 0;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  cursor: pointer;
  position: absolute;
  bottom: 0;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}

#popup-close:hover {
  background: #bb692b;
}

.sec2-tab1-m-title, .sec2-tab2-m-title {
  display: none;
}

/* 漢堡選單按鈕 */
.hamburger {
  display: none;
  position: fixed;
  top: 15px;
  right: -100%;
  opacity: 0;
  width: 40px;
  height: 40px;
  background: #e95389;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  z-index: 1000;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: white;
  position: relative;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.hamburger div::before,
.hamburger div::after {
  content: "";
  width: 25px;
  height: 3px;
  background: white;
  position: absolute;
  left: 0;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.hamburger div::before {
  top: -8px;
}

.hamburger div::after {
  top: 8px;
}

/* 漢堡選單開啟時變叉叉 */
.hamburger.active div {
  background: transparent;
}

.hamburger.active div::before {
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
  top: 0;
}

.hamburger.active div::after {
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
  top: 0;
}

.gold-btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  color: #240000 !important;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  -webkit-transition: all 3.5s ease-in-out;
  transition: all 3.5s ease-in-out;
  background: url("../images/gold.jpg") center no-repeat;
}

/* 側邊選單 */
.menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 200px;
  height: 100%;
  background: rgba(25, 25, 25, 0.95);
  color: white;
  padding-top: 60px;
  -webkit-transition: left 0.3s ease;
  transition: left 0.3s ease;
  z-index: 999;
  text-align: center;
}

.menu.active {
  left: 0;
}

.menu a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 15px;
  font-size: 18px;
  border-bottom: 1px solid #555;
  -webkit-transition: background 0.3s;
  transition: background 0.3s;
}

.menu a:hover {
  background: #555;
}

/* 內部滾動按鈕 */
.scroll-btn {
  display: block;
  color: #e95389;
  text-decoration: none;
  padding: 15px;
  font-size: 18px;
  border-bottom: 1px solid #e95389;
  -webkit-transition: background 0.3s;
  transition: background 0.3s;
  cursor: pointer;
}

.scroll-btn:hover {
  background: #555;
}

.menu-login-btn {
  width: 80%;
  border: none;
  margin: 0 auto 10px auto;
  cursor: pointer;
  outline: none;
  padding: 10px;
  font-size: 18px;
  color: #fff;
  font-weight: bold;
  display: block;
  background: #e95389;
  border-radius: 30px;
  border: 3px solid #d54071;
}

.menu-logout-btn {
  width: 80%;
  border: none;
  margin: 0 auto 10px auto;
  cursor: pointer;
  outline: none;
  padding: 10px;
  font-size: 18px;
  color: #fff;
  font-weight: bold;
  display: block;
  background: #9d9d9d;
  border-radius: 30px;
  border: 3px solid #585858;
}

.menu-record-btn {
  width: 80%;
  border: none;
  margin: 0 auto 10px auto;
  cursor: pointer;
  outline: none;
  padding: 10px;
  font-size: 18px;
  color: #fff;
  font-weight: bold;
  display: block;
  background: #a857fe;
  border-radius: 30px;
  border: 3px solid #843dcf;
}

@media (max-width: 767px) {
  .wrap {
    min-width: 0;
  }
  .top-menu {
    display: none;
  }
  .header {
    height: auto;
    padding-top: 101.04%;
    background: url("../images/header-bg-m.jpg") no-repeat center;
    background-size: cover;
  }
  .logo {
    display: none;
  }
  .social-btns {
    display: none;
  }
  .sec1-bg-m {
    display: block;
    width: 100%;
    height: auto;
    padding-top: 18.88%;
    background: url(../images/sec1-bg-m.png) no-repeat center top;
    background-size: cover;
    position: absolute;
    bottom: -2px;
  }
  .sec2-bg-m {
    display: block;
    width: 100%;
    height: auto;
    padding-top: 18.88%;
    background: url(../images/sec2-bg-m.jpg) no-repeat center top;
    background-size: cover;
    position: absolute;
    bottom: -2px;
  }
  .sec3-bg-m {
    display: block;
    width: 100%;
    height: auto;
    padding-top: 18.88%;
    background: url(../images/sec3-bg-m.jpg) no-repeat center top;
    background-size: cover;
    position: absolute;
    bottom: -2px;
  }
  .sec4-bg-m {
    display: block;
    width: 100%;
    height: auto;
    padding-top: 18.88%;
    background: url(../images/sec4-bg-m.jpg) no-repeat center top;
    background-size: cover;
    position: absolute;
    bottom: -2px;
  }
  #sec1 {
    background: #f9efdd;
  }
  #sec2-1 {
    background: #acc7fc;
  }
  #sec2-2 {
    background: #acc7fc;
  }
  #sec3 {
    background: #faefdd;
  }
  #sec4 {
    background: #cbb5f3;
  }
  .container {
    margin-top: 0;
  }
  body {
    font-size: 1em !important;
  }
  .inner {
    width: 100%;
    padding: 0 4%;
    border: none;
  }
  .title-box {
    display: none;
  }
  .subtitle-box {
    width: 70%;
    height: auto;
    margin-bottom: 10px;
  }
  .subtitle-box img {
    max-width: 100%;
  }
  #sec1 .subtitle-box, #sec2-1 .subtitle-box, #sec2-2 .subtitle-box, #sec3 .subtitle-box, #sec4 .subtitle-box {
    margin-top: 0;
  }
  .hamburger {
    right: 15px;
    opacity: 1;
  }
  .sec1-balloon-left, .sec1-balloon-right, .sec3-balloon-left, .sec3-balloon-right {
    display: none;
  }
  .sec1-cont {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }
  .sec1-pic {
    width: 100%;
    height: auto;
    background: #f3e7ff;
    border: 10px solid #a96de5;
    border-radius: 40px;
    -webkit-box-shadow: 0 0 0 3px #722b84;
            box-shadow: 0 0 0 3px #722b84;
    padding: 6%;
  }
  .sec1-event-date {
    width: 100%;
    border-radius: 20px;
    font-size: 1.5em;
    margin-bottom: 20px;
  }
  .sec1-pic p {
    font-size: 1em;
  }
  .speech-bubble, .reply-bubble {
    font-size: 1.2em !important;
  }
  .character-side {
    margin-bottom: 20px;
  }
  #sec2-1 {
    height: auto;
    padding-bottom: 10%;
  }
  #sec1, #sec2-2, #sec3 {
    height: auto;
    padding-bottom: 30%;
  }
  #sec4 {
    height: auto;
    padding-bottom: 10%;
  }
  .logout-btn {
    width: 100%;
    height: 50px;
    position: relative;
    margin: 0 auto;
    top: 0;
    right: 0;
    margin-bottom: 20px;
    background: #8d857b;
    color: #fff;
    font-size: 18px;
    text-indent: 0; /* 將文字推到可視範圍外 */
  }
  .dialogue-box {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
  .character-side {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    gap: 8px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .speech-bubble {
    white-space: normal;
  }
  .reply-box {
    max-width: 100%;
  }
  .sec2-prize-pic {
    width: 100%;
    height: auto;
    background-size: contain;
    padding-top: 46.52%;
  }
  .sec3-cont {
    width: 100%;
    height: auto;
  }
  .sec3-pic {
    width: 100%;
    height: auto;
    background-size: contain;
    padding-top: 110.6%;
  }
  .notice {
    width: 100%;
  }
  .notice li {
    font-size: 1em;
  }
  .footer {
    height: auto;
    line-height: 1.5;
    padding: 7% 5%;
  }
  .sec2-tabs {
    display: none;
  }
  #sec2-tab1 {
    margin-bottom: 20px;
  }
  #sec2-tab1, #sec2-tab2 {
    width: 100%;
    display: block;
  }
  .card-frame {
    width: 100%;
    padding: 10px;
  }
  .card-content {
    padding: 3%;
  }
  .prize-list {
    gap: 4%;
  }
  .prize-list li {
    width: 48%;
    margin-bottom: 2%;
  }
  .prize-list li img {
    width: 100%;
  }
  .sec2-tab1-m-title, .sec2-tab2-m-title {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 8vw;
    font-weight: 700;
    padding: 20px 0;
  }
  .sec2-tab1-m-title {
    color: #ac4d2c;
  }
  .sec2-tab2-m-title {
    color: #3f64b0;
  }
  .amount {
    position: absolute;
    width: 15vw;
    height: 5vw;
    line-height: 5vw;
    font-size: 3.5vw;
    text-align: center;
    color: white;
    z-index: 10;
    bottom: 4vw;
    right: 0.5vw;
    background: #c80000;
    border-radius: 6vw 0 0 6vw;
    font-weight: bold;
  }
  .machine-box {
    width: 100vw;
    height: 156.8vw;
    left: -4vw;
  }
  .remaining-attempts {
    width: 48.19vw;
    height: 10.33vw;
    line-height: 8.61vw;
    border: 0.86vw solid #d23d70;
    background: #fff;
    border-radius: 8.61vw;
    text-align: center;
    font-size: 4.13vw;
    position: absolute;
    top: 38.9vw;
    left: 25.65vw;
    z-index: 30;
  }
  .choose-game {
    position: absolute;
    width: 54.22vw;
    height: 22.38vw;
    background: #ff6394;
    border: 0.86vw solid #d23d70;
    border-radius: 3.44vw;
    z-index: 30;
    top: 49.91vw;
    left: 22.55vw;
    padding-top: 1.72vw;
  }
  .choose-game::before,
  .choose-game::after {
    content: "";
    position: absolute;
    top: 1.72vw;
    width: 1.72vw;
    height: 1.72vw;
    background-color: #d23d70;
    border-radius: 50%;
  }
  .choose-game::before {
    left: 1.72vw;
  }
  .choose-game::after {
    right: 1.72vw;
  }
  .choose-game .dot {
    position: absolute;
    bottom: 1.72vw;
    width: 1.72vw;
    height: 1.72vw;
    background-color: #d23d70;
    border-radius: 50%;
  }
  .choose-game .dot.left {
    left: 1.72vw;
  }
  .choose-game .dot.right {
    right: 1.72vw;
  }
  .game-options {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 3.44vw;
  }
  .game-option {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    position: relative;
  }
  .game-option input[type=radio] {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    width: 2.75vw;
    height: 2.75vw;
    border: 0.52vw solid #d23d70;
    border-radius: 50%;
    background-color: white;
    cursor: pointer;
    position: relative;
  }
  .game-option input[type=radio]:checked::before {
    content: "";
    position: absolute;
    width: 1.72vw;
    height: 1.72vw;
    background-color: #ff0;
    border-radius: 50%;
    -webkit-box-shadow: 0 0 1.72vw 0.52vw #ff0;
            box-shadow: 0 0 1.72vw 0.52vw #ff0;
  }
  .game-option img {
    -webkit-filter: grayscale(100%);
            filter: grayscale(100%);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  input[type=radio]:checked + label img {
    -webkit-filter: none;
            filter: none;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  .game-option label {
    cursor: pointer;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    height: 13.6vw;
  }
  .game-option label img {
    display: block;
    max-width: 18vw;
  }
  .machine-bubble {
    position: absolute;
    width: 23.58vw;
    height: 23.58vw;
    background: url(../images/sec2-machine-btn.png) no-repeat center top;
    background-size: contain;
    top: 80.89vw;
    left: 60.93vw;
    z-index: 20;
  }
  .machine-btn {
    position: absolute;
    width: 25.3vw;
    height: 25.3vw;
    background: url(../images/machine-btn.png) no-repeat center top;
    background-size: contain;
    outline: none;
    border: none;
    cursor: pointer;
    z-index: 15;
    top: 95.7vw;
    left: 37vw;
    border-radius: 50%;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
    -webkit-animation: btn-shine 0.8s ease infinite;
            animation: btn-shine 0.8s ease infinite;
  }
  .machine-btn:hover {
    -webkit-animation: swing 0.6s ease-in-out;
            animation: swing 0.6s ease-in-out;
  }
  .machine {
    width: 100vw;
    height: 156.8vw;
    background: url(../images/machine.png) no-repeat center top;
    z-index: 10;
    background-size: contain;
  }
  .ball {
    position: absolute;
    width: 23.23vw;
    height: 22.55vw;
    background: url(../images/ball.png) no-repeat center top;
    background-size: contain;
    z-index: 9;
    left: 38.21vw;
    top: 103.27vw;
  }
  .ball.drop {
    -webkit-animation: dropBall 0.8s ease forwards;
            animation: dropBall 0.8s ease forwards;
  }
  .machine-back {
    position: absolute;
    width: 37vw;
    height: 25.47vw;
    background: url(../images/machine-inner.png) no-repeat center top;
    background-size: contain;
    z-index: 5;
    left: 31.34vw;
    bottom: 6.2vw;
  }
  @-webkit-keyframes dropBall {
    0% {
      top: 103.44vw;
      opacity: 0;
      -webkit-transform: rotate(0deg) scale(1);
              transform: rotate(0deg) scale(1);
    }
    30% {
      opacity: 1;
      top: 103.44vw;
      -webkit-transform: rotate(45deg) scale(1.05, 0.95);
              transform: rotate(45deg) scale(1.05, 0.95);
    }
    60% {
      top: 124.61vw;
      -webkit-transform: rotate(135deg) scale(0.95, 1.1);
              transform: rotate(135deg) scale(0.95, 1.1);
    }
    72% {
      top: 117.04vw;
      -webkit-transform: rotate(194deg) scale(1.03, 0.97);
              transform: rotate(194deg) scale(1.03, 0.97);
    }
    85% {
      top: 124.61vw;
      -webkit-transform: rotate(238deg) scale(0.98, 1.02);
              transform: rotate(238deg) scale(0.98, 1.02);
    }
    100% {
      top: 124.61vw;
      -webkit-transform: rotate(244deg) scale(1);
              transform: rotate(244deg) scale(1);
    }
  }
  @keyframes dropBall {
    0% {
      top: 103.44vw;
      opacity: 0;
      -webkit-transform: rotate(0deg) scale(1);
              transform: rotate(0deg) scale(1);
    }
    30% {
      opacity: 1;
      top: 103.44vw;
      -webkit-transform: rotate(45deg) scale(1.05, 0.95);
              transform: rotate(45deg) scale(1.05, 0.95);
    }
    60% {
      top: 124.61vw;
      -webkit-transform: rotate(135deg) scale(0.95, 1.1);
              transform: rotate(135deg) scale(0.95, 1.1);
    }
    72% {
      top: 117.04vw;
      -webkit-transform: rotate(194deg) scale(1.03, 0.97);
              transform: rotate(194deg) scale(1.03, 0.97);
    }
    85% {
      top: 124.61vw;
      -webkit-transform: rotate(238deg) scale(0.98, 1.02);
              transform: rotate(238deg) scale(0.98, 1.02);
    }
    100% {
      top: 124.61vw;
      -webkit-transform: rotate(244deg) scale(1);
              transform: rotate(244deg) scale(1);
    }
  }
  .sec2-info-box {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: #ffdb93;
    border: 3px solid #fff;
    border-radius: 20px;
    padding: 5%;
    margin-top: 20px;
  }
  .sec2-info-box .reward-info-box {
    font-size: 1em;
  }
  .sec2-login-btn, .sec2-logout-btn, .sec2-record-btn {
    width: 100%;
    height: auto;
    background-size: contain;
    padding-top: 35.25%;
  }
}