@charset "utf-8";
/* CSS Document */
body {
            font-family: "Raleway", sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100svh;
            margin: 0;
            background-color: #f0f0f0;
        }
       .video-container {
    position: relative;
    width: 100vw;
    height: 100svh;
    overflow: hidden;
}

video {
    position: fixed;
    width: 100%!important;
    height: 100%!important;
    object-fit: cover;
	top: 0!important;
    left: 0!important;
}

#effectCanvas {
    position: fixed;
    top: 0!important;
    left: 0!important;
    width: 100%!important;
    height: 100%!important;
    pointer-events: none;
    transition: transform 0.05s linear; object-fit: cover; object-position: center;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#ui {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100; display: flex;align-items: center; gap:20px;
}

#batteryContainer {
    width: 30px;
    height: 15px; position: relative;
}
#battery { width: 100%;
    height: 100%; border-radius: .2em; overflow: hidden; border: 1px solid #FFF;}
#batteryContainer:before { content: ""; display: block; height: 8px; width: 3px; background-color: #FFF; position: absolute; top:50%; box-sizing: border-box; right: -4px;transform: translateY(-50%);}

#batteryInfo {
    height: 100%;
    background-color: #fff;
    transition: width 0.3s ease;
}

#stepCount {
    color: white;
    font-size: 1em;
}

h1 { width: 100%; text-align: center; position: fixed; top:50%; left: 0; transform: translateY(-50%); color: #FFF; font-weight: 600; font-size: 8vw; padding: 3vw; box-sizing: border-box; margin: 0;}

/* アナログテレビ効果用のアニメーション */
@keyframes verticalScan {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

/* バッテリー低下時の追加エフェクト */
.dan #effectCanvas {
    animation: flicker 0.15s infinite;
}

.dan2 #effectCanvas {
    filter: brightness(0.1) contrast(0.5) !important;
}

@keyframes flicker {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
    100% {
        opacity: 1;
    }
}

/* 低バッテリー警告アニメーション */
@keyframes lowBatteryPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.dan #batteryInfo {
    background-color: #ff4444;
    animation: lowBatteryPulse 1s infinite;
}
.reset-button {
    position: fixed;
    bottom: 12.5px;
    left: 12.5px;
    padding: .5em 1em;
    background-color: transparent;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer; font-weight: 400;
    z-index: 1000;font-family: "Raleway", sans-serif;
}

@media (orientation: landscape) {
	h1 { font-size: 4vw;}
}

