@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 {
}

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;
}

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;
}

p {
  font-weight: 800;
}

.modal-open {
  padding-right: 0 !important;
}
.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: relative;
  z-index: 1;
}

.smooth_content {
  will-change: transform;
  width: 100%;
  position: relative;
  display: block;
}

.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,
#section05,
#section07 {
  position: relative;
  width: 100%;

  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;
}

#section05,
#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,
#section05 .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: 60%;
  height: auto;
  object-fit: contain;
  margin: -3rem 0;
}

.slogan_block {
  position: absolute;
  width: 80%;
  bottom: 10%;
}

.slogan {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slogan .title {
  width: 65%;
  margin-bottom: -2%;
}

.slogan img:nth-child(n+3) {
  width: 50%;
}

#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);
  }
}

.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;
}

.download_list {
  position: relative;
  display: inline-block;
}

.download_list {
  position: relative;
}

.click-hand img {
  display: block;
  width: 100%;
  height: auto;
}

.click-hand {
  position: absolute;
  z-index: 999;
  pointer-events: none;

  animation: handPoke 1s infinite;
  transform-origin: 50% 85%;
}

.click-hand img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 993px) {
  .click-hand {
    width: 80px;
    left: 95%;
    top: 40px;
    transform: translateX(-50%);
  }
}

@media (max-width: 992px) {
  .click-hand {
    width: 80px;
    left: 72%;
    top: 47px;
    transform: translateX(-50%);
  }
}

@media (max-width: 576px) {
  .click-hand {
    width: 60px;
    left: 80%;
    top: 35px;
    transform: translateX(-50%);
  }
}

@keyframes handPoke {
  0% {
    transform: translateX(-50%) translate(0, 0) scale(1);
  }

  50% {
    transform: translateX(-50%) translate(-10px, -10px) scale(1.04);
  }

  100% {
    transform: translateX(-50%) translate(0, 0) scale(1);
  }
}

.click-hand::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 16%;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 220, 160, 0.8);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: ripple 1.1s infinite;
}

@keyframes ripple {
  0% {
    opacity: 1;
    transform: translateX(-50%) scale(0.5);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) scale(2);
  }
}

.click-hand {
  filter: drop-shadow(0 0 8px rgba(255, 215, 120, 0.8))
    drop-shadow(0 0 16px rgba(255, 180, 80, 0.4));
}

@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,
  #section05,
  #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) {
  #section05 .sec_content,
  #section07 .sec_content {
    width: 96%;
  }

  .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,
  #section05,
  #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;
    /* position: relative;
    top: 35%; */
  }

  .slogan img:nth-child(2) {
    margin-bottom: 0;
  }

  .slogan img:nth-child(n+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;
  }
}

@media screen and (max-width: 768px) {
  .sec_title {
    font-size: 1.8rem;
  }

  .sec_title img {
    width: 100%;
    margin: -2.5rem 0;
  }

  .download_list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .download_list a {
    width: 55%;
  }

  .download_list .btn img {
    max-width: 380px;
  }
}

@media (max-width: 992px) {
  #cover {
    background: url(../images/bg_cover_md.png);
    background-size: 100% auto !important;
    background-position: center top;
    display: flex;
    justify-content: center;
  }

  .slogan_block {
    width: 100%;
    margin-top: 45%;
  }

  .slogan img:nth-child(n+3) {
    width: 95%;
  }
}

@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(n+3) {
    width: 95%;
  }
}

@media (max-width: 375px) {
  .slogan_block {
    margin-bottom: 30%;
  }
}

#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;
  }
}

@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;
  }
}

@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);
  }
}

@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));
  }
}

@media screen and (max-width: 1200px) {
  .sec_title {
    margin-bottom: 3rem;
  }
}

@keyframes bossMoveX {
  from {
    transform: translateX(-60px);
  }
  to {
    transform: translateX(60px);
  }
}

#section05 {
  padding: 4rem 0 4rem;
}

.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: #f8e6b5c0;
  text-align: center;
  font-weight: 500;
  line-height: 1;
  padding: 0 0.5rem;
  letter-spacing: 0.05em;
}

.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.1rem;
  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;
}

.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_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: 700;
}

.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;
}

@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));
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .sec05_list li {
    max-width: 100%;
  }
}

#section07 {
  position: relative;
  padding: 3rem 0 5rem 0;
  overflow: hidden;
}

