body {
    overflow-y: scroll; /* 总是显示滚动条，即使内容不超出视口高度 */
}

@keyframes pulse {
    from {}

    to {
        box-shadow: 1px 3px 15px 8px #222222,
        0px 7px 10px 0px #111111,
        inset 0px 0px 1px 0px rgba(250, 250, 250, 0.2),
        inset 8px 5px 35px 0px rgba(0, 0, 0, 0.5);
    }
}

.game_ad-first{
    margin-top: 40px
}

@media (max-width: 576px) {
    .game_ad-first {
        margin-top: 20px
    }
}

.game_ad-last{
    margin-bottom:50px
}

.game_ad .item {
    /*background-color: #f9f9f9;*/
    background-color: #fafafa;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    width: 90%;
    margin: 10px auto;
    /*margin-top: 10px;*/
    /*margin-bottom: 10px;*/
    /*margin-left: auto;*/
    /*margin-right: auto;*/
    /*margin: 0px 0px 10px 20px;*/
    /*border: 1px solid #cccccc;*/
    border: 1px solid #dcdcdc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.game_ad .item-handle {
    /*background-color: #f9f9f9;*/
    background-color: #fafafa;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    width: 100%;
    /*margin: 10px auto;*/
    border: 1px solid #dcdcdc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.game_ad .item-handle .img img{

}

.game_ad .item-plus {
    /*margin-top: 10px;*/
    background-color: white;
    border: 1px solid #dcdcdc;
}

.game_ad .item .hit {
    margin: 10px 10px 10px 10px;
    /*max-height: 150px;*/
    /*overflow-y: auto;*/
}

.hit p {
    margin: 0 0 0.8em 0;
    line-height: 1.4;
}

.dot1 {
    font-weight: 900;
    font-size: 1.3em;
    /*margin-right: 0.3em;*/
    color: #000;
}

.game_ad-intro {
    /*height: 320px;*/
    /*overflow-y: auto;*/
    padding: 10px;
    font-size: 15px;
    /*background-color: #f9f9f9;*/
    background-color: #fafafa;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    width: 100%;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    /*margin: 0px 0px 10px 20px;*/
    /*border: 1px solid #cccccc;*/
    border: 1px solid #dcdcdc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@media (min-width: 992px) {
    .game_ad-intro-ext {
        /*margin-left: 20px;!important;*/
        margin-bottom: 20px;!important;
    }

    .game_ad-intro-ext_v2 {
        margin-left: 20px;!important;
        margin-bottom: 20px;!important;
    }
}

@media (max-width: 991px) {
    .game_ad-intro-ext {
        width:90%;
    }
    .game_ad-intro-ext_v2 {
        width:90%;
    }
}


.game_ad .item .intro_short{
    height: 230px;
}

.game_ad .item .support {
    margin: 10px 10px 10px 10px;
    /*max-height: 150px;*/
    /*overflow-y: auto;*/
}

.game_ad .item .support .pay{
    display: flex;
    justify-content: center;
    align-items: center;
    /*width:60px;*/
    /*height:60px;*/
}

.game_ad .item .support .pay img {
    width:60px;
    height:60px;
}

.game_ad .item .intro p{
    font-size: 14px;
    margin-bottom: 10px;
    /*text-indent: 2em;*/
}

.game_ad .item .img {
    aspect-ratio: 640/480;
    width:100%;
    height: 100%;
    object-fit: fill
}

.game_ad .item .video {
    aspect-ratio: 640/480;
    width:100%;
    height: 100%;
}

.game_ad .item .img img{
    border: 2px solid #dcdcdc;
    width: 100%;
    height: 100%;
    object-fit: fill; /* 可以是cover, contain, fill等，根据需要选择 */
    /*position: absolute;*/
    top: 0;
    left: 0;
}

.game_ad .item .ad {
    /*临时处理广告位移植空着的情况*/
    height:0px;
    /*min-height: 240px;*/
    /*overflow-x: auto;*/
    /*overflow-y: auto;*/
}

.game_ad .item .ad h4 {
    padding: 8px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    transition: all .3s;
    margin-top: 100px
}

.game-start-loading-div {
    position: absolute;
    top: 70%;
    /*left: 50%;*/
    /*transform: translate(-50%, -50%);*/
    z-index: 1;
}

