.cat-playground-body {
    overflow-x: hidden;
    position: relative;
}

.cat-content {
    min-height: 1400px;
    position: relative;
}

.cat-main {
    grid-template-areas:
        "nav cat-controls"
        ". cat-controls";
}

.cat-controls-box {
    background: rgba(0, 30, 0, 0.9);
    border-radius: 10px;
    border: 2px solid #00FF00;
    box-shadow: 
        0 4px 15px rgba(42, 87, 30, 0.3),
        0 0 15px rgba(0, 255, 0, 0.1);
    padding: 20px;
    backdrop-filter: blur(2px);
    position: relative;
    grid-area: cat-controls;
    margin: 10px;
    margin-right: 3px;
    z-index: 1000;
}

.cat-controls-box::before {
    content: 'CAT_ACTIVATION';
    position: absolute;
    top: -8px;
    left: 15px;
    background: #001100;
    color: #00FF00;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    border: 1px solid #00FF00;
}

.cat-intro {
    text-align: center; 
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 20, 0, 0.7);
    border-radius: 8px;
    border: 1px dashed #00FF00;
}

.cat-intro h3 {
    text-align: left; 
    margin: 0 0 10px 0;
}

.cat-instructions {
    margin-top: 10px;
    font-size: 13px;
    color: #80FF80;
}

.cat-selection h4 {
    color: #00FF00;
    margin-bottom: 10px;
    text-align: center;
}

.cat-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.cat-thumb {
    background: rgba(0, 15, 0, 0.8);
    border: 1px solid #00FF00;
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cat-thumb:hover {
    background: rgba(0, 255, 0, 0.2);
    transform: scale(1.05);
}

.cat-thumb img {
    width: 100%;
    max-height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cat-thumb span {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #80FF80;
}

.cat-controls {
    text-align: center;
}

.cat-controls button {
    background: rgba(0, 30, 0, 0.9);
    border: 1px solid #00FF00;
    color: #80FF80;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cat-controls button:hover {
    background: rgba(0, 255, 0, 0.2);
    color: #00FF00;
    transform: scale(1.05);
}

.floating-cat {
    position: fixed !important;
    cursor: grab;
    z-index: 9999; 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-cat:active {
    cursor: grabbing;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.7);
}

.floating-cat img {
    max-width: 200px; 
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain; 
    border: 3px solid #00FF00;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
    transition: all 0.2s ease;
}

.cat-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 20, 0, 0.95);
    color: #80FF80;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    border: 1px solid #00FF00;
    display: none;
    z-index: 10000;
}

.floating-cat:hover .cat-tooltip {
    display: block;
}

@keyframes floatPaw {
    0% { 
        transform: translateY(0) translateX(0) rotate(0deg); 
        opacity: 0.8; 
    }
    100% { 
        transform: translateY(var(--fall-distance, 400px)) translateX(var(--horizontal-drift, 0px)) rotate(360deg); 
        opacity: 0; 
    }
}

.paw-snow {
    position: fixed !important;
    pointer-events: none;
    filter: hue-rotate(90deg) brightness(1.3);
    animation: floatPaw var(--fall-duration, 4s) linear forwards;
    z-index: 9998;
    will-change: transform, opacity; 
}

.cat-footer {
    margin-top: 30px;
    position: relative;
    z-index: 1000;
}

.nav {
    z-index: 1000;
    position: relative;
}

#content {
    z-index: 1000;
    position: relative;
}

.cat-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cat-selection-header h4 {
    margin: 0;
    color: #00FF00;
}

#refresh-gallery {
    background: rgba(0, 30, 0, 0.9);
    border: 1px solid #00FF00;
    color: #80FF80;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

#refresh-gallery:hover {
    background: rgba(0, 255, 0, 0.2);
    color: #00FF00;
}

.floating-gif {
    position: fixed !important;
    z-index: 9997;
    pointer-events: auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-gif:hover {
    z-index: 9998;
}