@charset "utf-8";

.seo-description,
.seo-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

:root {
  --frame-url: url('../images/swiper_frame.png');
  --arrow-left: url('../images/swiper_l.png');
  --arrow-right: url('../images/swiper_r.png');
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0 !important;
  font-family: 'Noto Sans TC', 'Maven Pro', 'Droid Sans', 'Myriad Pro', Helvetica, Verdana, Geneva, sans-serif !important;
  color: #345477;
  font-weight: bolder;
  position: relative;
  overflow: auto;
  overflow-x: hidden;
  scrollbar-width: none !important;
}

::-webkit-scrollbar {
  display: none !important;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*:focus,
input,
button,
select,
textarea {
  outline: none;
}

span {
  display: inline-block;
}

img {
  width: 100%;
  height: auto;
  /* display: block; */
}

a {
  z-index: 100;
  display: inline-block;
  width: auto;
  height: auto;
  text-decoration: none !important;
}

a:hover {
  cursor: pointer !important;
}

ol,
ul {
  padding-left: 1rem !important;
}

.modal-open {
  padding-right: 0 !important;
}

.btn-check:focus + .btn,
.btn:focus {
  outline: 0;
  box-shadow: none !important;
}

/** 動態效果 **/
@keyframes fadeout {
  0% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadein {
  0% {
    transform: scale(1.5);
  }
  60% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}

.wrapper {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  background-image: url(../images/bg_all.webp);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.smooth_content {
  will-change: transform;
  width: 100%;
  position: relative;
  display: block;
}

/* Button 共用 */
.btn {
  padding: 0 !important;
  transform: scale(1);
  transition: filter 0.3s ease-in-out;
}

.btn:hover {
  filter: brightness(120%);
  transform: scale(1);
  transition: filter 0.2s ease-in-out;
}

.btn:active {
  transform: scale(0.95);
  transition: transform 0s ease-in-out;
}

/* =========================================================
   回到頂部按鈕
   ========================================================= */
.bnt_top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10050;
  width: 64px;
  height: 64px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.9);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease,
    filter 0.3s ease;
}

.bnt_top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.bnt_top a {
  display: block;
  width: 100%;
  height: 100%;
}

.bnt_top img {
  display: block;
  width: 100%;
  height: auto;
}

.bnt_top:hover {
  filter: brightness(1.12) drop-shadow(0 0 10px rgba(255, 200, 100, 0.35));
}

.bnt_top:active {
  transform: scale(0.96);
}

@media screen and (max-width: 1024px) {
  .bnt_top {
    right: 12px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }
}
/* 區塊共用 */
#cover,
#section01,
#section02,
#section03,
#section04,
#section05,
#section06,
#section07 {
  position: relative;
  width: 100%;
  /* min-height: 100vh; */
  color: #fff;
  text-align: center;
  overflow: hidden;
}

#cover {
  background: url(../images/bg_cover.webp);
  background-position: center top;
  background-size: auto 100%;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

#section01,
#section02,
#section03,
#section04,
#section05,
#section06,
#section07 {
  width: 100vw;
  background-position: center top;
  background-size: 100% 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sec_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

#section01 .sec_content,
#section03 .sec_content,
#section04 .sec_content,
#section05 .sec_content,
#section06 .sec_content,
#section07 .sec_content {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.sec_title {
  margin: 0rem 0 2.5rem 0;
  display: flex;
  justify-content: center;
  color: #2e2a29;
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: 2.5rem;
}

.sec_title img {
  width: 75%;
  height: auto;
  object-fit: contain;
  margin: -5rem 0;
}

/* 00_cover首頁 */
.slogan_block {
  position: absolute;
  width: 80%;
  bottom: 7%;
}

.slogan {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slogan .title {
  width: 65%;
  margin-bottom: -2%;
}

.slogan img:nth-child(3) {
  width: 50%;
  margin-bottom: 2%;
}

#particles-js {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.btn03 {
  position: relative;
  z-index: 10;
  width: 50%;
  max-width: 280px;
  margin: 1.5rem 0 0 0;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* 圖片 */
.btn03 img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50px;
  animation: pulseGlow 2.2s ease-in-out infinite;
}

/* 持續暖黃呼吸光 */
@keyframes pulseGlow {
  0% {
    transform: scale(1);
    filter: brightness(1);
    box-shadow: 0 0 0 rgba(255, 210, 120, 0);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(1.2);
    box-shadow:
      0 0 18px rgba(255, 210, 120, 0.3),
      0 0 36px rgba(255, 190, 90, 0.1);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
    box-shadow: 0 0 0 rgba(255, 210, 120, 0);
  }
}

/* section01 遊戲介紹 / swiper */
.movie_slide {
  position: relative;
  width: min(1080px, 92vw);
  margin: 0 auto;
  overflow: visible;
}

.movie_slide-mask {
  position: relative;
  overflow: visible;
}

.movie_swiper {
  overflow: visible;
  padding: 18px 0 70px;
}

.movie_swiper .swiper-wrapper {
  align-items: center;
}

.movie_swiper .swiper-slide {
  width: clamp(280px, 80vw, 960px);
  position: relative;
  transform-origin: center center;
}

.movie_swiper .swiper-slide .img {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 960 / 540;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 10px 30px rgba(90, 72, 44, 0.6);
}

.movie_swiper .swiper-slide .img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--frame-url) center/100% 100% no-repeat;
  pointer-events: none;
  z-index: 2;
}

.swiper-button-prev,
.swiper-button-next {
  width: 72px;
  height: 72px;
  margin-top: -36px;
  top: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    opacity 0.2s ease;
}

.swiper-button-prev {
  left: -6px;
  background: var(--arrow-left) center/contain no-repeat;
}

.swiper-button-next {
  right: -6px;
  background: var(--arrow-right) center/contain no-repeat;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  transform: scale(1.15);
  filter: brightness(1.2);
}

.swiper-button-prev:active,
.swiper-button-next:active {
  transform: scale(0.92);
  filter: brightness(0.9);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: '';
}

/* hover效果 */
.download_list .btn:hover {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.04);
}

.download_list .btn:hover img {
  transform: scale(1.02);
}

/* 陰影效果 */
.download_list .btn:hover {
  border-radius: 12px;
}

.download_list .btn img {
  display: block;
  max-width: 320px;
  margin: 0 0.5rem;
  height: auto;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
  animation: floatImg 3s ease-in-out infinite;
}

.download_list .btn:nth-child(2) img {
  animation-delay: 0.2s;
}
.download_list .btn:nth-child(3) img {
  animation-delay: 0.4s;
}
.download_list .btn:nth-child(4) img {
  animation-delay: 0.6s;
}

