:root {
    --player-latin-font: "TarkovBoard Bender";
    --player-panel: rgba(59, 64, 77, 0.68);
    --player-panel-deep: rgba(20, 24, 31, 0.72);
    --player-line: rgba(255, 255, 255, 0.16);
    --player-text: #f1f4f8;
    --player-muted: #a9b0bc;
    --player-accent: #4fd4ee;
    --player-accent-soft: rgba(79, 212, 238, 0.18);
    --player-green: #8ed96a;
    --player-red: #ff7d6f;
}

@font-face {
    font-family: "TarkovBoard Bender";
    src: url("../fonts/Jovanny Lemonad - Bender.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    unicode-range: U+0020-007E;
}

@font-face {
    font-family: "TarkovBoard Bender";
    src: url("../fonts/Jovanny Lemonad - Bender-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    unicode-range: U+0020-007E;
}

* {
    box-sizing: border-box;
}

.player-body {
    margin: 0;
    min-height: 100vh;
    color: var(--player-text);
    background: var(--site-background-image, url("../image/background4.jpg")) center / cover fixed #1a1c22;
    font-family: var(--player-latin-font), "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif;
}

.player-body :is(
    h1,
    button,
    input,
    .player-kicker,
    .player-updated-at,
    .player-badge,
    .player-tab,
    .player-stat-grid strong,
    .skill-label,
    .skill-meta,
    .achievement-tooltip,
    .favorite-item-card,
    .player-placeholder,
    .empty-row
) {
    font-family: var(--player-latin-font), "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif;
}

.player-main {
    width: min(100% - 1.5rem, 1600px);
    max-width: 1600px;
}

.player-main,
.player-toolbar,
.player-panel,
.player-content,
.player-identity,
.player-stat-board,
.player-section {
    min-width: 0;
}

.player-toolbar {
    display: block;
    margin-bottom: 0;
    overflow: visible;
    width: 100%;
    margin-inline: auto;
}

.player-toolbar-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: clamp(18px, 3vw, 44px);
    width: 100%;
}

.player-search-copy {
    display: grid;
    gap: 4px 10px;
    min-width: 240px;
}

.player-search-copy p {
    margin: 0;
    color: #f6fbff;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.07em;
}

.player-search-copy span {
    color: var(--player-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.player-search-shell {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.player-search-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: 4px;
    border: 1px solid rgba(79, 212, 238, 0.3);
    border-radius: 999px;
    color: #f7fbff;
    background: linear-gradient(135deg, rgba(79, 212, 238, 0.28), rgba(61, 74, 91, 0.92));
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    white-space: nowrap;
}

.player-search-link-button:hover,
.player-search-link-button:focus-visible {
    color: #f7fbff;
    text-decoration: none;
}

.player-upload button,
.player-report-button,
.player-modal-primary,
.player-modal-secondary {
    border: 1px solid rgba(245, 241, 210, 0.35);
    color: #eefaff;
    background: linear-gradient(180deg, rgba(79, 212, 238, 0.22), rgba(59, 64, 77, 0.42));
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#playerSearchForm {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(5rem, 6.25rem);
    align-items: stretch;
    width: 100%;
    max-width: none;
    gap: calc(0.5rem + 0.4vw);
}

#playerSearchInput,
.player-upload input[type="file"] {
    min-width: 0;
    width: 100%;
    min-height: 0;
    border: 1px solid #dadada;
    border-radius: 0.5rem;
    color: var(--player-text);
    background-color: transparent;
    padding: calc(0.35rem + 0.4vw);
    font-size: calc(0.8rem + 0.2vw);
}

#playerSearchButton,
.player-upload button {
    min-height: 0;
    padding: calc(0.35rem + 0.4vw);
    font-size: calc(0.8rem + 0.2vw);
    width: 100%;
    white-space: nowrap;
}

#playerSearchButton {
    color: #fcfcfc;
    background-color: transparent;
    border: 1px solid #dadada;
    border-radius: 0.5rem;
}

.player-search-dropdown {
    position: absolute;
    inset: calc(100% + 10px) 0 auto;
    z-index: 25;
    display: grid;
    gap: 8px;
    border: 1px solid rgba(79, 212, 238, 0.18);
    border-radius: 14px;
    background: rgba(11, 15, 22, 0.96);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
    padding: 8px 10px;
}

.player-search-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 0;
}

.player-search-dropdown-loading {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 3.7rem;
    border: 1px solid rgba(142, 238, 255, 0.18);
    border-radius: 999px;
    background: rgba(79, 212, 238, 0.08);
    padding: 4px 10px;
}

.player-search-dropdown-loading span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(142, 238, 255, 0.86);
    animation: player-search-loading-dot 900ms ease-in-out infinite;
    transform: translateY(0);
}

.player-search-dropdown-loading span:nth-child(2) {
    animation-delay: 120ms;
}

.player-search-dropdown-loading span:nth-child(3) {
    animation-delay: 240ms;
}

