@keyframes float-hint {
    0%,to {
        transform: rotate(180deg) translateY(0)
    }

    50% {
        transform: rotate(180deg) translateY(-5px)
    }
}

@keyframes bubble-float {
    0%,to {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

@keyframes emerge-from-water {
    0% {
        opacity: 0;
        transform: translateY(50px);
        filter: blur(10px) brightness(.5)
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0) brightness(1) drop-shadow(0 0 5px rgba(100,200,255,.45)) drop-shadow(0 0 10px rgba(100,200,255,.3)) drop-shadow(-5px 15px 6px rgba(0,0,0,.35))
    }
}

@keyframes float-in-air {
    0%,to {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-12px)
    }
}

@keyframes sword-sweep-and-reveal {
    0% {
        transform: translateX(0) rotate(0deg)
    }

    40% {
        transform: translateX(var(--sword-translateX-start-sweep)) rotate(180deg)
    }

    to {
        transform: translateX(var(--sword-translateX-end)) rotate(180deg)
    }
}

@keyframes navcard-appear {
    0%,40% {
        opacity: 0;
        transform: scaleX(0)
    }

    to {
        opacity: 1;
        transform: scaleX(1)
    }
}

@keyframes sword-hide-nav {
    0% {
        transform: translateX(var(--sword-translateX-end)) rotate(180deg)
    }

    60% {
        transform: translateX(var(--sword-translateX-start-sweep)) rotate(180deg)
    }

    to {
        transform: translateX(0) rotate(0deg)
    }
}

@keyframes navcard-disappear {
    0% {
        opacity: 1;
        transform: scaleX(1)
    }

    60%,to {
        opacity: 0;
        transform: scaleX(0)
    }
}

@keyframes fade-in-corners {
    0% {
        opacity: 0
    }

    to {
        opacity: .8
    }
}

@keyframes hand-sway {
    0%,to {
        transform: translateY(-50%) translateX(0)
    }

    50% {
        transform: translateY(-50%) translateX(-5px)
    }
}

@keyframes alternate-text {
    0%,50%,to {
        opacity: 0
    }

    10%,40% {
        opacity: 1
    }
}

@keyframes sword-submerge-and-hide {
    0% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0) brightness(1) drop-shadow(0 0 5px rgba(100,200,255,.45)) drop-shadow(0 0 10px rgba(100,200,255,.3)) drop-shadow(-5px 15px 6px rgba(0,0,0,.35));
        pointer-events: auto
    }

    to {
        opacity: 0;
        transform: translateY(50px);
        filter: blur(10px) brightness(.5);
        pointer-events: none
    }
}

@keyframes fade-in-prompt {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0)
    }
}

@keyframes icon-breathe {
    0%,to {
        transform: scale(1)
    }

    50% {
        transform: scale(1.06)
    }
}

@keyframes panel-appear {
    0%,40% {
        opacity: 0;
        transform: translateY(-20px)
    }

    to {
        opacity: 1;
        transform: translateY(0);
        visibility: visible
    }
}

@keyframes panel-disappear {
    0% {
        opacity: 1;
        transform: translateY(0)
    }

    60%,to {
        opacity: 0;
        transform: translateY(-20px)
    }
}

@keyframes danmaku-scroll {
    0% {
        transform: translateY(-50%) translateX(100%);
        opacity: 1
    }

    to {
        transform: translateY(-50%) translateX(-100vw);
        opacity: .8
    }
}

:root {
    --font-main: 'Fusion Pixel 12px M zh_hans', system-ui, sans-serif;
    --background-primary: #e5e7eb;
    --background-secondary: #f9fafb;
    --background-retro: #f3f4f6;
    --text-primary: #111827;
    --text-primary-static: #ffffff;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --text-retro-shadow: #ffffff;
    --border-primary: var(--text-primary);
    --border-primary-width: 6px;
    --border-secondary: #d1d5db;
    --svg-filter-contact: brightness(0) invert(0.1);
    --prompt-text-color: #ffffff;
    --prompt-text-shadow: rgba(0, 0, 0, 0.7);
    --character-sprite-url: url('/static/images/niko_finale.png');
    --footprint-color: #1e1e1e
}

