@font-face {
    font-family: 'fzlant';
    src: url('../../ttf/fzlant.D5FI9Et0.ttf') format('truetype');
}

@font-face {
    font-family: 'mianfeiziti';
    src: url('../../ttf/dundun.xHd_Ee5-.woff2') format('woff2');
    font-display: swap;
}

:root {
    --helper-font-family-system: system-ui, "calibri", "Roboto", verdana, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    --helper-font-family-mianfeiziti: 'mianfeiziti', system-ui, "calibri", "Roboto", verdana, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    --helper-font-family-fzlant: 'fzlant', system-ui, "calibri", "Roboto", verdana, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

html { font-size: 80px !important; }

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img {
    border: 0;
    font-size: 0;
    user-select: none;
    vertical-align: middle;
    -webkit-user-drag: none;
}

/* ====== Page Container ====== */
.record-page {
    width: 12rem;
    background: url('../../img/bg.C8CUoi7I.jpg') no-repeat center top;
    background-size: cover;
    padding: 0.2rem 0.3rem;
    font-family: var(--helper-font-family-system);
}

/* ====== Header ====== */
.record-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(50, 42, 30, 0.85);
    border-radius: 0.15rem;
    padding: 0.15rem 0.2rem;
    margin-bottom: 0.2rem;
    min-height: 0.9rem;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    flex: 1;
}

.header-avatar {
    width: 0.6rem;
    height: 0.6rem;
    object-fit: contain;
}

.header-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.04rem;
}

.header-user-name-row {
    display: flex;
    align-items: center;
    gap: 0.08rem;
}

.header-user-name {
    font-family: var(--helper-font-family-mianfeiziti);
    color: #f4eee1;
    font-size: 0.22rem;
    font-weight: bold;
}

.header-user-level {
    font-family: var(--helper-font-family-mianfeiziti);
    background-color: #ffc966;
    color: #272624;
    font-size: 0.14rem;
    font-weight: bold;
    padding: 0.02rem 0.08rem;
    border-radius: 0.1rem;
    line-height: 1.2;
}

.header-user-uid {
    font-family: Arial, sans-serif;
    color: #a8a69f;
    font-size: 0.14rem;
}

.header-center {
    flex: 2;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title {
    font-family: var(--helper-font-family-mianfeiziti);
    color: #ffc65f;
    font-size: 0.28rem;
    font-weight: bold;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    flex: 1;
    justify-content: flex-end;
}

.header-stats {
    display: flex;
    flex-direction: row;
    gap: 0.16rem;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 0.06rem;
}

.stat-label {
    font-family: var(--helper-font-family-mianfeiziti);
    color: #a8a69f;
    font-size: 0.14rem;
}

.stat-value {
    font-family: var(--helper-font-family-mianfeiziti);
    color: #f4eee1;
    font-size: 0.2rem;
    font-weight: bold;
}

/* ====== Match List ====== */
.match-list {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

/* ====== Match Record Card ====== */
.match-record-card {
    display: flex;
    align-items: center;
    background-color: rgba(247, 244, 237, 0.92);
    border-radius: 0.12rem;
    padding: 0.12rem 0.18rem;
    gap: 0.12rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: visible;
}

/* ====== Team Sections ====== */
.match-team {
    flex: 4;
}

.match-player-info {
    display: flex;
    align-items: center;
    gap: 0.06rem;
    margin-bottom: 0.06rem;
}

.match-player-info-right {
    justify-content: flex-end;
}

.match-player-avatar {
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 50%;
    object-fit: contain;
}

.match-player-name {
    font-family: var(--helper-font-family-mianfeiziti);
    font-size: 0.16rem;
    font-weight: bold;
    color: #5a3e1b;
    max-width: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-player-badge {
    width: 0.24rem;
    height: 0.24rem;
    object-fit: contain;
}

.match-pet-list {
    display: flex;
    gap: 0.02rem;
    flex-wrap: wrap;
    overflow: visible;
}

.match-pet-list-right {
    justify-content: flex-end;
}

.match-pet-icon {
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 50%;
    object-fit: contain;
    background-color: rgba(100, 80, 50, 0.12);
    margin-top: -0.1rem;
}

/* ====== Center VS ====== */
.match-center {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.04rem;
}

.match-vs-icon {
    width: 0.5rem;
    height: 0.5rem;
}

.vs-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ====== Match Result Badge (胜/败 background image) ====== */
.match-result-badge {
    width: 0.98rem;
    height: 0.81rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
    color: transparent;
}
.match-result-badge.win {
    background-image: url('../../img/win-icon.DJfsgL3i.png');
}
.match-result-badge.fail {
    background-image: url('../../img/fail-icon.ChpzWjNv.png');
}

/* ====== Time Section ====== */
.match-time {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.02rem;
}

.match-time-hm {
    font-family: var(--helper-font-family-fzlant);
    font-size: 0.28rem;
    font-weight: bold;
    color: #5a3e1b;
}

.match-time-date {
    font-family: var(--helper-font-family-mianfeiziti);
    font-size: 0.12rem;
    color: #9e8e76;
}

/* ====== Footer ====== */
.record-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.04rem;
    margin-top: 0.16rem;
    padding-top: 0.1rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.footer-hint {
    font-family: var(--helper-font-family-mianfeiziti);
    font-size: 0.16rem;
    color: #5a3e1b;
    font-weight: bold;
}

.footer-cmd {
    font-family: var(--helper-font-family-mianfeiziti);
    font-size: 0.14rem;
    color: #9e8e76;
}