.player-search-dropdown-loading-text {
    display: inline-block;
    width: auto !important;
    height: auto !important;
    margin-left: 2px;
    color: rgba(247, 251, 255, 0.88);
    font-size: 0.8rem;
    line-height: 1;
    letter-spacing: 0.14em;
    animation: player-search-loading-text 1200ms ease-in-out infinite;
}

.player-search-dropdown-head strong {
    color: #f7fbff;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.player-search-dropdown-head span {
    color: var(--player-muted);
    font-size: 0.76rem;
}

@keyframes player-search-loading-dot {
    0%,
    80%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@keyframes player-search-loading-text {
    0%,
    100% {
        opacity: 0.55;
    }
    50% {
        opacity: 1;
    }
}

.player-search-dropdown-list {
    display: grid;
    gap: 0;
    max-height: min(32rem, 52vh);
    overflow: auto;
}

.player-search-suggestion-option {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 6px 8px;
    color: #f7fbff;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-search-suggestion-option strong {
    min-width: 0;
    font-size: 0.92rem;
    color: #f962ac;
}

.player-search-suggestion-option span {
    color: var(--player-muted);
    font-size: 0.74rem;
    line-height: 1.15;
}

.player-search-suggestion-option:hover,
.player-search-suggestion-option:focus-visible,
.player-search-suggestion-option.is-active {
    outline: none;
    color: #f7fbff;
    background: rgba(252, 172, 211, 0.18);
    text-decoration: none;
}

.player-panel {
    display: grid;
    grid-template-columns: 1fr;
    width: calc(100% - 1.5rem);
    max-width: 100%;
    margin-inline: auto;
    min-height: auto;
    border: 1px solid var(--player-line);
    border-radius: 20px;
    background: var(--player-panel);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    backdrop-filter: blur(8px);
    margin-top: 10px;
}

.player-profile-mode-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: calc(100% - 1.5rem);
    margin: 10px auto 0;
    border: 1px solid var(--player-line);
    border-radius: 14px;
    padding: 6px;
    background: rgba(8, 11, 17, 0.78);
}

.player-panel .player-profile-mode-switch {
    display: none;
}

.player-profile-mode-option {
    --profile-mode-a: #4fd4ee;
    --profile-mode-b: #fcacd3;
    position: relative;
    display: grid;
    place-items: center;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    color: rgba(241, 244, 248, 0.58);
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    isolation: isolate;
    overflow: hidden;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.player-profile-mode-option[data-profile-mode="pvp"] {
    --profile-mode-a: #ff4f6d;
    --profile-mode-b: #ffb1bd;
}

.player-profile-mode-option[data-profile-mode="pve"] {
    --profile-mode-a: #51e88a;
    --profile-mode-b: #c5f95d;
}

.player-profile-mode-option[data-profile-mode="arena"] {
    --profile-mode-a: #4f8dff;
    --profile-mode-b: #6ce7ff;
}

.player-profile-mode-option::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -2;
    background: conic-gradient(
        from var(--profile-mode-spin, 0deg),
        transparent 0 18%,
        var(--profile-mode-a) 28%,
        var(--profile-mode-b) 42%,
        transparent 54% 100%
    );
    opacity: 0;
    transform: rotate(0deg);
    transform-origin: center;
    transition: opacity 180ms ease;
}

.player-profile-mode-option::after {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(18, 23, 31, 0.96), rgba(9, 13, 19, 0.92));
}

.player-profile-mode-option:hover,
.player-profile-mode-option:focus-visible {
    color: #f7fbff;
    border-color: color-mix(in srgb, var(--profile-mode-a) 58%, transparent);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.player-profile-mode-option-active {
    color: #f7fbff;
    border-color: color-mix(in srgb, var(--profile-mode-a) 68%, transparent);
    background: color-mix(in srgb, var(--profile-mode-a) 12%, rgba(255, 255, 255, 0.04));
    box-shadow: 0 0 18px color-mix(in srgb, var(--profile-mode-a) 28%, transparent);
}

.player-profile-mode-option-active::before,
.player-profile-mode-option:hover::before,
.player-profile-mode-option:focus-visible::before {
    opacity: 0.95;
    animation: playerProfileModeSpin 2s linear infinite;
}

@keyframes playerProfileModeSpin {
    to {
        transform: rotate(360deg);
    }
}

.player-recent-panel {
    width: calc(100% - 1.5rem);
    margin: 10px auto 0;
    border: 1px solid var(--player-line);
    border-radius: 20px;
    background:
        radial-gradient(circle at 12% 0%, rgba(79, 212, 238, 0.1), transparent 30%),
        rgba(8, 11, 17, 0.76);
    overflow: hidden;
}

.player-recent-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    text-align: left;
}

.player-recent-heading p,
.player-recent-heading h2 {
    margin: 0;
}

.player-recent-heading p {
    color: var(--player-accent);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.player-recent-heading h2 {
    margin-top: 3px;
    color: #f5f8fb;
    font-size: 1.02rem;
    line-height: 1.2;
}

.player-recent-heading > span {
    flex: 0 0 auto;
    padding: 0.32rem 0.58rem;
    border: 1px solid rgba(79, 212, 238, 0.25);
    border-radius: 999px;
    color: rgba(236, 241, 247, 0.58);
    background: rgba(79, 212, 238, 0.07);
    font-size: 0.74rem;
    font-weight: 700;
}

.player-recent-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 168px));
    justify-content: start;
    gap: 12px;
    padding: 18px;
}

