body {
    background-color: #f8fafc;
    font-family: 'Roboto', sans-serif;
    color: #1e293b;
    margin: 0;
    padding: 0;
}

.tt-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.tt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.tt-title-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tt-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.tt-subtitle {
    font-size: 15px;
    color: #64748b;
    margin-top: 4px;
}

.tt-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.tt-select {
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #334155;
    outline: none;
    font-weight: 500;
}

.tt-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.tt-btn-info {
    padding: 10px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.tt-btn-info:hover {
    background: #f1f5f9;
}

/* ── TOP 3 CARDS ── */
.tt-top-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 40px;
}

.tt-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    flex: 1;
    max-width: 300px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.tt-card-2 {
    transform: translateY(0);
}

.tt-card-1 {
    transform: translateY(-20px);
    z-index: 10;
    padding-bottom: 40px;
}

.tt-card-3 {
    transform: translateY(0);
}

.tt-card-1:hover {
    transform: translateY(-25px);
}

/* Thematic Coloring */
.tt-gold {
    border-top: 6px solid #fbbf24;
}

.tt-silver {
    border-top: 6px solid #94a3b8;
}

.tt-bronze {
    border-top: 6px solid #b45309;
}

.tt-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tt-gold .tt-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.tt-silver .tt-badge {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.tt-bronze .tt-badge {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.tt-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 16px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tt-score {
    font-size: 24px;
    font-weight: 800;
    margin: 8px 0;
}

.tt-gold .tt-score {
    color: #d97706;
}

.tt-silver .tt-score {
    color: #64748b;
}

.tt-bronze .tt-score {
    color: #92400e;
}

.tt-reward {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    margin-top: 12px;
}

/* ── LEADERBOARD LIST ── */
.tt-list-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin-bottom: 40px;
}

.tt-table {
    width: 100%;
    border-collapse: collapse;
}

.tt-table th {
    background: #f8fafc;
    padding: 16px 24px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}

.tt-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 15px;
}

.tt-table tr:last-child td {
    border-bottom: none;
}

.tt-table tr:hover td {
    background: #f8fafc;
}

.tt-pos {
    font-weight: 700;
    color: #94a3b8;
    width: 40px;
}

.tt-score-cell {
    font-weight: 600;
    color: #10b981;
}

.tt-stats-cell {
    color: #64748b;
    font-size: 13px;
}

.tt-my-position {
    background: #eff6ff !important;
}

.tt-my-position td {
    color: #1e3a8a;
    font-weight: 500;
}

/* ── INFO MODAL ── */
.tt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.tt-modal {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    padding: 32px;
    transform: scale(0.95);
    transition: transform 0.3s;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.tt-overlay.active {
    display: flex;
    opacity: 1;
}

.tt-overlay.active .tt-modal {
    transform: scale(1);
}

.tt-modal h3 {
    margin-top: 0;
    font-size: 22px;
    color: #0f172a;
    margin-bottom: 16px;
}

.tt-modal p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tt-modal ul {
    background: #f8fafc;
    padding: 16px 16px 16px 36px;
    border-radius: 8px;
    color: #334155;
    line-height: 1.8;
}

.tt-modal-btn {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.2s;
}

.tt-modal-btn:hover {
    background: #2563eb;
}

.tt-empty {
    text-align: center;
    padding: 60px;
    color: #64748b;
    font-size: 16px;
}

/* Base App Layout Integration (matching existing styles) */
.td-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

.td-main {
    flex: 1;
    padding: 24px;
    background: #f8fafc;
}

.td-header {
    background: #fff;
    height: 70px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}