* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink: #FF006E;
    --yellow: #FFBE0B;
    --purple: #8338EC;
    --dark: #2d1b3d;
    --darker: #1a0f26;
    --card: #3d2b4f;
}

body {
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    background: var(--darker);
    color: #fff;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 0, 110, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 190, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Game Hub Header */
.gamehub-header {
    background: rgba(45, 27, 61, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--yellow);
    box-shadow: 0 4px 20px rgba(255, 190, 11, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.gamehub-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.gamehub-logo {
    height: 50px;
    animation: logoBounce 2s ease-in-out infinite;
}

@keyframes logoBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.gamehub-menu {
    display: flex;
    gap: 2rem;
}

.gamehub-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
}

.gamehub-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--yellow);
    transition: width 0.3s;
}

.gamehub-link:hover {
    color: var(--yellow);
    transform: translateY(-3px);
}

.gamehub-link:hover::after {
    width: 100%;
}

.gamehub-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-coins {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 190, 11, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 2px solid var(--yellow);
}

.user-coins i {
    color: var(--yellow);
    font-size: 1.2rem;
}

.user-coins span {
    font-weight: bold;
    color: var(--yellow);
}

.btn-gamehub {
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--pink) 100%);
    color: #000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 190, 11, 0.4);
}

.btn-gamehub:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 190, 11, 0.6);
}

/* Hero */
.gamehub-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    text-align: center;
}

.hero-game-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--pink) 100%);
    color: #000;
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-game-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--pink) 50%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.hero-game-text {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-game-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2rem;
}

.game-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 190, 11, 0.1);
    padding: 1.5rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 190, 11, 0.3);
}

.game-stat-icon {
    font-size: 3rem;
}

.game-stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--yellow);
}

.game-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
}

/* Categories */
.gamehub-categories {
    padding: 3rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.categories-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.75rem 2rem;
    background: var(--card);
    border: 2px solid transparent;
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-tab.active,
.category-tab:hover {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--pink) 100%);
    color: #000;
    border-color: var(--yellow);
    transform: translateY(-3px);
}

/* Games Mosaic */
.games-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    grid-auto-rows: 250px;
}

.game-tile {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    border: 3px solid transparent;
}

.game-tile.large {
    grid-column: span 2;
    grid-row: span 2;
}

.game-tile:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--yellow);
    box-shadow: 0 15px 40px rgba(255, 190, 11, 0.5);
}

.game-thumb {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--yellow);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 2;
}

.game-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-tile:hover .game-play-overlay {
    opacity: 1;
}

.btn-play-game {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--pink) 100%);
    color: #000;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-play-game:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 20px rgba(255, 190, 11, 0.6);
}

.game-info-tile {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    padding: 1rem;
}

.game-info-tile h3,
.game-info-tile h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.game-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.game-rating {
    color: var(--yellow);
}

.game-players {
    opacity: 0.8;
}

/* Tournaments */
.tournaments-section {
    padding: 3rem 0;
    background: var(--dark);
}

.section-header-gamehub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header-gamehub h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.view-all-games {
    color: var(--yellow);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.view-all-games:hover {
    transform: translateX(5px);
}

.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tournament-card {
    background: var(--card);
    border: 3px solid rgba(255, 190, 11, 0.3);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
}

.tournament-card.featured {
    border-color: var(--yellow);
    background: linear-gradient(135deg, rgba(255, 190, 11, 0.15) 0%, var(--card) 100%);
    transform: scale(1.05);
}

.tournament-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 190, 11, 0.4);
    border-color: var(--yellow);
}

.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tournament-status {
    background: #ff4444;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.tournament-status.upcoming {
    background: var(--purple);
}

.tournament-prize {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--yellow);
}

.tournament-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--yellow);
}

.tournament-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.tournament-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.tournament-stat i {
    color: var(--yellow);
}

