.resultswrap {
    width: 90%;
    max-width: 800px;
    margin: 30px auto;
    padding: 10px,10px;
    background: linear-gradient(to bottom, #8d6e63 0%, #5d4037 100%);
    border: 4px solid #4e342e;
    border-radius: 15px;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.5),
        inset 0 0 15px rgba(62, 39, 35, 0.7);
    overflow: hidden;
    font-family: 'Courier New', monospace;
    box-sizing: border-box;
    max-height: 65vh; 
}

.resultstable {
    width: 100%;
    border-collapse: collapse;
    color: #ffecb3;
    text-align: center;
    table-layout: fixed;
    
}

.resultstable thead {
    background: linear-gradient(to bottom, #6d4c41 0%, #4e342e 100%);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px #3e2723;
}

.resultstable th {
    padding: 10px 10px;
    border-bottom: 3px solid #3e2723;
}

.resultstable th.pos {
    width: 15%;
}

.resultstable th.name {
    width: 55%;
}

.resultstable th.score {
    width: 30%;
}

.resultstable tbody tr {
    background: rgba(121, 85, 72, 0.4);
    border-bottom: 2px solid #4e342e;
    transition: background-color 0.3s;
}

.resultstable tbody tr:nth-child(odd) {
    background: rgba(141, 110, 99, 0.4);
}

/* Стили для первых трех мест */
.resultstable tbody tr:nth-child(1) {
    background: linear-gradient(to right, rgba(255, 215, 0, 0.3), rgba(121, 85, 72, 0.4));
    color: #ffd54f;
    font-weight: bold;
    font-size: 1.3em;
    text-shadow: 0 0 8px rgba(255, 213, 79, 0.7);
}

.resultstable tbody tr:nth-child(2) {
    background: linear-gradient(to right, rgba(192, 192, 192, 0.3), rgba(121, 85, 72, 0.4));
    color: #e0e0e0;
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 0 0 5px rgba(224, 224, 224, 0.5);
}

.resultstable tbody tr:nth-child(3) {
    background: linear-gradient(to right, rgba(205, 127, 50, 0.3), rgba(121, 85, 72, 0.4));
    color: #ffb74d;
    font-weight: bold;
    font-size: 1.1em;
    text-shadow: 0 0 4px rgba(255, 183, 77, 0.5);
}

.resultstable td {
    padding: 10px 10px;
    font-size: 1.1em;
    text-shadow: 1px 1px 1px #3e2723;
}

/* Полоса прокрутки для контейнера (если нужно) */
.resultswrap::-webkit-scrollbar {
    width: 12px;
}

.resultswrap::-webkit-scrollbar-track {
    background: #5d4037;
}

.resultswrap::-webkit-scrollbar-thumb {
    background: #8d6e63;
    border-radius: 6px;
    border: 2px solid #4e342e;
}
