#section01 .entry-section {
  position: relative;

  width: min(1120px, 94vw);

  margin-right: auto;

  margin-left: auto;

  text-align: center;

  overflow: visible;
}

#section01 .entry-section {
  min-height: 390px;

  display: flex;

  justify-content: center;

  align-items: center;
}

#section01 .entry-panel {
  position: relative;

  width: min(700px, 80vw);

  min-height: 354px;

  padding: 54px 92px 40px;

  background: url("../images/entry/sec01_frame.png") center / 100% 100%
    no-repeat;

  color: #4c3725;
  margin: auto;
}

#section01 .lottery-form {
  display: grid;

  gap: 12px;
}

#section01 .form-row {
  display: grid;

  grid-template-columns: 96px minmax(0, 1fr) 126px;

  gap: 10px;

  align-items: center;
}

#section01 .phone-row {
  grid-template-columns: 96px 118px minmax(0, 1fr) 126px;
}

#section01 .form-row label {
  margin: 0;

  color: #4e3a25;

  font-weight: 800;

  text-align: right;

  letter-spacing: 0.02em;
}

#section01 .form-row input,
#section01 .form-row select {
  width: 100%;

  height: 34px;

  border: 1px solid rgba(116, 93, 62, 0.45);

  border-radius: 6px;

  background: rgba(255, 255, 255, 0.78);

  color: #46311f;

  font-size: 1rem;
}

#section01 .form-row select,
#section01 .form-row input {
  width: 100%;

  height: clamp(32px, 2.4vw, 39px);

  border: 2px solid rgba(122, 92, 54, 0.36);

  border-radius: 7px;

  background: rgba(255, 255, 255, 0.78);

  color: #6d604f;

  font-size: clamp(0.78rem, 0.85vw, 1rem);

  padding: 0 0.65rem;

  box-shadow: inset 0 1px 4px rgba(80, 52, 22, 0.12);

  font-family:
    "Noto Sans TC", "Maven Pro", "Droid Sans", "Myriad Pro", Helvetica;
}

#section01 .form-row select {
  padding: 0 8px;
}

#section01 .form-row input {
  padding: 0 10px;
}

#section01 .form-row button {
  height: 34px;

  border: 0;

  border-radius: 18px;

  background: linear-gradient(90deg, #d5bd74 0%, #9f842e 100%);

  color: #3d230f;

  font-size: 1rem;

  font-weight: 800;

  letter-spacing: 0.04em;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 2px 4px rgba(66, 41, 15, 0.2);
}

#section01 .form-row .form-img-button {
  padding: 0;

  background: transparent;

  border-radius: 0;

  box-shadow: none;
}

#section01 .form-img-button img {
  display: block;

  width: 100%;

  height: auto;
}

#section01 .form-img-button {
  transform-origin: center;

  transition:
    transform 0.18s ease,
    filter 0.18s ease !important;
}

#section01 .form-img-button:hover {
  transform: scale(1.035);

  filter: brightness(1.1) drop-shadow(0 0 6px rgba(190, 135, 64, 0.2));
}

#section01 .form-img-button:active {
  transform: scale(0.96);

  transition-duration: 0.07s !important;
}

@keyframes campaignBtnPulse {
  0%,
  100% {
    transform: scale(1);

    filter: brightness(1) drop-shadow(0 0 0 rgba(255, 210, 120, 0));
  }

  50% {
    transform: scale(1.035);

    filter: brightness(1.08) drop-shadow(0 0 8px rgba(255, 215, 130, 0.42))
      drop-shadow(0 0 18px rgba(188, 122, 45, 0.18));
  }
}

@media screen and (min-width: 992px) {
  #section01 .entry-section {
  }
}

@media screen and (max-width: 820px) {
  #section01 .entry-section {
    min-height: auto;

    padding-top: 10px;
  }

  #section01 .entry-panel {
    width: 94vw;

    padding: 36px 20px 38px;
  }

  #section01 .form-row,
  #section01 .phone-row {
    grid-template-columns: 1fr;

    gap: 7px;

    width: min(420px, 88%);

    margin: 0 auto;
  }

  #section01 .form-row label,
  #section01 .form-row input,
  #section01 .phone-row select,
  #section01 .phone-row input,
  #section01 .form-row button {
    grid-column: 1;
  }

  #section01 .form-row label {
    align-self: center;

    text-align: left;

    font-size: 1rem;
  }

  #section01 .form-row input,
  #section01 .form-row select,
  #section01 .form-row button {
    height: 32px;

    font-size: 1rem;
  }

  #section01 .form-row button {
    width: min(180px, 100%);

    justify-self: start;
  }
}

