body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
.bg-wrapper {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: black;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.bg-layer {
    position: absolute;
    inset: 0;
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    transition-property: opacity;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.bg-layer.active {
    opacity: 1;
    z-index: 1;
}
.bg-layer-video{
    width: 100%;
    object-fit: cover;
    height: 100%;
}
.bg-layer-video video{
    width: 100%;
    height: 100%;
}


.step0_Div {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
    transition: opacity 2s ease;
    opacity: 0;
}
.step0_Div.fade-out {
    opacity: 0;
}
.step0_Div.fade-in {
    opacity: 1;
}
.step0_Div .step0_mask {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.step0_Div .step0_text {
    background-image: url(/skin/images/knock/start_frame.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 30%;
    height: 63%;
    margin: 0 auto;
    z-index: 2;
}
.step0_Div .step0_btn {
    background-color: unset;
    background-image: url(/skin/images/knock/start_btn.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    position: absolute;
    top: 79.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 37%;
    height: 20%;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    opacity: 0.8;
}
.step0_Div .step0_btn:hover {
    opacity: 1;
    background-image: url(/skin/images/knock/start_btn_d.png);
}

/* ● Step0 淡出效果 */
.fade-out { animation: fadeOut 0.5s forwards; }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }

.step1_Div {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fadeContent-enter-active {
    transition: opacity 1s ease;
}
.fadeContent-enter-from {
    opacity: 0;
}
.fadeContent-enter-to {
    opacity: 1;
}

/*  Step1 倒數文字 */
.countdownBg{
    background-image: url(/skin/images/knock/countdown_bg.png);
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 7%;
    left: 52%;
    transform: translateX(-52%);
    z-index: 9;
    pointer-events: none;
    width: 30%;
    height: 30%;
}
.countdown {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5vw;
    color: #bf0000;
    z-index: 10;
    text-align: center;
    font-weight: bold;
    pointer-events: none;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}
.countdown p{
    font-size: 3vw;
    font-weight: bold;
    margin: 0;
    pointer-events: none;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

.knockDiv{
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 11;
    top: 0;
    left: 0;
}
.knockP{
    z-index: 998;
    background-image: url(/skin/images/knock/share_img.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    width: 15%;
    height: 23%;
    position: absolute;
    transition: top 0.3s ease-in-out, left 0.3s ease-in-out;
}
/*  跟隨游標圖片 */
.cursor-div {
    position: fixed;
    pointer-events: none;
    transform: translate(-80%, -90%) rotateZ(45deg);
    z-index: 999;
    background-image: url(/skin/images/knock/tool.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    width: 37%;
    height: 37%;
    transition: transform 0.1s;
}
.cursor-div.active {
    transform: translate(-80%, -90%) rotateZ(65deg);
}
/* Boom 效果圖 */
.boom {
    position: fixed;
    width: 11%;
    height: 14%;
    background-image: url(/skin/images/knock/boom.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 998;
    pointer-events: none;
    transform: translate(-30%, -30%);
}
.info {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    z-index: 1001;
}

.knockP img {
    width: 100px;
    pointer-events: none;
}
.cursor-warning {
    background-image: url(/skin/images/knock/cursor_donthit.png);
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
    position: absolute;
    animation: pulse 0.8s infinite;
    width: 12%;
    height: 15%;
    transform: translate(-20%, -50%);
    z-index: 10;
}
.hole{position:absolute;width:12%;cursor:pointer;z-index: 10;}
.hole img{width:100%;}

@keyframes pulse{0%,100%{transform:scale(1);opacity:1;}50%{transform:scale(1.2);opacity:0.6;}}

/* 分享彈窗 */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/*  影片 Modal */
.video-modal {
    position: fixed;
    inset:0;
    background: rgba(0,0,0,0.8);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:1000;
    width: 100%;
    height: 100%;
}
.video-modal video{
    position: absolute;
    width: 100%;
    z-index: 1;
}
.video-modal img {
    position: absolute;
    width: 105%;
    object-fit: cover;
    z-index: 2;
}
@keyframes horror-shake {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1);}
    10%  { transform: translate(-2px, -1px) rotate(-1deg); }
    20%  { transform: translate(-1px, 2px) rotate(1deg); }
    30%  { transform: translate(2px, 1px) rotate(0deg); }
    40%  { transform: translate(1px, -1px) rotate(1deg); }
    50%  { transform: translate(-1px, 2px) rotate(-1deg); }
    60%  { transform: translate(2px, 1px) rotate(0deg); }
    70%  { transform: translate(1px, -2px) rotate(-1deg); }
    80%  { transform: translate(-2px, -1px) rotate(1deg); }
    90%  { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1.2); }
}
.horror-shake {
    animation: horror-shake 0.1s infinite;
}
.flicker {
    animation: flicker 0.15s infinite alternate;
}
@keyframes flicker {
    0%   { opacity: 1; }
    100% { opacity: 0.7; }
}
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;

    background: repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.01) 0px,
            rgba(255, 255, 255, 0.01) 1px,
            transparent 1px,
            transparent 2px
    );
}
.glitch-overlay::after{
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-radial-gradient( #00000070 0 0.00001%, #fff 0 0.00002%);
    background-size: 200%;
    animation: noise .4s steps(5) infinite;
    mix-blend-mode: multiply;
    opacity: .1;
}
@keyframes noise {
    to   { background-position: 100% }

}

/* Step2 分享彈窗 */
.step2_Div {
    position: fixed;
    inset:0;
    z-index:200;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.step2_Div{
    position: absolute;
    width: 100%;
    height: 100%;

    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.overlay { position: absolute; inset:0; background:rgba(0,0,0,0.8); }
.share-img{
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65%;
}
.share-img img{
    width: 100%;
}
.share-popup {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background-image: url(/skin/images/knock/share_frame.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    width: 35%;
    height: 75%;
    animation: slideUp 0.5s ease-out;
}
@keyframes slideUp { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes slideUp2 { from { opacity: 0} to { opacity: 1 } }
.share-buttons {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    width: 80%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.share-buttons a {
    background-image: url(/skin/images/top_social_d.png);
    background-repeat: no-repeat;
    background-size: 365%;
    text-decoration: none;
    display: inline-block;
    background-color: unset;
    width: 10%;
    height: 0;
    padding-bottom: 8.5%;
    margin: 0;
    transition: background-image .3s ease-in-out;
}
.share-buttons a:hover{
    background-image: url(/skin/images/top_social.png);
}
.share-buttons a.shareSocialBtn.shareSocialBtn_ig {
    background-position: -3% 100%;
}
.share-buttons a.shareSocialBtn.shareSocialBtn_fb {
    background-position: 32% 100%;
}
.share-buttons a.shareSocialBtn.shareSocialBtn_x {
    background-position: 68% 100%;
}
.share-buttons a.shareSocialBtn.shareSocialBtn_threads {
    background-position: 102% 100%;
}
.share-track-div{
    position: absolute;
    top: 82%;
    width: 100%;
    animation: slideUp2 1.5s ease-in-out;
    transform: translate(0, -50%);
}
.share-track-text{
    /*background-image: url(/skin/images/knock/share_text.png);*/
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    text-align: center;
    /*font-size: 0.85vw;*/
    color: white;
    width: 16%;
    height: 1vw;
    margin: 2% 42% 0 42%;
}
.share-track-buttons{
    margin-top: .5%;
    text-align: center;
}
.share-track-buttons a{
    background-image: url(/skin/images/knock/bottom_social_d.png);
    background-repeat: no-repeat;
    background-size: 200%;
    text-decoration: none;
    display: inline-block;
    background-color: unset;
    width: 5%;
    height: 0;
    padding-bottom: 2.5%;
    transition: background-image .3s ease-in-out;
    margin: 0 .3%;
}
.share-track-buttons a:hover{
    background-image: url(/skin/images/knock/bottom_social.png);
}
.share-track-buttons a.shareSocialTrackBtn.shareSocialTrackBtn_fb {
    background-position: -3% 100%;
}
.share-track-buttons a.shareSocialTrackBtn.shareSocialTrackBtn_x {
    background-position: 105% 100%;
}

.ready-text {
    position: absolute;
    top: 30%;
    left:50%;
    font-size: 6vw;
    font-weight: bold;
    transform: translateX(-50%);
    color: #bf0000;
    z-index: 10;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.go-text {
    position: absolute;
    top: 30%;
    left:50%;
    font-size: 6vw;
    font-weight: bold;
    transform: translateX(-50%);
    color: #bf0000;
    z-index: 10;
    animation: pop 1.5s ease;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

@keyframes pop {
    0% { opacity: 0; }
    100% {  opacity: 1; }
}

.Slogan-text{
    position: absolute;
    top: 10%;
    left:50%;
    font-size: 3.5vw;
    font-weight: bold;
    transform: translateX(-50%);
    color: #bf0000;
    z-index: 10;
    font-style: italic;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

.Slogan-text.Slogan-text1{
    top: 5%;
    left: 0;
    transform: unset;
    width: 100%;
    text-align: center;
}

.Slogan-text.Slogan-text2{
    top: 15%;
    left: 0;
    transform: unset;
    width: 100%;
    text-align: center;
}

.fadeStatus-enter-active, .fadeStatus-leave-active {
    transition: opacity 1.5s ease;
}
.fadeStatus-enter-from, .fadeStatus-leave-to {
    opacity: 0;
}
.fadeStatus-enter-to, .fadeStatus-leave-from {
    opacity: 1;
}


/* GO! 使用 noFade，僅淡入（不淡出） */
.noFade-enter-active {
    transition: opacity 0.3s ease;
}
.noFade-enter-from {
    opacity: 0;
}
.noFade-enter-to {
    opacity: 1;
}

footer{
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: .8em;
    color: #5b5b5b;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:lang(en).step0_Div .step0_text {
    background-image: url(/skin/images/knock/start_frame_en.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 30%;
    height: 63%;
    margin: 0 auto;
    z-index: 2;
}
:lang(en).step0_Div .step0_btn {
    top: 76.5%;
}
:lang(en).share-popup {
    background-image: url(/skin/images/knock/share_frame_en.png);
}
:lang(en).cursor-warning {
    background-image: url(/skin/images/knock/cursor_donthit_en.png);
    background-size: contain;
}