@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&family=Noto+Sans+TC:wght@400;500;700;900&display=swap');

:root {
    /* Vibrant Chinese Theme */
    --bg-dark: #7f1d1d;
    --bg-darker: #450a0a;
    --game-bg: #991b1b;
    --accent-gold: #fbbf24;
    --accent-red: #dc2626;
    --accent-crimson: #b91c1c;
    --accent-jade: #059669;
    --text-main: #fef3c7;
    --text-muted: #fde68a;
    --card-bg: rgba(254, 243, 199, 0.08);
    --hover-shadow: 0 20px 25px -5px rgba(220, 38, 38, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --glow-gold: 0 0 20px rgba(251, 191, 36, 0.3);
    --glow-red: 0 0 15px rgba(220, 38, 38, 0.4);
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(ellipse at top, #dc2626 0%, #991b1b 40%, #7f1d1d 70%, #450a0a 100%);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    position: relative;
}

/* Background Pattern */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(251, 191, 36, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.4;
    z-index: -1;
}

header {
    text-align: center;
    padding: 3rem 1rem;
    animation: fadeIn Down 0.8s ease-out;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0;
    font-style: italic;
    background: linear-gradient(135deg, #ec4899 0%, #fbbf24 50%, #f97316 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Game Grid */
/* Hero Section */
.hero-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.banquet-table-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banquet-table-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.banquet-table-container:hover .banquet-table-bg {
    transform: scale(1.02);
}

/* Shop Button */
.shop-link-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #fbbf24;
    color: #451a03;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 2px 0 #d97706;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    font-family: 'Outfit', sans-serif;
    border: 2px solid #fff;
}

.shop-link-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3), 0 2px 0 #d97706;
}

.shop-link-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.shop-icon {
    font-size: 1.5rem;
}

/* Game Grid Redesign */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    padding: 2rem;
}

.game-card.big-tile {
    flex-direction: row;
    align-items: center;
    text-align: left;
    min-height: 200px;
    padding: 2.5rem;
}

.game-card.big-tile .game-icon {
    margin-bottom: 0;
    margin-right: 2rem;
    font-size: 6rem;
}

.game-card.big-tile .game-content {
    flex: 1;
}

.game-card.big-tile .game-title {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.game-card.big-tile .game-desc {
    font-size: 1.1rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .game-card.big-tile {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .game-card.big-tile .game-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .shop-link-button {
        bottom: 10px;
        right: 50%;
        transform: translateX(50%);
        width: max-content;
    }

    .shop-link-button:hover {
        transform: translateX(50%) translateY(-4px) scale(1.05);
    }
}

footer {
    margin-top: auto;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.7;
    text-align: center;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}

/* ------------------------------------------- */
/* PROGRESS DASHBOARD */
/* ------------------------------------------- */

#progress-dashboard {
    width: 100%;
    max-width: 1000px;
    padding: 2rem;
    margin: 0 auto 2rem;
}

.progress-header {
    text-align: center;
    margin-bottom: 2rem;
}

.progress-header h2 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #dc2626 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}

.progress-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(251, 191, 36, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-gold), 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-gold);
}

.stat-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.progress-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.action-btn.primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #451a03;
    border: 2px solid #fff;
}

.action-btn.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--glow-gold), 0 8px 15px rgba(0, 0, 0, 0.3);
}

.action-btn.secondary {
    background: rgba(254, 243, 199, 0.1);
    color: var(--text-main);
    border: 2px solid var(--accent-gold);
}

.action-btn.secondary:hover {
    background: rgba(254, 243, 199, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.btn-icon {
    font-size: 1.5rem;
}

/* Empty State */
.progress-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(251, 191, 36, 0.2);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.progress-empty-state h3 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 0.5rem;
    color: var(--accent-gold);
}

.progress-empty-state p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0 0 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #451a03;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 50px;
    border: 2px solid #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--glow-gold), 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .progress-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .progress-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}