@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Noto+Sans+TC:wght@100..900&display=swap');

*{
    font-family: "Instrument Sans", "Noto Sans TC", sans-serif;
    font-weight: 400;
}

html{
    background: #232323;
    color: #eee;
}
body{
    margin-bottom: 2rem;
}

h1{
    padding: .25rem .5rem;
    border: solid .125rem #d6d6d6;
    border-bottom-color: #6b6b6b;
    border-radius: .5rem .5rem 0 0;
    margin: 2rem .25rem 0 .25rem;
    font-weight: 600;
    font-size: 1.5rem;
    background-color: #454545;
}
section{
    margin: 0 .25rem 0 .25rem;
    border: solid .125rem #d6d6d6;
    border-width: 0 .125rem .125rem .125rem;
    border-radius: 0 0 .5rem .5rem;
}

.setting{
    h2{
        margin: 1rem 0 0 0;
        padding: .25rem .5rem;
        font-size: 1.25rem;
        font-weight: 500;

        .desc{
            color: #bbb;
            font-size: .85rem;
        }
    }
    .option{
        padding: .5rem;
        border-top: solid .125rem #929292;
        border-bottom: solid .125rem #5c5c5c;
        display: flex;
        gap: .5rem;
        align-items: center;
        justify-content: space-between;

        .explanation{
            flex-grow: 1;

            .title{
                color: #eee;
            }

            .desc{
                color: #aaa;
                font-size: .85rem;

                .text{
                    margin: .25rem 0 .25rem .5rem;
                    line-height: 1.75;
                }

                .effect{
                    margin-top: .25rem;
                    color: #eee;
                }

                .ps{
                    margin-top: .25rem;
                    margin-left: -.5rem;
                }
                .ps::before{
                    content: '〔 ';
                }
                .ps::after{
                    content: ' 〕';
                }
            }
        }
        .choice{
            display: flex;

            .selection{
                padding: 0 .5rem;
                width: 1rem;
                text-align: center;
                padding-top: .2rem;
            }
            .minus, .plus{
                padding: .15rem .425rem;
                border-radius: .25rem;
                background: #124f56;
                user-select: none;
                cursor: pointer;
                transition: .15s;
            }
            :is(.minus, .plus):hover{
                background: #15919f;
            }
            .minus.cap, .plus.cap{
                background: #561212;
                cursor: default;
            }
            :is(.minus.cap, .plus.cap):hover{
                background: #9f1515;
            }
        }

        .total{
            display: block;
            border-collapse: collapse;
            margin: 0 auto;

            tr{
                td:first-child{
                    padding: 0 .5rem;
                    width: 5rem;
                }
                td:last-child{
                    padding: 0 .5rem;
                    width: 2rem;
                    text-align: right;
                }
            }
            tr:last-child{
                border-top: solid .125rem #eee;
            }
        }
        .start{
            background: #055f19;
            padding: .25rem .5rem;
            border-radius: .25rem;
            cursor: pointer;
            user-select: none;
        }
        .start:hover{
            background: #15ac36;
        }
        .start.err{
            background: #5f0505;
            cursor: default;
        }
        .start.err:hover{
            background: #ac1515;
        }
    }
    .option.nest{
        padding-left: 1.65rem;
    }
    .option.nest2{
        padding-left: 2.85rem;
    }
    .option:last-child{
        border-radius: 0 0 .5rem .5rem;
    }
}