@charset "UTF-8";

.c-mc-0 {
    color: #000000;
    text-shadow: 0.125em 0.125em 0 #000000;
}

.c-mc-1 {
    color: #0000AA;
    text-shadow: 0.125em 0.125em 0 #00002A;
}

.c-mc-2 {
    color: #00AA00;
    text-shadow: 0.125em 0.125em 0 #002A00;
}

.c-mc-3 {
    color: #00AAAA;
    text-shadow: 0.125em 0.125em 0 #002A2A;
}

.c-mc-4 {
    color: #AA0000;
    text-shadow: 0.125em 0.125em 0 #2A0000;
}

.c-mc-5 {
    color: #AA00AA;
    text-shadow: 0.125em 0.125em 0 #2A002A;
}

.c-mc-6 {
    color: #FFAA00;
    text-shadow: 0.125em 0.125em 0 #402A00;
}

.c-mc-7 {
    color: #AAAAAA;
    text-shadow: 0.125em 0.125em 0 #2A2A2A;
}

.c-mc-8 {
    color: #555555;
    text-shadow: 0.125em 0.125em 0 #151515;
}

.c-mc-9 {
    color: #5555FF;
    text-shadow: 0.125em 0.125em 0 #15153F;
}

.c-mc-a {
    color: #55FF55;
    text-shadow: 0.125em 0.125em 0 #153F15;
}

.c-mc-b {
    color: #55FFFF;
    text-shadow: 0.125em 0.125em 0 #153F3F;
}

.c-mc-c {
    color: #FF5555;
    text-shadow: 0.125em 0.125em 0 #3F1515;
}

.c-mc-d {
    color: #FF55FF;
    text-shadow: 0.125em 0.125em 0 #3F153F;
}

.c-mc-e {
    color: #FFFF55;
    text-shadow: 0.125em 0.125em 0 #3F3F15;
}

.c-mc-f {
    color: #FFFFFF;
    text-shadow: 0.125em 0.125em 0 #3F3F3F;
}

body {
    margin: 0;
    padding: 0;
    background-image: url(game.webp);
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    color: #ffffff;
    font-size: 16px;
    line-height: 20px;
    overflow: hidden;
    -webkit-text-size-adjust: none; 
}

.colors-list {
    background-color: #00000080;
    display: inline-block;
    padding: 10px;
}

.chatbox {
    background-color: #00000080;
    position: absolute;
    bottom: 80px;
    left: 0;
    min-width: 600px;
    max-width: 75vw;
    padding: 2px 5px;
    word-wrap: break-word;
    word-break: break-all;
}

.chatbox-input {
    width: auto;
    box-sizing: border-box;
    border: none;
    padding: 5px 2px;
    font-size: 16px;
    line-height: 20px;
    background-color: #00000080;
    color: #ffffff;
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 5px;
    right: 5px;
    outline: none;
    font-family: "Unifont";
}

.scoreboard {
    background-color: #00000080;
    position: absolute;
    right: 0;
    bottom: 50%;
    padding: 2px 5px;
}

.scoreboard .sb-line.center {
    text-align: center;
}

.scoreboard .sb-line.flex {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

@font-face {
    font-family: "Unifont";
    src: url("unifont-17.0.03.woff2") format("woff2")
}

/* Apply Unifont (with sensible fallbacks) */
body, .colors-list, .chatbox, .scoreboard {
    font-family: "Unifont";
}


@media screen and (max-height: 550px) {
    .chatbox, .chatbox-input {
        transform: scale(0.6);
        transform-origin: left bottom;
    }
    .chatbox {
        bottom: 40px;
    }
    .scoreboard {
        transform: scale(0.6);
        transform-origin: bottom right;
    }
}

/* 默认样式：隐藏弹出层 (假设横屏或非移动设备) */
#orientation-popup {
    /* 默认设置为 'none' 隐藏 */
    display: none; 
    
    /* 以下是全屏定位和背景设置，在显示时需要 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; 
    height: 100vh; 
    background: rgba(0, 0, 0, 0.9); /* 黑色半透明背景 */
    color: white;
    z-index: 99999; 
    
    /* 居中对齐内容 */
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* 弹出层内容样式 */
.popup-content {
    padding: 20px;
    max-width: 80%;
}

.rotate-icon {
    font-size: 4em;
    margin-top: 20px;
    animation: rotate-animation 1.5s infinite alternate;
}

/* 核心：仅在设备处于竖屏模式时，覆盖默认的 'display: none' */
@media screen and (orientation: portrait) {
    #orientation-popup {
        /* 竖屏时覆盖 display: none，强制显示为 flex 容器 */
        display: flex; 
    }
}

/* 旋转动画的关键帧 */
@keyframes rotate-animation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(15deg); 
    }
}