html.dark {
    --background-primary: #121212;
    --background-secondary: #1e1e1e;
    --background-retro: #2a2a2a;
    --text-primary: #ffffff;
    --text-primary-static: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --text-retro-shadow: #000000;
    --border-primary: var(--text-primary);
    --border-primary-width: 4px;
    --border-secondary: #4b5563;
    --svg-filter-contact: brightness(0) invert(1);
    --prompt-text-color: #ffffff;
    --prompt-text-shadow: rgba(0, 0, 0, 0.7);
    --character-sprite-url: url('/static/images/niko_red_interior.png');
    --footprint-color: #6b5b95
}

html.font-common {
    --font-main: 'AaKaiSong', system-ui, sans-serif
}

body,html {
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: var(--font-main),sans-serif;
    transition: color .3s ease-in-out,background-color .3s ease-in-out;
    cursor: url(/static/cursor/BG3Cursor.cur)2 0,auto
}
img {
  user-select: none;
  -webkit-user-select: none; 
  -moz-user-select: none; 
  -ms-user-select: none; 
}
.cursor-pointer,[role=button],a,button {
    cursor: url(/static/cursor/click.cur),pointer
}

.cursor-text,[contenteditable],input[type=email],input[type=text],input[type=url],textarea {
    cursor: url(/static/cursor/TextSelect.cur),text
}

body.loading {
    cursor: url(/static/cursor/Loading.ani),wait
}

.homepage-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(/static/images/background.avif);
    background-size: cover;
    background-position: center;
    width: 100vw;
    min-height: 100dvh;
    position: relative;
    --sword-translateX-end: -40vw;
    --sword-translateX-start-sweep: 30vw;
    --navcard-width: 75vw;
    --navcard-right: 8vw;
    --navcard-transform-origin: right
}

.corner-svg {
    position: absolute;
    z-index: 20;
    width: 80px;
    height: auto;
    opacity: 0;
    animation: fade-in-corners 1.5s ease-in forwards 1s
}

.top-left {
    top: 20px;
    left: 20px
}

.top-right {
    top: 20px;
    right: 20px
}

.bottom-left {
    bottom: 20px;
    left: 20px
}

.bottom-right {
    bottom: 20px;
    right: 20px
}

.prompt-container,.prompt-container p {
    position: absolute;
    left: 50%;
    transform: translateX(-50%)
}

.prompt-container {
    bottom: 8vh;
    z-index: 5;
    pointer-events: none;
    animation: fade-in-prompt 1s forwards;
    opacity: 0
}

.prompt-container p {
    bottom: 0;
    margin: 0;
    font-size: 1.5rem;
    color: var(--prompt-text-color);
    text-shadow: 0 0 5px var(--prompt-text-shadow);
    white-space: nowrap
}

.prompt-text-en {
    animation: alternate-text 8s infinite
}

.prompt-text-cn {
    opacity: 0;
    animation: alternate-text 8s 4s infinite
}

.sword-container {
    position: relative;
    z-index: 10;
    height: 75vh;
    pointer-events: none
}

.sword-animation-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform
}

.sword-svg-container {
    height: 100%;
    aspect-ratio: 100/390;
    animation: emerge-from-water 3s ease-out forwards;
    transition: filter .3s ease-out;
    will-change: filter,opacity,transform;
    transform: translateZ(0);
    pointer-events: auto;
    cursor: url(/static/cursor/click.cur),pointer
}

.master-sword-image {
    transition: filter .3s ease-out;
    filter: none
}

.navcard {
    opacity: 0;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: var(--navcard-transform-origin);
    position: absolute;
    right: var(--navcard-right);
    height: var(--navcard-height, 75vh);
    width: var(--navcard-width);
    z-index: 100;
    background-color: transparent;
    border: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.nav-menu-panel {
    width: 100%;
    padding: .5rem 1rem;
    background-color: var(--background-primary);
    border: var(--border-primary-width) solid var(--border-primary);
    flex-shrink: 0;
    transition: background-color .3s,border-color .3s
}

.nav-item,.nav-menu {
    display: flex;
    align-items: center
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    width: 100%;
    overflow: hidden;
    padding: 0 2rem;
    justify-content: space-between
}

.nav-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color .3s;
    white-space: nowrap;
    display: block;
    font-size: clamp(.75rem,1.8vw,1.2rem);
    letter-spacing: .5px
}

.nav-item {
    position: relative;
    padding: 0 .5rem
}

.logo-container-split {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 1rem auto;
    max-width: 550px;
    max-height: 180px
}

.logo-container-split>svg {
    width: 100%;
    height: auto
}

.logo-container-split>svg:first-child {
    align-self: flex-start
}

