* {
    margin: 0;
    padding: 0;
}

body {
    overflow: hidden;
}

h1 {
    font-size: 32px;
    margin-top: 32px;
}

#moeyooso {
    height: 100vh;
    width: 100vw;
    overflow: auto;
}

#moeyooso.aic-burst {
    animation: aic-burst-scale 1s;
}

@keyframes aic-burst-scale {
    0% {transform: scale(1.1); filter: brightness(1.1);}
    100% {transform: scale(1); filter: brightness(1);}
}

.page {
    width: min(calc(1000px), calc(100vw - 32px));
    margin: 0 auto;
    box-sizing: border-box;
}

.moeyooso-page-header {
    text-align: center;
}

.moeyooso-page-header>div {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 32px;
}

@media screen and (max-width: 765px) {
    h1 {
        font-size: 24px;
        margin-top: 32px;
    }

    .moeyooso-page-header>div {
        font-size: 14px;
        margin-bottom: 32px;
    }
}

.moeyooso-group {
    margin-bottom: 32px;
}

.moeyooso-group-title {
    background-color: #E0E3E7;
    text-align: center;
    line-height: 24px;
    padding: 12px;
    border-top: #A2A9B1 1px solid;
    border-bottom: #A2A9B1 1px solid;
    font-weight: bold;
}

.moeyooso-line {
    display: flex;
    align-items: center;
}

@media screen and (max-width: 765px) {
    .moeyooso-line {
        align-items: stretch;
        flex-direction: column;
    }
}

.moeyooso-item {
    flex: 1;
    display: flex;
    border-bottom: #A2A9B1 1px solid;
}

.moeyooso-item-title {
    background-color: #EAECF0;
    width: 160px;
    text-align: center;
    font-weight: bold;
    padding: 12px;
    box-sizing: border-box;
}

@media screen and (max-width: 765px) {
    .moeyooso-item-title {
        width: max(20vw, 95px);
    }
}

.moeyooso-item-content {
    flex: 1;
    padding: 4px;
}

.moeyooso-tag {
    background-color: #EEE;
    padding: 4px 8px;
    margin: 4px;
    display: inline-block;
    border-radius: 4px;
    cursor: pointer;
}

.moeyooso-tag:hover {
    filter: brightness(1.015);
}

.moeyooso-tag:active {
    filter: brightness(0.95);
}

.moeyooso-tag.disable {
    opacity: 0.35;
    text-decoration: line-through;
}

.moeyooso-bottom {
    border-top: #A2A9B1 1px solid;
    margin-top: -1px;
    position: sticky;
    bottom: 0px;
    background-color: #FFF;
    box-shadow: 0 -4px 4px -4px rgb(0 0 0 / 25%);
    padding: 16px 16px;
}

@media screen and (max-width: 765px) {
    .moeyooso-bottom {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }
}

#moeyooso-tag-output {
    margin-top: 12px;
    margin-bottom: 12px;
}

#moeyooso-popup {
    position: fixed;
    bottom: 22px;
    right: 32px;
    background-color: #FFF;
    border-radius: 4px;
    padding: 4px 8px;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity .3s;
    max-width: calc(50vw - 32px);
    text-align: right;
    z-index: 100;
}

#moeyooso-popup.hide {
    opacity: 0;
    transition: opacity .3s;
}

@media screen and (max-width: 765px) {
    #moeyooso-popup {
        display: none;
    }
}

.moeyooso-page-footer-text {
    padding: 52px 12px 64px 12px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.moeyooso-page-footer-text a {
    color: #888;
}


#aic-burst {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    height: 100vh;
    width: 100vw;
    background-color: rgb(0 0 0 / 50%);
    opacity: 0;
    z-index: 1000;
    transition: opacity .3s, background-color .15s;
    background-image: linear-gradient(rgb(255 255 255 / 0%) calc(50% - 15vh), rgb(255 255 255 / 35%) 50%, rgb(255 255 255 / 0%) calc(50% + 15vh));
}

#aic-burst.close {
    opacity: 0;
    transition: opacity .5s, background-color .5s;
}

#aic-burst.ready {
    opacity: 1;
}

#aic-burst.done {
    background-color: rgb(255 255 255 / 75%);
    opacity: 0;
    transition: opacity 1s, background-color .15s;
}

.aic-burst-bg-2 {
    position: fixed;
    height: 100vh;
    width: 100vw;
    background-image: linear-gradient(to right, rgb(255 255 255 / 0%) calc(50% - 15vh), rgb(255 255 255 / 35%) 50%, rgb(255 255 255 / 0%) calc(50% + 15vh));
}

.aic-burst-block {
    --aic-burst-block-size: min(30vh, 30vw);
    width: var(--aic-burst-block-size);
    height: var(--aic-burst-block-size);
    transform: rotate(45deg);
    border: 3px solid #FFF;
    box-sizing: border-box;
    position: fixed;
    top: calc(50vh - var(--aic-burst-block-size) / 2);
    left: calc(50vw - var(--aic-burst-block-size) / 2);
    opacity: 1;
    box-shadow: 0 0 10px #FFF, 0 0 10px #FFF inset;
    transition: width 1.5s, height 1.5s, top 1.5s, left 1.5s, box-shadow 1.5s, opacity .5s;
    transition-timing-function: ease-in;
}

.aic-burst-block.block-1 {
    top: calc(60vh - var(--aic-burst-block-size) / 2);
}

#aic-burst.ready .aic-burst-block.block-1 {
    top: calc(50vh - var(--aic-burst-block-size) / 2);
    transition: width 1.5s, height 1.5s, top .3s, left .3s, box-shadow 1.5s, opacity .5s;
}

.aic-burst-block.block-2 {
    --aic-burst-block-size: min(70vh, 70vw);
    opacity: 0;
}

#aic-burst.play .aic-burst-block {
    box-shadow: 0 0 20px #FFF, 0 0 20px #FFF inset, 0 0 50px #FFF, 0 0 50px #FFF inset, 0 0 100px #FFF, 0 0 100px #FFF inset, 0 0 250px #FFF, 0 0 250px #FFF inset;
}

#aic-burst.play .aic-burst-block.block-1 {
    --aic-burst-block-size: min(35vh, 35vw);
    transition: width 1.5s, height 1.5s, top 1.5s, left 1.5s, box-shadow 1.5s, opacity .5s;
    transition-timing-function: ease-in;
}

#aic-burst.play .aic-burst-block.block-2 {
    --aic-burst-block-size: min(35vh, 35vw);
    opacity: 1;
}

.aic-burst-icon {
    font-size: min(15vh, 15vw);
    color: #FFF;
    font-weight: bold;
    position: relative;
    text-shadow: 0 0 5px #FFF, 0 0 10px #FFF;
    top: 10vh;
    transition: font-size .5s, text-shadow .5s, top 1.5s;
    transition-timing-function: ease-in;
}

#aic-burst.ready .aic-burst-icon {
    top: 0;
    transition: top .3s;
}

#aic-burst.play .aic-burst-icon {
    top: 0;
    font-size: min(18vh, 18vw);
    text-shadow: 0 0 10px #FFF, 0 0 15px #FFF, 0 0 20px #FFF, 0 0 50px #FFF;
    transition: font-size 1.5s, text-shadow 1.5s;
    transition-timing-function: ease-in;
}