/* 1. Main Background Pattern */
body {
    background-image: url('https://i.pinimg.com/736x/b6/7d/86/b67d867d4208616b0d2b1125a9a89eaa.jpg');
    background-repeat: repeat;
    margin: 0;
    padding: 20px;
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: center;
    color: #edd3e6;
}

/* Custom Cursor for the whole page */
body {
    cursor: url('https://64.media.tumblr.com/tumblr_ma87zyEpuf1qid2nw.gif'), auto;
}

/* Makes sure buttons also show the custom cursor */
button, a {
    cursor: url('https://64.media.tumblr.com/tumblr_ma87zyEpuf1qid2nw.gif'), pointer !important;
}

/* 2. The Container Frame */
#game-container {
    /* Your cute layout image */
    background-image: url('https://64.media.tumblr.com/7fe163ee9c70bf05319a06350395122a/d63dcd6120c0bbfb-30/s1280x1920/9aa37d3eef05004be399f42b5186696e0e525e5d.pnj');
    background-size: 100% 100%;
    background-color: transparent;
    width: 900px; 
    min-height: 800px; /* Tall enough for content */
    padding: 90px 50px; /* Pushes content inside the 'screen' area */
    box-sizing: border-box;
    text-align: center;
    position: relative;
    border: none;
    box-shadow: none !important; /* NO SHADOWS */
}

/* 3. The Image Buttons */
.pull-btn {
    /* Your texture image for buttons */
    background-image: url('https://i.pinimg.com/1200x/ab/ed/f4/abedf4c3f379520b906345c9f44c13b5.jpg');
    background-size: cover;
    color: #000;
    border: 2px solid #000;
    padding: 15px 20px;
    margin: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    box-shadow: none !important; /* NO SHADOWS */
    border-radius: 0px; /* Square/Sharp edges */
}

.pull-btn:hover {
    filter: brightness(1.1);
}

/* --- SHRINK THE COLLECTION AREA --- */

#collection-grid {
    display: grid;
    /* This makes 5 small columns instead of 4 */
    grid-template-columns: repeat(5, 1fr); 
    gap: 8px;
    padding: 10px;
    
    /* This stops the whole grid from getting too wide */
    max-width: 450px; 
    margin: 0 auto; /* Centers the grid on the page */
}

.char-slot {
    /* We set a specific small size here */
    width: 70px; 
    height: 70px;
    
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #ffb6c1;
    border-radius: 8px; /* Makes the corners soft and cute */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.char-slot img {
    /* 'contain' ensures the OC fits inside the small box */
    width: 90%; 
    height: 90%;
    object-fit: contain;
}

/* 5. Pop-Ups (Modals) */
.hidden { display: none !important; }

#reward-modal, #daily-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    /* Using your background image for the pop-up too */
    background-image: url('https://i.pinimg.com/736x/cd/96/5f/cd965ff6ffe786f4fde35bd9846bbfc1.jpg');
    background-size: cover;
    padding: 30px;
    border: 3px solid #fff;
    text-align: center;
    max-width: 400px;
    color: #fff;
    text-shadow: 1px 1px 0 #000;
}

#reward-img {
    width: 150px;
    border: 2px solid #fff;
    margin: 10px;
}

/* 6. Daily Calendar Grid */
#daily-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}
.daily-day {
    background: rgba(0,0,0,0.5);
    border: 1px solid #fff;
    padding: 10px;
    font-size: 12px;
}
.daily-day.active {
    border: 2px solid #ffb6c1;
    background: rgba(255,182,193, 0.3);
}

/* Stickers */
.sticker { position: fixed; pointer-events: none; }
.skull-left { top: 20px; left: 20px; width: 80px; }
.heart-right { top: 80px; right: 20px; width: 60px; }
.danger-sign { bottom: 20px; left: 20px; width: 70px; }
.icon { width: 20px; vertical-align: middle; }

/* --- CUTE CUSTOM SCROLLBAR --- */

/* 1. The Width */
::-webkit-scrollbar {
    width: 12px; /* Keeps it thin and cute */
}

/* 2. The Background Track */
::-webkit-scrollbar-track {
    background: #1a0f12; /* Very dark background */
    border-left: 1px solid #ffb6c1; /* A tiny pink line on the left */
}

/* 3. The Moving Handle (Thumb) */
::-webkit-scrollbar-thumb {
    background-color: #ffb6c1; /* The main Pink color */
    border-radius: 10px; /* Makes it round and soft */
    border: 3px solid #1a0f12; /* Creates a gap so it looks like a pill */
}

/* 4. When you hover over it */
::-webkit-scrollbar-thumb:hover {
    background-color: #ffffff; /* Turns white when you grab it! */
    cursor: pointer;
}

.mouse-trail {
    position: absolute;
    width: 15px; /* Size of the trail icons */
    height: 15px;
    pointer-events: none; /* Keeps the trail from blocking clicks */
    z-index: 10000;
    animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.5) translateY(20px); }
}

.code-zone {
    margin: 20px auto;
    padding: 15px;
    max-width: 300px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px dashed #ffb6c1;
    border-radius: 10px;
    text-align: center;
}

.code-zone input {
    width: 80%;
    padding: 8px;
    margin-bottom: 10px;
    background: #222;
    border: 1px solid #ffb6c1;
    color: white;
    text-align: center;
    border-radius: 5px;
}

.code-zone button {
    background: #ffb6c1;
    color: black;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}

.code-zone button:hover {
    background: white;
    transform: scale(1.05);
}