.game-start-loading-div img{
    width: 80px;
    height: 60px;
}

.game-start-div {
    position: absolute;
    top: 80%;
    /*left: 50%;*/
    /*transform: translate(0%, -50%);*/
    z-index: 1;
}

.game-save-select-div {
    position: absolute;
    top: 70%;
    /*left: 50%;*/
    /*transform: translate(0%, -50%);*/
    z-index: 1;
}

@media (max-width: 767px) {
    .game-save-select-div {
        top: 65%;
    }
}

.emu-game-save-select-div {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, 0%);
    z-index: 1;
}

@media (max-width: 767px) {
    .emu-game-save-select-div {
        top: 65%;
    }
}

.emu-game-start-div {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, 0%);
    z-index: 1;
}

.game-start {
    display: flex;
    justify-content: center;
    text-shadow: 1px 1px 2px rgb(0 0 0);
    font-size: 20px;
    line-height: 45px;
    text-transform: uppercase;
    font-weight: bolder;
    position: relative;
    text-decoration: none;
    width: 200px;
    height: 45px;
    border: 0;
    color: #fff !important;
    border-radius: 5px;
    text-align: center;
    background-color: rgb(26, 175, 255);
    cursor:pointer;
}

.game-start:hover {
    animation: pulse 1.2s linear infinite alternate;
}

.game-start a {
    color: #fff;
}

@media (max-width: 576px) {
    .game-start {
        margin-top: 10px;
        line-height: 35px;
        height: 35px;
    }
}

.game-tool-div {
    margin: 15px 0px 0px 0px;
    width:100%;
    /*position: absolute;*/
    /*top: 70%;*/
    /*left: 50%;*/
    /*transform: translate(-50%, -50%);*/
    z-index: 1;
}

.game-tool-btn {
    display: flex;
    justify-content: center;
    text-shadow: 1px 1px 2px rgb(0 0 0);
    font-size: 15px;
    /*line-height: 30px;*/
    text-transform: uppercase;
    font-weight: bolder;
    position: relative;
    text-decoration: none;
    width: 70px;
    height: 30px;
    border: 0;
    color: #fff !important;
    border-radius: 5px;
    text-align: center;
    background-color: rgb(26, 175, 255);
    cursor:pointer;
}

.game-tool-btn:hover {
    animation: game-tool-btn-pulse 1.2s linear infinite alternate;
}

@keyframes game-tool-btn-pulse {
    50% {
        opacity: .7;
    }
}

.emu-game-save-select {
    padding: 8px 8px 8px 20px!important;
}

.game-save-select {
    padding: 5px 5px 5px 20px;
    border: 2px solid #1e88e5;
    border-radius: 6px;
    background-color: #d0e0f0;
    color: #0d47a1;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    width: 200px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231e88e5'%3e%3cpath d='M7 10l5 5 5-5z' stroke='%231e88e5' stroke-width='2'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 24px;
}

.game-save-select option {
    padding: 12px;
    /*background-color: #e3f2fd;*/
    background-color: #d0e0f0;
    color: #0d47a1;
    font-size: 15px;
}

/** {*/
/*    -webkit-touch-callout: none;*/
/*    -webkit-user-select: none;*/
/*    -khtml-user-select: none;*/
/*    -moz-user-select: none;*/
/*    -ms-user-select: none;*/
/*    user-select: none;*/
/*    -ms-touch-action: none;*/
/*    -ms-content-zooming: none;*/
/*    touch-action: none;*/
/*}*/

.tool_container{
    display: flex;
    justify-content: flex-end;
    /*justify-content: center;*/
    align-items: center;
    height:40px;
    /*margin-right: 20px;*/
}

@media (max-width: 768px) {
    .tool_container {
        justify-content: center;
    }
}

.tool_btn-svg {
    padding: 1px;
    border: none;
    background: none;
    /*padding: 8px;*/
    margin-top: 15px;
    height:25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: right;
    fill: currentColor; /* 使用当前文本颜色作为图标颜色 */
    color: #333;
    transition: color 0.3s, fill 0.3s;
}
.tool_btn-svg:hover {
    color: #007bff;
    fill: #007bff;
}
.tool_tooltip-inner {
    font-size: 0.8rem;
}
/* 增加悬浮背景色 */
.tool_btn-svg:hover {
    background-color: #f8f9fa; /* 悬浮时的背景色 */
    border-radius: 5px;
    color: #007bff;
    fill: #007bff;
}