@media screen and (max-width: 520px) {
  #section01 .entry-panel {
    padding: 30px 14px 32px;
  }

  #section01 .form-row,
  #section01 .phone-row {
    grid-template-columns: 1fr;

    width: min(360px, 90%);
  }

  #section01 .form-row label {
    font-size: 1rem;

    text-align: left;
  }

  #section01 .entry-gift img {
    display: block;
    width: 60%;
    height: auto;
    margin: auto;
  }
}

.campaign-modal {
  position: fixed;

  inset: 0;

  z-index: 20000;

  display: grid;

  place-items: center;

  padding: 20px;

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.campaign-modal.is-open {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;
}

.campaign-modal-backdrop {
  position: absolute;

  inset: 0;

  background: rgba(30, 20, 12, 0.62);

  backdrop-filter: blur(3px);
}

.campaign-modal-dialog {
  position: relative;

  z-index: 1;

  width: min(620px, calc(100vw - 32px));

  max-height: min(82vh, 760px);

  transform: translateY(18px) scale(0.95);

  opacity: 0;

  transition:
    transform 0.32s cubic-bezier(0.22, 0.8, 0.22, 1),
    opacity 0.28s ease;
}

.campaign-modal.is-open .campaign-modal-dialog {
  transform: translateY(0) scale(1);

  opacity: 1;
}

.campaign-modal-content {
  position: relative;

  max-height: min(82vh, 760px);

  overflow-y: auto;

  padding: 38px 38px 30px;

  border: 2px solid #b98d4e;

  border-radius: 22px;

  background:
    linear-gradient(rgba(255, 248, 235, 0.97), rgba(255, 248, 235, 0.97)),
    url("../images/table_bg.png") center / 100% 100% no-repeat;

  color: #4c3725;

  text-align: left;

  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.42) inset,
    0 0 24px rgba(190, 150, 80, 0.38),
    0 18px 46px rgba(45, 28, 14, 0.46);

  scrollbar-width: thin;
}

.campaign-modal-kicker {
  margin-bottom: 5px;

  color: #8a6a3f;

  font-size: 1rem;

  font-weight: 700;

  letter-spacing: 0.18em;

  text-align: center;
}

.campaign-modal-title {
  margin: 0 36px 16px;

  color: #5b3520;

  font-family: "Noto Serif TC", "PMingLiU", "MingLiU", serif;

  font-size: 1.5rem;

  font-weight: 900;

  line-height: 1.35;

  text-align: center;

  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72);
}

.campaign-modal-prize {
  display: none;

  width: min(220px, 58vw);

  margin: 10px auto 18px;

  animation: campaignModalFloat 2.8s ease-in-out infinite;
}

.campaign-modal-prize.show {
  display: block;
}

.campaign-modal-prize img {
  display: block;

  width: 100%;

  height: auto;

  filter: drop-shadow(0 10px 14px rgba(70, 42, 18, 0.18))
    drop-shadow(0 0 10px rgba(255, 211, 120, 0.2));
}

.campaign-modal-body {
  font-size: 1rem;

  font-weight: 500;

  line-height: 1.85;
}

.campaign-modal-body p {
  margin: 0 0 12px;
  font-family:
    "Noto Sans TC", "Maven Pro", "Droid Sans", "Myriad Pro", Helvetica,
    sans-serif;
  font-weight: 500;
}

.campaign-modal-body ol {
  margin: 14px 0 0;

  padding-left: 1.35rem !important;
}

.campaign-modal-body li {
  margin-bottom: 8px;
}

.campaign-modal-body strong {
  color: #7d2418;

  font-weight: 900;
}

.campaign-modal-close {
  position: absolute;

  top: 10px;

  right: 14px;

  z-index: 4;

  width: 36px;

  height: 36px;

  border: 0;

  background: transparent;

  color: #7a5c3a;

  font-size: 2rem;

  line-height: 1;

  opacity: 0.75;

  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.campaign-modal-close:hover {
  opacity: 1;

  transform: scale(1.08);
}

.campaign-modal-confirm {
  display: block;

  min-width: 150px;

  margin: 24px auto 0;

  padding: 0.68rem 1.8rem;

  border: 1px solid #8b6a38;

  border-radius: 999px;

  background: linear-gradient(to bottom, #d8bd83 0%, #a77c3e 100%);

  color: #fffdf8;

  font-weight: 800;

  letter-spacing: 0.08em;

  box-shadow:
    0 4px 0 #6f4d24,
    0 8px 18px rgba(80, 50, 20, 0.24);

  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.campaign-modal-confirm:hover {
  transform: scale(1.035);

  filter: brightness(1.08);
}

.campaign-modal-confirm:active {
  transform: translateY(2px) scale(0.98);

  box-shadow:
    0 2px 0 #6f4d24,
    0 5px 12px rgba(80, 50, 20, 0.2);
}

@keyframes campaignModalFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.015);
  }
}

