body {
    margin: 0;
    padding: 0;
    display: block; 
    width: 100%;
    overflow-x: hidden;
    min-height: 110vh; 
}

@font-face {
    font-family: "HONEY"; 
    src: url("https://defiantdandylion.neocities.org/fonts/HONEYCOMBED.woff2") format("truetype");
}

@font-face {
    font-family: "GRIME"; 
    src: url("https://defiantdandylion.neocities.org/fonts/GrimeSlime.woff2") format("truetype");
}

#container {
    width: 900px;
    max-width: 100%; 
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    margin-bottom: 40px;
    background: #f2b705;
    border-radius: 25px; 
    font-family: 'Segoe UI', Verdana; 
    position: relative;
    overflow: hidden;
    outline: 5px solid #f2b705; 
    box-shadow: 0 10px 0px #d49a00; 
    z-index: 6;
}
#container::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%;
    width: 30%;
    height: 200%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.9) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    pointer-events: none;
    z-index: 2; 
    animation: borderGlint 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

#top-bar {
    position: relative;
    z-index: 3; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 5px solid #d49a00; 
    font-family: "HONEY";
   -webkit-text-stroke: 3px #5c3c00;
}

#game-content {
    position: relative;
    z-index: 5;
   background-image: url("https://defiantdandylion.neocities.org/dandydex/background3.gif"); 
   background-repeat: repeat;
    margin: 10px; 
    margin-top: 0;
    border-radius: 0 0 18px 18px;
    min-height: 500px;
    padding: 10px;
}
#game-content::before {
    content: " ";
    display: block;
    position: absolute; 
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.1) 50% 
    ), 
    linear-gradient(90deg, 
        rgba(255, 0, 0, 0.02), 
        rgba(0, 255, 0, 0.01), 
        rgba(0, 0, 255, 0.02)
    );
    
    z-index: 999; 
   background-size: 100% 2px, 3px 100%;
    pointer-events: none; 
    border-radius: 0 0 18px 18px; 
}

@keyframes borderGlint {
    0% { left: -150%; }
    30% { left: 150%; }
    100% { left: 150%; }
}

.bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    
}

.bar-text {
    color: #5c3c00;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 28px;
}

.home-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px; 
    background: #fff3cc;
    border: 3px solid #5c3c00;
    border-radius: 12px; 
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0px #5c3c00; 
    margin-top: -10px;
}

.home-button img {
    width: 25px; 
    height: auto;
}

.button-label {
    color: #5c3c00;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 1px;
}

.home-button:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0px #5c3c00;
    background: #ffffff;
}

.home-button:active {
    transform: translateY(4px);
    box-shadow: 0 0px 0px #5c3c00;
}
.paint-bar {

    background-image: url('https://defiantdandylion.neocities.org/dandydex/paintbar.PNG'); 
    background-size: 100% 100%; 
    background-repeat: no-repeat;
    
    width: 100%;       
    height: 60px;      
    
    display: flex;
    justify-content: space-between; 
    align-items: center;          
  
    padding: 0 30px;        
    box-sizing: border-box;     
    
    color: #5c3c00;
    font-family: "GRIME", Verdana;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.4);
}

.paint-right-text {
    font-size: 16px;
    margin-right: 20px;
    margin-top: 5px;
}

.paint-left-text {
    margin-left: 30px;
}

.char-body {
    display: flex;   
    flex-direction: row;
    flex-wrap: nowrap;  
    gap: 20px;      
    padding: 20px;    
    align-items: flex-start; 
    width: 900px; 
    box-sizing: border-box;
}

.char-portrait {
    flex: 0 0 450px; 
    width: 450px;
    border: 2px solid #d49a00; 
    border-radius: 15px; 
    background: rgba(0, 0, 0, 0.3); 
    overflow: hidden; 
    background-size: cover;
    background-position: center;
}

.char-portrait img {
    width: 100%;   
    height: auto;
    display: block; 
    background: transparent !important; 
    border: none !important;
}

.char-info {
    flex: 1;  
    min-width: 0;   
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 30;
    overflow: hidden;   
}

.status-badges {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;  
    margin-bottom: 15px;
    width: 100%;
    max-width: 100%; 
    box-sizing: border-box;
}

.badge {
    flex: 1;
    max-width: 130px; 
    min-width: 0;  
    min-height: clamp(24px, 4.5vh, 35px);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff3cc;
    border: 3px solid #5c3c00;
    border-radius: 12px;
    color: #5c3c00;
    font-size: clamp(11px, 1.3vw, 15px); 
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 3px 0px #d49a00;
    z-index: 60;
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
    padding: 0 5px;
    box-sizing: border-box;
}

.badge.rainbow-glint {
    position: relative;
    overflow: hidden;

    background: linear-gradient(
        to right, 
        rgba(255, 0, 0, 0.25), 
        rgba(255, 255, 0, 0.25), 
        rgba(0, 255, 0, 0.25), 
        rgba(0, 0, 255, 0.25), 
        rgba(238, 130, 238, 0.25)
    ), #fff3cc; 
}

