html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    background-color: #1e293b;
    color: white;
    font-family: 'Arial', sans-serif;
}

.loader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.loader>* {
    margin: 0.5em 0;
}

input[type='text'] {
    padding: 0.75em;
    border: none;
    border-radius: 0.5em;
    font-size: 1em;
    background-color: #334155;
    color: white;
    margin-bottom: 1em;
}

button {
    padding: 0.75em 1.5em;
    border: none;
    border-radius: 0.5em;
    background-color: #6842FF;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #6842ff;
}

.css-inwm4l,
.css-13yk3gq,
#qr-modal-toggle-button,
a[target="_blank"] {
    display: none !important;
}

#gameInput {
    display: none;
}

#gameInput.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

a {
    color: #a993ff;
    cursor: pointer
}

#recommendationsPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #334155;
    color: white;
    padding: 20px;
    border-radius: 0.5em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    width: 80%;
    max-width: 600px;
}

#recommendationsPopup h2 {
    margin-top: 0;
}

#recommendationsPopup ul {
    list-style-type: none;
    padding: 0;
}

#recommendationsPopup li {
    margin-bottom: 0.5em;
}

#recommendationsPopup a {
    color: #a993ff;
    text-decoration: none;
}

#recommendationsPopup a:hover {
    text-decoration: underline;
}

#recommendationsPopup.active {
    display: block;
}

.bookmarklet-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #6842FF;
    color: white;
    font-size: 1em;
    text-decoration: none;
    border-radius: 5px;
    cursor: grab;
}

.bookmarklet-button:active {
    cursor: grabbing;
}

#cookieConsentBanner {
    display: none;
    /* Initially hidden by JavaScript if cookie exists */
    position: fixed;
    bottom: 15px;
    /* Elevate slightly from the absolute bottom */
    left: 50%;
    /* Center horizontally */
    width: 90%;
    /* Don't take full width on larger screens */
    max-width: 550px;
    /* Max width for the banner */
    background-color: #2d3748;
    /* Dark bluish-gray, or your preferred dark gray */
    color: #e2e8f0;
    /* Light gray text for readability */
    padding: 18px 25px;
    border-radius: 8px;
    /* Rounded corners */
    z-index: 100000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Softer shadow */
    text-align: left;
    /* Align text to the left for a cleaner look in a smaller box */
    font-family: 'Arial', sans-serif;
    /* Or your site's font */
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

#cookieConsentBanner p {
    margin: 0 0 15px 0;
    /* Paragraph bottom margin */
    font-size: 13.5px;
    /* Slightly smaller text for the paragraph */
}

#cookieConsentBanner a {
    color: #a3bffa;
    /* A lighter, accessible blue for links on dark bg */
    text-decoration: underline;
    font-weight: normal;
    /* Normal weight for links in paragraph */
}

#cookieConsentBanner a:hover {
    color: #c3daff;
}

.cookie-buttons-container {
    /* Flex container for buttons */
    display: flex;
    justify-content: flex-end;
    /* Align buttons to the right */
    gap: 10px;
    /* Space between buttons */
    margin-top: 10px;
}

#cookieConsentBanner button {
    background-color: #6842FF;
    /* YOUR PRIMARY PURPLE */
    color: white;
    border: none;
    padding: 8px 16px;
    /* Smaller padding for smaller buttons */
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    /* Smaller font for buttons */
    transition: background-color 0.2s ease, transform 0.1s ease;
    min-width: 100px;
    /* Minimum width for buttons */
    text-align: center;
}

#cookieConsentBanner button:hover {
    background-color: #5737d9;
    /* Darker shade of purple on hover */
    transform: translateY(-1px);
    /* Slight lift on hover */
}

/* "Decline" or "Essentials" button - more subtle */
#cookieConsentBanner button#cookieDeclineButton {
    background-color: #4a5568;
    /* A medium gray */
    color: #e2e8f0;
    /* Light gray text */
}

#cookieConsentBanner button#cookieDeclineButton:hover {
    background-color: #718096;
    /* Lighter gray on hover */
}

/* Adjust body padding when banner is visible */
/* The height of this banner will be less, so padding can be smaller */
body.cookie-banner-visible {
    /* Calculate based on banner height + bottom offset + some leeway */
    /* Approx: 18+13.5 (font-size*line-height) + 15 + 10 + 35 (button height) + 18 + 15 = ~115px */
    padding-bottom: 120px;
    /* Adjust as needed */
}

/* Responsive adjustments for very small screens */
@media (max-width: 600px) {
    #cookieConsentBanner {
        width: 95%;
        bottom: 10px;
        padding: 15px;
    }

    #cookieConsentBanner p {
        font-size: 13px;
    }

    .cookie-buttons-container {
        flex-direction: column;
        /* Stack buttons vertically */
        align-items: stretch;
        /* Make buttons full width of container */
    }

    #cookieConsentBanner button {
        width: 100%;
        /* Full width buttons */
        margin: 5px 0;
        /* Adjust margin for stacked buttons */
        font-size: 14px;
        /* Slightly larger font for touch targets */
        padding: 10px 15px;
    }

    body.cookie-banner-visible {
        padding-bottom: 180px;
        /* May need more padding if buttons stack */
    }
}