.player-recent-card {
    position: relative;
    display: grid;
    align-content: end;
    aspect-ratio: 1 / 1;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    color: #eef4f9;
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.1), transparent 62%),
        rgba(5, 8, 14, 0.4);
    text-decoration: none;
    isolation: isolate;
    overflow: hidden;
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.player-recent-card:hover,
.player-recent-card:focus-visible {
    color: #fff;
    border-color: rgba(184, 190, 199, 0.55);
    background-color: rgba(17, 21, 28, 0.58);
    text-decoration: none;
    transform: translateY(-1px);
}

.player-recent-avatar {
    display: grid;
    place-items: center;
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
}

.player-recent-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.player-recent-faction-logo {
    opacity: 0.9;
    filter: grayscale(1) saturate(0) invert(94%) brightness(0.95) contrast(1.05)
        drop-shadow(0 0 14px rgba(255, 255, 255, 0.2));
}

.player-recent-copy {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
    gap: 2px;
    margin: 0.35rem 0.55rem 0.55rem;
    padding: 0.42rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.75rem;
    background: rgba(6, 8, 14, 0.68);
    text-align: left;
    backdrop-filter: blur(4px);
}

.player-recent-copy strong,
.player-recent-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-recent-copy strong {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 4px;
    font-size: 0.8rem;
    line-height: 1.1;
}

.player-recent-copy strong span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-recent-copy small {
    color: #ffd94d;
    font-size: 0.64rem;
    line-height: 1.05;
}

.player-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(16px, 2vw, 30px);
    padding: clamp(18px, 2.4vw, 32px);
    border-bottom: 1px solid var(--player-line);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(17, 21, 28, 0.34));
    border-radius: 0;
}

.player-faction-mark {
    display: grid;
    place-items: center;
    width: 118px;
    height: 118px;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(238, 242, 246, 0.22);
    border-radius: 50%;
    color: #e8edf2;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.16), transparent 58%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(15, 19, 26, 0.74));
    box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.08), 0 16px 34px rgba(0, 0, 0, 0.28);
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.05em;
}

a.player-faction-mark {
    color: inherit;
    text-decoration: none;
}

a.player-faction-mark:hover,
a.player-faction-mark:focus-visible {
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
}

.player-faction-mark img {
    width: 72%;
    height: 72%;
    object-fit: contain;
    opacity: 0.9;
    filter: grayscale(1) saturate(0) invert(94%) brightness(0.95) contrast(1.05)
        drop-shadow(0 0 14px rgba(255, 255, 255, 0.2));
}

.player-profile-photo {
    overflow: hidden;
    border-radius: 24px;
}

.player-profile-photo img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    opacity: 1;
    filter: none;
}

.player-nameplate {
    min-width: 0;
    width: 100%;
    text-align: left;
}

.player-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.player-profile-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.player-refresh-form {
    margin: 0;
}

.player-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0;
    margin-bottom: 0.75rem;
    color: var(--player-muted);
    font-weight: 700;
    letter-spacing: 0.16em;
}

.player-side-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.55rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 0.18rem 0.56rem;
    color: #dfe6ed;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.player-identity h1 {
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
    color: var(--player-name-category-color, #ffffff);
    font-size: clamp(1.7rem, 4vw, 3.4rem);
    overflow-wrap: anywhere;
}

.player-name-blocked {
    color: var(--player-red) !important;
}

.player-updated-at {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
    margin: 6px 0 0;
    min-width: 0;
    color: darkgray;
    font-size: calc(0.75rem + 0.15vw);
    line-height: 1.2;
    text-align: left;
}

.player-updated-icon {
    width: 1.05em;
    height: 1.05em;
    flex: 0 0 auto;
    fill: darkgray;
}

.player-status-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    background: rgba(8, 11, 16, 0.72);
    color: #eef3f8;
    font-size: 0.82rem;
    line-height: 1.2;
    cursor: help;
}

.player-status-pill::after {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    z-index: 80;
    width: max-content;
    max-width: min(320px, calc(100vw - 24px));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 8px 10px;
    background: rgba(9, 12, 18, 0.96);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
    color: #f4f7fb;
    content: attr(data-status-tooltip);
    font-size: 0.76rem;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 140ms ease, transform 140ms ease;
    white-space: pre-line;
}

.player-status-pill::before {
    position: absolute;
    left: 50%;
    top: calc(100% + 4px);
    z-index: 81;
    border: 7px solid transparent;
    border-bottom-color: rgba(255, 255, 255, 0.16);
    content: "";
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 140ms ease, transform 140ms ease;
}

.player-status-pill:hover::after,
.player-status-pill:focus-visible::after,
.player-status-pill:hover::before,
.player-status-pill:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.player-status-pill[data-player-status="battleye_banned"] {
    border-color: rgba(255, 96, 86, 0.35);
    background: linear-gradient(180deg, rgba(92, 30, 26, 0.56), rgba(34, 11, 11, 0.84));
}