.logo-container-split>svg:last-child {
    align-self: flex-end
}

.hand-cursor {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    height: 11px;
    width: 24px;
    animation: hand-sway 1.5s ease-in-out infinite;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease-in-out
}

.nav-item.active .hand-cursor,.nav-item:hover .hand-cursor {
    opacity: 1
}

html:not(.dark) .hand-cursor {
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)) drop-shadow(1px 0 1px rgba(0,0,0,.4)) drop-shadow(-1px 0 1px rgba(0,0,0,.4)) drop-shadow(0-1px 1px rgba(0,0,0,.4))
}

.navcard-content {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    min-height: 0
}

html {
    scrollbar-color: #52288c #e0e0e0;
    scrollbar-width: auto
}

::-webkit-scrollbar {
    width: 10px;
    height: 14px
}

::-webkit-scrollbar-thumb {
    background-color: #52288c;
    border-radius: 10px
}

::-webkit-scrollbar-thumb:hover {
    background-color: #793ec3
}

.prose ul {
    list-style: none;
    padding-left: 0
}

.prose ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: .5rem
}

.prose ul li::before {
    content: "";
    width: 25px;
    height: 25px;
    position: absolute;
    left: 0;
    top: 2px;
    background-image: url(/static/images/clover.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center
}

.avatar-container,.status-panel {
    position: relative;
    display: flex;
    align-items: center
}

.status-panel {
    flex-direction: column;
    justify-content: flex-end;
    width: 35%;
    height: 100%;
    flex-shrink: 0
}

.avatar-container {
    width: 100%;
    flex-grow: 1;
    justify-content: center;
    cursor: url(/static/cursor/click.cur),pointer
}

.avatar-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(3px 3px 5px rgba(0,0,0,.5))
}

.avatar-image.transitionable {
    position: absolute;
    transition: opacity .4s ease-in-out,filter .4s ease-in-out
}

.avatar-image.transitionable:not(.visible) {
    opacity: 0;
    filter: blur(8px) drop-shadow(3px 3px 5px rgba(0,0,0,.5));
    pointer-events: none
}

.avatar-image.transitionable.visible {
    opacity: 1;
    filter: blur(0) drop-shadow(3px 3px 5px rgba(0,0,0,.5))
}

.thought-bubble {
    position: absolute;
    top: 25%;
    left: 80%;
    transform: translate(-30%,-50%);
    z-index: 102
}

.description-box {
    border: var(--border-primary-width) solid var(--border-primary);
    background-color: var(--background-primary);
    color: var(--text-secondary);
    flex-grow: 1;
    width: auto;
    height: 100%;
    padding: 1rem;
    font-size: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background-color .3s,border-color .3s,color .3s
}

.description-box p {
    margin: 0 0 1rem
}

.prose img {
    max-height: 50vh;
    width: auto;
    display: block;
    margin: 1.5em auto
}

.description-box section[class*=max-w-] {
    max-width: 100%!important;
    margin-left: 0!important;
    margin-right: 0!important;
    padding-left: 0!important;
    padding-right: 0!important
}

.description-box .prose img {
    max-width: 100%;
    height: auto
}

.contact-links,.theme-footer {
    display: flex;
    justify-content: center
}

.contact-links {
    gap: 1.25rem;
    margin-bottom: 1rem
}

.contact-link img {
    width: 24px;
    height: 24px;
    transition: all .2s ease-in-out;
    filter: var(--svg-filter-contact);
    opacity: .7
}

.contact-link:hover img {
    opacity: 1;
    filter: var(--svg-filter-contact) drop-shadow(0 0 3px var(--border-primary));
    transform: scale(1.1)
}

.contact-link.disabled {
    cursor: not-allowed
}

.contact-link.disabled img,.contact-link.disabled:hover img {
    filter: brightness(0) invert(.4);
    opacity: .5;
    transform: none
}

.theme-footer {
    align-items: center;
    gap: .5em;
    font-size: 1rem;
    color: var(--text-muted);
    transition: color .3s
}

.theme-footer img {
    height: 2.8em;
    width: auto;
    vertical-align: middle
}

