/* #region スターターパック */
html{
    margin: -8px;
    overflow-x: hidden;
    user-select:none;
}
body{
    width: 100vw;
    height: 100vh;
    white-space: nowrap;
    touch-action: none;
}
.row{
    display: flex;
    flex-direction: row;
}
.column{
    display: flex;
    flex-direction: column;
}
.hidden{
    opacity: 0;
    pointer-events: none;
}

img{
    -webkit-user-drag: none;
}
::-webkit-scrollbar{
    display: none;
}
:focus{
    outline: none;
}

:root{
    --mostop: 2147483647;
}

/* #region else */
.nicotext{
    position: fixed;
    background: #f0f8ff80;
    color: #000000;
    font-size: 20px;
    transition: right 5.0s linear;
    white-space: nowrap;
    pointer-events: none;
    z-index: var(--mostop);
}

.tobitext{
    opacity: 1;
    padding: 4px 8px;
    background: rgba(0,0,0,0.72);
    border-radius: 8px;
    transform: translate(-50%, -50%) translateY(0px);
    white-space: nowrap;
    color: #ffffff;
    position: absolute;
    transition: none;
    pointer-events: none;
    z-index: var(--mostop);
}

.p_star{
    background: #ffe048;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.p_heart{
    background:#ff9ce6;
    transform:rotate(-45deg);
}
.p_heart::before,
.p_heart::after{
    content:"";
    position:absolute;
    width:100%;
    height:100%;
    background:inherit;
    border-radius:50%;
}
.p_heart::before{
    top:-60px;
    left:0;
}
.p_heart::after{
    left:60px;
    top:0;
}

.kirameki{
    display: block;
    width: 20px;
    aspect-ratio: 1/1;
    position: absolute;
    pointer-events: none;
    z-index: 255;
}
/* #endregion */

/* #region logとtext */
#log{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 310px;
    height: 200px;
    border: 2px solid #ffffff;
     border-right: none;
    position: fixed;
    right: -280px;
    bottom: 20%;
    transition: right 1.0s ease;
    color: #fefefe;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 10;
}
#log.hid{
    right: -310px;
}
#log.tog{
    right: 0px;
}
#log .opener{
    width: 30px;
    height: 100%;
    background: #000000ef;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
}
#log .main{
    width: 280px;
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    background: #000000de;
    text-align: left;
    font-size: 14px;
    box-sizing: border-box;
}
#log .text{
    display: none;
    width: fit-content;
    padding: 10px 15px;
    border-radius: 5px;
    background: #000000ce;
    position: fixed;
    left: 50%;
    bottom: 120px;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1.2em;
    white-space: nowrap;
    overflow: hidden;
    animation: fadeIn 0.5s ease forwards;
    box-sizing: border-box;
    z-index: 2147483647;
}
@keyframes fadeIn {
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}
/* #endregion */

/* #region description */
#mobileDesc{
    display: none;
    position: fixed;
    pointer-events: none;
    background: #363636e2;
    color: #f0f8ff;
    text-align: left;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: var(--mostop);
}
#mobileDesc.show{
    display: block;
}
/* #endregion */

/* #region tk */
.tk{
    position: fixed;
}
.tk.mostop{
    z-index: var(--mostop);
}
.tk.cenXY{
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}
.tk.cenX{
    left: 50% !important;
    transform: translateX(-50%) !important;
}
.tk.cenY{
    top: 50% !important;
    transform: translateY(-50%) !important;
}
/* #endregion */

/* #region alertD */
.alertD{
    display: block;
    width: 320px;
    height: 70px;
    border-radius: 15px;
    box-shadow: #000000 5px 5px 20px;
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    transition: bottom 0.1s linear;
    will-change: bottom;
    overflow: hidden;
    box-sizing: border-box;
    z-index: var(--mostop);
}
.alertD.show{
    bottom: 20px;
}
.alertD .row{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}
.alertD .row .icon{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    font-size: 20px;
}
.alertD .row .text{
    font-size: 18px;
}
.alertD .x{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: #00000000;
    position: absolute;
    right: 5px;
    top: 0;
    font-size: 20px;
    cursor: pointer;
}
.alertD .bar{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}
.alertD .bar .inner{
    width: 0px;
    height: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
}
/* #endregion */

/* #region movlis */
#movlis{
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 150px;
    height: fit-content;
    padding: 10px;
    background: #00000023;
    position: fixed;
    color: #e3e3e3;
    text-align: center;
    box-sizing: border-box;
    z-index: 2100;
}
#movlis.tog{
    display: flex;
}
#movlis .title{
    font-size: 20px;
    text-align: center;
}
#movlis .list{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 7.5px;
}
#movlis .list .item{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 25px;
    padding: 5px 0;
    background: #4d4d4d;
    border: 2px solid #00000000;
    font-size: 16px;
    box-sizing: border-box;
    cursor: pointer;
}
#movlis .list .item:hover{
    border-color: #e3e3e3;
}
/* #endregion */

