      * {
            box-sizing: border-box;
        }
        html, body {
            background: var(--bg-character) no-repeat center center fixed;
    background-size: cover;
            width: 100%;
            overflow-x: hidden;
            margin: 0;
            font-family: 'Arial', sans-serif;
            color: #fff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            position: relative;
        }
        main {
            flex: 1;
            width: 100%;
        }
        .nav-container {
            border: 2px double #056602ff;
            margin-top: 20px;
        }
        .character-container {
            display: flex;
            flex-wrap: wrap;
            max-width: 1280px;
            margin-left: auto;
            margin-right: auto;
            margin-top: 30px;
            margin-bottom: 20px;
            background-color: #1a1a1a93;
            border: 2px solid #444;
            border-radius: 5px;
            overflow: hidden;
        }
        .equipment-column {
            width: 220px;
            padding: 20px;
            box-sizing: border-box;
        }
        .equipment-left {
            order: 1;
        }
        .equipment-right {
            order: 3;
        }
        .character-center {
            order: 2;
            flex: 1;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            border-left: 1px solid #444;
            border-right: 1px solid #444;
            min-width: 280px;
        }
        .character-image {
            width: 100%;
            max-width: 380px;
            height: 420px;
            margin: 20px 0;
            position: relative;
            overflow: hidden;
        }
        .character-image canvas {
            width: 100% !important;
            height: 100% !important;
        }
        .character-image img.default-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 1;
        }
        .weapons-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin-top: 90px;
            width: 100%;
            padding-top: 20px;
        }
        .tab-nav {
            display: flex;
            justify-content: center;
            width: 100%;
            max-width: 1280px;
            margin: 20px auto;
            background: linear-gradient(180deg, #141414e6 0%, #0a0a0ae6 100%);
            border: 3px solid #666;
            border-radius: 8px;
            overflow: hidden;
        }
        .tab-nav button {
            flex: 1;
            padding: 12px 20px;
            background: #222222cc;
            border: none;
            border-right: 1px solid #666;
            color: #ffcc00;
            font-size: 16px;
            font-weight: bold;
            text-align: center;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease;
        }
        .tab-nav button:last-child {
            border-right: none;
        }
        .tab-nav button:hover {
            background: #333;
            color: #ffee58;
            cursor: var(--hover-wow-gif) 16 16, auto;
        }
        .tab-nav button.active {
            background: #444;
            color: #ffee58;
            text-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
        }
        .tab-content {
            max-width: 1280px;
            margin-left: auto;
            margin-right: auto;
            margin-top: 20px;
            margin-bottom: 20px;
            background: linear-gradient(180deg, #141414e6 0%, #0a0a0ae6 100%);
            border: 3px solid #666;
            border-radius: 8px;
            padding: 16px;
            text-align: center;
            color: #fff;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
            animation: fadeIn 0.5s ease-in;
            display: none;
        }
        .tab-content.active {
            display: block;
        }
        .stats-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            padding: 16px;
        }
        .stats-category {
            background: #222222cc;
            border: 1px solid #555;
            border-radius: 4px;
            padding: 12px;
            width: 250px;
            text-align: left;
        }
        .stats-category h3 {
            font-size: 18px;
            color: #ffcc00;
            margin-bottom: 10px;
            text-align: center;
        }
        .stats-item {
            display: flex;
            justify-content: space-between;
            font-size: 14px;
            margin-bottom: 6px;
            color: #fff;
        }
        .stats-item span:first-child {
            color: #ccc;
        }
        .stats-item span:last-child {
            color: #ffcc00;
            font-weight: bold;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.02); }
            100% { transform: scale(1); }
        }
        .pvp-team-item {
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid #666;
        }
        .pvp-team-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
        .pvp-team-item:hover {
            animation: pulse 0.3s ease-in-out;
        }
        .pvp-team {
            font-size: 20px;
            font-weight: bold;
            color: #ffcc00;
            margin-bottom: 8px;
            transition: color 0.2s ease;
        }
        .pvp-team:hover {
            color: #ffee58;
        }
        .pvp-members {
            font-size: 14px;
            color: #fff;
            margin-bottom: 8px;
        }
        .pvp-members ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: inline-flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
        }
        .pvp-members li {
            display: inline-flex;
            align-items: center;
            background: #222222cc;
            border: 1px solid #555;
            border-radius: 4px;
            padding: 8px 12px;
            transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
        }
        .pvp-members a {
            display: inline-flex;
            align-items: center;
            color: #ffcc00;
            text-decoration: none;
            transition: color 0.2s ease;
        }
        .pvp-members a:hover li {
            background: #333;
            border-color: #777;
            transform: scale(1.03);
        }
        .pvp-members li.current-player {
            color: #fff;
            font-weight: bold;
            text-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
        }
        .pvp-members a:hover {
            color: #ffee58;
            cursor: var(--hover-wow-gif) 16 16, auto;
        }
        .member-details {
            color: #ccc;
            font-size: 12px;
            display: inline-flex;
            align-items: center;
        }
        .member-details img {
            width: 20px;
            height: 20px;
            vertical-align: middle;
            margin-right: 4px;
        }
        .pvp-kills {
            font-size: 14px;
            color: #fff;
            padding-top: 8px;
        }
        .pvp-kills span {
            color: #ffcc00;
            font-weight: bold;
            text-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
        }
        .slot {
            display: flex;
            align-items: center;
            background-color: #2222229f;
            border: 1px solid #444;
            border-radius: 4px;
            padding: 10px;
            margin-bottom: 10px;
            transition: all 0.2s;
            width: 100%;
            box-sizing: border-box;
        }
        .slot.has-item {
            cursor: pointer;
        }
        .weapon-slot {
            width: 200px;
            max-width: 100%;
        }
        .slot:hover {
            background-color: #333;
            border-color: #666;
            cursor: var(--hover-wow-gif) 16 16, auto;
        }
        .slot-icon {
            width: 40px;
            height: 40px;
            background-color: #333;
            border: 1px solid #555;
            border-radius: 3px;
            margin-right: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
        }
        .slot-icon img {
            max-width: 100%;
            max-height: 100%;
        }
        .slot-info {
            flex: 1;
            overflow: hidden;
        }
        .slot-name {
            font-weight: bold;
            color: #fff;
            margin-bottom: 3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .slot-item {
            font-size: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .empty-slot {
            color: #777;
            font-style: italic;
        }
        .character-name {
            font-size: 24px;
            color: #fff;
            margin-bottom: 5px;
            text-align: center;
        }
        .character-details {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 10px;
            font-size: 14px;
            gap: 5px;
        }
        .character-level {
            color: #fff;
            font-weight: bold;
        }
        .character-race {
            color: #ffd100;
        }
        .error-message {
            color: #ff5555;
            font-style: italic;
            text-align: center;
            padding: 20px;
            width: 100%;
            max-width: 1280px;
            margin-left: auto;
            margin-right: auto;
        }
        .item-tooltip {
            position: fixed;
            z-index: 1000;
            pointer-events: none;
            max-width: 90vw;
            padding: 10px;
            color: #fff;
            border-radius: 4px;
            font-size: 14px;
        }
        @media (max-width: 900px) {
            .character-container {
                max-width: 100%;
                margin: auto;
                padding: 4px;
                min-height: unset;
            }
        }
        @media (max-width: 768px) {
            .character-container {
                max-width: 100%;
                margin: auto;
                padding: 4px;
                min-height: unset;
            }
            .equipment-column {
                width: 80px;
                padding: 10px;
            }
            .character-center {
                border-left: none;
                border-right: none;
                min-width: 160px;
                padding: 10px;
            }
            .character-image {
                max-width: 200px;
                height: auto;
                aspect-ratio: 7 / 10;
                margin: 10px 0;
            }
            .weapons-container {
                display: flex;
                align-items: center;
                gap: 10px;
                margin-top: 60px;
                padding-top: 10px;
            }
            .tab-nav {
                max-width: 100%;
                margin: 10px auto;
                padding: 4px;
            }
            .tab-nav button {
                padding: 10px;
                font-size: 14px;
            }
            .tab-content {
                max-width: 100%;
                margin: auto;
                padding: 10px;
                border: 2px solid #666;
                box-shadow: none;
            }
            .stats-container {
                flex-direction: row;
                align-items: center;
                padding: 10px;
            }
            .stats-category {
                width: 100%;
                max-width: 300px;
            }
            .pvp-team-item {
                margin-bottom: 8px;
                padding-bottom: 6px;
            }
            .pvp-team {
                font-size: 16px;
            }
            .pvp-members {
                font-size: 12px;
            }
            .pvp-members ul {
                gap: 6px;
            }
            .pvp-members li {
                padding: 6px 10px;
            }
            .member-details img {
                width: 16px;
                height: 16px;
                margin-right: 3px;
            }
            .member-details::before {
                display: inline;
            }
            .member-details.horde::before {
                content: 'H, ';
            }
            .pvp-kills {
                font-size: 13px;
                padding-top: 6px;
            }
            .weapon-slot {
                width: 48px;
                max-width: 100%;
            }
            .slot {
                padding: 4px;
                width: 48px;
            }
            .slot-icon {
                width: 36px;
                height: 36px;
                margin-right: 0;
            }
            .slot-info {
                display: none;
            }
            .character-name {
                font-size: 20px;
            }
            .character-details {
                font-size: 13px;
            }
            .error-message {
                padding: 10px;
            }
            .item-tooltip {
                font-size: 13px;
                padding: 8px;
            }
        }
        @media (max-width: 480px) {
            .character-container {
                margin: auto;
                padding: 4px;
                min-height: unset;
            }
            .equipment-column {
                width: 80px;
                padding: 10px;
            }
            .character-center {
                padding: 10px;
                min-width: 160px;
            }
            .character-image {
                max-width: 160px;
                height: auto;
                aspect-ratio: 7 / 10;
                margin: 10px 0;
            }
            .weapons-container {
                margin: auto;
                padding-top: 10px;
            }
            .tab-nav {
                padding: 3px;
            }
            .tab-nav button {
                padding: 8px;
                font-size: 12px;
            }
            .tab-content {
                padding: 8px;
                border: 2px solid #666;
            }
            .stats-category {
                padding: 8px;
            }
            .stats-category h3 {
                font-size: 16px;
            }
            .stats-item {
                font-size: 13px;
            }
            .pvp-team-item {
                margin-bottom: 6px;
                padding-bottom: 5px;
            }
            .pvp-team {
                font-size: 15px;
            }
            .pvp-members {
                font-size: 11px;
            }
            .pvp-members ul {
                gap: 5px;
            }
            .pvp-members li {
                padding: 4px 8px;
            }
            .member-details img {
                width: 16px;
                height: 16px;
                margin-right: 3px;
            }
            .member-details span {
                display: none;
            }
            .pvp-kills {
                font-size: 12px;
                padding-top: 5px;
            }
            .slot {
                padding: 3px;
                width: 48px;
            }
            .slot-icon {
                width: 32px;
                height: 32px;
            }
            .slot-info {
                display: none;
            }
            .character-name {
                font-size: 18px;
            }
            .character-details {
                font-size: 12px;
            }
            .error-message {
                padding: 10px;
            }
            .item-tooltip {
                font-size: 12px;
                padding: 8px;
            }
        }
        @media (max-width: 360px) {
            .character-container {
                padding: 2px;
                min-height: unset;
            }
            .equipment-column {
                width: 80px;
                padding: 8px;
            }
            .character-center {
                padding: 8px;
                min-width: 160px;
            }
            .character-image {
                max-width: 140px;
                height: auto;
                aspect-ratio: 7 / 10;
                margin: 10px 0;
            }
            .weapons-container {
                margin: auto;
                padding-top: 10px;
            }
            .tab-nav {
                padding: 2px;
            }
            .tab-nav button {
                padding: 6px;
                font-size: 11px;
            }
            .tab-content {
                padding: 6px;
                border: 2px solid #666;
            }
            .stats-category {
                padding: 6px;
            }
            .stats-category h3 {
                font-size: 14px;
            }
            .stats-item {
                font-size: 12px;
            }
            .pvp-team-item {
                margin-bottom: 6px;
                padding-bottom: 4px;
            }
            .pvp-team {
                font-size: 14px;
            }
            .pvp-members {
                font-size: 10px;
            }
            .pvp-members ul {
                gap: 4px;
            }
            .pvp-members li {
                padding: 3px 6px;
            }
            .member-details img {
                width: 12px;
                height: 12px;
                margin-right: 2px;
            }
            .member-details span {
                display: none;
            }
            .pvp-kills {
                font-size: 11px;
                padding-top: 4px;
            }
            .slot {
                padding: 2px;
                width: 48px;
            }
            .slot-icon {
                width: 32px;
                height: 32px;
            }
            .slot-info {
                display: none;
            }
            .character-name {
                font-size: 18px;
            }
            .character-details {
                font-size: 12px;
            }
            .error-message {
                padding: 10px;
            }
            .item-tooltip {
                font-size: 12px;
                padding: 8px;
            }
        }