.player-status-pill[data-player-status="confirmed_cheater"] {
    border-color: rgba(255, 122, 110, 0.35);
    background: linear-gradient(180deg, rgba(99, 28, 25, 0.52), rgba(34, 11, 11, 0.82));
}

.player-status-pill[data-player-status="strongly_suspected"] {
    border-color: rgba(255, 178, 95, 0.35);
    background: linear-gradient(180deg, rgba(95, 52, 17, 0.5), rgba(33, 20, 10, 0.82));
}

.player-status-pill[data-player-status="suspicious"] {
    border-color: rgba(255, 218, 113, 0.35);
    background: linear-gradient(180deg, rgba(92, 77, 21, 0.46), rgba(34, 27, 10, 0.82));
}

.player-status-pill[data-player-status="normal"] {
    border-color: rgba(120, 214, 127, 0.28);
    background: linear-gradient(180deg, rgba(37, 61, 39, 0.46), rgba(15, 24, 16, 0.82));
}

.player-status-pill[data-player-status="verified"] {
    border-color: rgba(77, 172, 255, 0.32);
    background: linear-gradient(180deg, rgba(27, 54, 88, 0.5), rgba(12, 20, 31, 0.84));
}

.player-status-pill[data-player-status="under_review"] {
    border-color: rgba(193, 198, 203, 0.28);
    background: linear-gradient(180deg, rgba(55, 61, 69, 0.54), rgba(19, 23, 30, 0.84));
}

.player-status-symbol {
    flex: 0 0 auto;
    font-size: 0.95rem;
    line-height: 1;
}

