
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fb;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.container-header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 40px;
}

.container-header h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}

.container-header p {
    font-size: 0.9rem;
    color: #8899aa;
    letter-spacing: 0.3px;
}

.divider {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    margin: 14px auto 0;
    border-radius: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.rank {
    background: #ffffff;
    border: 1px solid #e8ecf0;
    border-radius: 16px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
    overflow: hidden;
}

.rank::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent, #e2e8f0);
    border-radius: 4px 0 0 4px;
}

.rank:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.rank-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rank-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.rank-desc {
    font-size: 0.82rem;
    color: #7a8fa6;
    line-height: 1.6;
}

.visit-btn {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    color: #ffffff;
    background: var(--accent, #4f46e5);
    transition: opacity 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.2px;
}

.visit-btn:hover {
    opacity: 0.85;
    transform: scale(1.04);
}

/* Accent colors per rank */
.rank-1  { --accent: #f59e0b; }
.rank-2  { --accent: #64748b; }
.rank-3  { --accent: #ca8a04; }
.rank-4  { --accent: #0284c7; }
.rank-5  { --accent: #059669; }
.rank-6  { --accent: #7c3aed; }
.rank-7  { --accent: #db2777; }
.rank-8  { --accent: #0891b2; }
.rank-9  { --accent: #d97706; }
.rank-10 { --accent: #16a34a; }
.rank-b  { --accent: #dc2626; }

.badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--accent, #e2e8f0);
    color: #fff;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.bonus-label {
    background: #f1f5f9;
    color: #64748b;
}

/* Bonus card spans full width */
.rank.full-width {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.rank.full-width .rank-desc {
    flex: 1;
    margin: 0 20px;
}

@media (max-width: 680px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .rank.full-width {
        flex-direction: column;
        align-items: flex-start;
    }

    .rank.full-width .rank-desc {
        margin: 0;
    }

    .container-header h1 {
        font-size: 1.4rem;
    }
}