/* Base styles */
body {
    font-family: 'Fredoka One', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: none !important;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a0a1a 25%, #2d1b00 50%, #0d0d0d 75%, #1a0a1a 100%);
    background-size: 400% 400%;
    animation: halloweenGradient 8s ease infinite;
    min-height: 100vh;
}

@keyframes halloweenGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.font-fredoka {
    font-family: 'Fredoka One', cursive;
}

.font-creepster {
    font-family: 'Creepster', cursive;
}

.font-nosifer {
    font-family: 'Nosifer', cursive;
}

/* Spooky text effects */
.spooky-text {
    font-family: 'Creepster', cursive;
    color: #ff8c00;
    text-shadow: 
        2px 2px 0px #8b0000,
        4px 4px 0px #4b0082,
        6px 6px 0px #000000,
        0 0 10px rgba(255, 140, 0, 0.8);
    animation: spookyGlow 2s ease-in-out infinite alternate;
}

@keyframes spookyGlow {
    0% { 
        text-shadow: 
            2px 2px 0px #8b0000,
            4px 4px 0px #4b0082,
            6px 6px 0px #000000,
            0 0 10px rgba(255, 140, 0, 0.8);
    }
    100% { 
        text-shadow: 
            2px 2px 0px #8b0000,
            4px 4px 0px #4b0082,
            6px 6px 0px #000000,
            0 0 20px rgba(255, 140, 0, 1);
    }
}

/* Popup styles */
.popup-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    backdrop-filter: blur(5px);
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #2d1b00, #1a0a1a);
    border-radius: 25px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    text-align: center;
    border: 3px solid #ff8c00;
}

.gif-container {
    margin-bottom: 25px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: #ffffff;
}

.instruction-gif {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.instruction-text {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #ff8c00;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 140, 0, 0.5);
}


.tiktok-icon {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-image: url('../images/tiktokicon.webp');
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    margin: 0 5px;
    vertical-align: middle;
}

.three-dots {
    display: inline-block;
    width: 25px;
    height: 25px;
    background: #666;
    border-radius: 50%;
    margin: 0 5px;
    position: relative;
    vertical-align: middle;
}

.three-dots::after {
    content: '⋯';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.highlight {
    color: rgb(0,122,255);
    font-weight: bold;
}

/* Generator Modal Custom Styles */
#generator-modal {
    background: transparent !important;
}

#generator-modal .modal-content {
    background: linear-gradient(145deg, #2d1b00, #1a0a1a);
    border-radius: 2rem;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3), 0 8px 16px rgba(0,0,0,0.7);
    border: 3px solid #ff8c00;
    position: relative;
    overflow: hidden;
}

#generator-modal .modal-content::before {
    display: none;
}

#generator-modal .modal-content > * {
    position: relative;
    z-index: 1;
}

#generator-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #ff8c00;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 140, 0, 0.5);
}

.generator-urgent {
    color: #ff4500 !important;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 69, 0, 0.7);
    animation: urgentPulse 1s ease-in-out infinite alternate;
}

@keyframes urgentPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

#loading-item-img {
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 140, 0, 0.3);
    border: 2px solid #ff8c00;
    background: linear-gradient(145deg, #1a0a1a, #2d1b00);
}

