@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;600&display=swap');
.fade-up, .fade-down, .fade-left, .fade-right, .fade-in {
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}
html {
  font-size: 62.5%;  
  scrollbar-gutter: stable;
}
body {
  background-color: #fbfbf4;
  font-size: 1.8rem;
  font-family: "Noto Sans TC", sans-serif;
}
main {
  overflow: hidden;
}
a {
  text-decoration: none;
  cursor: pointer;
}
.logo {
  padding: 1.5rem 1.5rem 0;
  text-align: left;
  position: relative;
  z-index: 10
}
.logo img {
  width: 180px;
  height: auto;
}
h1 {
  font-size: 3.8rem;
  color: #f55a1e;
  font-weight: 600;
  margin: 0em auto;
  position: relative;
  z-index: 10
}
h1 strong {
  color: #ff960a;
  padding-left: 0.3em;
}
.hero {
  background: url("../images/dc_hero-bg.png") no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  position: relative;
  padding-bottom: 5px;
}
.hero-theme {
  width: 100%;
}
.hero-theme img {
  width: 100%;
  max-width: 680px;
}
.cards {
  width: 80%;
  max-width: 680px;
  margin: 1em auto 0.5em;
  z-index: 100;
  position: relative;
}
/* 卡牌 Hover 效果 */
.cards > div {
  transition: transform 0.3s ease-out;
  cursor: pointer;
  flex: 0 0 33.3%
}
.cards > div:hover {
  transform: translateY(-20px);
}
.hero-bottom {
  width: clamp(580px, 46vw, 900px);
  font-size: clamp(8px, 0.52vw, 10px);
  color: #793d07;
  font-weight: bold;
  padding: 0.5em 0em 0.5em 0em;
  margin: auto;
}
.credits {
  font-size: 3em;
  white-space: nowrap;
}
.credits span {
  color: #ff785f;
}
.history img {
  width: 24em;
  transition: all .3s
}
.history a:hover img {
  filter: drop-shadow(0 5px 5px #00000033);
  transform: translateY(-5px);
}
.p-container {
  width: 100%;
  position: absolute;
  left: 0
}
.p-group {
  max-width: 1720px;
  position: relative;
  margin: auto;
  display: flex;
  justify-content: space-between
}
.p-group-L {
  width: 20%;
  max-width: 300px;
}
.p-group-R {
  width: 20%;
  max-width: 300px;
  text-align: right;
  padding-top: 160px;
  align-self: flex-end
}
/* KV人物動態 */
@keyframes breathing {
  0%, 100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.95);
  }
}
.breathing-p-L1 {
  transform-origin: bottom center;
  animation: breathing 2s infinite ease-in-out;
  animation-delay: 0.2s;
}
.breathing-p-L2 {
  position: absolute;
  width: 100%;
  top: 24%;
  left: 38%;
  transform-origin: bottom center;
  animation: breathing 2s infinite ease-in-out;
}
@keyframes skewAnimation {
  0% {
    transform: skewX(-2deg);
  }
  100% {
    transform: skewX(2deg);
  }
}
.skew-p-R1 {
  transform-origin: bottom center;
  animation: skewAnimation 2s infinite alternate ease-in-out;
}
/* 背景閃爍動態 */
@keyframes blink {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
.star-container {
  width: 100%;
  max-width: 1920px;
}
.star-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.star-1 {
  animation: blink 4s infinite ease-in-out;
}
.star-2 {
  animation: blink 4s infinite ease-in-out;
  animation-delay: 2s;
  opacity: 0;
}
/*Notice*/
.notice {
  padding-bottom: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  color: #140303;
}
.notice a {
    color: #ee1214;
}
.btn-notice {
  text-align: center;
}
.btn-notice a:hover {
  color: #0591f0;
}
.btn-notice a {
  margin: auto;
  font-size: 30px;
  display: inline-flex;
  align-items: center;
  border: 4px solid #9bd7ff;
  border-radius: 15px;
  line-height: 1;
  padding: 0.5em 1em;
  font-style: normal;
  font-weight: bold;
  gap: 0.5em;
  color: #0591f0;
}
.btn-notice a i {
  color: #9bd7ff;
  position: relative;
  width: 0.8em;
  height: 0.8em;
  display: block;
  padding: 0.25em 0.5em;
}
.btn-notice a i:after, .btn-notice a i:before {
  display: block;
  width: 100%;
  height: 5px;
  transition: all .3s;
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform-origin: center center;
  border-radius: 100px;
  background-color: #9bd7ff;
}
.btn-notice a[aria-expanded="false"] i:before {
  transform: rotate(-90deg);
}
.btn-notice a[aria-expanded="false"] i:after {
  transform: rotate(0);
}
.btn-notice a[aria-expanded="true"] i:before {
  transform: rotate(0);
}
.btn-notice a[aria-expanded="true"] i:after {
  transform: rotate(-180deg);
}
#collapseNotice .container {
  border-top: 2px solid #0591f0;
  padding-top: 3.33em;
  margin-top: 1.66em;
}
/*modal style*/
.modal-content {
  background-color: #fffff5;
  border: 6px solid #faa08c;
  border-radius: 40px;
  text-align: center;
}
.m-p01:before {
  content: url("../images/modal_p01.png");
  display: block;
  width: 152px;
  height: 92px;
  position: absolute;
  top: -105px;
  left: 0px;
  z-index: 1;
}
.m-p02:before {
  content: url("../images/modal_p02.png");
  display: block;
  width: 125px;
  height: 40px;
  position: absolute;
  top: -60px;
  left: 40px;
  z-index: 1;
}
.m-p03:before {
  content: url("../images/modal_p03.png");
  display: block;
  width: 116px;
  height: 120px;
  position: absolute;
  top: -115px;
  left: 40px;
  z-index: 1;
}
.modal-header {
  border-bottom-width: 0px;
  padding-left: 2rem;
  padding-right: 2rem;
}
.modal-btn-close {
  width: 100%;
  text-align: right;
  padding: 1em;
}
.modal-footer button {
  min-width: 115px;
  border-radius: 100px;
}
.modal-footer button + button {
  margin-left: 20px;
}
.em-txt strong {
  font-size: 1.3em;
  display: block;
}
.em-line {
  color: #48a00b;
}
.modal-title {
  font-size: 24px;
  font-weight: bold;
  flex: 1;
  color: #ff8c6e;
  padding-left: 1em;
}
.modal-body {
  font-size: 2rem;
  padding: 2rem 2rem 3rem 2rem;
}
.modal-body img {
  width: 230px;
  height: 180px;
  margin: 0.5em auto;
}
.modal-body p {
  font-size: 1.6rem;
  margin-top: 5px;  
}
.modal-body p span {
  color: #d60a22;
}
.modal-body ul {
  font-size: 1.6rem;
  list-style: none;
  padding-left: 0;
}
.modal-body > ul > li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}
.modal-body > ul > li:not(:last-child) {
  border-bottom: 2px dotted #ddd;
}
.modal-body > ul > li li:nth-child(1):before {
  content: "獎項名稱：";
  color: #ff8c6e;
}
.modal-body > ul > li li:nth-child(2):before {
  content: "序　　號：";
  color: #ff8c6e;
}
.modal-body > ul > li li:nth-child(3):before {
  content: "抽獎日期：";
  color: #ff8c6e;
}
.modal-body > ul div {
  text-align: center;
  padding: 10px;
  padding-right: 0;
  white-space: nowrap;
}
.modal-body > ul div a {
  display: inline-block;
  color: #ffffff;
  background-color: #ff8c6e;
  border-radius: 50px;
  padding: 5px;
  width: 5em;
  transition: all .3s;
}
.modal-body > ul div a:hover {
  background-color: #f09300;
}
.modal-body > ul div em {
  display: inline-block;
  color: #ffffff;
  background-color: #a7a7a7;
  border-radius: 50px;
  padding: 5px;
  font-style: normal;
  width: 5em;
}
.m-p04-content, .m-p05-content, .m-p06-content {
  background: linear-gradient(to bottom, #e1f5ff 0%, #ffffff 100%);
}
.m-p06-content {
  border: 6px solid #0591f0;
}
.m-p04-content p, .m-p05-content p, .m-p06-content p {
  font-size: 2.1rem;
}
.m-p04-ribbon, .m-p05-ribbon {
  width: 100%;
  background-color: #ff8c6e;
}
.m-p06-ribbon {
  width: 100%;
  background-color: #0591f0;
}
.m-p04-ribbon p, .m-p05-ribbon p, .m-p06-ribbon p {
  width: 100%;
  color: #ffffff;
  font-size: 3rem;
  font-weight: 400;
  border-top: 1px dashed #ffffff;
  border-bottom: 1px dashed #ffffff;
  padding: 0.2em 0em;
  margin-top: 0.3em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.m-p04-ribbon p:before, .m-p05-ribbon p:before, .m-p06-ribbon p:before {
  content: url("../images/p-star.png");
  padding-left: 0.5em;
}
.m-p04-ribbon p:after, .m-p05-ribbon p:after, .m-p06-ribbon p:after {
  content: url("../images/p-star.png");
  padding-right: 0.5em;
}
.m-p06-urge p {
  width: 100%;
  color: #fac828;
  font-size: 2.6rem;
  font-weight: 600;
  margin-top: 0em;
  margin-bottom: 0em;
}
.m-p07-urge p {
  width: 100%;
  font-size: 2.4rem;
  font-weight: 600;
  margin-top: 0em;
  margin-bottom: 0em;
}
.m-p01-content {
  margin-top: 6em;
}
#notes .modal-body {
  text-align: left;
  height: 50vh;
  overflow-y: auto;
}
#notes .modal-body p {
  text-align: justify;
}
.code-box {
  width: 100%;
  border: 1px solid #48a00b;
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  margin-top: 0.6em;
  background-color: #ffffff;
}
.point-code {
  padding: 0 15px;
}
.btn-copy {
  color: #ffffff;
  background-color: #48a00b;
  border-radius: 0;
  font-size: 1.6rem;
}
.btn-copy:hover {
  color: #ffffff;
  background-color: #d72426e6;
}
.modal-footer {
  justify-content: center;
  border-top: none;
  padding: 1em 1.7em 1.7em 1.7em;
  margin: auto;
}
.m-p01b {
  width: 100%;
  height: 120px;
  background-image: url("../images/modal_p01b.png");
  background-repeat: no-repeat;
  background-position: right 1em bottom 0.5em;
}
.modal-footer .btn {
  font-size: 2rem;
  color: #ff8c6e;
  background-color: #ffffff;
  border: 2px solid #faa08c;
  padding-right: 20px;
  padding-left: 20px;
}
.modal-footer .btn.btn-ok {
  color: #ffffff;
  background-color: #ff8c6e;
}
.modal-footer .btn:hover {
  background-color: #333;
  color: #ffffff;
}
.btn-close {
  filter: hue-rotate(-50deg) saturate(200%);
}
/* 列表設定 */
/* 基礎設定 */
.custom-nested-list {
  line-height: 1.6;
  color: #151515;
}
.custom-nested-list ol, .custom-nested-list ul {
  margin: 0;
  padding-left: 0;
}
.custom-nested-list li {
  margin-bottom: 0.5em;
  position: relative;
}