/* 置灰样式 */
.tool_disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.listall-button{
    text-align: right;
}

.listall-button a {
    display: inline-block;
    background-color: #ee626b;
    text-transform: uppercase;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    height: 35px;
    line-height: 35px;
    padding: 0px 20px;
    border-radius: 5px;
    transition: all .3s;
}

.listall-button a:hover {
    background-color: #0071f8;
    color: #fff;
}

.no-select {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
    user-select: none; /* 标准语法 */
}


/* 联机窗口start */
/* 弹出框整体样式 */
.netplay_popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3000;
}

.netplay_popup-content {
    display: flex;
    flex-direction: column;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f8f9fa;;
    /*width: 80%;*/
    width: 780px;
    height: 440px;
    overflow: hidden;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    font-size: 14px;
}

/* 内容容器 */
.netplay_content-container {
    display: flex;
    height: 100%;
    overflow: hidden;
}

.netplay_popup-content > div {
    padding: 10px;
}

.left-content, .right-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.left-content {
    flex: 1; /* 保持原有占比 */
    padding: 10px;
    border-right: 3px solid #e0e0e0;
}

.right-content {
    flex: 2;
    padding: 10px;
}

/* 字体和颜色优化 */
body {
    /*font-family: 'Arial', sans-serif;*/
    /*color: #333333;*/
}

h4 {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px; /* 增加与下方内容的间距 */
}

/* 表单样式 */
.form-control, .form-select {
    border: 1px solid #cccccc;
    border-radius: 5px;
    padding: 8px;
    font-size: 14px;
    color: #555555;
    /*width: calc(100% - 22px); !* 增加长度 *!*/
    width: 100%; /* 输入框和下拉框宽度调整为占满父容器 */
}

.form-control:focus, .form-select:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

/* 按钮样式 */
.netplay_btn {
    background-color: #4a90e2;
    border: none;
    color: white;
    padding: 8px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #357ab7;
}

.btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    font-size: 18px;
    font-weight: bold;
}

.btn-close:hover {
    background-color: #cccccc;
}

/* 房间列表样式 */
.room-list {
    margin-top: 15px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    flex: 1;
    margin-bottom: 60px;
}

.room-list table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid #e0e0e0;
}

.room-list table th {
    background-color: #6daff2; /* 表头背景色调整为蓝色 */
    border-right: 1px solid #e0e0e0;
    color: white; /* 表头文字颜色调整为白色 */
    font-weight: bold;
    text-align: center; /* 表头内容居中 */
    vertical-align: middle;
}

.room-list table td {
    border-right: 1px solid #e0e0e0; /* 列竖线分割 */
    padding: 0px 8px !important;
    line-height: 0.8;
    text-align: center; /* 列内容居中 */
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-list table th:last-child, .room-list table td:last-child {
    border-right: none; /* 移除最后一列的竖线 */
}

.room-list table td:first-child {
    text-align: left; /* 第一列靠左 */
}

.room-list table tr:nth-child(even) {
    background-color: #f5f5f5; /* 新的偶数行背景颜色 */
}

.room-list table tr:nth-child(odd) {
    background-color: #ffffff; /* 新的奇数行背景颜色 */
}

.room-list table tr:hover {
    background-color: #f1f1f1;
}

.room-list table button {
    background-color: #4a90e2;
    border: none;
    color: white;
    padding: 8px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.room-list table button:hover {
    background-color: #357ab7;
}

.create-form {
    margin-top: 15px;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 60px;
    height:275px
}

.button-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
}

.password_popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3500;
}

.password_popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    width: 300px;
    height: 200px;
    text-align: center;
}