.player-status-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.player-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.player-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: var(--badge-text, #f7fbff);
    background: rgba(5, 8, 14, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 8px 18px rgba(0, 0, 0, 0.24);
    padding: 5px 10px;
    font-size: 0.78rem;
    line-height: 1;
    text-decoration: none;
    user-select: none;
    -webkit-user-drag: none;
}

.player-badge:hover,
.player-badge:focus-visible {
    color: var(--badge-text, #f7fbff);
    text-decoration: none;
}

.player-badge::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, var(--badge-gradient-start, #273445), var(--badge-gradient-end, #4fd4ee));
    content: "";
    opacity: var(--badge-opacity, 1);
}

.player-badge img {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: contain;
    object-position: center;
    flex: 0 0 auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.player-badge span {
    position: relative;
    z-index: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-report-button,
.player-refresh-button,
.player-share-button {
    flex: 0 0 auto;
    border: 1px solid rgba(79, 212, 238, 0.3);
    border-radius: 999px;
    color: #f7fbff;
    background: linear-gradient(135deg, rgba(79, 212, 238, 0.28), rgba(61, 74, 91, 0.92));
    padding: 7px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.player-refresh-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(61, 74, 91, 0.78));
}

.player-share-button {
    background: linear-gradient(135deg, rgba(107, 145, 255, 0.28), rgba(61, 74, 91, 0.92));
}

.player-basic-list {
    display: none;
    margin: 0;
}

.player-basic-list div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(220, 223, 205, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    padding: 10px 12px;
}

.player-basic-list dt {
    color: var(--player-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.player-basic-list dd {
    margin: 0;
    text-align: right;
}

.player-action-stack {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    min-width: 0;
}

.player-upload {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.player-content {
    display: grid;
    align-content: start;
    gap: 1rem;
    padding: clamp(18px, 2.5vw, 32px);
}

.player-alert {
    border: 1px solid rgba(217, 76, 66, 0.48);
    color: #ffd8d3;
    background: rgba(217, 76, 66, 0.12);
    padding: 12px 16px;
}

.player-alert-info {
    border-color: rgba(79, 212, 238, 0.42);
    color: #d8f8ff;
    background: rgba(79, 212, 238, 0.12);
}

.player-empty-state {
    display: grid;
    gap: 22px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--player-line);
    border-radius: 20px;
    width: calc(100% - 1.5rem);
    margin-inline: auto;
    margin-top: 10px;
    background:
        radial-gradient(circle at 18% 10%, rgba(79, 212, 238, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(59, 64, 77, 0.78), rgba(20, 24, 31, 0.78));
    overflow: hidden;
}

.player-empty-copy {
    width: 100%;
}

.player-empty-copy .player-kicker {
    display: none;
}

.player-empty-copy h1 {
    margin: 0 0 12px;
    color: #f7fbff;
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1.02;
}

.player-empty-copy p:last-child {
    margin: 0;
    color: var(--player-muted);
    font-size: clamp(0.98rem, 1.7vw, 1.16rem);
    line-height: 1.65;
}

.player-empty-note {
    margin: 0 0 14px;
    color: var(--player-muted);
    font-size: clamp(0.98rem, 1.7vw, 1.16rem);
    line-height: 1.45;
}

.player-search-suggestions {
    display: grid;
    gap: 6px;
    margin: 12px 0 12px;
}

.player-search-suggestions-title {
    margin: 0;
    color: rgba(247, 251, 255, 0.8);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.player-search-suggestion-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 0;
}

.player-search-suggestion {
    display: flex;
    align-items: center;
    gap: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 6px 8px;
    color: #f7fbff;
    text-decoration: none;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-search-suggestion strong {
    min-width: 0;
    font-size: 0.9rem;
    color: #f962ac;
}

.player-search-suggestion span {
    color: var(--player-muted);
    font-size: 0.74rem;
    line-height: 1.15;
}

.player-search-suggestion:hover,
.player-search-suggestion:focus-visible {
    color: #f7fbff;
    background: rgba(252, 172, 211, 0.18);
    text-decoration: none;
}

.player-empty-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.player-empty-grid article {
    min-height: 132px;
    border: 1px solid rgba(220, 223, 205, 0.14);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.22);
    padding: 18px;
}

.player-empty-grid strong {
    display: block;
    margin-bottom: 10px;
    color: var(--player-accent);
}

.player-empty-grid span {
    color: var(--player-muted);
    line-height: 1.55;
}

.player-stat-board,
.player-section {
    border: 1px solid var(--player-line);
    border-radius: 16px;
    background: var(--player-panel-deep);
    overflow: hidden;
}

.player-tab-row {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid rgba(220, 223, 205, 0.12);
}

.player-tab {
    border: 0;
    color: rgba(241, 244, 248, 0.52);
    background: transparent;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
}

.player-tab-active {
    color: #031114;
    background: linear-gradient(90deg, #8eeeff, #4fd4ee);
    padding: 3px 42px;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
}

.player-tab-panel[hidden] {
    display: none;
}

.player-stat-grid {
    display: grid;
    grid-template-columns: repeat(30, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.player-stat-grid .stat-primary {
    grid-column: span 5;
}

.player-stat-grid .stat-secondary {
    grid-column: span 6;
}

.player-stat-grid article {
    min-height: 104px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.026) 0 4px, transparent 4px 10px),
        rgba(6, 9, 14, 0.34);
    min-width: 0;
}

.player-stat-grid .stat-survived {
    box-shadow: inset 0 0 30px rgba(142, 217, 106, 0.12);
}

.player-stat-grid .stat-survived strong {
    color: #b8f2a1;
}

.player-stat-grid .stat-killed {
    box-shadow: inset 0 0 30px rgba(255, 125, 111, 0.12);
}

.player-stat-grid .stat-killed strong {
    color: #ffaaa1;
}

.player-stat-grid .stat-missing {
    box-shadow: inset 0 0 30px rgba(255, 180, 88, 0.13);
}

.player-stat-grid .stat-missing strong {
    color: #ffc47a;
}

.player-stat-grid .stat-runner {
    box-shadow: inset 0 0 30px rgba(205, 212, 218, 0.1);
}

.player-stat-grid .stat-runner strong {
    color: #d8dde3;
}

.player-stat-grid strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(1.28rem, 2vw, 2rem);
    font-weight: 500;
}

.player-stat-grid span,
.compact-stat-grid span,
.mastery-grid span {
    max-width: 92%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--player-muted);
    font-size: 0.78rem;
}

.player-section header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(220, 223, 205, 0.16);
}

.player-section h2 {
    margin: 0;
    color: var(--player-accent);
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.player-section header span {
    color: var(--player-muted);
    font-size: 0.78rem;
}

.player-nickname-history-list {
    display: grid;
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.player-nickname-history-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(7rem, 0.72fr) minmax(9rem, 1fr) minmax(9rem, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 4px, transparent 4px 10px),
        rgba(6, 9, 14, 0.34);
    padding: 12px 16px;
}

.player-nickname-history-head {
    min-height: 38px;
    background: rgba(8, 11, 17, 0.72);
}

.player-nickname-history-row strong,
.player-nickname-history-row span,
.player-nickname-history-row time {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-nickname-history-row strong {
    color: #f7fbff;
    font-size: 0.98rem;
    font-weight: 700;
}

.player-nickname-history-row span,
.player-nickname-history-row time {
    color: var(--player-muted);
    font-size: 0.82rem;
}

.player-nickname-history-head span {
    color: rgba(247, 251, 255, 0.62);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.skill-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
    padding: 18px;
}

.skill-row {
    display: grid;
    grid-template-columns: minmax(190px, 0.95fr) minmax(180px, 2fr);
    align-items: start;
    gap: 14px;
    min-width: 0;
}

.skill-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    color: #d2d0c2;
    font-size: 0.95rem;
    line-height: 1.2;
}

.skill-label img {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(194, 205, 214, 0.32);
    object-fit: cover;
    flex: 0 0 auto;
    background: rgba(0, 0, 0, 0.45);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.65), 0 6px 12px rgba(0, 0, 0, 0.36);
}

.skill-label span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-top: 4px;
}

.skill-track {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.skill-meter {
    height: 16px;
    border: 1px solid rgba(129, 139, 146, 0.52);
    background: rgba(0, 0, 0, 0.72);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.7);
}

.skill-meter i {
    display: block;
    height: 100%;
    background: linear-gradient(180deg, #7d8990, #3e474d 52%, #242c31);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.skill-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #aeb7bd;
    font-size: 0.86rem;
    line-height: 1;
}

.skill-progress-value {
    color: #e7e3d6;
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.skill-meta b {
    color: #d9931a;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.skill-meta b.skill-level-normal {
    color: #aeb7bd;
    font-weight: 400;
}

.skill-row-elite .skill-meter i {
    background: linear-gradient(180deg, #6e3527, #4b211b 54%, #27100e);
}

.skill-row-elite .skill-progress-value {
    color: #d2d0c2;
}

.skill-row-elite .skill-meta b {
    color: #d9931a;
    font-weight: 700;
}

.player-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    background: rgba(6, 9, 14, 0.62);
    opacity: 1;
    pointer-events: none;
    transition: opacity 160ms ease;
    backdrop-filter: blur(8px);
}

.player-body:not(.player-is-loading) .player-loading-overlay {
    opacity: 0;
}

.player-body.player-is-loading .player-loading-overlay {
    opacity: 1;
    pointer-events: auto;
}

.player-loading-card {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: min(320px, calc(100vw - 48px));
    border: 1px solid rgba(79, 212, 238, 0.32);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(44, 54, 70, 0.92), rgba(12, 16, 23, 0.94)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 9px);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
    padding: 28px 24px;
    text-align: center;
}

.player-loading-spinner {
    width: 54px;
    height: 54px;
    border: 3px solid rgba(247, 251, 255, 0.18);
    border-top-color: var(--player-accent);
    border-radius: 50%;
    animation: player-spin 780ms linear infinite;
}

.player-loading-card strong {
    color: #f7fbff;
}

.player-loading-card small {
    color: var(--player-muted);
}

@keyframes player-spin {
    to {
        transform: rotate(360deg);
    }
}

.mastery-grid,
.favorite-grid {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.player-arena-tab-row .player-tab {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}

.player-arena-breakdown {
    margin-top: 1rem;
}

.player-arena-mode-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
}

.player-arena-mode-card {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(5, 8, 14, 0.26);
}

.player-arena-mode-card-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-height: 72px;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(220, 223, 205, 0.12);
    background:
        linear-gradient(90deg, rgba(50, 77, 88, 0.22), rgba(8, 11, 17, 0.76) 42%),
        rgba(8, 11, 17, 0.72);
}

.player-arena-mode-visual {
    width: clamp(112px, 14vw, 176px);
    height: 54px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.player-arena-mode-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-arena-mode-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
}

.player-arena-mode-title span {
    flex: 0 0 auto;
    width: fit-content;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(10, 14, 20, 0.72);
    color: rgba(239, 244, 248, 0.74);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.player-arena-mode-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.player-arena-mode-stat {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    min-height: 82px;
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.024) 0 4px, transparent 4px 10px),
        rgba(6, 9, 14, 0.34);
    min-width: 0;
    padding: 10px 8px;
}

.player-arena-mode-stat-success {
    box-shadow: inset 0 0 26px rgba(142, 217, 106, 0.11);
}

.player-arena-mode-stat-success strong {
    color: #b8f2a1;
}

.player-arena-mode-stat-danger {
    box-shadow: inset 0 0 26px rgba(255, 125, 111, 0.11);
}

.player-arena-mode-stat-danger strong {
    color: #ffaaa1;
}

.player-arena-mode-stat-muted strong {
    color: #d8dde3;
}

.player-arena-mode-stat-warning {
    box-shadow: inset 0 0 26px rgba(255, 214, 102, 0.11);
}

.player-arena-mode-stat-warning strong {
    color: #ffd966;
}

.player-arena-mode-stat strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(0.96rem, 1.5vw, 1.4rem);
    font-weight: 500;
}

.player-arena-mode-stat span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--player-muted);
    font-size: 0.72rem;
}