@media screen and (max-width: 992px) {
  #section07 {
    padding: 1rem 0 0;
  }
}

.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);
}

.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;
  }
}

@keyframes rewardFloatBtn {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media screen and (max-width: 1024px) and (orientation: landscape) {
  #cover {
    height: auto;
    min-height: 100vh;
  }

  .slogan_block {
    top: 50%;
    width: 80%;
    margin-bottom: 40%;
    margin-top: 60%;
  }
}

@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 {
    top: 50%;
    width: 80%;
    margin-bottom: 40%;
    margin-top: 60%;
  }

  .slogan .title {
    width: 92%;
  }

  .slogan img:nth-child(n+3) {
    width: 82%;
    margin-top: -1%;
  }

  .download_list {
    transform: translateY(0);
  }
}

/* FB / LINE WebView 使用與一般小尺寸相同的 #cover / slogan 規則。
   不另設 90% margin 或強制 title 100%，避免覆蓋手機斷點。 */

.site-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  background: url("../images/bg_all_dark.webp") center top / cover no-repeat;
}
.site-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/bg_all.webp") center top / cover no-repeat;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.site-background.show-light::after {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .site-background::after {
    transition-duration: 0.01ms;
  }
}

.sec05_btns {
  position: relative;
  z-index: 8;
}
.sec05_gift {
  pointer-events: none;
}
.sec05_create_error {
  color: #a1261c;
  font-size: 14px;
  line-height: 1.6;
}

#section01 .entry-panel .sms-verification[hidden] {
  display: none !important;
}
#section01 .entry-panel .sms-verification:not([hidden]) {
  animation: smsReveal 0.4s ease both;
}
#section01 #phoneStep[hidden],
#section01 #captchaSlot[hidden] {
  display: none !important;
}
#section01 .captcha-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  width: 100%;
  gap: 10px;
  align-items: center;
}
#section01 .captcha-image {
  display: block;
  width: 120px;
  height: 42px;
  object-fit: contain;
}
#section01 .captcha-row input {
  min-width: 0;
  width: 100%;
  height: 42px;
  padding: 0 8px;
  font-size: 16px;
  border: 2px solid rgba(122, 92, 54, 0.36);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  color: #6d604f;
  font-family:
    "Noto Sans TC", "Maven Pro", "Droid Sans", "Myriad Pro", Helvetica, Verdana,
    Geneva, sans-serif !important;
}
#section01 .entry-panel .form-row .change-phone-button {
  grid-column: 1 / -1;
  justify-self: end;
  height: auto;
  width: auto;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  color: #72502c;
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 360px) {
  #section01 .captcha-row {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 7px;
  }
  #section01 .captcha-image {
    width: 94px;
  }
}
@keyframes smsReveal {
  from {
    opacity: 0;
    translate: 0 10px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.site-reveal {
  opacity: 0;
  translate: 0 22px;
  transition:
    opacity 0.7s ease,
    translate 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.site-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}
@media (prefers-reduced-motion: reduce) {
  .site-reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }
  #section01 .entry-panel .sms-verification:not([hidden]) {
    animation: none;
  }
}

#section01 .entry-panel .sms-verification[hidden] {
  display: none !important;
}
#section01 .entry-panel .sms-verification:not([hidden]) {
  animation: smsReveal 0.4s ease both;
}
#section01 #phoneStep[hidden],
#section01 #captchaSlot[hidden] {
  display: none !important;
}
#section01 .captcha-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  width: 100%;
  gap: 10px;
  align-items: center;
}
#section01 .captcha-image {
  display: block;
  width: 120px;
  height: 42px;
  object-fit: contain;
}
#section01 .captcha-row input {
  min-width: 0;
  width: 100%;
  height: 42px;
  padding: 0 8px;
  font-size: 16px;
  border: 2px solid rgba(122, 92, 54, 0.36);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  color: #6d604f;
}
#section01 .entry-panel .form-row .change-phone-button {
  grid-column: 1 / -1;
  justify-self: end;
  height: auto;
  width: auto;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  color: #72502c;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 360px) {
  #section01 .captcha-row {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 7px;
  }
  #section01 .captcha-image {
    width: 94px;
  }
}
@keyframes smsReveal {
  from {
    opacity: 0;
    translate: 0 10px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.site-reveal {
  opacity: 0;
  translate: 0 22px;
  transition:
    opacity 0.7s ease,
    translate 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.site-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}
@media (prefers-reduced-motion: reduce) {
  .site-reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }
  #section01 .entry-panel .sms-verification:not([hidden]) {
    animation: none;
  }
}