@keyframes floatImg {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* 👇 重點：按壓效果 */
.download_list .btn:active {
  transform: translateY(1px) scale(1);
}

/* 讓圖片有點彈性 */
.download_list .btn:active img {
  transform: scale(1);
}

/* 放開時的「回彈感」 */
.download_list .btn {
  transition: transform 0.15s ease;
}

.download_list .btn:active {
  transition: transform 0.08s ease;
}

.notice_list {
  margin-top: 2rem;
}

.note,
.reward_note {
  color: #8c6b3d;
  font-size: 0.98rem;
}

.reward_note {
  margin-top: 1rem;
  text-align: center;
  padding-left: 0.25rem;
}

.movie_swiper .swiper-slide,
.movie_swiper .swiper-wrapper {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.movie_swiper .swiper-slide .img {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.movie_swiper .swiper-slide .img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  /* transform: translateZ(0);
  -webkit-transform: translateZ(0); */
}

/* =========================
   RWD
========================= */

@media screen and (max-width: 1600px) {
  .btn03 {
    position: relative;
    z-index: 10;
    width: 50%;
    max-width: 240px;
  }

  .download_list .btn img {
    display: block;
    max-width: 280px;
  }
}

@media screen and (max-width: 1200px) {
  #cover,
  #section01,
  #section02,
  #section03,
  #section04,
  #section05,
  #section06,
  #section07 {
    position: relative;
    width: 100%;
    min-height: auto;
    color: #fff;
    text-align: center;
    overflow: hidden;
  }

  .sec_title {
    margin: 1rem;
    width: 50%;
  }

  #cover {
    height: auto;
    min-height: fit-content;
  }

  .slogan_block {
    position: relative;
    width: 100%;
    right: 0;
    margin: 85% auto 15%;
  }

  .slogan img:nth-child(2) {
    width: 100%;
    margin-bottom: -13%;
  }
}

@media screen and (max-width: 992px) {
  #section01 .sec_content,
  #section03 .sec_content,
  #section04 .sec_content,
  #section05 .sec_content,
  #section06 .sec_content,
  #section07 .sec_content {
    width: 96%;
    /* padding: 2rem 0 4rem; */
  }

  .sec_title {
    margin: 1.5rem 0;
    font-size: 2rem;
    width: auto;
  }

  .sec_title img {
    width: 75%;
    height: auto;
    object-fit: contain;
    margin: -2rem 0;
  }

  #cover,
  #section01,
  #section02,
  #section03,
  #section04,
  #section05,
  #section06,
  #section07 {
    min-height: auto;
  }

  #cover {
    height: 90vh;
    min-height: auto;
    display: flex;
    align-items: flex-end;
  }

  .slogan_block {
    width: 80%;
    margin: 0 auto 20%;
    bottom: auto;
  }

  .slogan img:nth-child(2) {
    margin-bottom: 0;
  }

  .slogan img:nth-child(3) {
    width: 100%;
    margin-bottom: 2%;
    margin-top: -2%;
  }

  .download_list {
    width: 95%;
    gap: 0.5rem;
  }

  .download_list .btn img {
    display: block;
    max-width: 320px;
    height: auto;
    transition:
      transform 0.3s ease,
      filter 0.3s ease;
    animation: floatImg 3s ease-in-out infinite;
    margin: 0.5rem;
  }

  .movie_slide {
    width: min(880px, 95vw);
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 60px;
    height: 60px;
  }

  .rebate_example_item {
    padding: 1rem;
  }

  #section01 {
    margin-top: -30%;
  }
}

@media screen and (max-width: 768px) {
  /* --- 基本佈局與標題 --- */

  .sec_title {
    font-size: 1.8rem;
  }
  .sec_title img {
    width: 90%;
    margin: -2.5rem 0;
  }

  /* --- 下載清單與按鈕 --- */
  .download_list {
    flex-wrap: wrap;
    justify-content: center;
  }
  .download_list a {
    width: 55%;
  }
  .download_list .btn img {
    max-width: 380px;
  }

  /* --- 輪播與功能按鈕 --- */

  .movie_swiper {
    overflow: visible;
    padding: 18px 0 36px;
  }

  .movie_slide {
    width: 100vw;
  }
  .swiper-button-prev,
  .swiper-button-next {
    width: 45px;
    height: 45px;
    top: 50%;
  }
  .movie_swiper .swiper-slide .img {
    aspect-ratio: 960 / 540;
  }
}

@media (max-width: 576px) {
  #cover {
    background: url(../images/bg_cover_s.png);
    background-position: center top;
    background-size: auto 100%;
    display: flex;
    justify-content: center;
  }

  .slogan_block {
    width: 100%;
    margin-bottom: 45%;
  }

  .slogan img:nth-child(3) {
    width: 95%;
  }
}

@media (max-width: 375px) {
  .slogan_block {
    margin-bottom: 15%;
  }
}

#cover {
  background-repeat: no-repeat !important;
  background-position: center top !important;
  background-size: auto 100% !important;
}

@media screen and (max-width: 576px) {
  #cover {
    background-image: url('../images/bg_cover_s.png') !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-size: cover !important;
  }
}

/* =========================================================
   section01 預約好禮
   ========================================================= */
#section01 {
  min-height: 720px;
  margin-top: 1rem;
}

.sec01_content {
  width: min(1080px, 94vw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sec01_title {
  width: min(570px, 72vw);
  margin: -1.8rem auto -2.7rem;
  position: relative;
  z-index: 4;
  pointer-events: none;
}

.sec01_cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 50px);
  align-items: start;
}

.sec01_card {
  position: relative;
  min-height: 364px;
}

.sec01_card_bg {
  display: block;
  width: 100%;
  pointer-events: none;
}

.sec01_card_inner {
  position: absolute;
  inset: 0;
  padding: 4.25rem 2.05rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sec01_card_title01 {
  width: min(86%, 405px);
  margin-bottom: 0.7rem;
}

.sec01_card_subtitle {
  width: min(47%, 220px);
  margin-bottom: 1.05rem;
}

.sec01_reserve_box {
  width: 100%;
  display: grid;
  grid-template-columns: 44% 52%;
  gap: 4%;
  align-items: center;
}

.sec01_gift_wrap {
  display: flex;
  justify-content: center;
}

.sec01_gift01 {
  width: min(100%, 205px);
  filter: drop-shadow(0 0 14px rgba(244, 182, 69, 0.55));
}

.sec01_form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
}

.sec01_form select,
.sec01_form input {
  width: 100%;
  height: 37px;
  border: 2px solid rgba(122, 92, 54, 0.36);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: #6d604f;
  font-size: 1rem;
  padding: 0 0.75rem;
  box-shadow: inset 0 1px 4px rgba(80, 52, 22, 0.12);
}

.sec01_form select {
  appearance: auto;
}

.sec01_form input::placeholder {
  color: #978979;
}