.tooltip {
    position: fixed;
    background-color: var(--background-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    padding: .25rem .5rem;
    border-radius: 4px;
    font-size: .8rem;
    pointer-events: none;
    z-index: 9999;
    white-space: pre-line;
    transition: background-color .3s,border-color .3s,color .3s
}

.stats-box-retro {
    width: 100%;
    --retro-border-width: 4px;
    --retro-border-color: #000;
    border: var(--retro-border-width) solid var(--retro-border-color);
    background-color: #e0e0e0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--retro-border-color);
    box-shadow: 2px 2px 0 0 rgba(0,0,0,.75)
}

.stats-box-retro .name-bar {
    background-color: #f5f5f5;
    border: 1px solid #9e9e9e;
    padding: 4px 8px;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: left
}

.stats-box-retro .name-handle {
    font-size: .8em;
    color: #757575;
    font-weight: 400;
    margin-left: .5em
}

.stats-box-retro .stat-line {
    display: flex;
    align-items: center;
    gap: 8px
}

.stats-box-retro .stat-bar-retro {
    border: var(--retro-border-width) solid var(--retro-border-color);
    border-radius: 20px;
    position: relative;
    background-color: #b0b0b0;
    height: 32px;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    align-items: center
}

.stats-box-retro .level-bar {
    border-radius: 0;
    border: 0;
    height: 28px
}

.stats-box-retro .level-bar .bar-fill-retro {
    background: linear-gradient(90deg,#673ab7,#b39ddb)
}

.stats-box-retro .bar-fill-retro {
    height: 100%;
    position: relative
}

.stats-box-retro .hp-bar .bar-fill-retro::after,.stats-box-retro .mp-bar .bar-fill-retro::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAABJJREFUGFdjZGBg+M+ACdAABQACsABb4e2sYwAAAABJRU5ErkJggg==);
    opacity: .2
}

.stats-box-retro .hp-bar {
    background-color: #e57373
}

.stats-box-retro .hp-bar .bar-fill-retro {
    background-color: #ef5350
}

.stats-box-retro .mp-bar {
    background-color: #4db6ac
}

.stats-box-retro .mp-bar .bar-fill-retro {
    background-color: #26a69a
}

.stats-box-retro .bar-text-retro {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--retro-border-color);
    text-shadow: -1px -1px 0#fff,1px -1px 0#fff,-1px 1px 0#fff,1px 1px 0#fff
}

.stats-box-retro .bar-text-retro.centered {
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    text-align: center
}

