:root{
  --ink:#4b4d7d;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  font-family:"Noto Sans TC","Noto Sans JP","Microsoft JhengHei",Arial,sans-serif;
  background:#f6f0ff url("../../assets/images/bg.webp") 10% center/cover no-repeat !important;
  overflow-x:hidden;
}

img{max-width:100%;height:auto;display:block}
a{text-decoration:none}
.s{
   display: none;
}


/* =========================================================
   共用
========================================================= */
/* =========================================================
   共用 UI Utilities
========================================================= */
.ui-outline-text {
    position: relative;
    width: fit-content;
    font-family: "Huninn", sans-serif;
    font-size: var(--outline-font-size, 1rem);
    font-weight: var(--outline-font-weight, 550);
    line-height: 1.4;
    letter-spacing: var(--outline-letter-spacing, 1px);
    color: var(--outline-fill, #fff);
    text-align: center;
    -webkit-text-stroke: var(--outline-size, 5px) var(--outline-color, #8f48b7);
    paint-order: stroke fill;
    text-shadow: 0 0 0 #fff, 0 3px 3px rgba(121, 78, 160, .22);
    transform: scaleX(var(--outline-scale-x, 1.03));
}

.ui-deco {
    position: absolute;
    pointer-events: none;
}

.section{
  position:relative;
  padding:2rem 0;
}
.section-wrap{
  position:relative;
  z-index:2;
}
.section-title-img{
  width:min(350px,72vw);
  margin:0 auto 24px;
  position:relative;
  z-index:5;
}
.section-subtitle {
    --outline-font-size: clamp(20px, 1.6vw, 30px);
    --outline-color: #604fc3;
    width: fit-content;
    margin: 0 auto 30px;
}



/* =========================================================
   COVER
========================================================= */
.cover-section{
  min-height:min(900px,95vh);
  background:url("../../assets/images/cover/cover-bg.webp") center 10% no-repeat;
  background-size: 100% auto;
}
.cover-inner{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:clamp(24px,2.5vw,36px);
  height:auto;
  min-height:clamp(650px,88svh,850px);
  padding-top:140px;
  padding-bottom:60px;
}

.cover-slogan-area{
  position:relative;
  /* transform:none !important;
  flex:none; */
  height:auto;
  width:min(660px,58vw);

  z-index:3;
}

.cover-title{
  /* 與投稿按鈕依內容高度排列，避免百分比定位互相重疊。 */
  position:relative;
  transform:none !important;
  flex:none;
  height:auto;
  /* width:min(660px,58vw); */
  z-index:3;
}

.cover-submit{
  position:relative;
  transform:none !important;
  flex:none;
  display:block;
  margin: auto;
  margin-top: -1rem;
  width:min(270px,25vw);
  z-index:5;transition:transform .25s ease,filter .25s ease;filter:drop-shadow(0 7px 8px rgba(85,77,160,.25));
}

.cover-submit:hover{
  transform:translateY(-5px) scale(1.035) !important;}

.cover-npc{
  position:absolute;
  width:min(250px,25vw);
  left:8%;bottom:0;
  /* z-index:4; */
  z-index: 0;
  filter:drop-shadow(0 9px 8px rgba(73,52,87,.15));}



/* =========================================================
   ABOUT
========================================================= */
#about {
    min-height: 980px;
    padding-top: 80px;
    background: url("../../assets/images/sec1/sec1-bg.webp") center no-repeat;
    background-size: contain;
}

#about .section-wrap {
    min-height: 820px;
}

.about-copy {
    position: relative;
    z-index: 4;
    width: min(650px, 62%);
    margin: 0 auto;
    padding: 4px 2.2rem 0;
    text-align: left;
}

#about .section-subtitle {
    margin-bottom: 22px;
    /* color: #ca6fb2; */
}

.about-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.about-list li {
    position: relative;
    margin: 15px 0 ;
    padding-left: 32px;
    padding-bottom: 15px;
    font-weight: 650;
    line-height: 1.9;
    border-bottom: 2px dotted #b3b2e2;
}
.about-list li:last-child {
    border: none;
}
.about-list li::before {
    content: "";
    position: absolute;
    top: 7px;
    left: -4px;
    color: #f6c853;
    font-size: 20px;
    text-shadow: 0 1px 0 #bb7b4c;
    background: url(../images/icon-srar.webp)no-repeat;
    background-size: cover;
    width: 30px;
    aspect-ratio: 54/51;
}

