body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

h2 {
    font-size: 1.2em;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.card-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.card-slot {
    width: 60px;
    height: 90px;
    background-color: #282828;
    border: 2px dashed #444;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 2em;
    font-weight: bold;
    transition: background-color 0.2s, border-color 0.2s;
}

.card-slot:hover {
    background-color: #333;
    border-color: #666;
}

.card-slot .rank {
    font-size: 1.2em;
}

.card-slot .suit {
    font-size: 0.8em;
    margin-top: -5px;
}

.suit-s, .suit-c { color: #aaa; }
.suit-h, .suit-d { color: #ff4d4d; }

.opponents-selector {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.opponents-selector label {
    font-size: 1em;
    color: #aaa;
}

.opponents-selector input {
    width: 60px;
    padding: 8px;
    font-size: 1.2em;
    text-align: center;
    background-color: #282828;
    color: #f0f0f0;
    border: 1px solid #444;
    border-radius: 6px;
}

#evaluate-btn {
    width: 100%;
    min-height: 50px;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.2s;
}

#evaluate-btn:hover {
    background-color: #0056b3;
}

#clear-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px;
    background-color: #333;
    color: #ccc;
    border: 1px solid #555;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
    transition: background-color 0.2s;
}

#clear-btn:hover {
    background-color: #444;
}

#result-area {
    margin-top: 25px;
    min-height: 100px;
    font-size: 1.2em;
    text-align: center;
    transition: opacity 0.3s ease-out;
}

#result-area.fade-out {
    opacity: 0;
}


#hand-result .hand-name {
    color: #007bff;
    font-weight: bold;
}

#equity-result {
    font-size: 1.4em;
    font-weight: bold;
    margin: 10px 0;
}

#suggestion-result {
    font-style: italic;
    color: #ccc;
}


/* Modal de Seleção */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

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

.selector-grid button {
    padding: 15px 5px;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 6px;
    border: 1px solid #555;
    background-color: #333;
    color: #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.selector-grid button.selected {
    border: 2px solid #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    transform: scale(1.05);
    background-color: #444;
}

#rank-selector {
    grid-template-columns: repeat(7, 1fr);
    margin-top: 15px;
}