.stats-box-retro .icon-container-retro {
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.stats-box-retro .icon-container-retro svg {
    filter: none;
    width: 28px;
    height: 28px
}

.stats-box {
    display: none
}

.description-box {
    position: relative
}

.scroll-hint {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    z-index: 1000;
    width: 24px;
    height: 24px;
    animation: float-hint 1.5s ease-in-out infinite;
    filter: drop-shadow(1px 0 0 var(--text-primary)) drop-shadow(-1px 0 0 var(--text-primary)) drop-shadow(0 1px 0 var(--text-primary)) drop-shadow(0-1px 0 var(--text-primary))
}

.scroll-hint.visible {
    opacity: 1
}

.nav-open .sword-container {
    animation: sword-sweep-and-reveal 1.2s ease-in-out forwards;
    z-index: 90
}

.nav-open .navcard {
    animation: navcard-appear 1.2s ease-in-out forwards;
    pointer-events: auto
}

.nav-open .sword-container.animation-finished {
    animation: none;
    transform: translateX(var(--sword-translateX-end)) rotate(180deg)
}

.nav-closing .sword-container {
    animation: sword-hide-nav 1.2s ease-in-out forwards
}

.nav-closing .navcard {
    animation: navcard-disappear 1.2s ease-in-out forwards
}

.nav-closing .sword-svg-container,.nav-open .sword-svg-container {
    filter: blur(0) brightness(1) drop-shadow(0 0 5px rgba(100,200,255,.45)) drop-shadow(0 0 10px rgba(100,200,255,.3)) drop-shadow(-5px 15px 6px rgba(0,0,0,.35))!important
}

.sword-container:hover .sword-svg-container {
    filter: drop-shadow(0 0 5px rgba(120,220,255,.75)) drop-shadow(0 0 8px rgba(120,220,255,.5)) drop-shadow(-5px 20px 8px rgba(0,0,0,.4))!important
}

.sword-container:hover .master-sword-image {
    filter: url(#gold-stroke-filter)!important
}

.nav-open .draggable-panel {
    animation: panel-appear 1.2s ease-in-out forwards;
    pointer-events: auto
}

.nav-closing .draggable-panel {
    animation: panel-disappear 1.2s ease-in-out forwards
}

.decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none
}

.deco {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(.5);
    opacity: 0;
    transition: all .4s cubic-bezier(.175,.885,.32,1.275);
    z-index: -1;
    height: auto
}

.avatar-container:hover .avatar-image {
    transform: scale(1.15);
    transition: transform .3s ease
}

.avatar-container:hover .deco {
    opacity: 1
}

.avatar-container:hover .d1 {
    transform: translate(-450%,-200%) rotate(-15deg) scale(1)
}

.online-counter {
    color: var(--text-primary)
}

.realtime-icon {
    position: relative;
    display: inline-block;
    line-height: 0;
    cursor: url(/static/cursor/click.cur),pointer
}

.realtime-icon img {
    width: 28px;
    height: 28px;
    filter: drop-shadow(1px 0 0#000) drop-shadow(-1px 0 0#000) drop-shadow(0 1px 0#000) drop-shadow(0-1px 0#000);
    animation: icon-breathe 1.1s ease-in-out infinite;
    transition: filter .3s
}

.skills-section {
    width: 100%;
    margin-top: 1.5rem
}

.expand-button,.skills-content-wrapper {
    border: 2px solid var(--border-primary);
    box-shadow: 4px 4px 0 var(--border-primary)
}

.expand-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    background-color: var(--background-retro);
    cursor: pointer;
    transition: background-color .2s,box-shadow .2s,transform .2s
}

.expand-button:hover {
    background-color: var(--background-secondary);
    transform: translate(-1px,-1px);
    box-shadow: 5px 5px 0 var(--border-primary)
}

.expand-button:active {
    box-shadow: 1px 1px 0 var(--border-primary);
    transform: translate(3px,3px);
    transition: all .1s
}

.skills-content-wrapper {
    overflow: hidden;
    background: var(--background-secondary);
    border-top: none;
    margin-top: 6px
}

.skills-container {
    padding: 1.5rem;
    gap: 1.75rem
}

.skill-category,.skills-container,.tooltip-menu ul {
    display: flex;
    flex-direction: column
}

.skill-category {
    gap: 1.25rem
}

.skill-category-title {
    font-size: 1.125rem;
    font-weight: 600;
    padding-bottom: .75rem;
    color: var(--text-primary);
    border-bottom: 2px dashed var(--border-secondary)
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem
}

.skill-icon,.skill-item {
    display: flex;
    align-items: center
}

.skill-item {
    flex-direction: row;
    gap: .6rem;
    background-color: var(--background-primary);
    border: 1px solid var(--border-secondary);
    padding: .5rem .85rem;
    border-radius: 4px;
    font-size: .9rem;
    transition: transform .2s
}

.skill-item:hover {
    transform: translateY(-2px)
}

.skill-icon {
    font-size: 1.25rem
}

.skill-icon,.skill-name {
    color: var(--text-secondary)
}

body.is-dragging {
    cursor: url(/static/cursor/Move.cur),grabbing!important;
    user-select: none
}

.draggable-panel {
    position: fixed;
    z-index: 120;
    background-color: var(--background-primary);
    border: 4px solid var(--border-secondary);
    border-radius: 20px;
    padding: .5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
    display: flex;
    align-items: center;
    gap: .5rem;
    opacity: 0;
    pointer-events: none;
    visibility: hidden
}

.draggable-panel.is-dragging {
    border-color: var(--border-primary);
    box-shadow: 0 0 20px 5px var(--border-primary);
    transition: none
}

.drag-handle {
    padding: .5rem;
    color: var(--text-muted);
    cursor: url(/static/cursor/Move.cur),grab
}

.drag-handle:hover,.tooltip-menu li button {
    color: var(--text-primary)
}

.drag-handle img {
    width: 24px;
    height: 24px
}

.drag-handle,.font-switcher,.theme-switcher {
    display: flex;
    align-items: center;
    justify-content: center
}

.font-switcher,.language-switcher-container,.theme-switcher {
    background: 0 0;
    border: 0;
    padding: 0;
    width: 28px;
    height: 28px;
    transition: transform .2s ease-in-out;
    cursor: pointer
}

.font-switcher:hover,.language-switcher-container:hover,.language-switcher-container:hover .language-switcher-icon,.theme-switcher:hover {
    transform: scale(1.1)
}

.font-switcher img,.language-switcher-container img,.theme-switcher img {
    display: block;
    width: 100%;
    height: 100%
}

.bulb-on {
    filter: drop-shadow(0 0 6px #fef08a)
}

.font-switcher img,.language-switcher-container img,.language-switcher-icon img {
    filter: var(--svg-filter-contact);
    transition: filter .3s
}

.language-switcher-container,.language-switcher-icon {
    display: flex;
    align-items: center;
    justify-content: center
}

.language-switcher-container {
    position: relative
}

.language-switcher-icon {
    background: 0 0;
    border: 0;
    padding: 0;
    width: 28px;
    height: 28px;
    transition: transform .2s ease-in-out
}

.language-switcher-icon img {
    display: block;
    width: 100%;
    height: 100%
}

.tooltip-menu {
    position: absolute;
    background-color: var(--background-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    padding: .5rem;
    z-index: 130;
    width: max-content;
    left: 50%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease-in-out,transform .2s ease-in-out,visibility .2s
}

.tooltip-menu.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto
}

.tooltip-menu.up {
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(10px)
}

.tooltip-menu.down.visible,.tooltip-menu.up.visible {
    transform: translateX(-50%) translateY(0)
}

.tooltip-menu.down {
    top: calc(100% + 8px);
    transform: translateX(-50%) translateY(-10px)
}

.tooltip-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px
}

.tooltip-menu li button {
    display: block;
    width: 100%;
    padding: .5rem 1rem;
    text-align: left;
    background: 0 0;
    border: 0;
    cursor: url(/static/cursor/click.cur),pointer;
    font-size: 1rem;
    font-family: var(--font-main);
    border-radius: 4px;
    transition: background-color .2s,color .2s;
    white-space: nowrap
}

.tooltip-menu li button:hover {
    background-color: var(--text-primary);
    color: var(--background-primary)
}

.scroll-manager-arrow {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 1000;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: url(/static/cursor/click.cur),pointer;
    opacity: 0;
    transform: scale(.8);
    pointer-events: none;
    animation: float-hint 1.5s ease-in-out infinite;
    transition: opacity .3s ease,transform .3s ease,background-color .3s,border-color .3s
}

.scroll-manager-arrow.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto
}