.about-cta {
    position: relative;
    font-size: 22px;
    margin-top: 2.3rem;
    color: #5a5da3;
    font-weight: 800;
    text-align: center;
}
.about-cta::before,
.about-cta::after {
    content: "";
    position: absolute;
    aspect-ratio: 40/56;
    width: 50px;
    filter: drop-shadow(1px 1px 1px #b67409);
}
.about-cta::before {
    top: -80%;
    left: 4%;
    background: url(../images/icon-tips.webp)no-repeat;
    background-size: cover;
}
.about-cta::after {
    top: -80%;
    right: 4%;
    background: url(../images/icon-tips.webp)no-repeat;
    background-size: cover;
    transform: scaleX(-1);
}



/* Character  */
.about-ch {
    position: absolute;
    right: -3%;
    bottom: 40px;
    z-index: 3;
    width: min(340px, 28vw);
}

/* Decoration  */
#about .ui-deco {
    z-index: 2;
}

#about .item-1 {
    top: -5%;
    right: 14%;
    width: 180px;
}

#about .item-2 {
    top: 25%;
    left: 0;
    width: 150px;
}

#about .item-3 {
    top: -11%;
    left: 9%;
    width: 180px;
}

#about .item-4 {
    top: 62%;
    right: 2%;
    width: 150px;
}

#about .item-5 {
    top: 5%;
    right: -4%;
    width: 150px;
}

#about .item-6 {
    top: 35%;
    left: 12%;
    width: 200px;
}

#about .item-7 {
    left: 3%;
    bottom: 20%;
    width: 160px;
}

/* Timeline  */
.timeline {
    position: relative;
    z-index: 5;
    width: min(950px, 86%);
    margin: 5rem auto 0;
}

.timeline > img {
    width: 72%;
    margin: 0 auto;
}

.timeline-labels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: -15px;
    font-weight: 800;
    text-align: center;
}

.timeline-labels div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.timeline-labels strong {
    --outline-font-size: clamp(18px, 1.6vw, 20px);
    --outline-color: #7a55a3;
    margin: 0 auto;
}


.timeline-labels span {
    --outline-font-size: clamp(.9rem, 1vw, 20px);
    --outline-color: #7a55a3;
    margin: 0 auto 5px;
}



/* =========================================================
   REWARDS
========================================================= */
#rewards {
    padding-bottom: 120px;
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, .12),
        rgba(244, 224, 255, .2)
    );
}
#rewards .section-subtitle {
    --outline-color: #a12e79;
}
#rewards .section-subtitle_note{
    --outline-color: none;
    color: #a34a84;
    font-size: 1.1rem;

}

#rewards .section-subtitle:last-child {
    --outline-font-size: .9rem;
    --outline-size: 0px;
    --outline-scale-x: 1;
    color: #8160a8;
    font-weight: 900;
    text-shadow: none;
}

.reward-grid {
    position: relative;
    z-index: 3;
}

.reward-card {
    width: 100%;
    max-height: 550px;
    margin: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 13px rgba(102, 72, 128, .13));
    transition: .3s ease;
}
.reward-card:hover {
    transform: translateY(-8px);
}

.reward-card-main {
    transform: translateY(-12px);
}
.reward-card-main:hover {
    transform: translateY(-25px) !important;
    transition: .5s ease!important;
}

.reward-grid h5{
    text-align: center;
}
.reward-grid h5.color_1st{
    color: #9861ab;
}
.reward-grid h5.color_2en{
    color: #556ba3;
}
.reward-grid h5.color_3rd{
    color: #854040;
}



.reward-grid h5 span:not(.reward-prize-name){
 font-size: 14px;
}


/* Decoration  */
.deco {
    z-index: 1;
}

.deco-ribbon-l {
    top: 0px;
    left: 0;
    width: 260px;
}

.deco-ribbon-r {
    top: 8;
    right: 0;
    width: 200px;
}