.sec05_page_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sec05_page_btn .page-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* ===== 保留原始視覺尺寸；以參考圖 1440 × 731 固定桌機畫布比例 =====
   保留原本背景、標語、獎勵圖、按鈕的尺寸與效果。
   桌機只改高度計算來源，避免視窗高度改變時標語上下跑位。 */
@media (min-width: 993px) {
  #cover,
  body.fb-app #cover,
  body.line-app #cover {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: initial;
    width: 100%;
    height: calc(100vw * 731 / 1440);
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-position: center top !important;
    background-size: auto 100% !important;
  }

  #cover .slogan_block,
  body.fb-app #cover .slogan_block,
  body.line-app #cover .slogan_block {
    position: absolute;
    top: auto !important;
    right: auto;
    bottom: 10%;
    left: auto;
    width: 80%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  /* 延續原桌機尺寸，移除 1200px／特殊視窗規則對標語的覆寫。 */
  #cover .slogan .title {
    width: 65%;
    margin-bottom: -2%;
  }

  #cover .slogan img:nth-child(2) {
    margin-top: 0;
    margin-bottom: -2%;
  }

  #cover .slogan img:nth-child(n+3) {
    width: 70%;
    margin: 0;
  }
}

@media (max-width: 1600px) {
  #cover .slogan_block,
  body.fb-app #cover .slogan_block,
  body.line-app #cover .slogan_block {
    bottom: 8%;
  }
}

/* 手機保留原來圖片尺寸與間距，只讓內容能自然撐開 cover。
   避免固定 90vh 在短螢幕時裁切內容或擠到 section01。 */
@media (max-width: 992px) {
  #cover,
  body.fb-app #cover,
  body.line-app #cover {
    height: auto;
    min-height: 90vh;
    min-height: 90svh;
    align-items: flex-end;
  }

  #cover .slogan_block,
  body.fb-app #cover .slogan_block,
  body.line-app #cover .slogan_block {
    position: relative;
    top: auto !important;
    bottom: auto;
  }
}

/* 僅補上 Google reCAPTCHA 的預留高度。 */
#section01 .recaptcha-slot {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 78px;
  margin: 12px auto 0;
}
#section01 .recaptcha-slot[hidden] {
  display: none !important;
}

/* Mobile viewport containment and continuous fallback behind the fixed artwork. */
@media (max-width: 768px) {
  html {
    overflow-x: clip;
    background: #e9e0ce url("../images/bg_all.webp") center center / cover fixed
      no-repeat;
  }
  body {
    max-width: 100%;
    overflow-x: clip;
    background: transparent;
  }
  .wrapper,
  .smooth_content {
    max-width: 100%;
    min-width: 0;
  }
  #section05,
  #section07 {
    width: 100%;
    max-width: 100%;
  }
  .site-background {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
  }
}

.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; */
}

/* ========================================================
   Phone cover: lock the canvas to bg_cover_s.png (768 x 1191).
   Slogan placement is measured against the artwork, NOT the
   varying viewport height of Safari / LINE / Facebook browsers.
   ======================================================== */
@media screen and (max-width: 576px) {
  #cover,
  body.fb-app #cover,
  body.line-app #cover {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 768 / 1191;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-image: url("../images/bg_cover_s.png") !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
  }

  #cover .slogan_block,
  body.fb-app #cover .slogan_block,
  body.line-app #cover .slogan_block {
    position: absolute;
    left: 0;
    right: 0;
    top: auto !important;
    bottom: 8%;
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0;
  }

  #cover .slogan .title,
  body.fb-app #cover .slogan .title,
  body.line-app #cover .slogan .title {
    width: 100%;
  }

  #cover .slogan img:nth-child(n+3),
  body.fb-app #cover .slogan img:nth-child(n+3),
  body.line-app #cover .slogan img:nth-child(n+3) {
    width: 100%;
  }
}

/* iPhone 頂端過度捲動改善 */
@supports (-webkit-touch-callout: none) {
  html {
    overscroll-behavior-y: none;
  }

  body {
    overscroll-behavior-y: none;
  }

  /* 避免 Cover 背景被拉伸 */
  #cover {
    background-repeat: no-repeat !important;
    background-position: center top !important;
  }
}
