@font-face {
    font-family: 'BigNoodleTitling';
    src: url('../assets/fonts/BigNoodleTitling.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

#overwatch-widget-brick {
    overflow: visible !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.overwatch-widget-container {
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding-top: 18px;
}

/* 1. Overlapping Game Tag - Official Overwatch Font */
.tag-overwatch {
    margin-top: -4px;
    left: 18px;
    width: 90%;
    min-width: 140px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1px 20px 0 23px;
    font-family: 'BigNoodleTitling', sans-serif;
    font-style: italic;
    font-weight: normal;
    font-size: 1.35rem;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.85);
    letter-spacing: 1rem;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    clip-path: polygon(6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%, 0% 50%);
    user-select: none;
    pointer-events: none;
    box-sizing: border-box;
    background-image: url('../assets/overwatch.jpg');
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
}

/* 2. Main Glass Profile Card - Sits in FRONT */
.overwatch-profile-card {

    position: relative;
    z-index: 2;
    background-color: rgba(17, 25, 40, 0.92);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.125);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 0 15px rgba(249, 158, 26, 0.12);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 8px 14px 12px 14px;
    width: 100%;
    height: calc(100% - 18px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.overwatch-profile-card:hover {
    border-color: rgba(249, 158, 26, 0.4);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(249, 158, 26, 0.2);
}

/* Dark Tint Overlay on Namecard */
.overwatch-profile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 20, 32, 0.88) 0%, rgba(20, 26, 40, 0.82) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Top Row: Avatar & Player Meta */
.ow-profile-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}

.ow-avatar-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.ow-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background-color: #111214;
    border: 2px solid #f99e1a;
    box-shadow: 0 0 10px rgba(249, 158, 26, 0.45);
    box-sizing: border-box;
}

.ow-endorsement-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f99e1a;
    color: #111214;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #111214;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    line-height: 1;
}

.ow-player-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
    gap: 2px;
}

.ow-name-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.ow-player-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ow-player-tag {
    font-size: 0.9rem;
    font-weight: 600;
    color: #9ca3af;
}

.ow-player-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: #f99e1a;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bottom Row: Current Rank & Peak Rank with Divider (100% Symmetrical Grid) */
.ow-ranks-row {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 8px;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.ow-rank-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ow-rank-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
    display: block;
}

.ow-rank-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 2px;
}

.ow-rank-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.66rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    line-height: 1;
    margin: 0;
}

.ow-label-support-icon {
    width: 11px;
    height: 11px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 3px rgba(249, 158, 26, 0.5));
}

.ow-rank-value-row {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    line-height: 1.2;
}

.ow-rank-value {
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    white-space: nowrap;
    margin: 0;
}

.ow-rank-value.rank-master-val {
    color: #ffffff;
}

.ow-rank-value.rank-gm-val {
    color: #ffffff;
}

.ow-inline-support-icon {
    width: 13px;
    height: 13px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(249, 158, 26, 0.6));
}

.ow-pill-support-icon {
    width: 10px;
    height: 10px;
    object-fit: contain;
    flex-shrink: 0;
}

.ow-rank-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.62rem;
    font-weight: 800;
    background: rgba(92, 208, 255, 0.16);
    color: #5cd0ff;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(92, 208, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.1;
}

.ow-rank-role-pill.gold {
    background: rgba(249, 158, 26, 0.16);
    color: #f99e1a;
    border-color: rgba(249, 158, 26, 0.35);
}