.star-a {
    left: 3%;
    bottom: 10%;
    width: 60px;
}

.star-b {
    top: 10%;
    right: 15%;
    width: 65px;
}

.star-c {
    top: 18%;
    left: 18%;
    width: 70px;
}

.glow-line {
    top: 8%;
    left: 7%;
    width: 220px;
}

.ribbon-short {
    right: 0%;
    bottom: 12%;
    width: 300px;
}

.ribbon-side {
    left: 0;
    bottom: 22%;
    width: 100px;
}



/* =========================================================
   RULES
========================================================= */
#rules {
    padding-top: 40px;
    padding-bottom: 150px;
    overflow: hidden;
}

.rules-wrap {
    position: relative;
    min-height: 800px;
}

.rules-frame {
    position: relative;
    z-index: 3;
    width: min(900px, 88vw);
    margin: 0 auto;
}

.rules-frame-img {
    position: relative;
    z-index: 1;
    width: 100%;
    pointer-events: none;
}

/* Rules Scroll  */
.rules-scroll {
    position: absolute;
    z-index: 2;
    top: 8.5%;
    right: 8.5%;
    bottom: 10.5%;
    left: 8.5%;
    padding: 12px 24px 12px 10px;
    overflow-y: auto;
    color: #4d4c68;
    font-size: 15px;
    line-height: 1.75;
    text-align: left;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #a693da rgba(205, 192, 236, .35);
}

.rules-scroll h3 {
    margin: 20px 0 8px;
    color: #6c5ca6;
    font-size: 1.05rem;
    font-weight: 900;
}

.rules-scroll ol {
    margin-bottom: 0;
    padding-left: 1.35rem;
}

.rules-scroll li {
    margin-bottom: 5px;
}

/* Scrollbar  */
.rules-scroll::-webkit-scrollbar {
    width: 10px;
}

.rules-scroll::-webkit-scrollbar-track {
    border-radius: 99px;
    background: rgba(205, 192, 236, .35);
}

.rules-scroll::-webkit-scrollbar-thumb {
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 99px;
    background: linear-gradient(#9d8ad5, #e8a9cf);
}

/* Rules Decoration  */
#rules .ui-deco {
    z-index: 4;
}

#rules .item-1 {
    left: 0;
    bottom: 30%;
    width: 180px;
    opacity: .8;
    transform: scaleX(-1) !important;
}

#rules .item-2 {
    top: 10%;
    right: 2%;
    width: 180px;
    transform: scaleX(-1);
}

#rules .item-3 {
    right: 3%;
    bottom: 0%;
    width: 180px;
}


/* =========================================================
   RWD
========================================================= */
@media (min-width: 1442px) {
    .cover-submit{
        width: min(320px,25vw);
    }
    #rules .section-title-img{
        margin: 0 auto -2.5rem;
    }
    .rules-scroll{
        top: 6.5%;
        bottom: 9.5%;
    }
}


@media (max-width: 1441px) {

    body {
        background: #f6f0ff url("../../assets/images/bg.webp") center top / cover no-repeat !important;
    }
    .cover-slogan-area{
        margin-top: 5rem;
        width:min(550px,58vw);
        }

    .cover-title{
        /* width: min(550px, 58vw); */
    }

    .cover-npc {
        width: min(230px, 25vw);
        left: 10%;
        bottom: 5%;
        z-index: 0;
    }

    #rules .section-title-img {
        margin: 0 auto -40px;
    }

}


@media (min-width: 992px) and (max-width: 1441px) {

    .cover-inner,
    .section-wrap,
    .rules-wrap {
        margin-left: auto;
        margin-right: auto;
    }

    .cover-inner,
    #about .section-wrap,
    #rewards .section-wrap,
    .rules-wrap {
        padding-left: 24px;
        padding-right: 24px;
    }

    .about-copy,
    .timeline,
    .rules-frame,
    .section-title-img,
    .section-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .reward-grid {
        margin-left: 0;
        margin-right: 0;
    }

}