.sec01_reserve_btn {
  width: min(188px, 88%);
  padding: 0;
  margin-top: 0.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.sec01_reserve_btn:hover,
.sec01_store_btn:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.sec01_reserve_btn:active,
.sec01_store_btn:active {
  transform: scale(0.96);
}

.sec01_card_title02 {
  width: min(82%, 380px);
  margin: 0.2rem 0 1rem;
}

.sec01_store_box {
  width: 100%;
  display: grid;
  grid-template-columns: 48% 43%;
  gap: 4%;
  align-items: center;
}

.sec01_gift02 {
  width: min(100%, 240px);
  /* margin-left: 0.8rem; */
  filter: drop-shadow(0 0 16px rgba(244, 182, 69, 0.55));
}

.sec01_store_links {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  align-items: center;
}

.sec01_store_btn {
  width: min(176px, 100%);
  display: block;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.sec01_iphone {
  width: min(735px, 72vw);
  margin: -1.05rem auto -0.9rem;
  position: relative;
  z-index: 5;
  transform: translateX(-17%);
  pointer-events: none;
}

.sec01_note {
  width: min(735px, 88vw);
  margin: 0 auto;
  color: #281c0f;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
  transform: translateX(0%);
  position: absolute;
  bottom: -3.5rem;
  left: 5%;
  font-weight: 900;
}

.sec01_card01 {
  position: relative;
}

.sec01_iphone {
  position: absolute;
  left: 50%;
  bottom: -70px; /* 往下壓多少自己微調 */
  transform: translateX(-50%);
  z-index: 5;
  width: 110%;

  animation: iphoneFloat 3s ease-in-out infinite;
}

.sec01_iphone img {
  filter: drop-shadow(0 0 10px rgba(255, 180, 60, 0.35)) drop-shadow(0 0 25px rgba(255, 180, 60, 0.25));

  animation: iphoneGlow 2.2s ease-in-out infinite;
}

@keyframes iphoneFloat {
  0% {
    transform: translateX(-50%) translateY(0px) scale(1);
  }

  50% {
    transform: translateX(-50%) translateY(-6px) scale(1.01);
  }

  100% {
    transform: translateX(-50%) translateY(0px) scale(1);
  }
}

@keyframes iphoneGlow {
  0% {
    filter: drop-shadow(0 0 8px rgba(255, 180, 60, 0.25)) drop-shadow(0 0 18px rgba(255, 180, 60, 0.15));

    brightness: 1;
  }

  50% {
    filter: drop-shadow(0 0 18px rgba(255, 210, 100, 0.55)) drop-shadow(0 0 40px rgba(255, 180, 60, 0.4));

    brightness: 1.08;
  }

  100% {
    filter: drop-shadow(0 0 8px rgba(255, 180, 60, 0.25)) drop-shadow(0 0 18px rgba(255, 180, 60, 0.15));

    brightness: 1;
  }
}
.sec01_login_area {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: stretch;
}

.sec01_login_title {
  margin-bottom: 0.2rem;
  color: #5b4327;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.sec01_login_method {
  height: 42px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 0.45rem;

  border: 2px solid rgba(122, 92, 54, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: #5b4327;

  padding: 0 0.7rem;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;

  box-shadow: inset 0 1px 4px rgba(80, 52, 22, 0.12);
  transition: 0.2s;
}

.sec01_login_method img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.sec01_login_method span {
  text-align: left;
  white-space: nowrap;
}

.sec01_login_method:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.is-hidden {
  display: none !important;
}

@media screen and (max-width: 576px) {
  .sec01_login_area {
    gap: 0.4rem;
  }

  .sec01_login_title {
    font-size: 0.9rem;
    margin-bottom: 0.05rem;
  }

  .sec01_login_method {
    height: 34px;
    grid-template-columns: 26px 1fr;
    gap: 0.35rem;
    padding: 0 0.45rem;
    font-size: 0.78rem;
    border-radius: 6px;
  }

  .sec01_login_method img {
    width: 22px;
    height: 22px;
  }

  .sec01_login_method span {
    white-space: nowrap;
    letter-spacing: 0;
  }
}

/* google機器人專用 */

@media screen and (max-width: 768px) {
  .sec01_reserve_box {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sec01_gift_wrap {
    order: 1;
  }

  .sec01_form,
  .sec01_login_area {
    order: 2;
    width: 100%;
  }

  .sec01_gift01 {
    width: min(180px, 62%);
  }

  .g-recaptcha {
    transform: scale(0.92);
    transform-origin: left top;
  }

  .sec01_form {
    overflow: hidden;
  }

  .g-rob {
    transform: scale(0.5);
    margin: -1.3rem;
  }
}

/* =========================================
   section01 下半段
========================================= */

.sec01_reserve_wrap {
  width: 100%;
  position: relative;
  /* margin-top: 6rem; */
}

/* 上方標題 */
.sec01_reserve_top {
  width: min(980px, 92%);
  margin: 0 0 -5rem 6rem;
  position: relative;
  z-index: 3;
}

.sec01_reserve_top img {
  display: block;
  width: 100%;
}

/* 主背景 */
.sec01_reserve_bg {
  width: min(1080px, 96%);
  margin: 0 auto;
  position: relative;

  background: url('../images/sec02_bg.png') center top / 100% 100% no-repeat;

  padding: 8rem 3rem 5rem;
}

/* 彩帶 */
.sec01_ribbons {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  pointer-events: none;
}

/* 三個獎勵 */
.sec01_reward_list {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: repeat(3, 1fr);

  /* gap: 2rem; */
  margin-top: -2.5rem;
}

.sec01_reward_item {
  position: relative;

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.sec01_reward_item:hover {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.sec01_scroll_bg {
  width: 100%;
  display: block;
}

.sec01_reward_inner {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding-top: 1rem;
}

.sec01_reward_title {
  width: 95%;
  animation: rewardPulse 3s ease-in-out infinite;
}

.sec01_reward_item {
  position: relative;
}

.sec01_finish_stamp {
  position: absolute;
  inset: 0;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none;
}

.sec01_finish_stamp img {
  width: 78%;
  transform: scale(1.8) rotate(-12deg);
  opacity: 0;
}

.sec01_reward_item.is-finished .sec01_finish_stamp img {
  animation: stampPop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}

@keyframes stampPop {
  0% {
    opacity: 0;
    transform: scale(2.2) rotate(-18deg);
    filter: blur(2px);
  }

  65% {
    opacity: 1;
    transform: scale(0.9) rotate(-8deg);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(-10deg);
  }
}

/* 目前預約人數 */
.sec01_people {
  width: min(500px, 92%);
  margin: -4rem auto 0;

  position: relative;
  z-index: 2;
}

.sec01_people img {
  width: 100%;
  display: block;
}

.sec01_people span {
  position: absolute;
  inset: 0;
  left: 40%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff2d2;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 2px;

  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);

  font-family: 'Noto Serif TC', serif;
}

/* 浮動效果 */
@keyframes rewardPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 210, 120, 0));
  }

  50% {
    transform: scale(1.05);

    filter: drop-shadow(0 0 12px rgba(255, 220, 120, 0.45)) drop-shadow(0 0 24px rgba(255, 180, 80, 0.25));
  }

  100% {
    transform: scale(1);

    filter: drop-shadow(0 0 0 rgba(255, 210, 120, 0));
  }
}

/* =========================================
   Tablet
========================================= */

@media screen and (max-width: 992px) {
  .sec01_reserve_bg {
    padding: 6rem 2rem 4rem;
  }

  .sec01_reward_list {
    gap: 1.2rem;
  }

  .sec01_people span {
    font-size: 2.2rem;
  }

  .sec01_reserve_top {
    margin: 0px auto -3rem;
  }
  .sec01_people {
    margin: -3rem auto 0;
  }

  .sec01_people span {
    font-size: 2rem;
  }

  .sec01_note {
    left: 0%;
  }

  .sec01_card_bg {
    display: block;
    width: 90%;
    pointer-events: none;
    margin: auto;
  }

  .sec01_reserve_box {
    width: 90%;
    display: grid;
    grid-template-columns: 44% 52%;
    gap: 4%;
    align-items: center;
  }
}

/* =========================================
   Mobile
========================================= */

@media screen and (max-width: 768px) {
  .sec01_reserve_wrap {
    margin-top: 0rem;
    margin-bottom: 2rem;
  }

  /* 手機版標題換圖 */
  .sec01_reserve_top {
    width: 95%;
    margin: 0 auto -0.5rem;

    display: flex;
    justify-content: center;
  }

  .sec01_reserve_top img {
    content: url('../images/sec02_top_xs.png');
    width: min(620px, 100%);
  }

  /* 主框 */
  .sec01_reserve_bg {
    width: 100%;
    padding: 4rem 1rem 3rem;

    background: url('../images/sec02_bg_xs.png') center top / 100% 100% no-repeat;
  }

  /* 手機版排列：
     第一排2個
     第二排1個置中
  */
  .sec01_reward_list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;

    justify-items: center;
    align-items: start;

    margin-top: 0;
  }

  .sec01_reward_item {
    width: 100%;
    max-width: 240px;
  }

  /* 第三個置中 */
  .sec01_reward_item:nth-child(3) {
    grid-column: 1 / span 2;
    width: 52%;
  }

  .sec01_reward_title {
    width: 100%;
  }
}

