/* === Game Over HTML 版 === */

#game-over {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 25;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: #f4d98c;
}
#game-over.active { display: flex; }

.go-panel {
    background: linear-gradient(180deg, #2a1a0e, #1a0f05);
    border: 2px solid #6a5a24;
    border-radius: 10px;
    padding: 20px 16px;
    max-width: 520px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 50px rgba(0,0,0,0.7);
}
.go-panel::-webkit-scrollbar { width: 6px; }
.go-panel::-webkit-scrollbar-track { background: transparent; }
.go-panel::-webkit-scrollbar-thumb { background: rgba(139,105,20,0.3); border-radius: 3px; }

/* 胜利标题 */
.go-winner {
    text-align: center;
    font-size: clamp(28px, 6vw, 38px);
    font-weight: bold;
    text-shadow: 0 0 20px rgba(244,217,140,0.3);
}
.go-rounds {
    text-align: center;
    font-size: 15px;
    color: #888;
    margin-top: 4px;
    margin-bottom: 16px;
}
.go-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #6a5a24, transparent);
    margin: 14px 0;
}

/* 计分板 */
.go-scoreboard {
    width: 100%;
    border-collapse: collapse;
}
.go-scoreboard th {
    font-size: 14px;
    font-weight: bold;
    padding: 6px 4px;
    border-bottom: 1px solid #5a4a2a;
}
.go-scoreboard th:first-child {
    text-align: left;
    color: #aaa;
}
.go-scoreboard th {
    width: 30%;
}
.go-scoreboard td {
    padding: 10px 4px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}
.go-scoreboard td:first-child {
    text-align: left;
    font-size: 14px;
    font-weight: normal;
    white-space: nowrap;
}
.go-row-label {
    color: #ccc;
}
.go-row-desc {
    font-size: 10px;
    color: #666;
    font-weight: normal;
    margin-left: 6px;
}
.go-total-row td {
    border-top: 1px solid #5a4a2a;
    padding-top: 12px;
    font-size: 22px;
}
.go-total-row td:first-child {
    font-size: 16px;
    font-weight: bold;
    color: #f4d98c;
}

/* 经济详情 */
.go-eco-detail {
    text-align: center;
    font-size: 12px;
    color: #666;
    padding: 2px 4px;
    white-space: nowrap;
}

/* 详细统计 */
.go-details {
    display: flex;
    gap: 0;
}
.go-detail-col {
    flex: 1;
    min-width: 0;
    padding: 0 8px;
}
.go-detail-col + .go-detail-col {
    border-left: 1px solid rgba(139,105,20,0.2);
}
.go-detail-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
}
.go-detail-row {
    font-size: 12px;
    color: #999;
    padding: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 按钮 */
.go-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    font-size: 18px;
    font-weight: bold;
    font-family: inherit;
    background: linear-gradient(180deg, #7a6a1a, #5a4a14);
    color: #f4d98c;
    border: 2px solid #8b6914;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.go-btn:hover {
    background: linear-gradient(180deg, #9a8a2a, #7a6a1a);
    box-shadow: 0 0 15px rgba(139,105,20,0.3);
}
.go-btn:active {
    transform: scale(0.97);
}
