body {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
#errorPrinter {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 640px;
    height: 100px;
    transform: translate(-50%, -50%);
    text-align: center;
    text-shadow: 1px 1px 3px #000;
    font-size: 20px;
    color: #fff;
    z-index: 9;
}
#errorName {
    color: #ff0;
    font-weight: bold;
    -moz-user-select: text;
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}
#errorMessage {
    color: #fff;
    -moz-user-select: text;
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}
#retryButton {
    font-size: 20px;
    color: #fff;
    background-color: #000;
    border-radius: 8px;
    margin: 20px;
    padding: 10px;
}
#fpsCounterBox {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 90px;
    height: 40px;
    background: #222;
    opacity: 0.8;
    z-index: 8;
}
#fpsCounterLabel {
    position: absolute;
    top: 0px;
    left: 0px;
    padding: 5px 10px;
    height: 30px;
    line-height: 32px;
    font-size: 12px;
    font-family: rmmz-numberfont, sans-serif;
    color: #fff;
    text-align: left;
}
#fpsCounterNumber {
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 5px 10px;
    height: 30px;
    line-height: 30px;
    font-size: 24px;
    font-family: rmmz-numberfont, monospace;
    color: #fff;
    text-align: right;
}
#loadingSpinner {
    margin: auto;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    width: 160px;
    height: 160px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loadingSpinnerImage {
    position: relative;
    width: 120px;
    height: 40px;
    margin: 0;
    padding: 0;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* かわいいドット */
#loadingSpinnerImage::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background-color: #FF88AA;
    left: 20px;
    animation: dotBounce 1.2s infinite;
    animation-delay: 0s;
    box-shadow: 
        30px 0 0 0 #88AAFF,  /* 2つ目のドット */
        60px 0 0 0 #AAFFAA;  /* 3つ目のドット */
}

/* 2つ目のドットのアニメーション */
#loadingSpinnerImage::after {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 50px;
    border-radius: 50%;
    background-color: transparent; /* 透明にして実質非表示 */
    animation: dotBounce 1.2s infinite;
    animation-delay: 0.4s; /* 2つ目は少し遅れてアニメーション */
}

/* 3つ目のドットのアニメーション（box-shadowを使用） */
@keyframes dotBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px);
        opacity: 1;
    }
}

/* box-shadowに対するアニメーション適用 */
#loadingSpinnerImage::before ~ #loadingSpinnerImage::after {
    animation-delay: 0.8s; /* 3つ目はさらに遅れる */
}

@keyframes magicPulse {
    0%, 100% { 
        box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.3);
        background-color: rgba(15, 5, 25, 0.75);
    }
    50% { 
        box-shadow: 0 0 30px 8px rgba(255, 180, 0, 0.5);
        background-color: rgba(25, 10, 40, 0.75);
    }
}

@keyframes fadein {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