.scroll-manager-arrow:hover {
    background-color: var(--background-primary);
    border-color: var(--border-primary)
}

.scroll-manager-arrow .arrow-image {
    transition: transform .4s cubic-bezier(.25,1,.5,1);
    filter: var(--svg-filter-contact)
}

.scroll-manager-arrow.at-bottom .arrow-image {
    transform: rotate(180deg)
}

a.link-is-loading {
    opacity: .5;
    transition: opacity .15s ease-in-out;
    pointer-events: none;
    cursor: wait
}

.navcard {
    transition: height .4s ease-in-out
}

.navcard.is-post-page {
    height: calc(100vh - 50px)
}

.welcome-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    padding: 0
}

.welcome-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: filter .3s ease
}

.dark .welcome-image,html[data-theme=dark] .welcome-image {
    filter: invert(1)
}

.live-photo-container {
    background: 0 0!important;
    backdrop-filter: none!important;
    -webkit-backdrop-filter: none!important
}

.live-photo-container img {
    background: 0 0!important;
    background-image: none!important
}

.live-photo-container[data-live-photo] {
    filter: none!important;
    -webkit-filter: none!important
}

.toc-on-sword a {
    color: #fff;
    text-shadow: 0 0 10px #000,0 0 5px #000;
    font-weight: 600;
    transition: color .2s ease-in-out;
    text-shadow: 0 0 8px rgba(0,0,0,.7)
}

.toc-on-sword a:hover {
    color: #fde047
}

.toc-on-sword ul {
    list-style-type: none;
    padding-left: 0
}

.toc-on-sword li {
    padding-left: 0
}

.hide-scrollbar {
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none
}

.hide-scrollbar::-webkit-scrollbar {
    display: none
}

.retro-audio-player {
    background-color: #ede9fe;
    color: #c792ea;
    padding: 12px;
    border: 2px solid #7c4dff;
    max-width: 680px;
    margin: 20px auto
}

.dark .retro-audio-player,.dark .retro-video-wrapper {
    background-color: #0d021a
}

.gif-visualizer {
    margin: 0 auto 10px;
    width: 300px;
    height: 180px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center
}

.display-panel {
    border: 1px solid #7c4dff;
    padding: 8px 12px;
    margin-bottom: 12px
}

.track-title-row {
    text-align: center;
    margin-bottom: 12px
}

