:root {
    --bg-dark: #0a0b10;
    --card-bg: rgba(20, 22, 30, 0.8);
    --accent-cyan: #1effdf;
    --accent-red: #ff3e3e;
    --text-main: #e0e6ed;
    --text-dim: #94a3b8;
    --rarity-common: #94a3b8;
    --rarity-medium: #3b82f6;
    --rarity-pro: #f59e0b;
    --border-glow: rgba(30, 255, 223, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: -1;
}

.bg-blur {
    position: fixed;
    top: -10%; left: -10%; width: 120%; height: 120%;
    background: radial-gradient(circle at 50% 50%, rgba(30, 255, 223, 0.1) 0%, transparent 50%);
    filter: blur(80px);
    z-index: -2;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: rgba(13, 15, 21, 0.95);
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
.logo h1 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 2rem;
}

.accent { color: var(--accent-cyan); }

/* Navigation */
.nav-links {
    list-style: none;
}

.nav-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
}

.nav-item:hover, .nav-item.active {
    background: rgba(30, 255, 223, 0.1);
    color: var(--accent-cyan);
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.balance-group {
    display: flex;
    gap: 1.5rem;
}

.balance-item {
    background: var(--card-bg);
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.balance-item span { font-weight: 700; color: var(--accent-cyan); }

.connect-btn {
    background: linear-gradient(135deg, var(--accent-cyan), #0ea5e9);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.stat-card label { display: block; color: var(--text-dim); font-size: 0.9rem; margin-bottom: 0.5rem; }
.stat-card .value { font-size: 1.8rem; font-weight: 700; }

/* NFT Grid */
.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.player-card {
    background: rgba(20, 22, 30, 0.4);
    border-radius: 24px;
    padding: 1.2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.05) !important; /* Overrides inline JS */
    overflow: hidden;
    z-index: 1;
}

/* Base Hover Effect */
.player-card:hover { 
    transform: translateY(-8px) scale(1.02); 
    z-index: 10;
}

/* Rarity specific glow effects */
.player-card[data-rarity="common"] {
    box-shadow: 0 0 15px rgba(148, 163, 184, 0.1);
}
.player-card[data-rarity="common"]:hover {
    border-color: rgba(148, 163, 184, 0.5) !important;
    box-shadow: 0 8px 25px rgba(148, 163, 184, 0.2), inset 0 0 20px rgba(148, 163, 184, 0.1);
}

.player-card[data-rarity="medium"] {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}
.player-card[data-rarity="medium"]:hover {
    border-color: rgba(59, 130, 246, 0.8) !important;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3), inset 0 0 25px rgba(59, 130, 246, 0.15);
}

.player-card[data-rarity="pro"] {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
    /* Subtle gold background tint for pros */
    background: linear-gradient(135deg, rgba(20, 22, 30, 0.6) 0%, rgba(245, 158, 11, 0.05) 100%);
}
.player-card[data-rarity="pro"]:hover {
    border-color: rgba(245, 158, 11, 1) !important;
    box-shadow: 0 8px 40px rgba(245, 158, 11, 0.4), inset 0 0 30px rgba(245, 158, 11, 0.2);
    /* Animated shine effect for Pro */
    background: linear-gradient(135deg, rgba(20, 22, 30, 0.8) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.rarity-tag {
    position: absolute;
    top: 15px; right: 15px;
    font-size: 0.70rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Background image for player emoji/icon */
.card-img {
    width: 100%;
    height: 140px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.play-btn {
    margin-top: 1rem;
    width: 100%;
    padding: 0.8rem;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.play-btn.ready { background: var(--accent-cyan); color: #000; }

/* Mint Area */
.mint-section {
    background: linear-gradient(to right, rgba(30,255,223,0.05), transparent);
    padding: 3rem;
    border-radius: 30px;
    border: 1px dashed rgba(30,255,223,0.2);
    text-align: center;
}

.progress-mint {
    max-width: 400px; margin: 2rem auto;
}

.hidden { display: none !important; }

/* Results Modal */
.modal-overlay {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.result-box {
    background: var(--bg-dark);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid var(--accent-cyan);
    text-align: center;
    max-width: 400px;
}

.win-text { color: var(--accent-cyan); font-size: 2.5rem; font-weight: 900; }
.lose-text { color: var(--accent-red); font-size: 2.5rem; font-weight: 900; }