.password_form-control {
    width: 80%;
    padding: 8px;
    margin-top: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.password_button-container {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
/* 链接窗口end */

.category-filter-section {
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.category-filter-list {
    display: flex;
    flex-wrap: wrap;
    width: 100%
}

.category-filter-btn {
    display: inline-block;
    min-width: 100px;
    margin-bottom: 20px;
    padding: 8px 16px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
    font-weight: 500;
    color: #333;
}

.category-filter-btn:hover {
    background-color: #e9e9e9;
    color: #333;
}

.category-filter-btn.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/*网页全屏*/

/* 全屏状态 */
.game-div-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 3500 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* 右下角圆形退出按钮 */
#exitDivFullscreenBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0.5;
    background: rgba(128, 128, 128, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transform: translateX(0);
    transition: all 0.2s;
    display: none;
}

#exitDivFullscreenBtn:hover {
    opacity: 0.9;
    background: rgba(128, 128, 128, 0.8);
}

/* SVG图标样式 */
.exit-div-fullscreen-icon {
    color:white;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    fill: currentColor;
    overflow: hidden;
}

/* 上方提示信息 */
#exitDivFullscreenBtn::before {
    content: "退出网页全屏";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

#exitDivFullscreenBtn:hover::before {
    opacity: 1;
}

/* 禁用页面滚动 */
html.game-noscroll {
    overflow: hidden;
}

.game-loading {
    position: absolute;
    top: 70%;
    /*left: 50%;*/
    /*transform: translate(-50%, -0%);*/
    z-index: 1;
    /*background-color: black;*/
    /*display: none;*/
}

.game-loading-img {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -0%);
    z-index: 1;
    /*background-color: black;*/
    /*display: none;*/
    aspect-ratio: 640/480;
    width:50%;
    height: 50%;
    object-fit: fill;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.6));
}

.game-loading-img img{
    /*border: 1px solid #49bfe0;*/
    /*clip-path: inset(1%);*/
    border-radius: 10px;
    width: 100%;
    height: 100%;
    object-fit: fill;
    /*position: absolute;*/
    top: 0;
    left: 0;
    outline: 3px solid #555;
    box-shadow: 0px 0px 10px rgba(52, 152, 219, 0.5);
    /*box-shadow:*/
    /*    inset 0 0 25px rgba(0, 0, 0, 0.5),*/
    /*    0 0 30px rgba(82, 172, 255, 0.7);*/
}

@media (max-width: 768px) {
    .game-loading-img img {
        outline: 3px solid #555;
    }
}

.game-loading-background{
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    width:100%;
    height: 100%;
    /*display: none;*/
}

.game-loading-background img{
    filter:blur(30px);
    object-fit: fill;
    width:100%;
    height:100%;
    top: 0;
    left: 0;
}

.game-recommend-title{
    text-align: center;
    padding:10px
}

.game-recommend-title a{
    color: black;
}

.game_container_v3 {
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    aspect-ratio: 640/480;
    width: 100%;
    /*height: 100%;*/
    margin: auto;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6), 0 5px 2px rgba(0, 0, 0, .1), 0 4px 8px rgba(0, 0, 0, .8);
    border-color: #2F2D2D #434040 #4F4C4C #434040;
    background-color: black
}

.game_container_v3 .game{
    width:100%;
    height: 100%;
}

.game-loading-text {
    display: flex;
    color: #ffffff;
    font-size: 30px;
    text-transform: uppercase;
    font-weight: 500;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
    text-align: justify;
    letter-spacing: 2px;
    transition: all .3s;
    justify-content: center;
    align-items: center;
    width:100%;
    text-align: center;
    line-height: 2;
}

@media (max-width: 768px) {
    .game-loading-text {
        font-size: 15px; /* 小屏幕时字体大小 */
    }
}

.game-notice-div {
    position: absolute;
    top: 90%;
    /*top: 2%;*/
    z-index: 1;
}

.game-notice-text {
    display: flex;
    color: #ff4220;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 500;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
    text-align: justify;
    letter-spacing: 2px;
    transition: all .3s;
    justify-content: center;
    align-items: center;
    width:100%;
    text-align: center;
    line-height: 2;
}

.game-notice-text a{
    color: inherit;
    text-decoration: underline!important;
}

@media (max-width: 499px) {
    /*.game-notice-div {*/
    /*    display: none;!important;*/
    /*}*/
    /*.game-notice-text{*/
    /*    display: none;!important;*/
    /*}*/
    .game-notice-div  {
        top:0%;
    }
}

