/* Custom Brawl Stars Styles */

@import url('https://fonts.googleapis.com/css2?family=Lilita+One&display=swap');

:root {
    --bs-yellow: #ffcd05;
    --bs-orange: #f69e00;
    --bs-blue-dark: #0b172d;
    --bs-blue-light: #1a2b4d;
    --bs-premium-purple: radial-gradient(circle, #a166ff 0%, #6220cc 100%);
    --bs-premium-blue: radial-gradient(circle, #33ccff 0%, #1a2b4d 100%);
}

body {
    font-family: 'Lilita One', cursive;
    -webkit-tap-highlight-color: transparent;
    background-color: #0b4fba;
    overflow-x: hidden;
}

/* Moving Background Pattern */
.bg-pattern {
    position: fixed;
    inset: 0;
    background-image: url('assets/pattern.webp');
    background-repeat: repeat;
    background-size: 400px;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    animation: move-bg 60s linear infinite;
}

@keyframes move-bg {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 1000px 1000px;
    }
}

/* Premium Card Styling */
.reward-card-inner {
    background: var(--bs-premium-blue);
    border: 4px solid #3366ff;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.4);
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reward-card:hover .reward-card-inner {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 0 30px rgba(51, 102, 255, 0.6), 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: #66ccff;
}

/* The Sunburst Effect */
.card-sunburst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    height: 250%;
    transform: translate(-50%, -50%);
    background: repeating-conic-gradient(from 0deg,
            rgba(255, 255, 255, 0.1) 0deg 15deg,
            transparent 15deg 30deg);
    animation: rotate-sunburst 40s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes rotate-sunburst {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.reward-image {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.reward-card:hover .reward-image {
    transform: rotate(5deg) scale(1.1);
}

/* Text Polish */
.reward-name {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
    letter-spacing: -0.5px;
}

.claim-btn {
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

/* Modal Polish */
.modal-content {
    background: var(--bs-premium-blue);
    border: 6px solid #3366ff;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    animation: modalIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}