/* =====================================================================
   SINGLE PLAYER CSS
   Modern card-based hub layout for Casual and Ranked modes
   ===================================================================== */

/* =====================================================================
   SP TYPE SELECTION CARDS (Casual / Ranked)
   Matches face-off mode select card design
   ===================================================================== */

#sp-type-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.sp-casual-card {
    border: 2px solid rgba(16, 185, 129, 0.3);
    cursor: pointer;
}

.sp-ranked-card {
    border: 2px solid rgba(245, 158, 11, 0.3);
    cursor: pointer;
}

.sp-casual-card:hover {
    border-color: rgba(16, 185, 129, 0.6);
}

.sp-ranked-card:hover {
    border-color: rgba(245, 158, 11, 0.6);
}

body.dark-mode .sp-casual-card {
    border-color: rgba(16, 185, 129, 0.4);
}

body.dark-mode .sp-ranked-card {
    border-color: rgba(245, 158, 11, 0.4);
}

#sp-type-selection .card-features {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    text-align: left;
}

#sp-type-selection .card-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary, #666);
}

#sp-type-selection .card-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* =====================================================================
   SP HUB - BASE STYLES (SHARED)
   ===================================================================== */

/* Main hub container - matches daily-hub-container */
.sp-hub-container {
    width: 100%;
    min-width: 1200px;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* SP Header Bar - green themed */
.sp-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 16px;
    border: 2px solid #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

body.dark-mode .sp-header-bar {
    background: linear-gradient(135deg, #064e3b, #065f46);
    border-color: #10b981;
}

.sp-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-title-icon {
    font-size: 1.8rem;
}

.sp-title-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #065f46;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.dark-mode .sp-title-text {
    color: #6ee7b7;
}

/* SP Coin Balance Display */
.sp-coin-balance-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 16px;
}