.track-title-row>span {
    font-size: .8em;
    opacity: .7;
    display: block;
    margin-bottom: 5px
}

.box-arrow,.track-display-box {
    display: flex;
    align-items: center
}

.track-display-box {
    background-color: #000;
    border-top: 1px solid #7c4dff;
    border-bottom: 1px solid #7c4dff;
    height: 34px
}

.box-arrow {
    background-color: #7c4dff;
    color: #0d021a;
    border: 0;
    padding: 0;
    height: 100%;
    width: 34px;
    justify-content: center;
    flex-shrink: 0
}

.box-arrow svg {
    width: 22px;
    height: 22px
}

.retro-video-wrapper .control-group>span {
    color: #c792ea
}

.track-display-box .title-text {
    flex-grow: 1;
    padding: 6px 10px;
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 2px
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px
}

.control-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center
}

.control-group>span {
    font-size: .85em;
    margin-bottom: 6px
}

.slider-box {
    display: flex;
    align-items: center;
    height: 28px
}

.control-group input[type=range] {
    flex-grow: 1;
    width: 100%;
    cursor: url(/static/cursor/click.cur),pointer;
    -webkit-appearance: none;
    appearance: none;
    background: 0 0
}

.control-group input[type=range]::-webkit-slider-runnable-track {
    height: 2px;
    background: #7c4dff
}

.control-group input[type=range]::-moz-range-track {
    height: 2px;
    background: #7c4dff
}

.control-group input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #c792ea;
    margin-top: -7px;
    clip-path: polygon(50%0,100% 50%,50% 100%,0 50%)
}

.control-group input[type=range]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #c792ea;
    border: 0;
    border-radius: 0;
    clip-path: polygon(50%0,100% 50%,50% 100%,0 50%)
}

.action-buttons>button {
    background-color: transparent;
    color: #c792ea;
    border: 2px solid #7c4dff;
    width: 44px;
    height: 44px;
    padding: 2px;
    cursor: url(/static/cursor/click.cur),pointer;
    transition: background-color .2s,color .2s;
    display: flex;
    align-items: center;
    justify-content: center
}

.action-buttons>button:hover {
    background-color: #7c4dff;
    color: #0d021a
}

.action-buttons>button>svg {
    width: 100%;
    height: 100%
}

.retro-video-wrapper {
    max-width: 720px;
    position: relative;
    margin: 30px auto;
    border: 2px solid #7c4dff;
    background-color: #ede9fe;
    padding: 12px
}

.video-element {
    width: 100%;
    height: auto;
    display: block;
    background-color: #000;
    max-height: 70vh;
    object-fit: contain
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px
}

.online-counter-container {
    position: absolute;
    top: -1rem;
    right: 0;
    width: 100%;
    height: 2rem;
    z-index: 100;
    pointer-events: none
}

.danmaku-container {
    position: absolute;
    top: -1.5rem;
    left: 0;
    right: 30%;
    height: 100%;
    pointer-events: none;
    z-index: 9999
}

.danmaku-item,.online-counter {
    position: absolute;
    right: 0;
    font-size: 1rem;
    color: #fff
}

.danmaku-item {
    top: 1.5rem;
    white-space: nowrap;
    animation: danmaku-scroll 6s linear both;
    pointer-events: none;
    z-index: 1;
    transition: color .3s
}

.online-counter {
    top: -.5rem;
    transition: color .3s,transform .2s;
    z-index: 99
}

.danmaku-input,.online-counter,.online-counter.clickable {
    pointer-events: auto
}

.danmaku-input {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    padding: 4px 8px;
    font-size: .8rem;
    border: 1px solid #7e22ce;
    border-radius: 4px;
    background: rgba(0,0,0,.8);
    color: #fff;
    outline: 0;
    z-index: 10;
    backdrop-filter: blur(5px)
}

.danmaku-input::placeholder {
    color: rgba(255,255,255,.6)
}

.danmaku-input:focus {
    color: #fff;
    border-color: #5b21b6;
    box-shadow: 0 0 5px rgba(69,183,209,.3)
}

.online-counter.clickable:hover {
    color: #7e22ce;
    transform: scale(1.05)
}

.online-counter.clickable:active {
    transform: scale(.95)
}

.comment-section-wrapper form input:focus,.comment-section-wrapper form textarea:focus {
    border-color: #7c4dff!important;
    box-shadow: 0 0 0 2px rgba(124,77,255,.4)!important;
    outline: 0!important
}

