@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    --bg-dark: #0a1128;
    --bg-card: rgba(16, 27, 61, 0.7);
    --border-card: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-blue: #38bdf8;
    --accent-cyan: #06b6d4;
    --accent-gold: #f59e0b;
    --accent-purple: #a855f7;
    --card-hover-glow-1: rgba(56, 189, 248, 0.25);
    --card-hover-glow-2: rgba(168, 85, 247, 0.25);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background animated water/gradient overlay */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 20%, #1e295d 0%, #0a1128 70%);
    z-index: -2;
}

.bg-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -50px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: floatUp 12s infinite linear;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-110vh) scale(1.3);
        opacity: 0;
    }
}

/* Header */
header {
    text-align: center;
    margin-top: 3.5rem;
    margin-bottom: 2rem;
    padding: 0 1.5rem;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent-blue);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

h1.main-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

p.subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Main Container */
main.container {
    width: 100%;
    max-width: 1100px;
    padding: 1rem 1.5rem 3rem 1.5rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

/* Game Card Style */
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: height 0.3s ease;
}

.game-card.fish-game::before {
    background: linear-gradient(90deg, #38bdf8, #0284c7);
}

.game-card.magnet-game::before {
    background: linear-gradient(90deg, #a855f7, #ec4899);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
}

.game-card.fish-game:hover {
    box-shadow: 0 20px 40px var(--card-hover-glow-1);
}

.game-card.magnet-game:hover {
    box-shadow: 0 20px 40px var(--card-hover-glow-2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.card-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.fish-game .card-icon-wrapper {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(2, 132, 199, 0.3));
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.magnet-game .card-icon-wrapper {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.3));
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.tag-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fish-game .tag-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.magnet-game .tag-badge {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.features-list li span.bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.fish-game .features-list li span.bullet {
    background-color: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
}

.magnet-game .features-list li span.bullet {
    background-color: var(--accent-purple);
    box-shadow: 0 0 8px var(--accent-purple);
}

.btn-play {
    width: 100%;
    padding: 0.95rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.fish-game .btn-play {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

.magnet-game .btn-play {
    background: linear-gradient(135deg, #9333ea, #c084fc);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

/* Duel Card - full width banner */
.game-card.duel-game {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}
.game-card.duel-game > div { flex: 1 1 auto; }
.game-card.duel-game .btn-play {
    width: auto;
    padding: 1rem 2rem;
    white-space: nowrap;
}
.game-card.duel-game::before {
    background: linear-gradient(90deg, #f59e0b, #ec4899);
}
.duel-game .card-icon-wrapper {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(236, 72, 153, 0.3));
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.duel-game .tag-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.duel-game .features-list li span.bullet {
    background-color: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

@media (min-width: 641px) {
    .duel-game .features-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem 1.5rem;
    }
}
.duel-game .btn-play {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}
.game-card.duel-game:hover {
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.25);
}
.duel-game:hover .btn-play {
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

.game-card:hover .btn-play {
    transform: scale(1.02);
}

.fish-game:hover .btn-play {
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
}

.magnet-game:hover .btn-play {
    box-shadow: 0 6px 20px rgba(192, 132, 252, 0.6);
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    h1.main-title {
        font-size: 2.2rem;
    }
    p.subtitle {
        font-size: 1rem;
    }
    .games-grid {
        grid-template-columns: 1fr;
    }
    .game-card.duel-game {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .game-card.duel-game .btn-play {
        width: 100%;
    }
}