@media (max-width: 991.98px) {
  .section{
    padding-top: 60px;
  }  
  .section-title-img{
    width: 300px;
  }
  #about{
    min-height: 750px;
  }
  #about .section-wrap{
    min-height: 650px;
  }

    .cover-section,
    .cover-inner {
        height: auto;
        min-height: 680px;
    }

    .cover-title{
        width: min(500px, 78vw);
    }

    .cover-npc {
      width: 180px;

        left: 2%;
        bottom: 10%;
    }

    .cover-submit{
        width: 240px;
    }

    /* About  */
    .about-copy {
        width: min(680px, 82%);
    }

    .about-ch {
        width: 160px;
        right: 55px;
        bottom: 40px;
        opacity: .76;

    }

    #about .ui-deco {
        opacity: .65;
    }
    #about .item-1{
      width: 150px;
      right: 10%;
    }
    #about .item-2{
      width: 120px;
    }
    #about .item-3{
      width: 150px;
    }
    #about .item-4{
      width: 130px;
      right: -5%;
      display: none;
    }
    #about .item-5{
      width: 130px;
      right: -2%;
      top: 22%;
    }
    #about .item-6{
      width: 130px;
      top: 55%;
      left: 15%;
    }
    #about .item-7{
      width: 130px;
      left: 0;
      bottom: 20%;
    }

    .timeline-labels{
      gap: 10px;
    }
    .timeline {
        width: 92%;
    }
    .timeline > img {
      width: 73%;
    }

    /* Rules  */
    .rules-frame {
        width: min(920px, 96vw);
    }

    .rules-scroll {
        left: 8%;
        right: 8%;
        padding-right: 16px;
        font-size: 14px;
    }

    #rules .ui-deco  {
        opacity: .65;
    }
    .deco-ribbon-l{
      top: 150px;
    }
    .deco-ribbon-r{
      top: 105px;
    }
    .ribbon-short{
      right: unset;
      bottom: 0;
      width: 240px;
    }
}


@media (max-width: 767.98px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        background-attachment: scroll;
        background-position: center top !important;
        background-size: auto 100% !important;
    }

    main,
    .cover-section,
    #about,
    #rewards,
    #rules{
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .cover-inner,
    .section-wrap,
    .rules-wrap {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 12px;
        padding-right: 12px;
    }

    .section {
        padding: 48px 0;
    }

    .section-title-img {
        width: min(320px, 76vw);
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
    }

    .section-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    /* Cover  */
    .cover-section {
        min-height: 620px;
        overflow: hidden;
        background-position: center top;
        background-size: cover;
    }

    .cover-inner {
        padding-top: 130px;
        padding-bottom: 50px;
        min-height: 620px;
    }

    .cover-title{
        width: min(520px, 90vw);
    }

    .cover-submit{
        width: min(210px, 55vw);
    }

    .cover-npc {
        display: none;
    }

    /* Section 01  */
    #about {
        min-height: 0;
        padding-top: 64px;
        padding-bottom: 64px;
        background-position: center top;
        background-size: cover;
    }

    #about .section-wrap {
        min-height: 0;
    }

    .about-copy {
        width: min(620px, 94%);
        margin-left: auto;
        margin-right: auto;
        padding: 0 8px;
    }

    #about .section-subtitle {
        margin-bottom: 18px;
        font-size: 1rem;
        line-height: 1.65;
    }

    .about-list li {
        margin: 12px 0;
        padding-left: 26px;
        font-size: .92rem;
        line-height: 1.7;
    }

    .about-cta {
        margin-top: 20px;
        font-size: .95rem;
        line-height: 1.6;
    }

    .about-ch {
        display: none;
    }

    #about .ui-deco {
        opacity: .22;
    }

    #about .ui-deco {
        display: none;
    }

    #about .item-3 {
        width: 110px;
        left: -18px;
        top: 0;
    }

    /* Timeline  */
    .timeline {
        width: min(560px, 92%);
        margin: 36px auto 0;
    }

    .timeline > img {
        display: none;
    }

    .timeline-labels {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 0;
    }

    .timeline-labels div {
        padding: 10px 12px;
        border: 1px solid rgba(255, 255, 255, .72);
        border-radius: 14px;
        background: rgba(255, 255, 255, .66);
        box-shadow: 0 5px 14px rgba(103, 72, 155, .08);
    }

    .timeline-labels strong {
        font-size: 1.2rem;
    }

    .timeline-labels span {
        font-size: .78rem;
        line-height: 1.5;
    }

    /* Rewards  */
    #rewards {
        padding-bottom: 72px;
    }

    .reward-grid {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        --bs-gutter-y: 1rem;
    }

    .reward-grid > [class*="col-"] {
        margin-left: auto;
        margin-right: auto;
    }

    .reward-card {
        max-width: 420px;
        max-height: none;
    }

    .reward-card-main {
        transform: none;
    }

    .deco {
        opacity: .25;
    }

    /* Rules  */
    #rules{
        padding-top: 36px;
        padding-bottom: 72px;
    }

    .rules-wrap {
        min-height: 0;
    }

    .rules-frame {
        width: 100%;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }

    .rules-scroll {
        top: 9%;
        right: 8%;
        bottom: 9%;
        left: 8%;
        padding: 8px 10px 8px 4px;
        font-size: 12px;
        line-height: 1.55;
    }

    .rules-scroll h3 {
        margin: 14px 0 5px;
        font-size: .92rem;
    }

    #rules .item-1 {
        width: 70px;
    }

    #rules .item-2 {
        width: 82px;
    }

    #rules .item-3 {
        width: 96px;
    }

}