水色 #f0f8ff, #eaf5ff, #def0ff, #cfe9ff, #b5dcff
紫色 #f8f6ff, #f5f2ff, #f1edff, #ece8ff, #e9e4ff
橙色 #fffaf3, #fff7eb, #fff3e2, #fff0d9, #ffeccf
緑色 #f6fff2, #eeffe7, #e6ffdc, #ddffd0, #d4ffc3

#template{
    /* 順番だけ */
    margin-top: 5px;
    margin-left: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100px;
    height: 100px;
    /* aspect-ratio: 1/1; */
    padding: 5px;
    background: #f0f8ff;
    border: 1px solid #000000;
    color: #000000;
    font-size: 12px;
    position: fixed;
    top: 0;
    left: 0;
    animation: fadeIn 0.5s ease forwards;
    z-index: 999;
    margin-right: 5px;
    margin-bottom: 5px;
}
/* #endregion */

#main{
    display: block;
    width: var(--iPhone-width);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.space{
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    box-sizing: border-box;
}
.space.show{
    display: flex;
}



#map{
    padding: 50px 20px;
}
#map .coma{
    width: 30px;
    aspect-ratio: 2/3;
    position: relative;
}
#map .coma .hontai{
    width: 30px;
    aspect-ratio: 2/3;
    background: #262626;
    clip-path: polygon(5% 0, 25% 0, 25% 12.5%, 40% 12.5%, 40% 0, 60% 0, 60% 12.5%, 75% 12.5%, 75% 0, 95% 0, 95% 35%, 70% 35%, 70% 70%, 85% 70%, 85% 80%, 100% 80%, 100% 100%, 0 100%, 0 80%, 15% 80%, 15% 70%, 30% 70%, 30% 35%, 5% 35%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
#map .coma .before{
    width: 30px;
    aspect-ratio: 2/3;
    background: #d4d4d4;
    clip-path: polygon(5% 0, 25% 0, 25% 12.5%, 40% 12.5%, 40% 0, 60% 0, 60% 12.5%, 75% 12.5%, 75% 0, 95% 0, 95% 35%, 70% 35%, 70% 70%, 85% 70%, 85% 80%, 100% 80%, 100% 100%, 0 100%, 0 80%, 15% 80%, 15% 70%, 30% 70%, 30% 35%, 5% 35%);;
    position: absolute;
    bottom: -5px;
    right: -5px;
    z-index: -1;
}
#map .mas .coma{
    z-index: 2;
}
#map .mas .coma .before{
    z-index: 0;
}
#map .container{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: fit-content;
    margin: 0 auto;
}
#map .container .row{
    margin-top: -10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: fit-content;
    gap: 7px;
}
#map .container .row.due{
    margin-left: 87.5px;
}
#map .container .mas{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px;
    aspect-ratio: 9/10;
    background-color: #cfe9ff;
    clip-path: polygon(50% 0, 100% 20%, 100% 80%, 50% 100%, 0 80%, 0 20%);
    position: relative;
    cursor: url(assets/systems/hammer.png), auto;
    position: relative;
}

#map .container .mas.consored::before,
#map .container .mas.consored::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity .2s, transform .25s;
  border-radius: inherit;
}
#map .container .mas.none.consored::before,
#map .container .mas.none.consored::after{
    background: #00000000;
    opacity: 0;
}
#map .container .mas.consored::before{
    /* カクシタワタシ */
    background: #00000080;
    opacity: 1;
    z-index: 10;
}
#map .container .mas.consored::after{
    /* 斜線 */
    background-image:repeating-linear-gradient(135deg, #ffffff30 0 4px, transparent 4px 8px);
    mix-blend-mode: screen;
    opacity: 1;
    z-index: 11;
}

#map .container .mas.none{
    background-color: #00000000;
}
#map .container .mas .img{
    /* img */
    display: block;
    width: 60px;
    aspect-ratio: 1/1;
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    opacity: 1;
    cursor: pointer;
    z-index: 1;
}
#map .container .mas.consored .img{
    opacity: 0;
}

#map .ui{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    width: 100px;
    height: fit-content;
    position: fixed;
    top: 5px;
    left: 5px;
    z-index: var(--mostop)
}
#map .ui .mono{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 40px;
    background: #5a5a5a;
    clip-path: polygon(0 0, 120% 0, 100% 100%, 0 100%);
    cursor: pointer;
}
#map .ui .mono .icon{
    display: block;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    object-position: center;
    z-index: 1
}
#map .ui .mono .text{
    flex: 1;
    font-size: 14px;
    text-align: left;
    white-space: wrap;
    text-overflow: ellipsis;
    z-index: 1
}


#battle{
    content: "battle";
}