@media screen and (max-width: 520px) {
  .campaign-modal {
    padding: 14px;
  }

  .campaign-modal-dialog,
  .campaign-modal-content {
    max-height: 86vh;
  }

  .campaign-modal-content {
    padding: 34px 20px 26px;
  }

  .campaign-modal-title {
    margin-right: 28px;

    margin-left: 28px;

    font-size: 1.48rem;
  }

  .campaign-modal-body {
    font-size: 1rem;

    line-height: 1.75;
  }
}

body > .campaign-modal {
  position: fixed !important;

  inset: 0 !important;

  width: 100% !important;

  height: 100dvh !important;

  min-height: 100vh;

  z-index: 999999 !important;

  transform: none !important;
}

body > .campaign-modal .campaign-modal-dialog {
  position: relative;

  margin: auto;
}

.campaign-modal:not(.is-open) {
  pointer-events: none !important;
}

.campaign-modal:not(.is-open) .campaign-modal-backdrop,
.campaign-modal:not(.is-open) .campaign-modal-dialog {
  pointer-events: none !important;
}

@media screen and (max-width: 820px) {
  #section01 .entry-section {
    width: 100%;

    padding: 18px 12px 10px;

    overflow: visible;
  }

  #section01 .entry-panel {
    width: min(680px, 96vw);

    min-height: 0;

    padding: 36px 28px 34px;
  }

  #section01 .lottery-form {
    width: min(440px, 94%);

    margin: 0 auto;

    gap: 16px;
  }

  #section01 .form-row {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 118px;

    gap: 8px 10px;

    width: 100%;

    margin: 0;

    align-items: center;
  }

  #section01 .form-row label {
    grid-column: 1 / -1;

    margin: 0;

    padding-left: 2px;

    font-size: 1rem;

    line-height: 1.35;

    text-align: left;
  }

  #section01 .form-row input,
  #section01 .form-row select {
    height: 42px;

    border-radius: 8px;

    font-size: 1rem;
  }

  #section01 .form-row > input {
    grid-column: 1;
  }

  #section01 .form-row .form-img-button {
    grid-column: 2;

    width: 118px;

    height: auto;

    justify-self: end;

    align-self: center;
  }

  #section01 .phone-row {
    grid-template-columns: 94px minmax(0, 1fr) 118px;
  }

  #section01 .phone-row label {
    grid-column: 1 / -1;
  }

  #section01 .phone-row select {
    grid-column: 1;
  }

  #section01 .phone-row input {
    grid-column: 2;
  }

  #section01 .phone-row .form-img-button {
    grid-column: 3;
  }
}

@media screen and (max-width: 520px) {
  #section01 .entry-section {
    padding: 14px 8px 8px;
  }

  #section01 .entry-panel {
    width: 96vw;

    padding: 30px 18px 30px;
  }

  #section01 .lottery-form {
    width: min(370px, 94%);

    gap: 15px;
  }

  #section01 .form-row {
    grid-template-columns: minmax(0, 1fr) 108px;

    gap: 7px 8px;
  }

  #section01 .form-row label {
    grid-column: 1 / -1;

    font-size: 1rem;
  }

  #section01 .form-row > input {
    grid-column: 1;
  }

  #section01 .form-row .form-img-button {
    grid-column: 2;

    width: 108px;
  }

  #section01 .phone-row {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  #section01 .phone-row label {
    grid-column: 1 / -1;
  }

  #section01 .phone-row select {
    grid-column: 1;
  }

  #section01 .phone-row input {
    grid-column: 2;
  }

  #section01 .phone-row .form-img-button {
    grid-column: 1 / -1;

    width: 138px;

    justify-self: end;
  }

  #section01 .form-row input,
  #section01 .form-row select {
    height: 40px;

    font-size: 1rem;
  }
}

#section01 .form-row .form-img-button {
  width: 126px;

  height: 39px;

  min-width: 126px;

  padding: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: visible;
}

#section01 .form-row .form-img-button img {
  display: block;

  width: 126px;

  height: 39px;

  object-fit: contain;
}