.progress-bar {
    background: linear-gradient(145deg, #1a0a1a, #2d1b00);
    border-radius: 1rem;
    border: 2px solid #ff8c00;
    overflow: hidden;
    height: 1.5rem;
    margin-bottom: 1rem;
    width: 100%;
    margin: 8px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

#progress-fill {
    background: linear-gradient(90deg, #ff8c00, #ff4500, #ff8c00);
    background-size: 200% 100%;
    animation: progressGlow 2s ease-in-out infinite;
    color: #ffffff;
    font-weight: bold;
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    border-radius: 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

@keyframes progressGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8c00, #ff4500, #ff8c00);
    background-size: 200% 100%;
    animation: progressGlow 2s ease-in-out infinite;
    border-radius: 0.5rem;
}

#game-tip {
    color: #ff8c00 !important;
    font-size: 1.1rem;
    font-family: 'Poppins', 'Fredoka One', cursive;
    margin-bottom: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#verify-btn {
    background: linear-gradient(145deg, #ff8c00, #ff4500);
    color: #ffffff;
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    border: 2px solid #ffffff;
    border-radius: 1.5rem;
    padding: 1rem 0;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 1px;
    outline: none;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
    transition: all 0.3s ease;
}



#verify-btn:hover {
    background: linear-gradient(145deg, #ff4500, #ff8c00);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 140, 0, 0.5);
}

.verify-btn-appear {
    animation: verifyAppear 0.5s ease-in-out;
}

@keyframes verifyAppear {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

#verify-btn:focus, #verify-btn:active {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #222;
}

/* Rainbow animated border for legendary claim buttons */
.legendary-claim {
    position: relative;
    z-index: 1;
}

.legendary-claim::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 9999px;
    z-index: -1;
    background: #ffa500;
}

.legendary-claim::after {
    content: '';
    position: absolute;
    top: -8px; left: -8px; right: -8px; bottom: -8px;
    border-radius: 9999px;
    z-index: -2;
    border: 3px solid #000;
}

/* Rainbow banner */
.rainbow-banner {
    background: linear-gradient(45deg, #ff8c00, #ff4500, #8b0000, #ff8c00);
    background-size: 200% 200%;
    animation: halloweenBanner 3s ease-in-out infinite;
    border-radius: 1.5rem;
    padding: 0.75rem 2.5rem;
    display: inline-block;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
}

@keyframes halloweenBanner {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.rainbow-banner-text {
    color: #ffffff;
    font-family: 'Creepster', cursive;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    opacity: 1;
    filter: none;
    -webkit-text-stroke: 0;
    text-shadow: 
        2px 2px 0px #8b0000,
        4px 4px 0px #4b0082,
        6px 6px 0px #000000,
        0 0 15px rgba(255, 140, 0, 0.8);
    animation: spookyGlow 2s ease-in-out infinite alternate;
}

/* Animated, 20% transparent background for legendary items */
.legendary-claim-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 90px;
    height: 90px;
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

.pet-img-bg { 
    position: relative; 
}

/* Modal styling */
.modal-backdrop {
    background-color: transparent;
    backdrop-filter: blur(10px);
}

.price-text-old {
    color: #ff6f61;
    text-shadow: 0 0 10px rgba(255, 111, 97, 0.5);
}

/* Style for the item title with white text and black outline */
.item-title-glow {
    color: white;
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

/* Loading Animation Styles */
.loading-spinner {
    border: 4px solid rgba(160, 255, 115, 0.2);
    border-top: 4px solid #a0ff73;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 0 auto 16px auto;
}

/* Pulsing animation for the modal title */
.pulse-title {
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Modern card design */
.card-bg {
    background: #2d2d44;
    border: 3px solid #4a5568;
    background-clip: padding-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.card-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #2d2d44;
    z-index: -1;
    margin: -3px;
    border-radius: inherit;
}

.card-bg:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* Claim button styling */
.green-claim-button {
    background: #50c878;
    border: 2px solid #ffffff;
    border-radius: 25px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    font-weight: bold;
}

.green-claim-button:hover {
    background: #45b369;
}

/* Alternative button styles */
.yellow-button {
    background: #ffa500;
    border: 2px solid #ffffff;
    border-radius: 25px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    font-weight: bold;
}

.yellow-button:hover {
    background: #e69500;
}

/* Floating items background animation */
#floating-items-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.floating-item {
    position: absolute;
    opacity: 0.1;
    font-size: 2rem;
    color: #ff8c00;
    animation: floatSpooky 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatSpooky {
    0%, 100% { 
        transform: translateY(100vh) rotate(0deg); 
        opacity: 0;
    }
    10% { 
        opacity: 0.1;
    }
    90% { 
        opacity: 0.1;
    }
    50% { 
        transform: translateY(-10vh) rotate(180deg); 
        opacity: 0.2;
    }
}

/* Halloween-themed floating elements */
.halloween-float {
    position: fixed;
    font-size: 1.5rem;
    color: #ff8c00;
    opacity: 0.1;
    animation: halloweenFloat 12s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes halloweenFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.1;
    }
    95% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-10vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Section headers with white text and black outline */
.section-header, .header-title-outline {
    color: white;
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

/* Modal styling with border */
.modal-content {
    background: #2d2d44;
    border: 3px solid #4a5568;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Input field styling */
.yellow-input {
    background: #1a1a2e;
    border: 2px solid #4a5568;
    color: #ffffff;
}

.yellow-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
    outline: none;
}

.yellow-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Text colors for better contrast on yellow background */
.text-dark {
    color: #ffffff !important;
}

.text-darker {
    color: #f0f0f0 !important;
}

.blocky-bg {
    background: linear-gradient(145deg, #2d1b00, #1a0a1a);
    position: relative;
    z-index: 1;
    border: 3px solid #ff8c00;
    box-sizing: border-box;
    outline: none;
    outline-offset: 0px;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.7);
    margin-top: 0;
    overflow: hidden;
    min-width: 0;
}

.blocky-banner-bar {
    width: 100%;
    background: linear-gradient(145deg, #8b0000, #2d1b00);
    border-radius: 21px 21px 0 0;
    border: none;
    border-bottom: none;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 24px 0 20px 0;
    margin: 0 auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}



.blocky-banner-bar > * { 
    position: relative; 
    z-index: 2; 
}

.blocky-banner-bar-text {
    color: #ff8c00;
    font-family: 'Fredoka One', cursive;
    font-size: 2.1rem;
    letter-spacing: 2px;
    text-align: center;
    width: 100%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 140, 0, 0.5);
}

.pet-row {
    border: 2px solid #ff8c00;
    margin-bottom: 16px;
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    min-width: 0;
    border-radius: 16px;
    background: linear-gradient(145deg, #2d1b00, #1a0a1a);
    padding: 16px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pet-row:not(:last-child)::after {
    display: none;
}

.pet-row:hover {
    box-shadow: 0 8px 16px rgba(255, 140, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.7);
    background: linear-gradient(145deg, #3d2b10, #2a1a0a);
    border-color: #ffa500;
    z-index: 3;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.pet-img-bg {
    background: linear-gradient(145deg, #1a0a1a, #2d1b00);
    border-radius: 12px;
    border: 2px solid #ff8c00;
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.5);
    min-width: 80px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.pet-img-bg:hover {
    box-shadow: 0 6px 12px rgba(255, 140, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.7);
    border: 2px solid #ffa500;
    background: linear-gradient(145deg, #2a1a0a, #3d2b10);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.pet-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    color: #ff8c00;
    margin-right: 10px;
    word-break: break-word;
    letter-spacing: 0.5px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.claim-pill {
    background: linear-gradient(145deg, #ff8c00, #ff4500);
    color: #ffffff;
    font-weight: bold;
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    border-radius: 25px;
    padding: 12px 24px;
    border: 2px solid #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    min-width: 100px;
    height: 45px;
    margin-left: auto;
    flex-shrink: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
    transition: all 0.3s ease;
}

.claim-pill:hover {
    background: linear-gradient(145deg, #ff4500, #ff8c00);
    border: 2px solid #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 140, 0, 0.5);
}

/* Username Modal Styles */
.username-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(40, 40, 60, 0.18);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.username-modal {
    background: linear-gradient(145deg, #2d1b00, #1a0a1a);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.7);
    padding: 40px 36px 36px 36px;
    min-width: 380px;
    max-width: 90vw;
    text-align: center;
    position: relative;
    border: 3px solid #ff8c00;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.username-modal-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2.2rem;
    color: #ff8c00;
    margin-bottom: 12px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 140, 0, 0.5);
}

.username-modal-sub {
    font-family: 'Fredoka One', cursive;
    font-size: 1.15rem;
    color: #ff8c00;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.username-modal-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid #ff8c00;
    font-size: 1.1rem;
    margin-bottom: 20px;
    outline: none;
    font-family: 'Fredoka One', cursive;
    background: linear-gradient(145deg, #1a0a1a, #2d1b00);
    color: #ffffff;
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.username-modal-input:focus {
    border: 2px solid #ffa500;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.username-modal-btn {
    background: linear-gradient(145deg, #ff8c00, #ff4500);
    color: #ffffff;
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    border: 2px solid #ffffff;
    border-radius: 12px;
    padding: 18px 0;
    cursor: pointer;
    margin: 0 0 0 0;
    width: 100%;
    font-weight: bold;
    letter-spacing: 1px;
    outline: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
    transition: all 0.3s ease;
}

.username-modal-btn:hover {
    background: linear-gradient(145deg, #ff4500, #ff8c00);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 140, 0, 0.5);
}

.username-modal-error {
    color: #ff4500;
    font-size: 1rem;
    min-height: 1.2em;
    margin-bottom: 8px;
    font-family: 'Fredoka One', cursive;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.username-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #E0E0E0;
    cursor: pointer;
    font-weight: bold;
    z-index: 2;
}

.username-modal-close:hover {
    color: #ff8c00;
}

/* Responsive styles */
@media (max-width: 900px) {
    .blocky-bg { 
        border-radius: 22px; 
        border-width: 5px; 
        outline-width: 2px; 
    }
    .blocky-bg::before { 
        border-radius: 30px; 
        top: -5px; 
        left: -5px; 
        right: -5px; 
        bottom: -5px; 
    }
    .blocky-banner-bar { 
        border-radius: 22px 22px 0 0; 
        border-width: 5px; 
        outline-width: 2px; 
    }
    .blocky-banner-bar::before { 
        border-radius: 30px 30px 0 0; 
        top: -5px; 
        left: -5px; 
        right: -5px; 
        bottom: -5px; 
    }
    .pet-title { 
        font-size: 1.1rem; 
        line-height: 1.2;
    }
    .claim-pill { 
        font-size: 1rem; 
        padding: 8px 18px; 
    }
    .pet-img-bg { 
        width: 60px !important; 
        height: 60px !important; 
    }
    
    /* Center the rainbow banner on tablets */
    .rainbow-banner {
        display: block !important;
        text-align: center;
        margin: 0 auto !important;
        width: fit-content;
        max-width: 95vw;
    }
    
    .rainbow-banner-text {
        font-size: 1.3rem !important;
        letter-spacing: 1.5px !important;
        text-align: center !important;
    }
}

@media (max-width: 600px) {
    .blocky-bg { 
        border-radius: 14px; 
        border-width: 3px; 
        outline-width: 2px; 
    }
    .blocky-bg::before { 
        border-radius: 18px; 
        top: -3px; 
        left: -3px; 
        right: -3px; 
        bottom: -3px; 
    }
    .blocky-banner-bar { 
        border-radius: 14px 14px 0 0; 
        border-width: 3px; 
        outline-width: 2px; 
        padding: 14px 0 10px 0; 
    }
    .blocky-banner-bar::before { 
        border-radius: 18px 18px 0 0; 
        top: -3px; 
        left: -3px; 
        right: -3px; 
        bottom: -3px; 
    }
    .blocky-banner-bar-text { 
        font-size: 1.1rem; 
    }
    .pet-title { 
        font-size: 1rem; 
        line-height: 1.2;
    }
    .claim-pill { 
        font-size: 0.95rem; 
        padding: 6px 10px; 
    }
    .pet-img-bg { 
        width: 48px !important; 
        height: 48px !important; 
    }
    .blocky-bg, .blocky-banner-bar, .container { 
        padding-left: 0 !important; 
        padding-right: 0 !important; 
    }
    
    /* Center the rainbow banner on mobile */
    .rainbow-banner {
        display: block !important;
        text-align: center;
        margin: 0 auto !important;
        width: fit-content;
        max-width: 90vw;
    }
    
    .rainbow-banner-text {
        font-size: 1.2rem !important;
        letter-spacing: 1px !important;
        padding: 0.5rem 1.5rem !important;
        display: block;
        text-align: center !important;
        line-height: 1.2;
    }
}

/* Extra small phones */
@media (max-width: 400px) {
    .rainbow-banner {
        padding: 0.5rem 1rem !important;
        max-width: 95vw;
    }
    
    .rainbow-banner-text {
        font-size: 1rem !important;
        letter-spacing: 0.5px !important;
        padding: 0.4rem 1rem !important;
        word-break: break-word;
    }
}

/* Responsive popup styles */
@media (max-width: 600px) {
    .popup {
        padding: 25px;
        max-width: 90%;
        border-width: 2px;
    }
    
    .instruction-text {
        font-size: 1.1rem;
    }
    
    .gif-container {
        margin-bottom: 20px;
    }
}

@media (max-width: 400px) {
    .popup {
        padding: 20px;
        max-width: 95%;
    }
    
    .instruction-text {
        font-size: 1rem;
        line-height: 1.5;
    }
}


/* Pet row layout styles */
.pet-left-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.pet-title-container {
    flex: 1;
    min-width: 0;
}

/* Bar title styles */
.bar-title-og, .bar-title-secret {
    position: absolute;
    top: -8px;
    left: 8px;
    font-family: 'Fredoka One', cursive;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 8px;
    color: #ffffff;
    z-index: 10;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bar-title-og {
    background: linear-gradient(145deg, #ff8c00, #ff4500);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(255, 140, 0, 0.3);
}

.bar-title-secret {
    background: linear-gradient(145deg, #8b0000, #4b0082);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(139, 0, 0, 0.3);
}