.comment-section-wrapper form button[type=submit] {
    background-color: #7c4dff!important;
    border-color: transparent!important;
    opacity: 1
}

.comment-section-wrapper form button[type=submit]:disabled {
    opacity: .5
}

.comment-section-wrapper form button[type=submit]:hover:not(:disabled) {
    background-color: #5b21b6!important
}

.comment-section-wrapper form button[type=submit]:focus-visible {
    outline: 0!important;
    box-shadow: 0 0 0 2px rgba(124,77,255,.5)!important
}

@media (max-width:768px) {
    .danmaku-container {
        right: 40%;
        top: 0
    }

    .danmaku-item {
        font-size: .7rem;
        top: .5rem
    }

    .danmaku-input {
        width: 150px;
        font-size: .7rem;
        top: 0
    }

    .welcome-image-container {
        margin: 1rem 0;
        padding: 1rem
    }

    .welcome-image {
        max-width: 80%
    }

    .absolute-ending-image {
        right: 0;
        bottom: 15px;
        width: 80px;
        height: auto
    }

    .homepage-container {
        --navcard-width: 90vw;
        --navcard-right: 5vw;
        --navcard-transform-origin: center;
        --navcard-height: 80vh
    }

    .hand-cursor {
        width: 24px;
        height: 24px;
        left: -25px
    }

    .navcard {
        gap: .1rem
    }

    .navcard-content {
        flex-direction: column;
        align-items: center;
        gap: .1rem;
        padding: .3rem;
        overflow-y: auto
    }

    .status-panel {
        flex-direction: row;
        align-items: stretch;
        gap: .2rem;
        width: 100%;
        height: auto
    }

    .avatar-container {
        flex-shrink: 0;
        position: relative;
        height: 160px;
        aspect-ratio: 428/548;
        width: auto;
        margin-bottom: 0
    }

    .description-box {
        width: 100%;
        height: auto;
        flex-grow: 1
    }

    .description-box p {
        font-size: .9rem
    }

    .thought-bubble {
        display: none
    }

    .nav-open .sword-container {
        animation: sword-submerge-and-hide .8s ease-in forwards
    }

    .nav-closing .sword-container {
        animation: emerge-from-water .8s ease-out forwards
    }

    .nav-open .sword-container.animation-finished {
        animation: none;
        transform: translateY(50px);
        opacity: 0
    }

    .stats-box-retro {
        flex-grow: 1;
        padding: 4px;
        gap: 4px;
        align-self: center
    }

    .stats-box-retro .name-bar {
        padding: 2px 6px;
        font-size: .9rem
    }

    .stats-box-retro .stat-line {
        gap: 6px
    }

    .stats-box-retro .stat-bar-retro {
        height: 20px
    }

    .stats-box-retro .level-bar {
        height: 18px
    }

    .stats-box-retro .bar-text-retro {
        font-size: .75rem
    }

    .stats-box-retro .icon-container-retro svg {
        width: 20px;
        height: 20px
    }

    .avatar-container:hover .d1 {
        transform: translate(-200%,-110%) rotate(-15deg) scale(.5)
    }

    .corner-svg {
        width: 80px;
        height: auto
    }

    .top-left {
        top: 0;
        left: 0
    }

    .top-right {
        top: 0;
        right: 0
    }

    .bottom-left {
        bottom: 0;
        left: 0
    }

    .bottom-right {
        bottom: 0;
        right: 0
    }

    .tooltip {
        transform: translateX(calc(-100% - 8px))
    }

    .online-counter {
        font-size: .7rem;
        top: 0;
        right: 10%
    }

    .navcard.is-post-page {
        height: calc(100dvh - 40px)
    }

    .draggable-panel {
        border-radius: 8px;
        padding: .1rem .15rem;
        gap: .12rem;
        font-size: .74rem
    }

    .drag-handle img,.font-switcher img,.language-switcher-container img,.theme-switcher img {
        width: 18px;
        height: 18px
    }

    .font-switcher,.language-switcher-container,.theme-switcher {
        width: 20px;
        height: 20px
    }

    .navcard.is-post-page .navcard-content,navcard.is-post-page .description-box {
        width: 100vw;
        max-width: 100vw;
        margin-left: -5vw;
        box-sizing: border-box;
        padding-left: 2vw;
        padding-right: 2vw;
        border-radius: 0
    }

    .hand-cursor {
        display: none
    }

    .nav-menu {
        padding: 0
    }
}