.mastery-grid,
.favorite-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.favorite-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 168px));
    justify-content: start;
}

.favorite-grid-loading {
    min-height: 144px;
}

.player-achievements {
    overflow: visible;
    position: relative;
    z-index: 20;
}

.achievement-strip {
    display: flex;
    gap: 14px;
    min-width: 0;
    min-height: 126px;
    padding: 24px 18px;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-color: rgba(79, 212, 238, 0.55) rgba(255, 255, 255, 0.08);
}

.mastery-grid article,
.favorite-item-card,
.empty-row {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(5, 8, 14, 0.28);
    padding: 14px;
}

.player-placeholder {
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    color: var(--player-muted);
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.018) 0 4px, transparent 4px 10px),
        rgba(5, 8, 14, 0.2);
    padding: 22px 18px;
    text-align: center;
}

.mastery-grid article {
    display: grid;
    gap: 10px;
}

.favorite-item-card {
    position: relative;
    display: grid;
    align-content: end;
    min-height: 138px;
    color: #f7fbff;
    text-decoration: none;
    overflow: hidden;
    background-color: rgba(5, 8, 14, 0.28);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    isolation: isolate;
    appearance: none;
    text-align: left;
    cursor: pointer;
}

.player-achievement-placeholder {
    min-height: 7.5rem;
}