@media (max-width: 575.98px) {
    .l{
        display: none;
    }
    .s{
        display: block;
    }

    main{
        background: #f6f0ff url("../../assets/images/bg_s.webp") top center no-repeat !important;
        background-size: auto 100% !important;
    }

    .cover-inner,
    .section-wrap,
    .rules-wrap {
        padding-left: 10px;
        padding-right: 10px;
    }
    .section-title-img{
      max-width: min(280px, 70vw);
    }
    .section-subtitle {
        width: 92%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
        font-size: 1rem;
        line-height: 1.55;
    }

    /* Cover  */
    .cover-section,
    .cover-inner {
        min-height: 95vh;
    }
    .cover-inner {
        /* 保留上方角色位置；矮螢幕由內容自然撐高。 */
        padding-top: clamp(300px, 44svh, 380px);
        padding-bottom: 40px;
        gap: clamp(24px, 5vw, 28px);
    }
    .cover-npc{
      display: block;
      left: 28%;
      top: 12%;
      z-index: 0;
      width: 190px;
    }
    .cover-slogan-area{
        margin-top: 2.5rem;
        width: 95%;
    }
    /* .cover-title{
      width: 95%;
    } */

    .cover-title{
        width: 100%;
    }
    .cover-submit{
        width: min(180px, 58vw);
        margin-top: 0;
    }

    /* Section 01  */
    #about {
        padding-top: 52px;
        padding-bottom: 52px;
        background-size: 150% 50%;
    }
    .about-list li::before{
        width: 20px;
    }
    .about-copy {
        width: 96%;
    }

    #about .item-3 {
        display: none;
    }

    .about-cta::before, 
    .about-cta::after{
        width: 30px;
    }
    .about-cta::after{
        right: -6%;
    }
    .about-cta::before{
        left: -6%;
    }
    .timeline-labels div{
      background: rgb(249 153 186);
      border: 3px solid rgba(252, 234, 234, 0.979);
    }





    /* Rewards  */
    .reward-grid .col-10 {
        width: 95%;
        padding: 0;
    }
    .reward-card-main{
        animation:none !important;
    }
    .reward-grid h5{
        font-weight: 600;
        font-size: 1rem;
    }
    .reward-grid h5.color_3rd{
        color: #985246;
    }
    #rewards .section-subtitle_note{
        font-size: .8rem;
    }
    .star-a{
        left: -5%;
    }
    .star-b{
        right: -5%;
    }



    /* Rules  */
    #rules .ui-deco {
        display: none;
    }

    .rules-frame {
        width: 100%;
        height: 60vh;
    }

    .rules-frame-img {
        height: 100%;
    }

    .rules-scroll ol {
        padding-left: 1.1rem;
    }
    #rules .section-title-img{
        margin: 0 auto -30px;
    }

}
