Hand simulator and some data fixes

This commit is contained in:
2026-07-18 16:40:57 -04:00
parent 4ce33bdb36
commit af64b9e95c
9 changed files with 328 additions and 87 deletions
+133
View File
@@ -4,6 +4,139 @@
padding: 0 1rem 3rem;
}
.simulator {
margin-top: 3rem;
padding: 2rem;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius);
}
.simulator-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
.simulator-header h2 {
margin: 0;
}
.simulator-controls {
display: flex;
gap: 1rem;
align-items: center;
}
.hand-display {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
min-height: 250px;
margin-bottom: 1.5rem;
}
.hand-card-wrapper {
position: relative;
width: 160px;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
}
.hand-card-wrapper:hover {
transform: translateY(-5px);
}
.hand-card-wrapper.selected {
transform: scale(0.95);
opacity: 0.7;
}
.hand-card-img {
width: 100%;
border-radius: 10px;
overflow: hidden;
border: 2px solid transparent;
aspect-ratio: 2/3;
}
.hand-card-wrapper.diver .hand-card-img {
border-color: #ffd700;
box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}
.hand-card-wrapper.selected .hand-card-img {
border-color: var(--accent);
}
.hand-card-img img {
width: 100%;
height: 100%;
object-fit: cover;
}
.card-placeholder {
width: 100%;
height: 100%;
background: var(--bg-elevated);
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 1rem;
font-size: 0.9rem;
color: var(--text-muted);
}
.diver-tag {
position: absolute;
top: -8px;
left: 50%;
transform: translateX(-50%);
background: #ffd700;
color: black;
font-size: 0.7rem;
font-weight: bold;
padding: 2px 8px;
border-radius: 4px;
text-transform: uppercase;
z-index: 2;
}
.mulligan-overlay {
position: absolute;
inset: 0;
background: rgba(255, 77, 77, 0.4);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 2rem;
border-radius: 10px;
z-index: 3;
}
.simulator-hint {
text-align: center;
font-size: 0.9rem;
color: var(--text-muted);
margin-top: 1rem;
}
@media (max-width: 600px) {
.simulator-header {
flex-direction: column;
gap: 1rem;
align-items: flex-start;
}
.hand-card-wrapper {
width: 120px;
}
}
.back-link {
display: inline-flex;
align-items: center;