/* =========================================
   Small Mobile
========================================= */

@media screen and (max-width: 480px) {
  .sec01_reserve_bg {
    padding: 2rem 0.6rem 2rem;
  }

  .sec01_reward_list {
    gap: 0.6rem;
    padding: 1rem;
  }

  .sec01_reward_item {
    max-width: 180px;
  }

  .sec01_reward_item:nth-child(3) {
    width: 50%;
  }

  .sec01_people {
    margin-top: -1rem;
  }
  .sec01_reward_inner {
    padding-top: 0.2rem;
  }

  /* 人數 */
  .sec01_people {
    width: 95%;
    margin-top: -2rem;
  }

  .sec01_people span {
    left: 38%;
    font-size: 1.8rem;
    letter-spacing: 1px;
  }
}
@media screen and (max-width: 1200px) {
  #section01 {
    padding-top: 2rem;
    min-height: auto;
  }
}

@media screen and (max-width: 992px) {
  .sec01_cards {
    grid-template-columns: 1fr;
    gap: 1.3rem;
    width: min(620px, 94vw);
  }
  .sec01_card01 {
    position: relative;
    margin-bottom: 5rem;
  }
  .sec01_title {
    width: min(520px, 90vw);
    margin-bottom: -2.2rem;
  }
  .sec01_card_inner {
    padding: 4rem 1.8rem 2rem;
  }
  .sec01_iphone,
  .sec01_note {
    transform: none;
  }
  .sec01_iphone {
    width: min(710px, 92vw);
    margin-top: 0.2rem;
  }
  .sec01_note {
    text-align: center;
  }
}

@media screen and (max-width: 576px) {
  #section01 {
    padding: 0;
    margin-top: -30%;
  }

  .sec01_cards {
    width: 100%;
    gap: 0.9rem;
  }
  .sec01_card {
    min-height: auto;
  }
  .sec01_card_inner {
    padding: 4.35rem 2.5rem 1.35rem;
    padding-top: 4.1rem;
  }
  .sec01_card_title01 {
    width: 88%;
    margin-bottom: 0.45rem;
  }
  .sec01_card_subtitle {
    width: 48%;
    margin-bottom: 0.45rem;
  }

  .sec01_reserve_box {
    grid-template-columns: 42% 54%;
    gap: 2%;
  }
  .sec01_gift01 {
    width: 96%;
  }
  .sec01_form {
    gap: 0.4rem;
  }
  .sec01_form select,
  .sec01_form input {
    height: 31px;
    font-size: 0.86rem;
    padding: 0 0.55rem;
  }
  .sec01_reserve_btn {
    width: 82%;
    margin-top: 0.35rem;
  }
  .sec01_card_title02 {
    width: 84%;
    margin-bottom: 0.35rem;
  }
  .sec01_store_box {
    grid-template-columns: 48% 46%;
    gap: 1%;
  }
  .sec01_gift02 {
    width: 106%;
    margin-left: -0.2rem;
  }
  .sec01_store_links {
    gap: 0.55rem;
  }
  .sec01_store_btn {
    width: 92%;
  }
  .sec01_iphone {
    width: 100%;
    bottom: -18%;
  }
  .sec01_note {
    font-size: 0.72rem;
    width: 92vw;
  }
}

@media screen and (max-width: 390px) {
  .sec01_form select,
  .sec01_form input {
    height: 28px;
    font-size: 0.78rem;
  }
  .sec01_store_links {
    gap: 0.4rem;
  }

  #section01 {
    padding: 0;
    margin-top: -10%;
  }
}

/* =========================================
   section03 一蹴千金
========================================= */

#section03 {
  width: 100%;
  min-height: 900px;
  padding: 6rem 0 2rem 0;
  position: relative;
}

#section03 .sec_content {
  width: min(1180px, 94vw);
  margin: 0 auto;
  text-align: center;
}

.sec03_rule {
  width: 90%;
  margin: 1rem auto 1rem;
  color: #3b2617;
  font-size: 1.2rem;
  line-height: 1.8;
  font-weight: 500;
}

.sec03_main {
  display: grid;
  grid-template-columns: 46% 54%;
  gap: 2rem;
  align-items: center;
  margin-top: 1rem;
}

/* 左邊小遊戲 */
.sec03_ball_area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sec03_ball_game {
  position: relative;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 780 / 1105;
  overflow: hidden;
  border-radius: 12px;
}

.sec03_ball_bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sec03_ball_door {
  position: absolute;
  top: 3%;
  left: 50%;
  width: 36%;
  transform: translateX(-50%);
  z-index: 3;
}

.sec03_path_svg {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  z-index: 10;
  pointer-events: none;
}

.sec03_path_svg path {
  fill: none;
  stroke: #ffd94a;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2 1.8;
  filter: drop-shadow(0 0 4px rgba(255, 230, 90, 0.9));
}

.sec03_player {
  position: absolute;
  left: 42%;
  bottom: 5%;
  width: 18%;
  z-index: 8;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sec03_lord {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 18%;
  z-index: 30;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.45));
}

.sec03_boss {
  position: absolute;
  width: 18%;
  z-index: 6;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45));
}

.boss01 {
  top: 12%;
  left: 42%;
  width: 22%;
}

.boss02 {
  top: 24%;
  left: 18%;
  animation: bossMoveX 1.4s ease-in-out infinite alternate;
}

.boss03 {
  top: 36%;
  right: 17%;
  animation: bossMoveX 1s ease-in-out infinite alternate-reverse;
}

.boss04 {
  top: 55%;
  left: 38%;
  animation: bossMoveX 1.8s ease-in-out infinite alternate;
}

@keyframes bossMoveX {
  from {
    transform: translateX(-60px);
  }
  to {
    transform: translateX(60px);
  }
}

.boss02,
.boss03,
.boss04 {
  animation: none;
}

/* 右邊轉盤 */
.sec03_roll_area {
  position: relative;
}

.sec03_roll_title {
  width: min(520px, 90%);
  margin: 0 auto -3rem;
  position: relative;
  z-index: 3;
}

.sec03_roll_box {
  position: relative;
  width: 100%;
  max-width: 530px;
  margin: 0 auto;
}

.sec03_roll_bg {
  width: 100%;
  display: block;
}

.sec03_roll_grid {
  position: absolute;
  inset: 8% 7% 9%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2%;
  z-index: 2;
}

.roll_item {
  position: relative;
  background: url('../images/sec03_roll_bgs.png') center / 100% 100% no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;

  filter: grayscale(0) brightness(1);
  transition: 0.12s;
}

.roll_item img {
  width: 100%;
}

.sec03_roll_grid.is-rolling .roll_item {
  filter: grayscale(1) brightness(0.45);
}

.sec03_roll_grid.is-rolling .roll_item.active {
  filter: grayscale(0) brightness(1.25) drop-shadow(0 0 16px rgba(255, 220, 100, 0.85));

  transform: scale(1.04);
  z-index: 3;
}

