:root {
    --zzz-black: #121212;
    --zzz-green: #ccff00;
    --zzz-border: 3px solid #121212;
}

body {
    font-family: 'Oswald', sans-serif;
    background-color: #e5e5e5;
    background-image: radial-gradient(#a3a3a3 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--zzz-black);
    overflow-x: hidden;
}

.zzz-box {
    background: white;
    border: var(--zzz-border);
    box-shadow: 6px 6px 0px 0px var(--zzz-black);
    transition: all 0.1s;
}

.zzz-box:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px 0px var(--zzz-black);
}

.zzz-btn {
    background: var(--zzz-black);
    color: white;
    padding: 10px 20px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    border: none;
}

.zzz-btn:hover {
    background: var(--zzz-green);
    color: black;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.live2d-crt {
    position: relative;
    background: #111;
    border: 4px solid #333;
    height: 500px;
    overflow: hidden;
}

.live2d-crt::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

#live2d-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

#loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccff00;
    font-family: 'Share Tech Mono';
    z-index: 10;
}

.chat-bubble {
    max-width: 90%;
    padding: 10px;
    border: 2px solid black;
    margin-bottom: 10px;
    font-family: sans-serif;
}

.chat-ai {
    background: white;
    box-shadow: 4px 4px 0 black;
}

.chat-user {
    background: black;
    color: #ccff00;
    margin-left: auto;
    box-shadow: -4px 4px 0 rgba(0, 0, 0, 0.2);
}

.zzz-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    padding: 2px 8px;
    border: 2px solid var(--zzz-black);
    font-weight: bold;
    display: inline-block;
}

#chat-history::-webkit-scrollbar {
    width: 8px;
    background: #ffffff;
}

#chat-history::-webkit-scrollbar-corner,
#chat-history::-webkit-scrollbar-thumb,
#chat-history::-webkit-scrollbar-track {
    border-radius: 0px;
}

#chat-history::-webkit-scrollbar-corner,
#chat-history::-webkit-scrollbar-track {
    /* 滚动条轨道 */
    background-color: rgb(21 21 21);
    box-shadow: inset 0 0 1px rgb(0 0 0);
}

#chat-history::-webkit-scrollbar-thumb {
    /* 滚动条手柄 */
    background-color: #c1f200;
}
