﻿.arena-panel {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

.arena-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url('/resource/image/ui/map_arena.png') center center / 100% 100% no-repeat;
    pointer-events: none;
}

.arena-main {
    position: relative;
    width: 100%;
    height: 100%;
}

.arena-top-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.arena-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.arena-close {
    position: absolute;
    right: 18px;
    top: 12px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    padding: 0;
    pointer-events: auto;
}

    .arena-close img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.arena-map-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.arena-player-slot {
    position: absolute;
    width: 80px;
    height: 130px;
}

.arena-player-btn {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    padding: 0;
}

.arena-player-card {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    min-height: 96px;
    padding: 2px 0px;
    border-radius: 12px;
    /* background: rgba(0, 0, 0, 0.42); */
    backdrop-filter: blur(6px);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    border: 1px solid #fffafa;
}

.arena-player-rank {
    font-size: 14px;
    font-weight: 700;
    color: #f2ff00;
}

.arena-player-avatar-wrap {
    position: relative;
    width: 40px;
    height: 40px;
}

.arena-player-avatar,
.arena-player-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.arena-player-avatar {
    object-fit: cover;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.arena-player-frame {
    object-fit: cover;
    pointer-events: none;
}

.arena-player-name,
.arena-player-fighting {
    width: 100%;
    text-align: center;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
}
.arena-player-fighting {
    color: #ffff00;
}
.arena-player-slot.is-self .arena-player-card {
    background: rgb(167 136 89 / 68%);
    border: 2px solid #ffde00;
}

.arena-player-slot.is-empty .arena-player-btn {
    pointer-events: none;
}

.arena-player-slot.is-empty .arena-player-card {
    opacity: 0.65;
}

.arena-player-slot.is-empty .arena-player-avatar-wrap {
    display: none;
}

.arena-player-slot.is-empty .arena-player-fighting {
    display: none;
}

.arena-challenge-bar {
    position: absolute;
    left: 50%;
    bottom: 82px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 3;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.60);
    padding: 0px 0px 0px 6px;
}

.arena-challenge-info {
    color: #fff3dd;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.arena-challenge-buy-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .arena-challenge-buy-btn img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.arena-bottom-bar {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    gap: 18px;
    z-index: 3;
}

.arena-bottom-btn {
    width: 80px;
    height: 45px;
    border: 0px solid #f2d2a0;
    font-size: 16px;
    font-weight: 700;
}

.arena-slot-0 {
    left: 55%;
    top: 4%;
}

.arena-slot-1 {
    left: 66%;
    top: 19%;
}

.arena-slot-2 {
    left: 60%;
    top: 33%;
}

.arena-slot-3 {
    left: 28%;
    top: 30%;
}

.arena-slot-4 {
    left: 6%;
    top: 36%;
}

.arena-slot-5 {
    left: 45%;
    top: 45%;
}

.arena-slot-6 {
    left: 9%;
    top: 48%;
}

.arena-slot-7 {
    left: 68%;
    top: 53%;
}

.arena-slot-8 {
    left: 28%;
    top: 59%;
}

.arena-slot-9 {
    left: 60%;
    top: 68%;
}

.arena-slot-10 {
    left: 16%;
    top: 74%;
}

.rank-reward-plane {
    position: fixed;
    inset: 0;
    z-index: 15000;
}

.rank-reward-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.rank-reward-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(92vw, 720px);
    max-height: 80vh;
    transform: translate(-50%, -50%);
    background: #1f1b18;
    border: 1px solid rgba(255, 230, 194, 0.22);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rank-reward-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.rank-reward-title {
    font-size: 18px;
    font-weight: 700;
}

.rank-reward-close {
    border: 1px solid rgba(255,255,255,0.18);
    background: transparent;
    color: #fff;
    border-radius: 6px;
    padding: 4px 10px;
}

.rank-reward-list {
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align:center;
}

.rank-reward-row {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.25);
    padding: 10px;
}

.rank-reward-rank {
    color: #ffd36e;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.rank-reward-items {
    min-height: 48px;
}

.rank-reward-empty {
    color: #ddd;
    text-align: center;
    padding: 24px 0;
}
.arena-record-panel {
    position: fixed;
    inset: 0;
    z-index: 16000;
}

.arena-record-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.arena-record-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 560px);
    height: min(78vh, 720px);
    background: linear-gradient(180deg, #7b4e2b, #442910);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.arena-record-header {
    position: relative;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    flex: 0 0 auto;
}

.arena-record-title {
    color: #ffe4a8;
    font-size: 18px;
    font-weight: 700;
}

.arena-record-close-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
}

    .arena-record-close-btn img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.arena-record-body {
    flex: 1 1 auto;
    padding: 12px;
    overflow: hidden;
}

.arena-record-list {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    touch-action: pan-y;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.arena-record-item {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    color: #fff7df;
    margin-bottom: 8px;
}

.arena-record-time {
    color: #b7b7b7;
    font-size: 12px;
    margin-bottom: 4px;
}

.arena-record-text {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-all;
}