.sec03_roll_grid.is-rolling .roll_center {
  filter: grayscale(0) brightness(1);
}

.roll_item.active {
  filter: grayscale(0) brightness(1.25) drop-shadow(0 0 16px rgba(255, 220, 100, 0.85));
  transform: scale(1.04);
  z-index: 3;
}

.roll_center {
  filter: grayscale(0) brightness(1);
  pointer-events: none;
}

.sec03_result {
  min-height: 0rem;
  margin-top: 1rem;
  color: #5a2711;
  font-size: 1.25rem;
  font-weight: 800;
}

.sec03_ball_btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
}

.sec03_reset_btn,
.sec03_action_btn {
  width: min(170px, 40vw);
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: 0.25s;
}

.sec03_reset_btn:hover,
.sec03_action_btn:hover {
  transform: scale(1.05);
  filter: brightness(1.12);
}

.sec03_ball_game img,
.sec03_ball_game svg {
  -webkit-user-drag: none;
  user-select: none;
}

.sec03_boss,
.sec03_ball_bg,
.sec03_ball_door {
  pointer-events: none;
}

.sec03_done_mask {
  position: absolute;
  inset: 0;
  z-index: 80;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.58);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: 0.3s ease;
}

.sec03_done_mask.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sec03_done_mask {
  position: absolute;
  inset: 0;
  z-index: 80;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.62);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: 0.3s ease;
}

.sec03_done_mask.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sec03_done_img {
  width: min(92%, 560px);
  max-width: 92%;
  height: auto;

  filter: drop-shadow(0 0 16px rgba(255, 210, 90, 0.55)) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.75));

  animation: sec03DonePop 0.45s ease both;
}

@keyframes sec03DonePop {
  0% {
    opacity: 0;
    transform: scale(0.86) rotate(-4deg);
  }

  70% {
    opacity: 1;
    transform: scale(1.04) rotate(-2deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(-2deg);
  }
}

/* Mobile */
@media screen and (max-width: 900px) {
  .sec03_main {
    grid-template-columns: 1fr;
  }

  .sec03_ball_game {
    max-width: 390px;
  }

  .sec03_roll_box {
    max-width: 430px;
  }

  .sec03_roll_title {
    width: min(520px, 90%);
    margin: 0 auto -2.5rem;
    position: relative;
    z-index: 3;
  }
}
@media screen and (max-width: 576px) {
  #section03 {
    padding: 0rem 0;
  }

  .sec03_ball_btns {
    width: 300px;
    height: 60px;
  }

  .sec03_reset_btn,
  .sec03_action_btn {
    width: 140px;
  }

  .sec03_rule {
    margin: 0rem auto 1rem;
    font-size: 1rem;
  }
}

/* =========================================
   section04 邀請戰友
========================================= */

#section04 {
  padding: 4rem 0 3rem;
}

.sec04_wrap {
  position: relative;
  width: min(800px, 96vw);
  margin: 0 auto;
  left: -4%;
}

.sec04_bg {
  width: 100%;
  display: block;
}

.sec04_title_top {
  position: absolute;
  top: 0%;
  left: 10%;
  width: 80%;
  z-index: 3;
  filter: drop-shadow(0 4px 10px rgba(60, 30, 10, 0.35));
  z-index: 20;
}

.sec04_ch {
  position: absolute;
  right: -27%;
  bottom: -13%;
  width: 65%;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 12px 18px rgba(70, 40, 20, 0.28));
}

.sec04_rewards {
  position: absolute;
  top: 18%;
  left: 11%;
  width: 78%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  z-index: 5;
}

.sec04_reward {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 -3.5rem;
}

.sec04_invite {
  width: 45%;
  margin-bottom: 0.2rem;
}

.sec04_gift {
  width: 80%;
  animation: sec04GiftPulse 2.8s ease-in-out infinite;
  margin-top: -3.5rem;
}

.sec04_reward:nth-child(2) .sec04_gift {
  animation-delay: 0.2s;
}

.sec04_reward:nth-child(3) .sec04_gift {
  animation-delay: 0.4s;
}

@keyframes sec04GiftPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 210, 100, 0));
  }

  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 12px rgba(255, 220, 130, 0.45)) drop-shadow(0 0 24px rgba(255, 190, 80, 0.25));
  }
}

.sec04_link_box {
  position: absolute;
  left: 18%;
  bottom: 16%;
  width: 60%;
  z-index: 6;
  display: flex;
  grid-template-columns: 1fr 32%;
  gap: 4%;
  align-items: center;
}

.sec04_link_box input {
  width: 100%;
  height: 42px;
  border: 2px solid rgba(130, 98, 46, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #8a7965;
  text-align: center;
  font-size: 1rem;
  font-family: serif;
}

.sec04_link_box button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: 0.2s;
}

.sec04_link_box button:hover {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.sec04_link_box button:active {
  transform: scale(0.96);
}

/* mobile */

@media screen and (max-width: 992px) {
  .sec04_wrap {
    width: min(700px, 96vw);
  }
}

@media screen and (max-width: 768px) {
  #section04 {
    padding: 0px 0px 3rem 0px;
  }

  .sec04_wrap {
    width: 100%;
    left: 0;
  }

  .sec04_title_top {
    top: -6%;
    left: 0%;
    width: 100%;
  }

  .sec04_ch {
    right: -18%;
    bottom: 0;
    width: 58%;
    opacity: 0.95;
    display: none;
  }

  .sec04_rewards {
    top: 16%;
    left: 10%;
    width: 80%;
    gap: 1%;
  }

  .sec04_gift {
    margin-top: -2rem;
  }

  .sec04_invite {
    width: 50%;
  }

  .sec04_link_box {
    left: 10%;
    bottom: -11%;
    width: 80%;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .sec04_link_box input {
    height: 34px;
    font-size: 0.82rem;
  }

  .sec04_link_box button {
    width: 46%;
    margin: 0 auto;
  }
}

@media screen and (max-width: 576px) {
  .sec04_invite {
    width: 30%;
  }

  .sec04_gift {
    margin-top: -1.5rem;
    width: 60%;
  }

  .sec04_rewards {
    top: 20%;
    left: 10%;
    width: 80%;
    gap: 1%;
  }
}

/* =========================================
   section05 預創聯盟
========================================= */

#section05 {
  padding: 4rem 0 5rem;
}

.sec05_wrap {
  position: relative;
  width: min(1100px, 96vw);
  margin: 0 auto;
}

/* 主角 */

.sec05_ch {
  position: absolute;
  left: -5%;
  bottom: -14%;
  width: 75%;
  z-index: -1;
  pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(50, 25, 10, 0.35));
}

/* 聚義令 */

.sec05_gift {
  position: absolute;
  right: 12%;
  top: -28%;
  width: 20%;
  z-index: 6;
  animation: sec05GiftFloat 3s ease-in-out infinite;
}

@keyframes sec05GiftFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.04);
  }
}

/* 上方按鈕 */

.sec05_btns {
  display: flex;
  justify-content: center;
  gap: 1.4rem;

  margin: 0rem 0 1rem 7rem;
}

.sec05_btn {
  width: 150px;

  border: 0;
  background: none;
  padding: 0;

  cursor: pointer;

  transition: 0.2s;
}

.sec05_btn:hover {
  transform: scale(1.05);
  filter: brightness(1.08);
}

