@import url('css/deck-table.css');

@font-face {
    font-family: 'fzlb';
    src: url(https://lyc-sgs.oss-accelerate.aliyuncs.com/fonts/方正隶变_GBK.woff2) format("woff2");
}

@font-face {
    font-family: 'fzls';
    src: url(https://lyc-sgs.oss-accelerate.aliyuncs.com/fonts/方正隶书_GBK.woff2) format("woff2")
}

@font-face {
    font-family: 'fzzyjt';
    src: url(https://lyc-sgs.oss-accelerate.aliyuncs.com/fonts/方正准圆简体.woff2) format("woff2");
}

/* @font-face {
    font-family: 'hyzyj';
    src: url(https://lyc-sgs.oss-accelerate.aliyuncs.com/fonts/汉仪中圆简.woff2) format("woff2");
} */

@font-face {
    font-family: 'hyxkj';
    src: url(https://lyc-sgs.oss-accelerate.aliyuncs.com/fonts/汉仪行楷简.woff2) format("woff2");
}

/* @font-face {
    font-family: "jmmcx";
    src: url(https://lyc-sgs.oss-accelerate.aliyuncs.com/fonts/金梅毛草行.woff2) format("woff2");
} */

@font-face {
    font-family: "stlfls";
    src: url(https://lyc-sgs.oss-accelerate.aliyuncs.com/fonts/隶书_奇兵Token.woff2) format("woff2");
}

@font-face {
    font-family: "hyxzyf";
    src: url(assets/fonts/hyxzyf.woff2) format("woff2");
}

/* @import url('https://fonts.googleapis.com/css2?family=LXGW+WenKai+TC&display=swap'); */

section.cover.has-mask .mask {
    opacity: 0.5;
}

.markdown-section h1 span,
.markdown-section h2 span,
.markdown-section h3 span,
.markdown-section h4 span,
.markdown-section h5 span {
    font-family: fzlb;
    font-weight: 600;
    font-size: 1.35em;
}

.markdown-section blockquote p {
    font-weight: normal;
}

.sidebar>h1 a {
    color: inherit;
    text-decoration: none;
    /* font-family: "LXGW WenKai TC", cursive; */
    font-family: fzlb;
    font-size: 1.5em;
}

.app-name-link img {
    height: 3em;
    vertical-align: middle;
}

/* .sidebar ul li a {
    font-family: fzlb;
    font-size: 1.35em;
} */

.app-nav {
    position: fixed;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6));
    width: calc(100% - 300px);
    margin: 0;
    margin-right: 0 !important;
    padding: 12px;
    color: var(--theme-font-color, black);
    transition: 0.2s;
}

footer {
    /* position: absolute; */
    /* bottom: 0; */
    /* width: 100%; */
    text-align: center;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    padding: 16px;
    color: var(--theme-font-color, black);
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: center;
}

footer a {
    color: var(--theme-font-color, #b6c4d4);
    text-decoration: none;
    vertical-align: middle;
    line-height: 1.5em;
    font-size: 16px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
}

/* ion-icon {
    font-size: 1.2em;
    --ionicon-stroke-width: 3.2em;
    margin: 0 0.15em;
    transform: translateY(0.125em);
} */

.inline-suit {
    height: 1.2em;
    transform: translateY(-0.1em);
    aspect-ratio: 1;
    vertical-align: middle;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.inline-token {
    padding: 0 0.2em;
    width: 2.0em;
    height: 1.6em;
    transform: translateY(-0.1em);
    vertical-align: middle;
}

.skill-name {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    transform: translateX(0.20em);
    font-size: 1.25em;
    font-weight: normal;
    height: 1.0em;
    padding-left: 0.15em;
    padding-right: 0.2em;
    margin-top: 0.08em;
    margin-right: 0.8em;
    display: inline-flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    font-family: fzls;
    text-wrap: nowrap;
    overflow-wrap: nowrap;
    word-break: keep-all;
    text-align: center;
    line-height: 1.0em;
    filter: drop-shadow(0 0 0.2em rgba(0, 0, 0, 0.6));
}

.skill-name.普通 {
    --skill-name-font-color: black;
    color: var(--skill-name-font-color);
    --skill-name-bg-color: rgb(249, 232, 180);
    background-color: var(--skill-name-bg-color);
}

.skill-name.伏击 {
    --skill-name-font-color: white;
    color: var(--skill-name-font-color);
    --skill-name-bg-color: rgb(0, 0, 0);
    background-color: var(--skill-name-bg-color);
}

.skill-name::before {
    z-index: 3;
    content: '';
    display: block;
    position: absolute;
    margin-left: 2.2em;
    width: 0;
    height: 0;
    border-width: 0.25em;
    border-style: solid;
    border-color: transparent transparent transparent var(--skill-name-font-color);
}

.skill-name::after {
    content: '';
    display: block;
    position: absolute;
    margin-left: 2.20em;
    width: 0;
    height: 0;
    border-width: 0.5em;
    border-style: solid;
    border-color: transparent transparent transparent var(--skill-name-bg-color);
}

.effect-label {
    text-indent: 0;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    height: 1.2em;
    margin: 0 0.1em;
    font-family: fzzyjt;
    display: inline-flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    text-wrap: nowrap;
    overflow-wrap: nowrap;
    text-align: center;
    line-height: 1.2em;
    transform: translateY(0.1em);
    color: white;
    /* filter: drop-shadow(0 0 0.2em rgba(0, 0, 0, 0.6)); */
    /* -webkit-filter: drop-shadow(0 0 0.2em rgba(0, 0, 0, 0.6)); */
}

.effect-label.主动 {
    --skill-label-color: rgb(174, 0, 1);
}

.effect-label.持续 {
    --skill-label-color: rgb(42, 129, 76);
}

.effect-label.触发 {
    --skill-label-color: rgb(53, 98, 201);
}

.effect-label>span {
    text-wrap: nowrap;
    overflow-wrap: nowrap;
    background-color: var(--skill-label-color);
}

.effect-label::before,
.effect-label::after {
    content: '';
    display: block;
    position: relative;
    width: 0.6em;
    height: 1.0em;
    background-color: var(--skill-label-color);
}

.effect-label::before {
    margin-right: -0.2em;
    border-radius: 1.0em 0 0 1.0em;
}

.effect-label::after {
    margin-left: -0.2em;
    border-radius: 0 1.0em 1.0em 0;
}

.title {
    font-family: fzlb;
    font-size: 1.5em;
}

.info-bar {
    vertical-align: middle;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.3em;
}

.score {
    font-family: hyxkj;
    font-size: 3.0em;
}

.magatama {
    height: 1.5em;
    transform: translateY(15%);
}

.card-tag {
    display: inline-block;
    font-family: hyxzyf;
    margin: 0 0.2em;
    font-size: 1.0em;
    height: 1.6em;
    line-height: 1.4em;
    text-align: center;
    vertical-align: middle;
    transform: translateY(-0.05em);
    padding: 0 0.1em;
    color: rgba(255, 50, 50, 0.8);
    text-wrap: nowrap;
    word-break: keep-all;
    border: 0.08em solid rgba(255, 50, 50, 0.8);
    border-radius: 0.25em;
}

.tabletop-example {
    font-size: 3.6vw;
    position: relative;
    width: 100%;
    padding: 20% 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5em;
}

@media screen and (orientation: landscape) {
    .tabletop-example {
        padding: 8% 0;
        font-size: 2.4vw;
    }
}

.formation {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.25em;
}

.wujiang-card:nth-child(1):nth-last-child(4) {
    --offsetY: calc((1 - 1) / (4 - 1) - 0.5);
}

.wujiang-card:nth-child(2):nth-last-child(3) {
    --offsetY: calc((2 - 1) / (4 - 1) - 0.5);
}

.wujiang-card:nth-child(3):nth-last-child(2) {
    --offsetY: calc((3 - 1) / (4 - 1) - 0.5);
}

.wujiang-card:nth-child(4):nth-last-child(1) {
    --offsetY: calc((4 - 1) / (4 - 1) - 0.5);
}

.formation>.wujiang-card {
    translate: 0 calc(2em - var(--offsetY) * var(--offsetY) * 8em);
}

.formation.对手>.wujiang-card {
    translate: 0 calc(-2em + var(--offsetY) * var(--offsetY) * 8em);
    transform: rotate(180deg);
}

.card {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    font-family: fzlb;
    width: 2.85em;
    height: 4.01em;
    aspect-ratio: 285 / 401;
    text-wrap: nowrap;
    overflow-wrap: nowrap;
    word-break: keep-all;
    text-align: center;
    vertical-align: middle;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 0.2em;
    transition: translate 0.2s;
    border: 0.05em dashed rgba(0, 0, 0, 0.6);
}

.wujiang-card {
    box-shadow: 0 0 0.12em 0.08em rgba(0, 0, 0, 0.6);
    border: none;
}

.card.horizontal {
    width: 4.01em;
    height: 2.85em;
    aspect-ratio: 401 / 285;
}

.card-in-display-horizontal {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    border-radius: 9px;
    border: none;
    box-shadow: 0 0 6px 3px rgba(0, 0, 0, 0.6);
}

.weather,
.event {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: min-content;
    padding: 0.2em;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    gap: 0.2em;
}

.altar {
    position: absolute;
    height: min-content;
    top: auto;
    bottom: 1.0em;
    left: calc(50% - 12em);
    right: auto;
    padding: 0.2em;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 0.2em;
    border-radius: 0.2em;
    border: 0.05em dashed rgba(0, 0, 0, 0.6);
    box-shadow: inset 0 0 0.05em 0.05em rgba(0, 0, 0, 0.3);
    background-color: rgba(250, 250, 250, 0.5);
}

.altar.对手 {
    top: 1.0em;
    bottom: auto;
    right: calc(50% - 12em);
    left: auto;
}

.altar>.card {
    border: 0.05em dashed rgba(0, 0, 0, 0.3);
}

.altar::before {
    content: '祭台';
    font-family: fzlb;
    text-wrap: nowrap;
    overflow-wrap: nowrap;
    word-break: keep-all;
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.terrain {
    position: absolute;
    top: 50%;
}

.terrain.left {
    left: calc(50% - 12em);
    transform: translateY(-50%) rotate(-90deg);
}

.terrain.right {
    right: calc(50% - 12em);
    transform: translateY(-50%) rotate(90deg);
}

.tabletop-example.garrison-example {
    padding: 10% 0;
}

.tabletop-example.garrison-example>.terrain {
    top: 20%;
}

.tabletop-example.garrison-example::after {
    content: '';
    font-family: fzlb;
    text-decoration: underline;
    text-wrap: nowrap;
    overflow-wrap: nowrap;
    word-break: keep-all;
    text-align: center;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: 10.0s linear 1.0s infinite garrison-example;
    transition: 0.2s;
}

.garrison {
    animation: 10.0s ease-in-out 1.0s infinite garrison;
}

@keyframes garrison {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(90deg);
    }

    20% {
        transform: rotate(90deg);
    }

    30% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(0deg);
    }

    60% {
        transform: rotate(-90deg);
    }

    70% {
        transform: rotate(-90deg);
    }

    80% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes garrison-example {
    0% {
        content: '';
    }

    2.5% {
        content: '驻扎在鱼腹浦';
    }

    17.5% {
        content: '';
    }

    22.5% {
        content: '退出驻扎';
    }

    37.5% {
        content: '';
    }

    62.5% {
        content: '驻扎在剑阁';
    }

    67.5% {
        content: '';
    }

    72.5% {
        content: '退出驻扎';
    }

    87.5% {
        content: '';
    }
}

.prestige-table {
    border-collapse: collapse;
    margin: 20px 0;
    transition: all 0.3s;
}

.prestige-table:hover {
    transform: scale(1.02);
}

.markdown-section .prestige-table {
    --theme-bg-color: rgba(100, 0, 100, 0.2);
    --theme-font-color: #34495e;
    transform: none;
}

.prestige-table .减少上限 {
    text-align: center;
}

.prestige-table tr:has(.prestige-value:hover),
.prestige-table tr:has(.prestige-state:hover),
.prestige-table:has(.prestige-value.誉:hover) .共用主动,
.prestige-table:has(.prestige-state.誉:hover) .共用主动 {
    background-color: var(--theme-bg-color);
}

.prestige-table th,
.prestige-table td {
    padding: 12px;
    border: 1px solid var(--theme-bg-color);
}

.prestige-table th {
    font-size: 1.2em;
    font-weight: normal;
    font-family: fzlb;
    text-wrap: nowrap;
    background-color: var(--theme-bg-color);
    color: var(--theme-font-color);
    text-align: center;
}

.prestige-effect {
    font-family: fzzyjt;
    text-align: left;
}

.prestige-value,
.prestige-state {
    font-size: 1.2em;
    font-family: fzlb;
    text-align: center;
}

td.prestige-effect {
    width: 40%;
}

.wujiang-pairs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.25em;
}