.badge.rainbow-glint::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%; 
    width: 100%;
    height: 100%;
    
    background: linear-gradient(
        to right, 
        rgba(255, 0, 0, 0) 0%, 
        rgba(255, 0, 0, 0.2) 20%, 
        rgba(255, 255, 0, 0.2) 40%, 
        rgba(0, 255, 0, 0.2) 60%, 
        rgba(0, 0, 255, 0.2) 80%, 
        rgba(255, 0, 0, 0) 100%
    );
    
    z-index: 11; 
    pointer-events: none;
    animation: rainbowSlide 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes rainbowSlide {
    0% {
        left: -150%;
    }
    30% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

.data-box {
    width: 80%; 
    max-width: 250px; 
    min-height: clamp(28px, 5vh, 45px);
    padding: 5px 10px; 
    background: #e99100;
    border: 3px solid #5c3c00;
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5c3c00;
    font-family: "GRIME";
    font-size: clamp(16px, 1.5vw, 18px); 
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 4px 0px #d49a00;
    box-sizing: border-box;
    letter-spacing: 1.5px;
}

.box-icon {
    position: absolute;
    left: 10px;  
    width: clamp(16px, 2.5vw, 22px);  
    height: clamp(16px, 2.5vw, 22px);
    object-fit: contain;
}

.box-text {
    width: 100%;
    text-align: center;
}

.square-box {
    width: 70%;
    max-width: 260px; 
    aspect-ratio: 1 / 1; 
    background: #fff3cc; 
    border: 3px solid #5c3c00;
    border-radius: 15px;
    margin-top: 5px;      
    margin-bottom: 10px; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;   
    box-shadow: 0 6px 0px #d49a00; 
    z-index: 60;
    position: relative;
    box-sizing: border-box;
}

.square-img {
    width: 100%;       
    height: 100%;
    object-fit: contain; 
    border-radius: 12px; 
}

#footer {
      background: #f2b705;
      font-weight: bold;
      font-family: "GRIME";
    display: block;
    width: 100%;
    padding: 15px 10px;
    height: auto; 
    box-sizing: border-box; 
    line-height: 1.4; 
    word-wrap: break-word; 
}

.version-controls {
    display: flex;
    flex-direction: column; 
    gap: 12px;
    margin-top: 15px;
    width: 90%; 
    max-width: 280px;
}

.ver-btn {
    width: 100%; 
    height: 50px; 
    background: #fff3cc;
    border: 3px solid #5c3c00;
    border-radius: 10px;
    cursor: pointer;
    color: #5c3c00;
    box-shadow: 0 4px 0px  #d49a00;
    transition: all 0.1s;
    font-weight: 900;
    font-family: "GRIME"; 
    font-size: 18px; 
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.ver-btn.active {
    background: #e99100; 
    color: #fff3cc;  
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3); 
    transform: translateY(2px);
}

.ver-btn:hover:not(.active) {
    background: #fffaeb;
}

.ver-btn#btn-shiny:not(.active) {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135px, #fff3cc 0%, #ffeb99 100%);
}

.ver-btn#btn-shiny:not(.active)::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 2;
    pointer-events: none;
    animation: rainbowSlide 4s ease-in-out infinite; 
}

.ver-btn#btn-shiny span {
    position: relative;
    z-index: 3;
}

.description-section {
    position: relative;
    margin: 30px 10px 15px 40px;
    background: #fff3cc;
    border: 3px solid #5c3c00;
    border-radius: 15px; 
    box-shadow: 0 6px 0px #d49a00;
    overflow: visible; 
    z-index: 10;
}

.description-header {
    background: #e99100;
    padding: 0 15px; 
    border-bottom: 3px solid #5c3c00;
    border-radius: 12px 12px 0 0; 
    
    display: flex;
    justify-content: space-between; 
    align-items: flex-end; 
    
    font-family: "HONEY";
    color: #5c3c00;
    font-size: 20px;
    letter-spacing: 1px;
    -webkit-text-stroke: 3px #5c3c00;
}

.header-text {
    padding: 8px 0;
}

.tab {
    background: #c27900; 
    color: #5c3c00;
    cursor: pointer;
    font-size: 14px;
    -webkit-text-stroke: 0px #5c3c00;
    transition: all 0.2s ease;
     font-family: 'GRIME', Verdana;
    width: 90px;         
    height: 30px;        
    display: flex;       
    align-items: center;
    justify-content: center;
    text-align: center;
    clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
}

.tab.active {
    background: #fff3cc; 
    padding-bottom: 5px;  
    margin-bottom: -3px;  
    z-index: 11;
}

.tab-container {
    display: flex;
    gap: 2px;         
    align-items: flex-end;
}

.description-content {
    display: none; 
    padding: 15px;
    font-family: 'Segoe UI', Verdana;
    font-weight: 900;
    color: #5c3c00;
    font-size: 16px;
    min-height: 150px; 
}

.description-content.active-content {
    display: block; 
}

.desc-overlay-img {
    position: absolute;
    bottom: -60px; 
    left: -50px; 
    width: 200px;
    height: auto;
    z-index: 1;
    pointer-events: none;
}