@media (min-width: 500px) and (max-width: 576px) {
    .game-notice-div  {
        top:92%;
    }
}

.save-mask {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100px;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    z-index: 100;

}

.save-mask-box {
    width: 40%;
    height: 70%;
    background: linear-gradient(135deg, rgba(240, 244, 255, 0.9), rgba(214, 228, 255, 0.9));
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: save-mask-fadeIn 0.3s ease forwards;
}

.save-mask-text {
    color: #333;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

@keyframes save-mask-fadeIn {
    from {
        opacity: 0;            /* 完全透明 */
        transform: scale(0.95); /* 缩小5% */
    }
    to {
        opacity: 1;             /* 完全不透明 */
        transform: scale(1);    /* 原始大小 */
    }
}

.game-tv-img-div{
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    user-select: none;         /* 标准语法 */
}

.game-tv-img{
    --clip-top: 0;
    --clip-right: 0;
    --clip-bottom: 0;
    --clip-left: 0;
    --scale-x: calc(1 / (1 - (var(--clip-left) + var(--clip-right))));
    --scale-y: calc(1 / (1 - (var(--clip-top) + var(--clip-bottom))));

    position: absolute;
    z-index: 100;
    pointer-events: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    clip-path: inset(
            calc(var(--clip-top) * 100%)
            calc(var(--clip-right) * 100%)
            calc(var(--clip-bottom) * 100%)
            calc(var(--clip-left) * 100%)
    );
    transform-style: preserve-3d;
    backface-visibility: hidden;
    animation: game-tv-img-smooth 0.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    opacity: 0;
}

@keyframes game-tv-img-smooth {
    0% {
        opacity: 0;
        transform: translate3d(0,0,0) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translate3d(0,0,0) scale(var(--scale-x), var(--scale-y));
    }
}

.game-tv{
    position: absolute;
    aspect-ratio: 640/480;
    height: 100%;
    top: initial;
    left: initial;
    z-index: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.base-command-container{
    display: none;
    font-size:14px;
}

.base-command-container table {
    font-size: 14px;
    width: 100%;
    border-collapse: collapse;
}

.base-command-container th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.base-command-container tr:nth-child(even) {
    background-color: #f5f5f5;
}

.base-command-container tr:hover {
    background-color: #f1f1f1;
}

.base-command-container td:nth-child(1) {
    width: 35%;
}

.base-command-container td:nth-child(2) {
    width: 65%;
}

.character-command-container{
    display: none;
    font-size:14px;
}

.characters-header-toggle {
    font-size:14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #444, #333);
    color: white;
    padding: 10px 10px;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.characters-header-toggle:hover {
    background: linear-gradient(to bottom, #555, #444);
}

.toggle-arrow {
    transition: transform 0.3s ease;
}

.toggle-arrow.collapsed {
    transform: rotate(-90deg);
}

.characters-header {
    display: grid;
    grid-template-columns: repeat(auto-fill, 70px);
    gap: 5px;
    margin: 10px 0px;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.characters-header.collapsed {
    max-height: 0;
    margin: 0;
    overflow: hidden;
}

.character-tab {
    font-size:12px;
    background: linear-gradient(to bottom, #555, #333);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-align: center;
    white-space: nowrap;
    padding: 5px 0px 5px 0px
}

.character-tab:hover {
    background: linear-gradient(to bottom, #666, #444);
    /*transform: translateY(-2px);*/
}

.character-tab.active {
    background: linear-gradient(to bottom, #d32f2f, #b71c1c);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.character-content {
    display: none;
    background: white;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 0px;
}

.character-content.active {
    display: block;
}

.character-content table {
    width: 100%;
    border-collapse: collapse;
    font-size:14px;
    table-layout: fixed;
}

.character-content tr:nth-child(even) {
    background-color: #f5f5f5;
}

.character-content tr:hover {
    background-color: #f1f1f1;
}

.character-content .type-cell {
    background-color: #e8f5e9;
    font-weight: bold;
    text-align: center;
}

.character-content .merged-cell {
    vertical-align: middle;
}

.character-content table tr td:nth-child(1) {
    width: 15%;
}
.character-content td:nth-child(2) {
    width: 35%;
}
.character-content td:nth-child(3) {
    width: 60%;
}