@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap");
:root {
  --page-background-color: #35275a;
  --body-bg-color: #35275a;
  --font-noto-sans-tc: Noto Sans TC;
  --font-size-base: 16px;
}
@media screen and (min-width: 768px) {
  :root {
    --font-size-base: 18px;
  }
}
@media screen and (min-width: 1400px) {
  :root {
    --font-size-base: 24px;
  }
}
:root {
  --base-width: 1400;
  --header-height: 640;
  --canvas-width: 1920;
}
:root {
  --content-padding-x: 60;
  --content-padding-top: 40;
  --content-padding-bottom: 120;
}
@media screen and (min-width: 1400px) {
  :root {
    --content-padding-x: 250;
    --content-padding-top: 40;
    --content-padding-bottom: 180;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-size: var(--font-size-base);
  font-family: var(--font-noto-sans-tc), sans-serif;
}

body {
  width: 100%;
  min-height: 100vh;
  font-size: var(--font-size-base);
  background-color: var(--body-bg-color);
}

h1 {
  display: none;
}

table {
  font-family: "新細明體", "細明體";
}
table tbody,
table tfoot,
table thead,
table th,
table td {
  vertical-align: middle;
  margin: 0 !important;
}

.wrapper {
  background-color: transparent;
  height: initial;
}

.content {
  max-width: calc(var(--base-width) * 1px);
}

.pagebg {
  width: 100vw;
  max-width: calc(var(--canvas-width) * 1px);
  left: 50%;
  transform: translateX(-50%);
}

.header {
  width: calc(var(--base-width) / var(--canvas-width) * 100vw);
  height: calc(var(--header-height) / var(--canvas-width) * 100vw);
  max-width: calc(var(--base-width) * 1px);
  max-height: calc(var(--header-height) * 1px);
  padding: 0;
  z-index: 1;
}
.header img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: initial;
  max-height: initial;
}

.content {
  padding: calc(var(--content-padding-top) / var(--base-width) * 100vw) calc(var(--content-padding-x) / var(--base-width) * 100vw) calc(var(--content-padding-bottom) / var(--base-width) * 100vw) calc(var(--content-padding-x) / var(--base-width) * 100vw);
}
@media screen and (min-width: 1400px) {
  .content {
    padding: calc(var(--content-padding-top) * 1px) calc(var(--content-padding-x) * 1px) calc(var(--content-padding-bottom) * 1px) calc(var(--content-padding-x) * 1px);
  }
}
.content a {
  cursor: pointer;
}

.content .table-tr-col-2 {
  gap: 2px;
}

/* 領獎注意事項彈跳視窗（完整比照 20260616M/index.aspx 的 #awardModal 版型與內容） */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7);
}
.modal .modal-content {
  background-color: #111;
  color: #fff;
  border: 1px solid #3376e7;
  border-radius: 12px;
  width: 90%;
  max-width: 960px;
  position: fixed;
  line-height: 1.8;
  font-size: 1rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.modal .close {
  position: absolute;
  display: block;
  top: -1.470588%;
  right: -2%;
  width: 50px;
  height: 50px;
  background-image: url(../../ingame/images/img_btn_close_notice.png);
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  cursor: pointer;
  z-index: 9;
}
@media only screen and (max-width: 798px), only screen and (max-height: 798px) {
  .modal .close {
    width: 35px;
    height: 35px;
  }
}
.modal .modal-text {
  overflow: auto;
  padding: 2rem;
  padding-top: 0;
  max-height: 82dvh;
  margin: 32px 22px;
}
.modal .modal-text h3,
.modal .modal-text p {
  margin-left: -22px;
}
.modal .modal-text ul {
  margin-left: 1em;
  list-style: disc;
}
.modal .modal-text::-webkit-scrollbar {
  width: 8px;
  margin: 2px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 5px;
}
.modal .modal-text::-webkit-scrollbar-thumb {
  width: 6px;
  padding: 2px;
  background: rgba(79, 79, 79, 0.671);
  border-radius: 5px;
}
@media screen and (orientation: landscape) and (max-height: 420px) {
  .modal .modal-text {
    max-height: 70dvh;
  }
}
