/* =========================================
   VARIABLES & THEME
   ========================================= */
:root {
    --background: #130C17;
    --offblack: #201127;
    --purple: #201433;
    --bluedark: #1B1E34;
    --blue: #293950;
    --greendark: #355D68;
    --green: #6AAF9D;
    --greenlight: #94C5AC;
    --yellow: #FFEB99;
    --orangelight: #FFC27A;
    --orange: #EC9A6D;
    --redlight: #D9626B;
    --red: #C24B6E;
    --reddark: #A73169;
    --reddarkest: #6D1148;
    --shot: #FFB865;
    --aura: #9CE5D2;
    --danger: #A72160;
    --target: #46AF93;
    --item: #FFE67F;
    --highlight: #FFB865;
}

/* =========================================
   RESET & TYPOGRAPHY
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: var(--background);
    color: var(--item);
    font-family: "Montserrat", sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.6;
    width: 100%;
    min-height: 100vh;
}

::selection {
    color: var(--background);
    background: var(--item);
}

a {
    color: var(--aura);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--highlight);
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   LAYOUT & CONTAINERS
   ========================================= */
#wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* =========================================
   HEADER & BANNER
   ========================================= */
.banner {
    display: block;
    margin: 0 auto 1.5rem auto;
    max-width: 100%;
    width: 350px;
    animation: floatAnim 4s ease-in-out infinite alternate;
}

.container-store {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.item-store {
    transform: scale(0.9);
    filter: drop-shadow(0px 0px 6px var(--highlight)); /* Constant glow */
}

/* =========================================
   MEDIA (IFRAME & GIFS)
   ========================================= */
.container-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    border: 2px solid var(--item);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.container-iframe iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.container-gameplay {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Strict 2x2 grid always */
    gap: 1.5rem;
    margin: 2rem 0;
    border: none;
}

.container-gameplay img {
    width: 100%;
    border-radius: 12px;
    border: 2px solid var(--item); /* Individual borders */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* =========================================
   SOCIALS & BUTTONS
   ========================================= */
.container-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem auto;
}

.item-social {
    transform: scale(0.7);
    filter: drop-shadow(0px 0px 6px var(--highlight)); /* Constant glow */
}

.container-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Gap matched exactly to the GIFs */
    margin: 2rem auto;
    width: 100%;
}

.item-button {
    display: flex;
    justify-content: center;
    flex: 1; /* Lets the buttons grow equally */
    max-width: 220px; /* Constrains them so they aren't massive, but larger than before */
}

.item-button img {
    width: 100%; /* Fills the container smoothly */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 6px 0 var(--orange); /* The thick shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; /* Prepares for hover effect */
}

.item-button img:hover {
    transform: translateY(4px); /* Pushes the button down */
    box-shadow: 0 2px 0 var(--orange); /* Shrinks the shadow to complete the 'press' */
    filter: brightness(1.2); /* Brightens the image to mimic a color change */
}

.icon {
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: scale(1.2);
}

.pixel-art {
    image-rendering: pixelated;
}

/* =========================================
   GAME INFO & LISTS
   ========================================= */
.feature-list {
    margin: 1.5rem 0 1.5rem 2rem;
}

.feature-list li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--item);
}

/* =========================================
   WISHLIST BUTTON
   ========================================= */
.wishlist-button {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    max-width: 400px;
    min-height: 80px;
    margin: 4rem auto;
    background-color: var(--highlight);
    box-shadow: 0 6px 0 var(--orange);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.wishlist-button:hover {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--orange);
    background-color: var(--yellow);
}

.wishlist-button p {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--background);
    margin: 0;
}

/* =========================================
   TEAM SECTION
   ========================================= */
.team-section {
    margin-top: 3rem;
}

.team-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--item);
    text-transform: uppercase;
}

.container-team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.item-team {
    background-color: var(--bluedark);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    border: 2px solid transparent;
    transition: border 0.3s ease;
}

.item-team:hover {
    border: 2px solid var(--highlight);
}

.member {
    padding: 1.5rem 1rem 0 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.member-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--item);
    margin-bottom: 0.2rem;
}

.member-role {
    font-size: 1rem;
    color: var(--highlight);
    margin-bottom: 1rem;
}

.member img {
    margin: 0 auto;
    max-width: 150px;
    height: auto;
}

.member-description {
    background-color: var(--offblack);
    padding: 1.5rem;
    text-align: center;
    font-style: italic;
    font-size: 0.95rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--purple);
    text-align: center;
}

.rights {
    font-size: 0.85rem;
    color: var(--greenlight);
    opacity: 0.8;
    margin: 0;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes floatAnim {
    0% { transform: translateY(-5px); }
    100% { transform: translateY(5px); }
}

/* =========================================
   MOBILE ADJUSTMENTS
   ========================================= */
@media screen and (max-width: 600px) {
    .wishlist-button p {
        font-size: 1.8rem;
    }
    
    .team-title {
        font-size: 2.2rem;
    }
    
    /* Ensuring buttons remain somewhat visible on extremely tiny screens */
    .container-buttons {
        flex-direction: row;
    }
}