/* --- Level 1: 1. , 2. --- */
.custom-nested-list > ol {
  counter-reset: level1;
}
.custom-nested-list > ol > li {
  list-style: none;
  padding-left: 2.25em;
}
.custom-nested-list > ol > li::before {
  counter-increment: level1;
  content: counter(level1) ".";
  position: absolute;
  left: 0.5em;
}

/* --- Level 2（原 Level 3）: (1), (2) --- */
.custom-nested-list > ol > li > ol {
  counter-reset: level3;
  margin-top: 0.5em;
}
.custom-nested-list > ol > li > ol > li {
  list-style: none;
  padding-left: 2.25em;
}
.custom-nested-list > ol > li > ol > li::before {
  counter-increment: level3;
  content: "(" counter(level3) ")";
  position: absolute;
  left: 0.25em;
}

/* --- Level 3（原 Level 4）: 原點 (Disc) --- */
.custom-nested-list > ol > li > ol > li > ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-top: 0.5em;
}
.custom-nested-list > ol > li > ol > li > ul > li::before {
  content: none;
}

/* --- Level 4（原 Level 5）: 方點 (Square) --- */
.custom-nested-list > ol > li > ol > li > ul > li > ul {
  list-style-type: square;
  padding-left: 1.5em;
  margin-top: 0.5em;
}
.custom-nested-list > ol > li > ol > li > ul > li > ul > li {
  padding-left: 0.5em;
}
/* 測試區塊專用樣式 */
.test a {
  cursor: pointer;
  color: #0dcaf0;
}
.test a:hover {
  color: #fff;
}


@media (max-width: 360px) {
  #notes .modal-body {
    padding: 2rem 1.5rem 3rem 1.5rem;
  }
}

#dialog-5 .ribbon,
#dialog-5 .content {
  display: none;
}

#dialog-5 .ribbon.is-active,
#dialog-5 .content.is-active {
  display: block;
}