@font-face {
    font-family: "rocom-player";
    src: url("../../ttf/HYWenHei-85W-1.ttf") format("truetype");
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 20px;
    display: inline-block;
    background: #f4ecdc;
    color: #33271a;
    font-family: "rocom-player", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.player-page {
    position: relative;
    width: 1240px;
    overflow: hidden;
    border-radius: 28px;
    padding: 0 32px 28px;
    background: #f4ecdc;
    box-shadow: 0 26px 58px rgba(76, 55, 32, 0.18);
}

.page-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 12%, rgba(255, 231, 177, 0.52), transparent 28%),
        radial-gradient(circle at 96% 18%, rgba(255, 188, 85, 0.24), transparent 30%);
    pointer-events: none;
}

.page-header,
.profile-strip,
.summary-strip,
.signature-strip,
.content-grid,
.page-footer {
    position: relative;
    z-index: 1;
}

/* ── Header ── */

.page-header {
    position: relative;
    min-height: 88px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin: 0 -32px;
    background: linear-gradient(90deg, #ffc95f, #f5b64c);
}

.page-title {
    position: relative;
    z-index: 2;
    color: #10100e;
    font-size: 42px;
    line-height: 1;
    letter-spacing: 4px;
    text-shadow: 0 3px 0 rgba(255, 255, 255, 0.22);
}

.page-title-ghost {
    position: absolute;
    inset: -12px 0 auto;
    z-index: 1;
    text-align: center;
    color: rgba(255, 228, 152, 0.24);
    font-size: 100px;
    line-height: 1.1;
    letter-spacing: 8px;
    white-space: nowrap;
}

/* ── Profile Strip ── */

.profile-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 20px;
    padding: 20px 32px;
    border-radius: 22px;
    background: rgba(250, 247, 238, 0.78);
    border: 1px solid rgba(143, 113, 73, 0.16);
    box-shadow: 0 12px 26px rgba(88, 64, 38, 0.08);
}

.profile-main {
    min-width: 0;
    flex: 1;
    text-align: center;
}

.profile-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.player-name {
    max-width: 820px;
    overflow: hidden;
    color: #171411;
    font-size: 40px;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.uid-pill {
    padding: 8px 18px;
    border-radius: 999px;
    background: #ffc65f;
    color: #3c2a12;
    font-size: 20px;
    line-height: 1;
    box-shadow: inset 0 -2px 0 rgba(141, 94, 30, 0.12);
}

.profile-subtitle {
    margin-top: 8px;
    color: #7f6e57;
    font-size: 20px;
}

/* ── Summary Strip ── */

.summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(143, 113, 73, 0.14);
    background: rgba(250, 247, 238, 0.82);
    box-shadow: 0 12px 26px rgba(88, 64, 38, 0.08);
    text-align: center;
}

.summary-label {
    color: #7e6a50;
    font-size: 15px;
}

.summary-value {
    margin-top: 4px;
    color: #33271a;
    font-size: 26px;
    line-height: 1.1;
    white-space: nowrap;
    font-weight: 800;
}

/* ── Signature Strip ── */

.signature-strip {
    margin-top: 14px;
    padding: 16px 24px;
    border-radius: 20px;
    background: rgba(250, 247, 238, 0.78);
    border: 1px solid rgba(143, 113, 73, 0.16);
    box-shadow: 0 12px 26px rgba(88, 64, 38, 0.08);
    text-align: center;
}

.signature-label {
    color: #907b5e;
    font-size: 14px;
    margin-bottom: 6px;
}

.signature-text {
    color: #4a3a28;
    font-size: 20px;
    line-height: 1.55;
}

/* ── Content Grid ── */

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
    margin-top: 14px;
}

.panel {
    border-radius: 22px;
    padding: 20px 22px;
    border: 1px solid rgba(143, 113, 73, 0.14);
    background: rgba(250, 247, 238, 0.82);
    box-shadow: 0 12px 26px rgba(88, 64, 38, 0.08);
}

.panel-head {
    margin-bottom: 14px;
    text-align: center;
}

.panel-head h2 {
    margin: 0;
    color: #171411;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 800;
}

.detail-list {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(143, 113, 73, 0.10);
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(143, 113, 73, 0.08);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    flex-shrink: 0;
    color: #8c7354;
    font-size: 18px;
    font-weight: 700;
    min-width: 80px;
}

.detail-value {
    color: #33271a;
    font-size: 18px;
    text-align: right;
    word-break: break-word;
    min-width: 0;
    flex: 1;
}

/* ── Footer ── */

.page-footer {
    margin-top: 18px;
    padding: 12px 0 0;
    text-align: center;
}

.command-hint {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(255, 198, 95, 0.22);
    color: #795f3f;
    font-size: 16px;
    margin-bottom: 8px;
}

.copyright {
    color: rgba(113, 93, 73, 0.72);
    font-size: 14px;
}

@media (max-width: 1280px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .summary-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}
