:root {
    --brawl-yellow: #ffce2b;
    --brawl-blue: #0076a3;
    --brawl-dark-blue: #004666;
    --brawl-stroke: #000000;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lilita One', cursive;
    /* Close match to Brawl Stars font */
    background: url('assets/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

.main-container {
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay to make text pop */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Header & Logo */
header {
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px;
}

.game-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0px 5px 0px rgba(0, 0, 0, 0.5));
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Content Area */
.content {
    width: 100%;
    max-width: 500px;
}

h1 {
    font-size: 2.5rem;
    margin: 10px 0;
    text-shadow: 3px 3px 0px black;
    -webkit-text-stroke: 1.5px black;
    color: var(--brawl-yellow);
}

h2 {
    font-size: 1.8rem;
    margin: 10px 0;
    text-shadow: 2px 2px 0px black;
    -webkit-text-stroke: 1px black;
    color: white;
}

p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px black;
}

/* Voucher List */
.voucher-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.brawl-button {
    background-color: var(--brawl-yellow);
    color: black;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 15px 20px;
    border: 3px solid black;
    border-radius: 10px;
    box-shadow: 0px 6px 0px black;
    /* 3D effect */
    transition: all 0.1s ease-in-out;
    text-transform: uppercase;
    position: relative;
    /* Removed overflow: hidden so badge can stick out */
    cursor: pointer;
}

.brawl-button:active {
    transform: translateY(6px);
    box-shadow: 0px 0px 0px black;
}

.brawl-button:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

/* New Tag Badge */
.new-tag {
    position: absolute;
    top: -12px;
    right: -10px;
    background-color: #ff3b30;
    color: white;
    font-size: 0.9rem;
    padding: 2px 8px;
    border-radius: 8px;
    border: 2px solid black;
    text-shadow: 1px 1px 0px black;
    animation: popup 1.5s infinite alternate;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

@keyframes popup {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-2px) scale(1.05);
    }
}

/* Decorations */
.decorations {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    pointer-events: none;
    /* Let clicks pass through if needed */
}

.decor-image {
    width: 80px;
    height: auto;
    filter: drop-shadow(3px 3px 0px black);
}

.decor-image.left {
    transform: rotate(-10deg);
}

.decor-image.right {
    transform: rotate(10deg);
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    .main-container {
        padding: 10px;
    }

    header {
        margin-bottom: 10px;
        max-width: 250px;
    }

    h1 {
        font-size: 2rem;
        margin: 5px 0;
    }

    h2 {
        font-size: 1.4rem;
        margin: 5px 0;
    }

    p {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .voucher-list {
        gap: 12px;
    }

    .brawl-button {
        font-size: 1.2rem;
        padding: 12px 15px;
        border-width: 2px;
        box-shadow: 0px 4px 0px black;
    }

    .brawl-button:active {
        transform: translateY(4px);
        box-shadow: 0px 0px 0px black;
    }

    .new-tag {
        font-size: 0.8rem;
        padding: 1px 6px;
        top: -8px;
        right: -5px;
    }

    .decorations {
        margin-top: 25px;
    }

    .decor-image {
        width: 60px;
    }
}