.favorite-item-card-label {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    justify-self: stretch;
    max-width: 100%;
    margin: 0.35rem 0.55rem 0.55rem;
    padding: 0.42rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.75rem;
    background: rgba(6, 8, 14, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.84rem;
    line-height: 1.1;
    text-align: center;
    backdrop-filter: blur(4px);
}

.favorite-item-card-label-dogtag {
    gap: 1px;
    white-space: normal;
}

.favorite-item-card-label-dogtag::after {
    content: attr(data-subtitle);
    color: #ffd94d;
    font-size: 0.76rem;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-item-card-label {
    color: #f7fbff;
}

.favorite-item-card:hover,
.favorite-item-card:focus-visible {
    color: #f7fbff;
    text-decoration: none;
    transform: translateY(-1px);
}

.favorite-item-card.favorite-item-card-dogtag {
    gap: 0;
}

.favorite-item-card.favorite-item-open,
.favorite-item-card.favorite-item-card-dogtag:hover,
.favorite-item-card.favorite-item-card-dogtag:focus-visible {
    border-color: rgba(184, 190, 199, 0.55);
    background-color: rgba(17, 21, 28, 0.58);
}

.favorite-item-tooltip {
    position: fixed;
    z-index: 9999;
    left: var(--tooltip-x, 50vw);
    top: var(--tooltip-y, 20vh);
    bottom: auto;
    display: grid;
    gap: 4px;
    width: min(320px, 82vw);
    border: 1px solid rgba(184, 190, 199, 0.4);
    border-radius: 14px;
    color: var(--player-text);
    background: rgba(17, 21, 28, 0.97);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46);
    padding: 14px;
    text-align: left;
    transform: translate(12px, 12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.favorite-item-tooltip strong {
    color: #f7fbff;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.08;
}

.favorite-item-tooltip em {
    color: var(--player-muted);
    font-size: 0.83rem;
    font-style: normal;
    line-height: 1.12;
}

.favorite-item-tooltip small {
    color: var(--player-muted);
    font-size: 0.78rem;
    line-height: 1.12;
}

.favorite-item-tooltip.favorite-item-tooltip-visible {
    opacity: 1;
    transform: translate(12px, 12px);
}

.achievement-icon-card {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    color: var(--player-text);
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.14), transparent 62%),
        rgba(5, 8, 14, 0.46);
    padding: 8px;
    cursor: help;
}

.achievement-icon-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.achievement-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 9px;
    background: var(--player-accent-soft);
    font-weight: 800;
}