/* 聯盟面板 */

.sec05_panel {
  position: relative;

  width: min(720px, 100%);
  margin: 0 auto;

  background: url('../images/sec05_bg.png') center center / 100% 100% no-repeat;

  padding: 3rem 4.5rem 4rem;

  z-index: 7;
  left: 5%;
}

/* 搜尋 */

.sec05_search {
  width: min(420px, 90%);
  height: 42px;
  margin: 0 auto 1.5rem;

  display: grid;
  grid-template-columns: 1fr 46px;
  align-items: center;

  background: rgba(38, 12, 8, 0.72);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(186, 160, 133, 0.2);
}

.sec05_search input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;

  color: #f8e6b5;
  text-align: center;
  font-weight: 700;
  line-height: 1;
  padding: 0 0.5rem;
}

.sec05_search input::placeholder {
  color: #d8bc87;
}

.sec05_search button {
  width: 46px;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  background: transparent;
  color: #ddb15c;

  font-size: 1.8rem;
  line-height: 1;

  margin: 0;
  padding: 0;
}

/* 列表 */

.sec05_list {
  list-style: none;
  padding: 0 !important;
  margin: 0;
  min-height: 221.34px;
}

.sec05_list li {
  display: grid;
  grid-template-columns:
    1fr
    70px
    110px
    110px;

  align-items: center;

  gap: 0.8rem;

  margin: auto;
  margin-bottom: 0.9rem;

  color: #f8e6b5;
  font-size: 1.2rem;
  font-weight: 500;
  max-width: 95%;
}

.sec05_list span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.sec05_list b {
  color: #f6d58b;
  font-family: Georgia, serif;
}

.sec05_list button {
  border: 0;
  background: none;
  padding: 0;

  cursor: pointer;

  transition: 0.2s;
}

.sec05_list button:hover {
  transform: scale(1.05);
  filter: brightness(1.08);
}

/* 分頁 */

.sec05_pages {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.sec05_page_btn {
  min-width: 28px;
  height: 28px;

  border: 0;
  background: transparent;

  color: #ead49b;
  font-size: 1rem;

  cursor: pointer;
  transition: 0.2s;
}

.sec05_page_btn:hover {
  color: #fff3c8;
  transform: translateY(-1px);
}

.sec05_page_btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* modal */
.sec05_modal_form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
}

.sec05_modal_form label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}

.sec05_modal_form span {
  color: #5b4327;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding-top: 0.55rem;
  text-align: right;
  font-family: 'Noto Serif TC';
}

.sec05_modal_form input,
.sec05_modal_form textarea {
  width: 100%;
  border: 2px solid rgba(122, 92, 54, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #6d604f;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.65rem 0.85rem;
  box-shadow: inset 0 1px 4px rgba(80, 52, 22, 0.12);
}

.sec05_modal_form input::placeholder,
.sec05_modal_form textarea::placeholder {
  color: #9b8a75;
}

.sec05_modal_form input[readonly],
.sec05_modal_form textarea[readonly] {
  background: rgba(255, 248, 235, 0.72);
}

.sec05_modal_form textarea {
  min-height: 96px;
  resize: none;
  line-height: 1.6;
}

.sec05_modal_form .game_result_btn {
  display: none;
}

.sec05_modal_submit {
  width: 150px;
  margin: 0.7rem auto 0;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: #5b4327;
  font-size: 1.25rem;
  font-weight: 900;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  border: 1px solid #8b6a38;
  background: linear-gradient(to bottom, #d8bd83 0%, #a77c3e 100%);
  color: #fffdf8;
  box-shadow:
    0 4px 0 #6f4d24,
    0 8px 18px rgba(80, 50, 20, 0.28);
}

.sec05_modal_submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.sec05_reward_modal {
  text-align: center;
}

.sec05_reward_modal_gift {
  width: 92px;
  margin: -0.5rem auto 0.8rem;
  display: block;
  filter: drop-shadow(0 0 12px rgba(255, 210, 90, 0.45)) drop-shadow(0 6px 10px rgba(70, 40, 20, 0.25));
  /* animation: sec05GiftFloat 3s ease-in-out infinite; */
}

.sec05_reward_intro {
  margin: 0 0 1rem;
  color: #5b4327;
  font-size: 1.05rem;
  font-weight: 900;
}

.sec05_reward_table {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(139, 106, 56, 0.45);
  border-radius: 12px;
  background: rgba(255, 248, 235, 0.7);
  box-shadow: inset 0 1px 4px rgba(80, 52, 22, 0.12);
}

.sec05_reward_table > div {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
}

.sec05_reward_table b,
.sec05_reward_table span {
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid rgba(139, 106, 56, 0.25);
  border-right: 1px solid rgba(139, 106, 56, 0.25);
  color: #6b4a28;
  font-weight: 900;
}

.sec05_reward_table b:last-child,
.sec05_reward_table span:last-child {
  border-right: 0;
}

.sec05_reward_table > div:first-child {
  background: linear-gradient(to bottom, #d8bd83 0%, #a77c3e 100%);
}

.sec05_reward_table > div:first-child b {
  color: #fffdf8;
  text-shadow: 0 1px 2px rgba(60, 30, 10, 0.35);
}

.sec05_reward_table > div:last-child span {
  border-bottom: 0;
}

.sec05_reward_note {
  margin: 1rem 0 0;
  color: #7a5c35;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 800;
}
@media screen and (max-width: 576px) {
  .sec05_modal_form label {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .sec05_modal_form span {
    text-align: left;
    padding-top: 0;
  }
}
/* 手機 */

@media screen and (max-width: 900px) {
  #section05 {
    padding: 0rem 0 0rem;
  }

  .sec05_ch {
    position: absolute;
    left: -13%;
    bottom: 34%;
    width: 75%;
    z-index: -17;
    pointer-events: none;
    filter: drop-shadow(0 14px 18px rgba(50, 25, 10, 0.35));
  }

  .sec05_gift {
    right: 0;
    top: -21%;
    width: 24%;
  }

  .sec05_btns {
    gap: 0.8rem;
    margin: 0rem 0 1rem;
  }

  .sec05_btn {
    width: 120px;
  }

  .sec05_panel {
    width: 100%;
    padding: 2.5rem 2rem 3.5rem;
    min-height: auto;
    background-size: 100% 100%;
    left: 0;
  }

  .sec05_search {
    width: 86%;
    height: 34px;
    grid-template-columns: 1fr 38px;
  }

  .sec05_search button {
    width: 38px;
    font-size: 2rem;
  }

  .sec05_search input {
    font-size: 0.9rem;
  }

  .sec05_list {
    min-height: 206.11px;
  }

  .sec05_list li {
    grid-template-columns: 1fr 52px 100px;
    max-width: 90%;

    gap: 0.5rem;

    font-size: 1rem;
  }

  .sec05_pages {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 576px) {
  #section05 {
    padding: 0rem 0 0rem;
  }

  .sec05_ch {
    position: absolute;
    left: -13%;
    bottom: 62%;
    width: 75%;
    z-index: -17;
    pointer-events: none;
    filter: drop-shadow(0 14px 18px rgba(50, 25, 10, 0.35));
  }
}

/* =========================================
   section06 社群連結
========================================= */

.sec06_community {
  width: min(780px, 92vw);
  margin: -2rem auto 0;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.sec06_community_card {
  display: block;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.sec06_community_card:hover {
  transform: translateY(-6px) scale(1.03);
  filter: brightness(1.08) drop-shadow(0 8px 16px rgba(90, 60, 30, 0.28));
}

.sec06_community_card:active {
  transform: scale(0.97);
}

.sec06_community_card img {
  display: block;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .sec06_community {
    width: min(430px, 92vw);
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: -1rem;
  }

  .sec05_list li {
    max-width: 100%;
  }
}

/* =========================================
   section07 注意事項
========================================= */

#section07 {
  position: relative;
  padding: 3rem 0 5rem 0;
  overflow: hidden;
}

.sec07_wrap {
  position: relative;

  width: min(1100px, 96vw);

  margin: 0 auto;

  /* background: url('../images/image.png') center top / 100% 100% no-repeat; */
}

.sec07_text {
  position: relative;
  z-index: 3;

  width: 70%;

  text-align: left;
}

.sec07_text ol {
  margin: 0;
  padding-left: 1.4rem !important;
}

.sec07_text li {
  color: #3f2c1d;

  font-size: 1rem;
  line-height: 2;

  margin-bottom: 0.5rem;

  font-weight: 700;
}

/* 武將圖 */

.sec07_ch {
  position: fixed;
  right: 0%;
  bottom: 226px;
  width: 56%;
  z-index: -2;
  pointer-events: none;
}

.sec07_ch img {
  display: block;
  width: 100%;
}

/* 手機 */

@media screen and (max-width: 992px) {
  #section07 {
    padding: 1rem 0 0;
  }

  .sec07_wrap {
    min-height: auto;

    /* background: rgba(255, 255, 255, 0.72); */

    border-radius: 24px;

    padding-bottom: 2rem;
  }

  .sec07_text {
    width: 100%;

    padding: 2rem 1.5rem 1rem;
  }

  .sec07_text li {
    font-size: 0.92rem;
    line-height: 1.8;
  }

  .sec07_ch {
    position: relative;

    right: auto;
    bottom: auto;

    width: 90%;

    margin: 1rem auto -2rem;
  }
}

@media screen and (max-width: 576px) {
  .sec07_text {
    padding: 1.5rem 1rem 1rem;
  }

  .sec07_text li {
    font-size: 0.85rem;
    line-height: 1.7;
  }

  .sec07_ch {
    width: 100%;
    margin-bottom: -3rem;
    display: none;
  }
}
/* =========================================
   遊戲 Modal
========================================= */
/* 遊戲結果彈窗 */
.game_result_modal {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.62);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: 0.28s ease;
  z-index: 99999;
}

.game_result_modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.game_result_box {
  position: relative;
  width: min(460px, calc(100% - 32px));

  padding: 2.5rem 1.5rem 1.7rem;
  text-align: center;

  color: #4a3b28;

  border: 2px solid #c8ab76;
  border-radius: 22px;

  background:
    linear-gradient(rgba(255, 248, 235, 0.94), rgba(255, 248, 235, 0.94)),
    url('../images/table_bg.png') center / 100% 100% no-repeat;

  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.45) inset,
    0 0 24px rgba(190, 150, 80, 0.45),
    0 18px 42px rgba(50, 35, 18, 0.45);

  transform: translateY(18px) scale(0.96);
  transition: 0.28s ease;

  overflow-x: hidden;
  overflow-y: auto;

  max-height: 90vh;

  scrollbar-width: thin;
  scrollbar-color: #c8ab76 rgba(255, 255, 255, 0.08);
}

/* Chrome / Edge / Safari */
.game_result_box::-webkit-scrollbar {
  width: 8px;
}

.game_result_box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.game_result_box::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #f7d98b, #c8ab76);

  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.game_result_box::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #ffe7a8, #d9b57a);
}