@media screen and (max-width: 520px) {
  #section01 .form-row .form-img-button,
  #section01 .phone-row .form-img-button {
    width: 112px;

    min-width: 112px;

    height: 35px;
  }

  #section01 .form-row .form-img-button img,
  #section01 .phone-row .form-img-button img {
    width: 112px;

    height: 35px;

    object-fit: contain;
  }
}

@media screen and (max-width: 820px) {
  #section01 .phone-row {
    display: grid;

    grid-template-columns: 88px minmax(0, 1fr) 126px;

    gap: 8px;

    align-items: center;
  }

  #section01 .phone-row label {
    grid-column: 1 / -1;

    margin-bottom: 1px;
  }

  #section01 .phone-row select {
    grid-column: 1;

    width: 100%;

    min-width: 0;
  }

  #section01 .phone-row input {
    grid-column: 2;

    width: 100%;

    min-width: 0;
  }

  #section01 .phone-row .form-img-button {
    grid-column: 3;

    width: 126px;

    min-width: 126px;

    justify-self: stretch;
  }
}

@media screen and (max-width: 520px) {
  #section01 .phone-row {
    grid-template-columns: 84px minmax(0, 1fr) 112px;

    gap: 7px;
  }

  #section01 .phone-row .form-img-button {
    width: 112px;

    min-width: 112px;
  }

  #section01 .phone-row select,
  #section01 .phone-row input {
    height: 40px;
  }
}

.campaign-modal-content {
  scrollbar-width: thin;

  scrollbar-color: rgba(171, 132, 73, 0.72) rgba(113, 82, 45, 0.08);
}

.campaign-modal-content::-webkit-scrollbar {
  width: 7px;
}

.campaign-modal-content::-webkit-scrollbar-track {
  margin: 16px 0;

  background: rgba(113, 82, 45, 0.06);

  border-radius: 999px;
}

.campaign-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(
    to bottom,
    rgba(205, 174, 116, 0.9),
    rgba(151, 111, 59, 0.88)
  );

  border: 2px solid rgba(255, 248, 235, 0.92);

  border-radius: 999px;
}

.campaign-modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    to bottom,
    rgba(220, 190, 131, 0.98),
    rgba(165, 121, 63, 0.96)
  );
}

.campaign-modal-content::-webkit-scrollbar {
  display: block !important;

  width: 7px;
}

@media screen and (max-width: 360px) {
  #section01 .phone-row {
    grid-template-columns: 76px minmax(0, 1fr) 100px;

    gap: 5px;
  }

  #section01 .phone-row .form-img-button,
  #section01 .phone-row .form-img-button img {
    width: 100px;

    min-width: 100px;
  }
}

#section01 .entry-panel[data-aos] {
  will-change: opacity, transform;
}

#section01 {
  width: 100% !important;

  max-width: 100%;
}

body > .campaign-modal {
  left: 0 !important;

  right: 0 !important;

  width: 100% !important;

  max-width: 100% !important;
}

#section01 {
  font-family: "Noto Serif TC", serif;
  padding: 70px 0;
}

#campaignModal {
  font-family: "Noto Serif TC", serif;
}
/* @media (max-width: 768px) {
  #section01 {
    padding: 40px 0;
    margin-top: -35%;
  }
} */

@media (max-width: 572px) {
  #section01 {
    padding: 40px 0;
    /* Retain a small overlap without covering the Cover slogan. */
    margin-top: 0%;
  }
}

#section01 .entry-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 700px;
  min-height: 0;
  padding: 30px 32px;
}
#section01 .entry-gift {
  width: 100%;
  max-width: 280px;
  min-width: 0;
  justify-self: center;
}
#section01 .entry-gift img {
  display: block;
  width: 80%;
  height: auto;
  margin: auto;
}
#section01 .entry-panel .lottery-form {
  width: 100%;
  max-width: 360px;
  min-width: 0;
  margin: 0 auto;
  gap: 24px;
}
#section01 .entry-panel .form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  margin: 0;
  gap: 10px;
}
#section01 .entry-panel .form-row > * {
  grid-column: 1;
  min-width: 0;
}
#section01 .entry-panel .form-row label {
  text-align: left;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  font-family: "Noto Sans TC", sans-serif;
}
#section01 .entry-panel .form-row input,
#section01 .entry-panel .form-row select {
  width: 100%;
  height: 44px;
  font-size: 16px;
}
#section01 .entry-panel .form-row .form-img-button {
  width: 126px;
  min-width: 0;
  height: 39px;
  justify-self: center;
}
#section01 .entry-panel .form-img-button img {
  width: 100%;
  height: auto;
}
@media (max-width: 820px) {
  #section01 .entry-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 600px;
    padding: 34px 28px 40px;
  }
  #section01 .entry-gift {
    max-width: 320px;
  }
}
@media (max-width: 520px) {
  #section01 .entry-panel {
    padding: 28px 22px 34px;
    gap: 20px;
  }
  #section01 .entry-gift {
    max-width: 280px;
  }
}

