:root {
    --tm-red: #CA2222;
    --bg-dark: #0a0a0a;
    --card-solid: #1a1a1a;
    --inner-solid: #242424;
    --row-solid: #212121;
    --text-main: #eeeeee;
    --text-muted: #999999;
    --border-standard: #33333380;
}

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Standard Card */
.card {
    background-color: var(--card-solid);
    border: 1px solid var(--border-standard);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-header {
    padding: 20px 20px 10px 20px;
}

.card-header h2 {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
}

.card-content {
    padding: 0 20px 20px 20px;
}

.card-footer {
    padding: 10px 20px 20px 20px;
    display: flex;
    justify-content: space-between;
}

/* Map Box (Standard 150px) */
.map-box {
    height: 150px;
    background: var(--inner-solid);
    border: 1px solid var(--border-standard);
    position: relative;
    overflow: hidden;
    margin: 0 20px 10px 20px;
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
    z-index: 2;
}

/* Ranking Row (Standard 50px Height) */
.rank-row {
    height: 50px;
    background: var(--row-solid);
    border-left: 5px solid var(--border-standard);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    margin: 0 20px 10px 20px;
}

.rank-row.featured {
    border-left-color: var(--tm-red);
    background: #2a1515;
}

.rank-row.empty {
    opacity: 0.6;
}

/* Overview Row (Standard 60px Height) */
.overview-row {
    height: 60px;
    background: var(--inner-solid);
    border: 1px solid var(--border-standard);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    margin-bottom: 0;
    position: relative;
}

.overview-row:hover {
    border-color: var(--tm-red);
    background: #2a2a2a;
}

/* Disabled/Under Construction Styles */
.disabled-row {
    pointer-events: none;
    filter: grayscale(1);
    opacity: 0.5;
}

.construction-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    z-index: 5;
}

.construction-text {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: #444;
    padding: 4px 8px;
    border-radius: 2px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Typography */
.player-name { font-size: 14px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.sub-label { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); line-height: 1; }
.tab-nums { font-family: 'Space Mono', monospace; font-variant-numeric: tabular-nums; }

.footer-link {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    transition: color 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.footer-link:hover {
    color: var(--tm-red);
}

/* Linktree Style Grid */
.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-item {
    background: var(--inner-solid);
    border: 1px solid var(--border-standard);
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.social-item:hover {
    border-color: var(--tm-red);
    background: #2a2a2a;
    transform: translateY(-2px);
}

.social-icon {
    width: 18px;
    height: 18px;
    background-color: var(--text-muted);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    transition: background-color 0.2s;
}

.social-item:hover .social-icon {
    background-color: #fff;
}

/* Disclaimer Footer */
.disclaimer {
    font-size: 9px;
    color: var(--text-muted);
    text-align: center;
    padding: 10px 20px 20px 20px;
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 600;
}

/* Skeleton Animation */
.skeleton {
    background: linear-gradient(90deg, #222 25%, #333 50%, #222 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
