:root {
    --pink: #FF5FAF;
    --green: #00FF87;
    --blue: #D9FFF8;
    --cyan: #00ffff;
    --grey: #353635;
    --background-color: #fdf6f0;
    --font-heading: "Doto", sans-serif;
    --font-body: "JetBrains Mono", monospace;
}

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

body {
    background-color: var(--background-color); 
    background-image: radial-gradient(rgba(255, 95, 175, 0.379) 1px, transparent 1px);
    background-size: 30px 30px;
    
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--grey);
    line-height: 1.5;

    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;

    align-items: center; 
}

/* MAIN WRAPPER */
#wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 4rem 0;
}

#title {
    font-family: var(--font-heading);
    font-size: 60px; /*80*/
    color: var(--pink);
    text-align: center;
    width: 100%;

}

#main {
    display: flex;
    align-items: center;
    gap: 4rem;
    justify-content: center;
    width: 100%;
}

/* PET */
#pixel-image {
    width: 100%;
    max-height: 300px; /*400*/
    object-fit: contain;
    display: block;
}

#virtualPet {
    width: 200px; /*300*/
    display: flex;
    justify-content: center;
    align-items: center;
}

/* BARS */
#stats-title {
    font-family: var(--font-body);
    color: var(--pink);
    font-size: 16px; /*18*/
    font-style: italic;
    margin-bottom: 0.5rem; /*0.5*/
    letter-spacing: 0.2rem;
}

#bar-container {
    width: 100%;
    max-width: 350px; /*500*/
    background:var(--grey);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid var(--pink);
    display: flex;
    flex-direction: column;
    gap: 0.4rem; /*0.8*/
}

.bar {
    display: flex;
    align-items: center;
    /* gap: 5px; */
}

.bar span:first-child {
    color: var(--green);
    font-size: 12px; /*14*/
    width: 90px;
    flex-shrink: 0;
}

.bar-outer {
    flex: 1;
    border: 1.8px solid var(--cyan);
    border-radius: 999px;
    height: 14px; /*16*/
    padding: 2px;
    min-width: 0;
}

.bar-fill {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: var(--blue);
    transition: width 0.5s ease;

}

.bar-fill.swag {
    background: linear-gradient(90deg, #FF5FAF, #00ffff, #00FF87);
}

.bar-val {
    color: var(--green);
    font-size: 12px;
    width: 40px;
    text-align: right;
    flex-shrink: 0;
    
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--pink);
    border-radius: 999px;
}

/* INSTRUCTIONS */
#instructions {
    width: 100%;
    max-width: 620px; /*860*/
    background: var(--grey);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid var(--pink);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inst-title {
    color: var(--pink);
    font-size: 16px; /*18*/
    font-style: italic;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2rem;
}

.inst-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--green);
    font-size: 12px;
}

.step-num {
    color: var(--pink);
    font-weight: bold;
    flex-shrink: 0;
}

.inst-step code {
    color: var(--cyan);
    font-family: var(--font-body);
    background: rgba(0, 255, 135, 0.08);
    padding: 1px 4px;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 135, 0.2);
}