.btn-tournament {
    display: inline-block;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--pink) 100%);
    color: #000;
    text-decoration: none;
    text-align: center;
    border-radius: 15px;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-tournament:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 190, 11, 0.5);
}

/* Leaderboard */
.leaderboard-section {
    padding: 3rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.leaderboard-wrapper {
    background: var(--card);
    border-radius: 20px;
    padding: 2rem;
    border: 3px solid rgba(255, 190, 11, 0.3);
}

.leaderboard-top3 {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.leader-item {
    text-align: center;
    background: var(--dark);
    border-radius: 20px;
    padding: 2rem;
    border: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.leader-item.first {
    transform: scale(1.2);
    border-color: var(--yellow);
    background: linear-gradient(135deg, rgba(255, 190, 11, 0.2) 0%, var(--dark) 100%);
    z-index: 3;
}

.leader-item.second {
    border-color: rgba(255,255,255,0.5);
    z-index: 2;
}

.leader-item.third {
    border-color: rgba(255,255,255,0.3);
    z-index: 1;
}

.leader-crown {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.leader-rank {
    font-size: 2rem;
    font-weight: bold;
    color: var(--yellow);
    margin-bottom: 1rem;
}

.leader-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--pink) 100%);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    border: 3px solid var(--yellow);
}

.leader-info {
    margin-top: 1rem;
}

.leader-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.leader-score {
    color: var(--yellow);
    font-size: 1.2rem;
    font-weight: bold;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.leader-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(255, 190, 11, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--yellow);
    transition: all 0.3s;
}

.leader-row:hover {
    background: rgba(255, 190, 11, 0.1);
    transform: translateX(10px);
}

.leader-position {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--yellow);
    width: 40px;
}

.leader-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.leader-avatar-small {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--pink) 100%);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.leader-name-small {
    font-weight: bold;
}

.leader-score-small {
    color: var(--yellow);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Rewards */
.rewards-section {
    padding: 3rem 0;
    background: var(--dark);
}

.rewards-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.reward-day {
    background: var(--card);
    border: 3px solid rgba(255, 190, 11, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.reward-day.claimed {
    background: rgba(255, 190, 11, 0.1);
    border-color: var(--yellow);
    opacity: 0.7;
}

.reward-day.today {
    border-color: var(--yellow);
    background: linear-gradient(135deg, rgba(255, 190, 11, 0.2) 0%, var(--card) 100%);
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 190, 11, 0.4);
}

.reward-day.mega {
    border-color: var(--pink);
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2) 0%, var(--card) 100%);
}

.reward-day:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 190, 11, 0.3);
}

.day-number {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--yellow);
}

.reward-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.reward-amount {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--yellow);
}

.reward-badge-today {
    position: absolute;
    top: -10px;
    background: var(--yellow);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.reward-badge-mega {
    position: absolute;
    top: -10px;
    background: var(--pink);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Footer */
.gamehub-footer {
    background: var(--darker);
    padding: 3rem 0 1rem;
    border-top: 3px solid var(--yellow);
}

.footer-gamehub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-gamehub-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-gamehub-col h5 {
    color: var(--yellow);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-gamehub-col ul {
    list-style: none;
}

.footer-gamehub-col ul li {
    margin-bottom: 0.5rem;
}

.footer-gamehub-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-gamehub-col a:hover {
    color: var(--yellow);
    transform: translateX(5px);
}

.footer-gamehub-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 190, 11, 0.2);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .gamehub-menu {
        display: none;
    }
    
    .hero-game-title {
        font-size: 2.5rem;
    }
    
    .hero-game-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .games-mosaic {
        grid-template-columns: 1fr;
    }
    
    .game-tile.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .leaderboard-top3 {
        flex-direction: column;
        align-items: center;
    }
    
    .leader-item.first {
        transform: scale(1);
    }
    
    .rewards-calendar {
        grid-template-columns: repeat(4, 1fr);
    }
}
