body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    background-color: #f0f8ff;
    display: flex;
    justify-content: center;
    align-items: center;
}

#app-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 500px; /* Max width for larger screens */
    max-height: calc(100% - 60px); /* Account for UI container */
    aspect-ratio: 3 / 4;
    border: 5px solid #fff;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    overflow: hidden;
}

#scene-image {
    width: 100%;
    height: 100%;
    display: block;
}

#stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    /* width is now set dynamically via JS */
    height: auto;
    cursor: pointer;
    opacity: 0.6;
    filter: grayscale(100%) brightness(300%);
    transition: all 0.3s ease;
}

.star:hover {
    transform: scale(1.2);
    opacity: 1;
    filter: none;
}

.star.found {
    opacity: 1;
    transform: scale(1.1);
    pointer-events: none; /* Can't click again */
    filter: none;
}

#ui-container {
    position: static;
    transform: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1.2em; /* Adjusted for more text */
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
    margin-bottom: 10px;
    text-align: center;
    width: auto;
    white-space: nowrap; /* Prevent text wrapping on small screens */
}

#win-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

#win-message.show {
    opacity: 1;
    pointer-events: auto;
}

#win-message h2 {
    font-size: 3em;
    margin: 0;
    text-shadow: 2px 2px 5px black;
}

#win-message p {
    font-size: 1.5em;
}

#next-level-button {
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    background-color: #ffd700;
    color: #333;
    margin-top: 20px;
    transition: transform 0.2s ease;
}

#next-level-button:hover {
    transform: scale(1.05);
}

.hidden {
    display: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #ui-container {
        font-size: 1em;
        padding: 8px 15px;
    }
    
     #win-message h2 {
        font-size: 2em;
    }

    #win-message p {
        font-size: 1em;
    }

    #next-level-button {
        padding: 12px 25px;
        font-size: 1em;
    }
}