body{

margin:0;

font-family:Arial,sans-serif;

background:#0d0d0d;

color:white;

}



header{

text-align:center;

padding:40px;

background:#171717;

}



header h1{

font-size:42px;

color:#ffd700;

text-shadow:
0 0 15px #ffcc00;

}



header p{

color:#aaa;

}



.search-box{

position:relative;

max-width:400px;

margin:25px auto;

}



#search{

width:100%;

padding:14px;

border-radius:8px;

border:none;

font-size:16px;

}



#results{

position:absolute;

width:100%;

background:#222;

border-radius:8px;

overflow:hidden;

z-index:10;

}



.result{

padding:12px;

cursor:pointer;

border-bottom:1px solid #333;

}



.result:hover{

background:#333;

}




main{

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(350px,1fr));

gap:25px;

padding:30px;

}




section{

background:#181818;

padding:20px;

border-radius:15px;

box-shadow:0 0 20px #000;

}




.money{

color:#ffd700;

}


.time{

color:#55ffff;

}


.combat{

color:#ff5555;

}


.mob{

color:#55ff55;

}


.build{

color:#ffaa00;

}


.mine{

color:#aaaaaa;

}




.player{

display:flex;

align-items:center;

gap:12px;

padding:10px;

border-bottom:1px solid #333;

}



.rank{

color:#ffd700;

font-weight:bold;

width:30px;

}



.head{

width:40px;

height:40px;

image-rendering:pixelated;

}



.player-name{

flex:1;

}



footer{

text-align:center;

padding:25px;

color:#888;

}

/* =========================
   PLAYER PROFILE
========================= */


.profile {

    text-align: center;

}



.big-head {

    width: 120px;

    height: 120px;

    image-rendering: pixelated;

    margin: 20px;

    border-radius: 10px;

}



.profile h2 {

    color: #ffd700;

    font-size: 32px;

}




.stats {

    display: grid;

    grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;

    margin-top: 30px;

}




.stats div {

    background: #222;

    padding: 20px;

    border-radius: 15px;

    border: 1px solid #333;

    transition: 0.2s;

}



.stats div:hover {

    transform: translateY(-5px);

    background: #292929;

}





.stats span {

    display: block;

    margin-top: 10px;

    font-size: 28px;

    color: #ffd700;

    font-weight: bold;

}




.chart-title {

    margin-top: 50px;

    color: #ffd700;

}





.chart-box {

    background: #181818;

    padding: 25px;

    border-radius: 15px;

    margin-top: 20px;

}





#balanceChart {

    max-height: 400px;

}





.updated {

    margin-top: 30px;

    color: #999;

}





/* =========================
   MOBILE
========================= */


@media(max-width:600px){


header h1 {

    font-size: 30px;

}



.big-head {

    width: 90px;

    height: 90px;

}



.stats {

    grid-template-columns:
    1fr;

}



}

.beta-icon {

    display: inline-block;

    background: #2196f3;

    color: white;

    font-size: 16px;

    padding: 6px 14px;

    border-radius: 20px;

    margin-left: 12px;

    font-weight: bold;

    box-shadow: 0 0 10px #2196f3;

    vertical-align: middle;

}


/* BACK BUTTON */

footer {

    position: relative;

}


.back-button {

    display: block;

    width: fit-content;

    margin-bottom: 20px;

    padding: 10px 18px;

    background: #ffd700;

    color: #111;

    text-decoration: none;

    border-radius: 8px;

    font-weight: bold;

    transition: 0.2s;

}



.back-button:hover {

    background: #ffaa00;

    transform: translateY(-3px);

}