.sp-coin-amount {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .sp-coin-amount {
    background: linear-gradient(135deg, #6ee7b7, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sp-coin-icon-large {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.sp-coin-icon-small {
    width: 18px;
    height: 18px;
}

/* =====================================================================
   SP SECTION CARDS
   ===================================================================== */

/* Common section card styling */
.sp-section {
    border-radius: 12px;
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.4);
}

body.dark-mode .sp-section {
    background: linear-gradient(180deg, rgb(6 24 14 / 45%), rgb(39 43 40 / 90%));
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow:
        0 6px 18px rgba(0,0,0,.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Shimmer sweep effect */
.sp-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 50%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.sp-section:hover::after {
    animation: shimmer 0.6s ease forwards;
}

body.dark-mode .sp-section::after {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Section header */
.sp-section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
}

.sp-section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-90, #1a1a1a);
    text-align: center;
}

body.dark-mode .sp-section-header h3 {
    color: #fff;
}

/* =====================================================================
   SP PLAY CARD
   ===================================================================== */

.sp-play-card {
    text-align: center;
}

.sp-play-card-wide {
    max-width: 600px;
    margin: 0 auto;
}

.sp-play-subtitle {
    color: var(--ink-60, #666);
    font-size: 0.95rem;
    margin: 0 0 16px;
}

body.dark-mode .sp-play-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* =====================================================================
   SP MODE SELECTOR BUTTONS
   Styled like Face-Off player count buttons
   ===================================================================== */

.sp-mode-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.sp-mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    min-width: 130px;
    background: linear-gradient(180deg, #fafafa 0%, #e9edf3 100%);
    border: 2px solid #d0d5dd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sp-mode-btn:hover {
    border-color: #10b981;
    background: linear-gradient(180deg, #f0fff4 0%, #d1fae5 100%);
}

.sp-mode-btn.active {
    border-color: #10b981;
    background: linear-gradient(180deg, #d1fae5 0%, #a7f3d0 100%);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

body.dark-mode .sp-mode-btn {
    background: linear-gradient(180deg, #3a4556 0%, #2d3748 100%);
    border-color: #4a5568;
}

body.dark-mode .sp-mode-btn:hover {
    border-color: #10b981;
    background: linear-gradient(180deg, #064e3b 0%, #065f46 100%);
}

body.dark-mode .sp-mode-btn.active {
    border-color: #10b981;
    background: linear-gradient(180deg, #065f46 0%, #047857 100%);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.sp-mode-icon {
    font-size: 1.5rem;
}

.sp-mode-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-80, #333);
}

body.dark-mode .sp-mode-label {
    color: #fff;
}

/* Mode description text */
.sp-mode-description {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--ink-60, #666);
}

body.dark-mode .sp-mode-description {
    color: rgba(255, 255, 255, 0.7);
}

.sp-mode-dot {
    color: var(--ink-40, #aaa);
}

/* Play button */
.sp-play-btn {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.sp-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.sp-play-btn:active {
    transform: translateY(0);
}

/* Rewards info row */
.sp-rewards-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--ink-60, #666);
}

body.dark-mode .sp-rewards-info {
    color: rgba(255, 255, 255, 0.6);
}

/* =====================================================================
   SP STATS CARD
   ===================================================================== */

.sp-stats-card {
    text-align: center;
    min-height: 220px;
}

.sp-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sp-stats-row-2 {
    margin-top: 16px;
}

.sp-stat-box {
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #d0d5dd;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.dark-mode .sp-stat-box {
    background: linear-gradient(180deg, #3a4556 0%, #2d3748 100%);
    border-color: #157254;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sp-stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink-90, #1a1a1a);
    line-height: 1;
    margin-bottom: 4px;
}

body.dark-mode .sp-stat-number {
    color: #fff;
}

.sp-stat-label {
    font-size: 0.6rem;
    color: var(--ink-50, #888);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

body.dark-mode .sp-stat-label {
    color: rgba(255, 255, 255, 0.5);
}

.sp-stats-note {
    margin: 12px 0 0;
    font-size: 0.75rem;
    color: var(--ink-50, #888);
    font-style: italic;
}

body.dark-mode .sp-stats-note {
    color: rgba(255, 255, 255, 0.5);
}

/* =====================================================================
   SP CASUAL HUB LAYOUT (Simple 2x2 grid)
   ===================================================================== */

/* Main layout: simple 2x2 grid */
.sp-casual-hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
    width: 100%;
}

/* Top row cards (Play + Video) - taller */
.sp-casual-hub-grid > .sp-play-card,
.sp-casual-hub-grid > .sp-tips-card {
    min-height: 280px;
}

/* Bottom row cards (Stats + Ad) - shorter */
.sp-casual-hub-grid > .sp-stats-card,
.sp-casual-hub-grid > .sp-ad-card {
    min-height: auto;
}

/* Casual Stats: 3 horizontal rectangle cards */
.sp-casual-stats-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.sp-casual-stat-card {
    flex: 1;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.03));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.dark-mode .sp-casual-stat-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border-color: rgba(16, 185, 129, 0.3);
}

.sp-casual-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
    line-height: 1.2;
}

body.dark-mode .sp-casual-stat-value {
    color: #34d399;
}

.sp-casual-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ink-50, #888);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

body.dark-mode .sp-casual-stat-label {
    color: rgba(255, 255, 255, 0.6);
}

/* Tips card styling */
.sp-tips-card {
    display: flex;
    flex-direction: column;
}

.sp-tips-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
    text-align: left;
}

.sp-tips-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    font-size: 0.9rem;
    color: var(--ink-70, #555);
}

.sp-tips-list li:last-child {
    border-bottom: none;
}

body.dark-mode .sp-tips-list li {
    border-color: rgba(16, 185, 129, 0.25);
    color: rgba(255, 255, 255, 0.75);
}

/* Promo video container */
.sp-promo-video-container {
    width: 100%;
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
    max-height: 220px;
}

.sp-promo-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.sp-promo-video-native {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sp-promo-video-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.sp-promo-video-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 150px;
    color: #10b981;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.sp-promo-video-link:hover {
    text-decoration: underline;
}

/* Ad card styling */
.sp-ad-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-ad-container {
    width: 100%;
    height: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-ad-tall {
    height: 100%;
}

.sp-ad-placeholder {
    width: 100%;
    height: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.03),
        rgba(0, 0, 0, 0.03) 10px,
        rgba(0, 0, 0, 0.06) 10px,
        rgba(0, 0, 0, 0.06) 20px
    );
    border: 2px dashed rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

body.dark-mode .sp-ad-placeholder {
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0.02) 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    border-color: rgba(255, 255, 255, 0.15);
}

.sp-ad-label {
    font-size: 0.85rem;
    color: var(--ink-40, #aaa);
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.dark-mode .sp-ad-label {
    color: rgba(255, 255, 255, 0.3);
}

/* House ads (tips/promos when AdSense is disabled) */
.sp-house-ad {
    width: 100%;
    min-height: 150px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    border: 1px dashed rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    text-align: center;
}

body.dark-mode .sp-house-ad {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border-color: rgba(139, 92, 246, 0.4);
}

.sp-house-ad-vertical {
    flex-direction: column;
    padding: 24px 16px;
}

.sp-house-ad-content {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ink-70, #555);
    line-height: 1.5;
    max-width: 600px;
}

body.dark-mode .sp-house-ad-content {
    color: rgba(255, 255, 255, 0.85);
}

.sp-house-ad-vertical .sp-house-ad-content {
    writing-mode: horizontal-tb;
    max-width: 160px;
}

/* Upgrade banner */
.sp-upgrade-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 10px;
    font-size: 0.9rem;
}

body.dark-mode .sp-upgrade-banner {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(30, 41, 59, 0.9));
    border-color: rgba(251, 191, 36, 0.4);
}

.sp-upgrade-icon {
    font-size: 1.2rem;
}

.sp-upgrade-text {
    color: var(--ink-70, #555);
}

body.dark-mode .sp-upgrade-text {
    color: rgba(255, 255, 255, 0.8);
}

.sp-upgrade-text a {
    color: #d97706;
    font-weight: 600;
    text-decoration: none;
}

.sp-upgrade-text a:hover {
    text-decoration: underline;
}

body.dark-mode .sp-upgrade-text a {
    color: #fbbf24;
}

/* =====================================================================
   SP RANKED HUB LAYOUT - Play card + 3 leaderboards
   ===================================================================== */

.sp-ranked-layout {
    display: grid;
    grid-template-columns: 1fr 220px 220px 220px;
    grid-template-rows: auto auto;
    gap: 16px;
    width: 100%;
    max-width: 100%;
}

/* Use display: contents to flatten nested wrappers (like Daily does) */
.sp-ranked-top-row {
    display: contents;
}

.sp-leaderboards-row {
    display: contents;
}

.sp-ranked-bottom-row {
    display: contents;
}

/* Play card - column 1, row 1 only */
.sp-ranked-layout .sp-play-card {
    grid-column: 1;
    grid-row: 1;
}

/* Leaderboards span both rows (extend down to stats level) */
.sp-leaderboard-card:nth-child(1) {
    grid-column: 2;
    grid-row: 1 / 3;
}

.sp-leaderboard-card:nth-child(2) {
    grid-column: 3;
    grid-row: 1 / 3;
}

.sp-leaderboard-card:nth-child(3) {
    grid-column: 4;
    grid-row: 1 / 3;
}

/* Stats card - column 1, row 2 */
.sp-ranked-bottom-row .sp-stats-card {
    grid-column: 1;
    grid-row: 2;
}

/* =====================================================================
   SP LEADERBOARDS
   ===================================================================== */

.sp-leaderboard-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 16px 8px;
}

.sp-lb-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.sp-lb-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink-90, #1a1a1a);
}

body.dark-mode .sp-lb-header h4 {
    color: #fff;
}

.sp-lb-icon {
    font-size: 1.1rem;
}

/* Leaderboard list */
.sp-lb-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow-y: auto;
    max-height: 280px;
}

.sp-lb-loading {
    text-align: center;
    padding: 20px;
    color: var(--ink-50, #888);
    font-size: 0.85rem;
}

body.dark-mode .sp-lb-loading {
    color: rgba(255, 255, 255, 0.5);
}

.sp-lb-empty {
    text-align: center;
    padding: 20px;
    color: var(--ink-50, #888);
    font-size: 0.8rem;
    font-style: italic;
}

body.dark-mode .sp-lb-empty {
    color: rgba(255, 255, 255, 0.5);
}

/* Leaderboard entry */
.sp-lb-entry {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.sp-lb-entry:hover {
    background: rgba(0, 0, 0, 0.03);
}

body.dark-mode .sp-lb-entry:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sp-lb-entry.is-self {
    background: rgba(16, 185, 129, 0.1);
}

body.dark-mode .sp-lb-entry.is-self {
    background: rgba(16, 185, 129, 0.2);
}

/* Rank */
.sp-lb-rank {
    font-size: 0.8rem;
    font-weight: 700;
    color: #666;
    min-width: 22px;
    text-align: center;
}

body.dark-mode .sp-lb-rank {
    color: #8ab4e8;
}

.sp-lb-rank.gold { color: #d97706; }
.sp-lb-rank.silver { color: #64748b; }
.sp-lb-rank.bronze { color: #c2410c; }

body.dark-mode .sp-lb-rank.gold { color: #ffd966; }
body.dark-mode .sp-lb-rank.silver { color: #cbd5e1; }
body.dark-mode .sp-lb-rank.bronze { color: #f59e0b; }

/* Avatar */
.sp-lb-avatar {
    width: 24px;
    height: 24px;
    border-radius: 12%;
    overflow: hidden;
    background: #e0e0e0;
    flex-shrink: 0;
}

body.dark-mode .sp-lb-avatar {
    background: rgba(255, 255, 255, 0.1);
}

.sp-lb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info */
.sp-lb-info {
    flex: 1;
    min-width: 0;
}

.sp-lb-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink, #1a1a1a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode .sp-lb-name {
    color: #fff;
}

/* Score */
.sp-lb-score {
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
}

body.dark-mode .sp-lb-score {
    color: #6ee7b7;
}

/* =====================================================================
   SP HUB BUTTONS
   ===================================================================== */

.sp-hub-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

/* =====================================================================
   RESPONSIVE - TABLET
   ===================================================================== */

@media (max-width: 1024px) {
    .sp-hub-container {
        min-width: unset;
        width: 100%;
        max-width: 100%;
    }

    /* Casual hub: 2 columns on tablet */
    .sp-casual-hub-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sp-ranked-layout {
        grid-template-columns: 1fr 1fr;
    }

    /* Play card spans both columns on tablet */
    .sp-ranked-layout .sp-play-card {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    /* Leaderboards stack in 3 columns below */
    .sp-leaderboard-card:nth-child(1),
    .sp-leaderboard-card:nth-child(2),
    .sp-leaderboard-card:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
    }

    .sp-ranked-bottom-row .sp-stats-card {
        grid-column: 1 / 3;
    }
}

@media (max-width: 700px) {
    .sp-ranked-layout {
        grid-template-columns: 1fr;
    }

    .sp-ranked-layout .sp-play-card,
    .sp-leaderboard-card:nth-child(1),
    .sp-leaderboard-card:nth-child(2),
    .sp-leaderboard-card:nth-child(3),
    .sp-ranked-bottom-row .sp-stats-card {
        grid-column: 1;
        grid-row: auto;
    }

    .sp-leaderboard-card {
        min-height: 200px;
    }

    .sp-lb-list {
        max-height: 180px;
    }
}

/* =====================================================================
   RESPONSIVE - MOBILE
   ===================================================================== */

@media (max-width: 700px) {
    .sp-hub-container {
        min-width: unset;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .sp-header-bar {
        padding: 10px 14px;
        gap: 10px;
        margin: 0;
        border-radius: 12px;
    }

    .sp-title-icon {
        font-size: 1.4rem;
    }

    .sp-title-text {
        font-size: 1.2rem;
    }

    .sp-coin-amount {
        font-size: 1.4rem;
    }

    .sp-coin-icon-large {
        width: 32px;
        height: 32px;
    }

    /* Casual hub mobile: stack everything */
    .sp-casual-hub-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sp-casual-stats-row {
        flex-direction: column;
        gap: 8px;
    }

    .sp-casual-stat-card {
        min-height: 60px;
        padding: 12px;
    }

    .sp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-mode-selector {
        gap: 12px;
    }

    .sp-mode-btn {
        padding: 10px 14px;
        min-width: 105px;
    }

    .sp-mode-icon {
        font-size: 1.2rem;
    }

    .sp-mode-label {
        font-size: 0.75rem;
    }

    .sp-play-btn {
        width: 100%;
        padding: 14px 24px;
    }

    .sp-hub-buttons {
        flex-direction: column;
        align-items: center;
    }

    .sp-hub-buttons .btnunified {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .sp-mode-description {
        flex-wrap: wrap;
        font-size: 0.8rem;
    }

    .sp-stat-box {
        padding: 10px 6px;
    }

    .sp-stat-number {
        font-size: 1rem;
    }
}