.game_result_modal.show .game_result_box {
  transform: translateY(0) scale(1);
}

.game_result_title {
  font-family: 'Noto Serif TC', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  color: #5b4327;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.7);
}

.game_result_title::after {
  content: '';
  display: block;
  width: 72%;
  height: 1px;
  margin: 1rem auto 1.2rem;
  background: linear-gradient(to right, transparent, #b79a66, transparent);
}

.game_result_text {
  margin: 0 0 1.6rem;
  color: #6b5a45;
  font-size: 1.08rem;
  line-height: 1.8;
  font-weight: 500;
}

.game_result_btn {
  min-width: 150px;
  padding: 0.65rem 1.8rem;

  border: 1px solid #8b6a38;
  border-radius: 999px;

  background: linear-gradient(to bottom, #d8bd83 0%, #a77c3e 100%);

  color: #fffdf8;
  font-weight: 700;
  letter-spacing: 0.08em;

  box-shadow:
    0 4px 0 #6f4d24,
    0 8px 18px rgba(80, 50, 20, 0.28);

  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease;
  justify-content: center;
}

.game_result_btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.game_result_btn:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #6f4d24,
    0 5px 12px rgba(80, 50, 20, 0.24);
}

.game_result_close {
  position: absolute;
  top: 14px;
  right: 14px;

  width: 28px;
  height: 28px;

  border: 0;
  background: transparent;

  color: #5b4327;
  font-size: 1.6rem;
  line-height: 1;

  opacity: 0.75;
  cursor: pointer;
}

.game_result_close:hover {
  opacity: 1;
}

/* 成功：淡金光 */
.game_result_modal.success .game_result_box {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.45) inset,
    0 0 28px rgba(232, 190, 92, 0.5),
    0 18px 42px rgba(50, 35, 18, 0.45);
}

/* 失敗：只微微偏紅，不粗獷 */
.game_result_modal.fail .game_result_title {
  color: #7a3d2f;
}

.game_result_modal.fail .game_result_box {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.45) inset,
    0 0 22px rgba(160, 90, 70, 0.26),
    0 18px 42px rgba(50, 35, 18, 0.45);
}

@media screen and (max-width: 576px) {
  .game_result_box {
    padding: 2.6rem 1.4rem 2rem;
  }

  .game_result_title {
    font-size: 1.7rem;
  }

  .game_result_text {
    font-size: 1rem;
  }

  .game_result_box {
    max-height: 70vh;
  }
}

/* =========================================
   section01 預約成功 modal
========================================= */

.sec01_success_modal {
  text-align: center;
}

.sec01_success_box {
  width: 72%;
  max-width: 320px;
  display: block;
  margin: -1rem auto 0.5rem;
}

.sec01_success_text {
  color: #5b4327;
}

.sec01_success_text p {
  margin: 0;
  line-height: 1.9;
}

.sec01_success_text .main {
  font-size: 1.35rem;
  font-weight: 700;

  color: #8b5a1f;

  margin-bottom: 0.8rem;
}

.sec01_success_text .sub {
  margin-top: 0.5rem;
}

.sec01_success_text .reward {
  font-size: 1.08rem;
  font-weight: 700;
}

.sec01_success_text span {
  color: #b97b22;
  font-weight: 700;

  text-shadow: 0 0 8px rgba(255, 220, 120, 0.45);
}

