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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f23;
    color: #fff;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.game-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.game-container {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #333;
}

.current-price {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #27ae60;
    text-align: center;
}

.price-change {
    font-size: 1rem;
    margin-top: 0.5rem;
}

.timeframe-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.timeframe-btn {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.timeframe-btn.active {
    background: #f39c12;
}

.prediction-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.prediction-input label {
    font-weight: bold;
    color: #bbb;
}

.prediction-input input {
    background: #333;
    color: white;
    border: 1px solid #555;
    padding: 12px 16px;
    border-radius: 6px;
    width: 120px;
    text-align: center;
    font-size: 1rem;
}

.predict-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.predict-btn:hover {
    opacity: 0.9;
}

.quick-predictions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.quick-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.quick-btn:hover {
    opacity: 0.9;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.help-btn {
    background: #666;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 5px;
}

.help-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.help-content {
    background: #1a1a2e;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid #333;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close-btn:hover {
    color: white;
}

.help-content h3 {
    color: #f39c12;
    margin-bottom: 1rem;
    text-align: center;
}

.help-text p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.help-text strong {
    color: #f39c12;
}

.player-name-section {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.player-name-section input {
    background: #333;
    color: white;
    border: 1px solid #555;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
}

.player-name-section button {
    background: #f39c12;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.active-predictions {
    margin: 1.5rem 0;
    max-height: 200px;
    overflow-y: auto;
}

.prediction-item {
    background: rgba(255,255,255,0.05);
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prediction-countdown {
    color: #f39c12;
    font-weight: bold;
}

.game-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
}

.game-result.win {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.game-result.lose {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.leaderboard {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.leaderboard h3 {
    margin-bottom: 1rem;
    color: #f39c12;
    text-align: center;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.leaderboard-rank {
    font-weight: bold;
    color: #f39c12;
}

.affiliate-section {
    max-width: 600px;
    margin: 3rem auto;
    padding: 0 1rem;
    text-align: center;
}

.affiliate-container h2 {
    margin-bottom: 1rem;
    color: #f39c12;
    font-size: 2rem;
}

.affiliate-container p {
    margin-bottom: 2rem;
    color: #bbb;
    font-size: 1.1rem;
}

.deal-card {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.deal-card:hover {
    transform: translateY(-5px);
}

.exchange-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #f39c12;
}

.bonus-amount {
    font-size: 2.2rem;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 1rem;
}

.deal-details {
    margin-bottom: 2rem;
    color: #bbb;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    opacity: 0.9;
}

.price-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    font-size: 1rem;
    color: #888;
}

.ad-container {
    max-width: 728px;
    margin: 2rem auto;
    text-align: center;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .game-stats {
        font-size: 1rem;
    }
    
    .affiliate-container h2 {
        font-size: 1.5rem;
    }
    
    .bonus-amount {
        font-size: 1.8rem;
    }
}
