body {
    background-color: #0d1117;
    color: #c9d1d9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s, color 0.3s;
    height: 100vh;

}

.game-container {
    max-width: 600px;
    max-height: 90vh;
    background-color: #161b22;
    border-radius: 15px;
    border: 2px solid #238636;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
    position: relative;
    overflow-y: auto;
    z-index: 1;
}

.game-container::-webkit-scrollbar{
    display: none;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(35, 134, 54, 0.1) 0%, transparent 60%);
    animation: rotate 10s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.icon img {
    cursor: pointer;
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.icon img:hover {
    transform: scale(1.15) rotate(5deg);
    border-color: #238636;
    box-shadow: 0 0 15px #238636;
}

.result-display {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
}

.win-text { color: #56d364; }
.lose-text { color: #f85149; }
.draw-text { color: #e3b341; }

.score-card div {
    text-align: center;
    padding: 10px 20px;
    border-radius: 10px;
    background-color: #010409;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.score-card p {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.reset-btn {
    background-color: #f85149;
    color: white;
    border: none;
    transition: background-color 0.3s, transform 0.2s;
}

.reset-btn:hover {
    background-color: #d73a49;
    transform: scale(1.05);
}

.history-section {
    max-height: 150px;
    overflow-y: auto;
    border-top: 1px solid #30363d;
}

.history-section::-webkit-scrollbar {
    width: 8px;
}

.history-section::-webkit-scrollbar-thumb {
    background-color: #30363d;
    border-radius: 10px;
}

.history-list li {
    padding: 8px 0;
    border-bottom: 1px solid #21262d;
}

.history-list li:last-child {
    border-bottom: none;
}

.history-list .badge {
    font-size: 0.8em;
    vertical-align: middle;
}

.modal-content {
    background-color: #161b22;
    color: #c9d1d9;
    border: 2px solid #238636;
}

.modal-header, .modal-footer {
    border-color: #30363d;
}