/* ========================================
   FLIP COIN - RETRO ARCADE THEME
   ======================================== */

:root {
    --coin-gold: #FFD700;
    --coin-yellow: #FFF44F;
    --arcade-cyan: #00E5FF;
    --arcade-green: #76FF03;
    --arcade-pink: #FF4081;
}

.coin-page {
    background: linear-gradient(to bottom, #1a1a2e, #0f0f1e);
    color: #ffffff;
}

/* Hero Section */
.coin-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1), transparent 70%);
}

.coin-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 215, 0, 0.03) 2px, rgba(255, 215, 0, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 215, 0, 0.03) 2px, rgba(255, 215, 0, 0.03) 4px);
    animation: pixelMove 20s linear infinite;
}

@keyframes pixelMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(4px, 4px);
    }
}

.coin-tagline {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--coin-gold);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
    font-family: 'DM Sans', monospace;
}

.coin-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    font-family: 'DM Sans', sans-serif;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
}

.coin-text-primary {
    background: linear-gradient(135deg, var(--coin-gold), var(--coin-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }
}

.coin-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--arcade-cyan);
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease-out 0.4s backwards;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.coin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.4s ease-out 0.6s backwards;
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.08);
    border: 3px solid var(--coin-gold);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.stat-box::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, var(--coin-gold), var(--coin-yellow));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 8px;
}

.stat-box:hover::before {
    opacity: 0.3;
}

.stat-box:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

.stat-val {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--coin-gold);
    margin-bottom: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.stat-lbl {
    display: block;
    font-size: 0.875rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'DM Sans', monospace;
}

/* Sections */
.coin-section {
    padding: 6rem 0;
    position: relative;
}

.section-head {
    text-align: center;
    margin-bottom: 4rem;
}

.section-head h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(135deg, var(--coin-gold), var(--arcade-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.accent-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--coin-gold), var(--arcade-cyan));
    margin: 0 auto;
    border-radius: 2px;
}

/* Feature Cards */
.coin-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.coin-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.coin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--coin-gold), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.coin-card:hover::before {
    transform: scaleX(1);
}

.coin-card:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: var(--coin-gold);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
}

.coin-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--coin-gold);
    font-family: 'DM Sans', sans-serif;
}

.coin-card p {
    color: #ccc;
    line-height: 1.8;
}

/* How to Play Section */
.how-to-play {
    background: rgba(0, 229, 255, 0.05);
    border: 2px solid rgba(0, 229, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.how-to-play h3 {
    color: var(--arcade-cyan);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: 'DM Sans', sans-serif;
    text-align: center;
}

.how-to-play ul {
    list-style: none;
    padding: 0;
}

.how-to-play li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 229, 255, 0.05);
    border-left: 4px solid var(--arcade-cyan);
    border-radius: 4px;
    color: #ddd;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.how-to-play li:hover {
    background: rgba(0, 229, 255, 0.1);
    transform: translateX(10px);
}

/* Gallery */
.coin-gallery-main {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 4px solid var(--coin-gold);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
    background: #000;
}

.coin-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    image-rendering: pixelated;
}

.coin-gallery-main img:hover {
    transform: scale(1.02);
}

.coin-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.coin-thumb {
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    background: #000;
}

.coin-thumb:hover,
.coin-thumb.active {
    border-color: var(--coin-gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.coin-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    image-rendering: pixelated;
}

.coin-thumb:hover img {
    transform: scale(1.1);
}

/* Button */
.btn-coin {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, var(--coin-gold), var(--coin-yellow));
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

.btn-coin:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
}

/* Why Play Section */
.why-play-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-play-item {
    padding: 1.5rem;
    background: rgba(118, 255, 3, 0.05);
    border-radius: 8px;
    border: 2px solid rgba(118, 255, 3, 0.3);
    transition: all 0.3s ease;
}

.why-play-item:hover {
    background: rgba(118, 255, 3, 0.1);
    border-color: var(--arcade-green);
    transform: translateY(-5px);
}

.why-play-item::before {
    content: '▶';
    color: var(--arcade-green);
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Footer */
.coin-footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 3rem 0;
    text-align: center;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .coin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .coin-thumbs {
        grid-template-columns: 1fr;
    }
}