.achievement-tooltip {
    position: fixed;
    z-index: 9999;
    left: var(--tooltip-x, 50vw);
    top: var(--tooltip-y, 20vh);
    bottom: auto;
    display: grid;
    gap: 7px;
    width: min(320px, 82vw);
    border: 1px solid rgba(79, 212, 238, 0.34);
    border-radius: 14px;
    color: var(--player-text);
    background: rgba(12, 17, 24, 0.96);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46);
    padding: 14px;
    text-align: left;
    transform: translate(12px, 12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.achievement-tooltip strong {
    color: var(--player-accent);
    font-size: 0.96rem;
}

.achievement-tooltip em {
    color: var(--player-muted);
    font-size: 0.86rem;
    font-style: normal;
    line-height: 1.45;
}

.achievement-tooltip small {
    color: #dbeef3;
}

.achievement-icon-card:hover,
.achievement-icon-card:focus-visible,
.achievement-icon-card.achievement-open {
    border-color: rgba(79, 212, 238, 0.68);
    background: rgba(79, 212, 238, 0.16);
}

.achievement-icon-card:hover .achievement-tooltip,
.achievement-icon-card:focus-visible .achievement-tooltip,
.achievement-icon-card.achievement-open .achievement-tooltip,
.achievement-tooltip.achievement-tooltip-visible {
    opacity: 1;
    transform: translate(12px, 12px);
}

.empty-row {
    color: var(--player-muted);
}

.player-blocked-panel {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(255, 125, 111, 0.5);
    border-radius: 16px;
    color: #ffd8d3;
    background: rgba(90, 20, 18, 0.22);
    padding: clamp(18px, 3vw, 30px);
}

.player-unavailable-panel {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(180, 188, 201, 0.35);
    border-radius: 16px;
    color: #e3e8ef;
    background: rgba(44, 51, 62, 0.34);
    padding: clamp(18px, 3vw, 30px);
}

.player-blocked-panel strong {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.player-unavailable-panel strong {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.player-blocked-link-button,
.player-unavailable-link-button {
    justify-self: center;
    margin-inline: auto;
}

.player-report-modal .modal-content {
    border: 1px solid rgba(79, 212, 238, 0.24);
    color: var(--player-text);
    background: rgba(20, 24, 31, 0.98);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.player-report-modal .modal-header,
.player-report-modal .modal-footer {
    border-color: rgba(255, 255, 255, 0.12);
}

.player-report-modal .modal-title {
    color: var(--player-accent);
    font-size: 1.18rem;
}

.player-report-modal a {
    color: #8eeeff;
}

.player-modal-primary,
.player-modal-secondary {
    display: inline-flex;
    justify-content: center;
    border-radius: 10px;
    padding: 10px 14px;
}

@media (max-width: 1100px) {
    .player-identity {
        gap: clamp(14px, 1.8vw, 22px);
        padding: clamp(16px, 2vw, 24px);
    }

    .player-faction-mark {
        width: 92px;
        height: 92px;
    }

    .player-kicker {
        margin-bottom: 0.45rem;
        gap: 6px 8px;
        font-size: 0.82rem;
        letter-spacing: 0.12em;
    }

    .player-identity h1 {
        font-size: clamp(2rem, 4vw, 2.7rem);
    }

    .player-badge-list {
        gap: 6px;
        margin-top: 9px;
    }

    .player-badge {
        padding: 4px 8px;
        font-size: 0.72rem;
    }

    .player-report-button,
    .player-refresh-button,
    .player-share-button {
        padding: 6px 10px;
        font-size: 0.74rem;
    }

    .player-stat-grid .stat-primary,
    .player-stat-grid .stat-secondary {
        grid-column: span 5;
    }

    .player-stat-grid .stat-secondary {
        grid-column: span 6;
    }

    .player-stat-grid article {
        min-height: 82px;
        padding: 8px 6px;
    }

    .player-stat-grid strong {
        font-size: clamp(1.08rem, 2.4vw, 1.45rem);
    }

    .player-stat-grid span {
        font-size: 0.68rem;
    }

    .mastery-grid,
    .favorite-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .player-arena-mode-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {
    .player-main {
        width: min(100% - 18px, 1600px);
    }

    .player-toolbar-shell {
        flex-direction: column;
        align-items: stretch;
    }

    .player-search-copy {
        min-width: 0;
    }

    .player-search-shell {
        width: 100%;
    }

    .player-search-dropdown {
        position: static;
        margin-top: 10px;
    }

    .player-recent-list {
        display: flex;
        overflow-x: auto;
        padding: 14px;
        scroll-snap-type: x proximity;
    }

    .player-recent-card {
        flex: 0 0 148px;
        scroll-snap-align: start;
    }

    #playerSearchForm {
        width: 100%;
        margin-left: 0;
        grid-template-columns: minmax(0, 1fr) minmax(5rem, 6.25rem);
    }

    #playerSearchButton {
        width: 100%;
    }

    .player-identity {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .player-profile-mode-option {
        min-height: 42px;
        padding-inline: 6px;
        font-size: 0.72rem;
        letter-spacing: 0.05em;
    }

    .player-content,
    .player-identity {
        padding: 16px;
    }

    .player-faction-mark {
        width: 92px;
        height: 92px;
    }

    .player-basic-list {
        grid-template-columns: 1fr;
    }

    .mastery-grid,
    .favorite-grid {
        grid-template-columns: 1fr;
    }

    .player-empty-grid {
        grid-template-columns: 1fr;
    }

    .player-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .player-stat-grid .stat-primary,
    .player-stat-grid .stat-secondary {
        grid-column: auto;
    }

    .player-stat-grid article {
        min-height: 78px;
        padding: 9px 6px;
    }

    .player-stat-grid strong {
        font-size: clamp(0.92rem, 3.8vw, 1.2rem);
    }

    .player-stat-grid span {
        font-size: 0.66rem;
    }

    .player-upload {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .player-arena-mode-grid {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .player-arena-mode-card-header {
        min-height: 64px;
        gap: 12px;
        padding: 7px 10px;
    }

    .player-arena-mode-visual {
        width: 106px;
        height: 48px;
    }

    .player-arena-mode-stat {
        min-height: 76px;
        padding: 8px 5px;
    }

    .player-arena-mode-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .player-nickname-history-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .player-nickname-history-head {
        display: none;
    }

    .player-faction-mark {
        display: none;
    }

    .player-name-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .player-name-row h1 {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: clamp(1.4rem, 5.2vw, 2.2rem);
    }

    .player-profile-actions {
        width: auto;
        justify-content: flex-end;
        align-items: center;
        gap: 6px;
        flex: 0 0 auto;
    }

    .player-status-pill {
        margin: 0;
        font-size: 0.72rem;
        padding: 0.3rem 0.58rem;
    }

    .player-status-pill::after {
        left: auto;
        right: 0;
        width: min(280px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        transform: translateY(4px);
    }

    .player-status-pill::before {
        left: auto;
        right: 18px;
        transform: translateY(4px);
    }

    .player-report-button,
    .player-refresh-button,
    .player-share-button {
        padding: 6px 10px;
        font-size: 0.72rem;
    }

    .skill-list {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .skill-row {
        grid-template-columns: 1fr;
    }

    .skill-track {
        width: 100%;
    }

    .player-stat-grid article {
        min-height: 86px;
    }

    .achievement-strip {
        padding-bottom: 24px;
    }
}