.sec01_success_line {
  width: 72%;
  height: 1px;

  margin: 1rem auto;

  background: linear-gradient(to right, transparent, #caa15d, transparent);
}

/* 手機 */

@media screen and (max-width: 576px) {
  .sec01_success_box {
    width: 82%;
  }

  .sec01_success_text .main {
    font-size: 1.15rem;
  }

  .sec01_success_text p {
    font-size: 0.95rem;
    line-height: 1.8;
  }
}

/* =========================================
   section01 電話格式錯誤
========================================= */

.sec01_phone_error {
  text-align: center;
}

.sec01_phone_error p {
  margin: 0;
  line-height: 2;

  color: #5d4630;
  font-size: 1.02rem;
}

.sec01_phone_error span {
  display: inline-block;

  padding: 0 0.2em;

  color: #c98621;
  font-weight: 700;

  text-shadow: 0 0 10px rgba(255, 210, 110, 0.45);
}

/* =========================================
   section03 完成任務Modal
========================================= */

.sec03_reward_modal {
  text-align: center;
}

.sec03_reward_box {
  width: 68%;
  max-width: 260px;
  display: block;
  margin: -0.5rem auto -1rem;
}

.sec03_reward_amount {
  /* margin-bottom: 0.8rem; */
  color: #5b4327;
  font-size: 1.35rem;
  font-weight: 900;
}

.sec03_reward_amount span {
  color: #c7811f;
  font-size: 2.4rem;
  font-family: Georgia, serif;
  text-shadow: 0 0 10px rgba(255, 220, 120, 0.5);
}

.sec03_reward_modal p {
  margin: 0;
  color: #5b4327;
  font-size: 1.02rem;
  line-height: 1.85;
  font-weight: 700;
}

/* =========================================
   領取獎勵 Modal
========================================= */

/* 獎勵查詢專用 modal */

.reward_float_btn {
  position: fixed;
  right: 1.5rem;
  bottom: 16rem;
  z-index: 10020;

  width: min(180px, 26vw);

  border: 0;
  background: none;
  padding: 0;

  cursor: pointer;

  animation: rewardFloatBtn 2.4s ease-in-out infinite;
}

.reward_float_btn:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}

@keyframes rewardFloatBtn {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.reward_float_btn {
  width: min(160px, 26vw);
}

@media screen and (max-width: 576px) {
  .reward_float_btn {
    right: 0.6rem;
    width: 130px;
    bottom: 21rem;
  }
}

/* 獎勵查詢 modal */

.reward_query_modal {
  text-align: center;
}

.reward_query_account {
  margin-bottom: 0.5rem;
  /* padding: 0.65rem 1rem; */

  /* border: 1px solid rgba(139, 106, 56, 0.35); */
  /* border-radius: 10px; */

  /* background: rgba(255, 248, 235, 0.72); */

  color: #5b4327;
  font-weight: 900;
}

.reward_query_list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.reward_query_item {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 0.8rem;
  align-items: center;
}

.reward_query_name {
  padding: 0.7rem 0.8rem;

  border: 2px solid rgba(122, 92, 54, 0.36);
  border-radius: 8px;

  background: rgba(255, 255, 255, 0.78);

  color: #5b4327;
  font-weight: 900;
}

.reward_query_claim {
  border: 0;
  border-radius: 999px;

  padding: 0.58rem 1rem;

  background: linear-gradient(to bottom, #d8bd83 0%, #a77c3e 100%);
  color: #fffdf8;

  font-weight: 900;

  box-shadow:
    0 4px 0 #6f4d24,
    0 8px 18px rgba(80, 50, 20, 0.28);

  cursor: pointer;
}

.reward_query_note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;

  border-radius: 12px;
  background: rgba(91, 67, 39, 0.08);

  color: #5b4327;
  font-size: 0.8rem;
  line-height: 1.5;
  font-weight: 700;
  text-align: left;
}

.reward_select_modal {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.reward_select_modal select {
  width: 100%;
  height: 44px;

  border: 2px solid rgba(122, 92, 54, 0.36);
  border-radius: 8px;

  background: rgba(255, 255, 255, 0.78);
  color: #6d604f;

  font-weight: 900;
  text-align: center;
  padding: 0 0.8rem;
}

@media screen and (max-width: 576px) {
  .reward_query_item {
    grid-template-columns: 1fr 76px;
    gap: 0.5rem;
  }

  .reward_query_name {
    font-size: 0.88rem;
    padding: 0.6rem 0.5rem;
  }

  .reward_query_claim {
    font-size: 0.9rem;
    padding: 0.5rem 0.6rem;
  }
}

/* =========================================
   任何圖片加 finished 自動完成蓋章
========================================= */

/* 任意圖片容器加 finished 後，蓋完成章 */
/* .finished {
  position: relative;
}

.finished::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 20;

  background: url('../images/sec02_gift_finish.png') center / 50% 50% no-repeat;
  background-position-x: right;
  background-position-y: bottom;

  pointer-events: none;

  opacity: 0;
  transform: scale(1.8) rotate(-12deg);

  animation: finishStampPop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
} */

.finished {
  position: relative;
}

.finished::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 20;

  background: url('../images/sec02_gift_finish.png') center / 85% 85% no-repeat;
  background-position-x: center;
  background-position-y: top;
  pointer-events: none;

  opacity: 0;
  transform: scale(1.8) rotate(-12deg);

  animation: finishStampPop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}

.sec04_reward.finished::after {
  background: url('../images/sec02_gift_finish.png') center / 75% 85% no-repeat;
}

@keyframes finishStampPop {
  0% {
    opacity: 0;
    transform: scale(2.2) rotate(-18deg);
    filter: blur(2px);
  }

  65% {
    opacity: 1;
    transform: scale(0.9) rotate(-8deg);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(-10deg);
  }
}

@media screen and (max-width: 768px) {
  .sec04_reward.finished::after {
    background: url('../images/sec02_gift_finish.png') center / 65% 85% no-repeat;
  }
}

/* =========================================
   調整奇怪尺寸 LINE、FB cover 角色帥臉不要被擋
========================================= */

/* 手機或平板橫版時才生效 */
@media screen and (max-width: 1024px) and (orientation: landscape) {
  #cover,
  #section01,
  #section02,
  #section03 {
    height: auto;
    min-height: 100vh;
  }
  .slogan_block {
    top: 50%;
    width: 80%;
    margin-bottom: 20%;
    margin-top: 60%;
  }

  .sec07_ch {
    display: none;
  }
}

/* 特殊窄版高螢幕：避免 slogan 擋到角色臉 */
@media screen and (min-width: 500px) and (max-width: 620px) and (min-height: 720px) {
  #cover {
    height: auto;
    min-height: 100vh;
    align-items: flex-end;
    background-position: center top !important;
  }

  .slogan_block {
    position: relative;
    width: 88%;
    margin: 72% auto 15%;
    bottom: auto;
    top: auto !important;
  }

  .slogan .title {
    width: 92%;
  }

  .slogan img:nth-child(3) {
    width: 82%;
    margin-top: -1%;
  }

  .download_list {
    transform: translateY(0);
  }

  #section01 {
    padding: 0;
    margin-top: -10%;
  }
}

body.fb-app #cover,
body.line-app #cover {
  height: auto;
  min-height: 100vh;
  align-items: flex-end;

  background-position: center top;
  background-size: auto 110%;
}

body.fb-app .slogan_block,
body.line-app .slogan_block {
  position: relative;
  width: 100%;
  margin: 78% auto 15%;
  bottom: auto;
  top: auto !important;
}

body.fb-app .slogan .title,
body.line-app .slogan .title {
  width: 100%;
}

body.fb-app .slogan img:nth-child(3),
body.line-app .slogan img:nth-child(3) {
  width: 82%;
}

body.fb-app #section01,
body.line-app #section01 {
  padding: 0;
  margin-top: -5%;
}