#section01 {
  overflow: hidden;
}
#section01 .entry-layout {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 830px;
  margin: 0 auto;
  padding-right: 130px;
}
#section01 .entry-character {
  position: absolute;
  z-index: 0;

  width: 500px;
  height: auto;
  pointer-events: none;
  user-select: none;
  right: -175px;
  bottom: -75px;

  width: 550px;
  right: -190px;
  bottom: -70px;
}
#section01 .entry-panel {
  z-index: 1;
}
@media (max-width: 820px) {
  #section01 .entry-layout {
    max-width: 600px;
    padding-right: 0;
  }
  #section01 .entry-character {
    width: 240px;
    right: -70px;
    bottom: 0;
  }
}
@media (max-width: 520px) {
  #section01 .entry-character {
    display: none;
  }
}

.sec01_gift {
  animation: sec05GiftFloat 3s ease-in-out infinite;
}

@keyframes sec05GiftFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

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

#section01 .entry-sms-note {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: #5b4327;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  font-weight: 500;
  font-family: "Noto Sans TC", sans-serif;
}

@media (max-width: 820px) {
  #section01 .entry-panel .lottery-form {
    max-width: 440px;
    gap: 18px;
  }
  #section01 .entry-panel .form-row {
    grid-template-columns: minmax(0, 1fr) 126px;
    gap: 8px;
    align-items: center;
  }
  #section01 .entry-panel .form-row label {
    grid-column: 1 / -1;
  }
  #section01 .entry-panel .form-row > input {
    grid-column: 1;
  }
  #section01 .entry-panel .form-row .form-img-button {
    grid-column: 2;
    width: 126px;
    height: auto;
    justify-self: end;
  }
  #section01 .entry-panel .phone-row {
    grid-template-columns: 88px minmax(0, 1fr) 126px;
  }
  #section01 .entry-panel .phone-row > select {
    grid-column: 1;
  }
  #section01 .entry-panel .phone-row > input {
    grid-column: 2;
  }
  #section01 .entry-panel .phone-row .form-img-button {
    grid-column: 3;
  }
  #section01 .entry-panel .form-row input,
  #section01 .entry-panel .form-row select {
    height: 42px;
  }
}
@media (max-width: 520px) {
  #section01 .entry-panel .form-row {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 7px;
  }
  #section01 .entry-panel .phone-row {
    grid-template-columns: 78px minmax(0, 1fr) 104px;
  }
  #section01 .entry-panel .form-row .form-img-button {
    width: 104px;
  }
  #section01 .entry-panel .form-row input,
  #section01 .entry-panel .form-row select {
    height: 40px;
    padding: 0 6px;
  }

  #section01 .entry-panel {
    background: url("../images/entry/sec01_frame_xs.png") center / 100% 100%
      no-repeat;
  }

  #section01 .entry-panel .form-row input,
  #section01 .entry-panel .form-row select {
    font-size: 0.9rem;
  }

  #section01 .captcha-row input {
    font-size: 0.9rem;
  }
}
@media (max-width: 360px) {
  #section01 .entry-panel {
    padding-left: 14px;
    padding-right: 14px;
  }
  #section01 .entry-panel .form-row {
    grid-template-columns: minmax(0, 1fr) 90px;
    gap: 5px;
  }
  #section01 .entry-panel .phone-row {
    grid-template-columns: 68px minmax(0, 1fr) 90px;
  }
  #section01 .entry-panel .form-row .form-img-button {
    width: 90px;
  }
}

#section01 .entry-character-xs {
  display: block;
  grid-column: 1 / -1;
  grid-row: 1;
  width: 70%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
  justify-self: center;
}

#section01 .entry-gift {
  grid-column: 1;
  grid-row: 2;
}

#section01 .lottery-form {
  grid-column: 2;
  grid-row: 2;
}

#section01 .entry-sms-note {
  grid-column: 1 / -1;
  grid-row: 3;
}

@media (max-width: 820px) {
  #section01 .entry-character-xs,
  #section01 .entry-gift,
  #section01 .lottery-form,
  #section01 .entry-sms-note {
    grid-column: 1;
    grid-row: auto;
  }

  #section01 .entry-character-xs {
    width: 95%;
  }
}
