Files
bscscore/src/components/GameCompletionModal.module.css
Frank Schwenk 634d012097 fix(ui): prevent winner modal icons from clipping
Increase top padding, set overflow visible, and position decorative icons inside container so emojis are fully visible.

Refs #26
2025-10-30 10:50:24 +01:00

160 lines
3.1 KiB
CSS

/* Only GameCompletionModal-specific styles. Shared modal styles are now in Modal.module.css */
.final-scores {
margin: 20px 0;
}
.final-score {
display: flex;
justify-content: space-between;
align-items: center;
padding: 18px 0;
margin-bottom: 8px;
background: #333;
border-radius: 8px;
font-size: 1.2rem;
color: #fff;
}
.final-score .player-name {
font-size: 1.2rem;
font-weight: bold;
color: #fff;
}
.final-score .score {
font-size: 1.2rem;
font-weight: bold;
color: #fff;
}
.winner-announcement {
text-align: center;
margin: 20px 0 0 0;
padding: 32px 16px 24px 16px; /* extra top padding to keep icons inside */
background: linear-gradient(135deg, #ff9800 0%, #ffa726 100%);
border-radius: 16px;
font-size: 1.2rem;
color: #222;
font-weight: 700;
box-shadow: 0 8px 32px rgba(255, 152, 0, 0.3);
animation: celebrationPulse 2s ease-in-out infinite;
position: relative;
overflow: visible; /* avoid clipping decorative icons */
}
.winner-announcement::before {
content: '🎉';
position: absolute;
top: 6px;
left: 20px;
font-size: 24px;
animation: bounce 1s ease-in-out infinite;
}
.winner-announcement::after {
content: '🏆';
position: absolute;
top: 6px;
right: 20px;
font-size: 24px;
animation: bounce 1s ease-in-out infinite 0.5s;
}
.winner-announcement h3 {
margin: 0;
font-size: 1.8rem;
color: #222;
text-align: center;
text-shadow: 0 2px 4px rgba(0,0,0,0.1);
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 900;
}
@keyframes celebrationPulse {
0%, 100% {
transform: scale(1);
box-shadow: 0 8px 32px rgba(255, 152, 0, 0.3);
}
50% {
transform: scale(1.02);
box-shadow: 0 12px 40px rgba(255, 152, 0, 0.4);
}
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0);
}
40% {
transform: translateY(-10px);
}
60% {
transform: translateY(-5px);
}
}
.btn {
flex: 1;
padding: 18px 0;
font-size: 1.1rem;
border: none;
border-radius: 8px;
cursor: pointer;
color: #fff;
background: #333;
font-weight: 600;
transition: background 0.2s;
}
.btn--warning {
background: #f44336;
}
.btn:not(.btn--warning):hover {
background: #444;
}
.btn--warning:hover {
background: #d32f2f;
}
@media (max-width: 600px) {
.btn {
font-size: 1rem;
padding: 14px 0;
}
}
.stats-container {
margin-top: 1.5rem;
padding-top: 1rem;
border-top: 1px solid #dee2e6;
}
.stats-title {
text-align: center;
font-size: 1.3rem;
color: #495057;
margin-bottom: 1rem;
}
.player-stats {
margin-bottom: 1rem;
padding: 0.75rem;
background-color: #f8f9fa;
border-radius: 4px;
}
.player-name-stats {
font-weight: bold;
margin-bottom: 0.5rem;
color: #343a40;
}
.stat-item {
display: flex;
justify-content: space-between;
font-size: 0.95rem;
color: #6c757d;
}
.stat-item strong {
color: #212529;
}
.btn {
padding: 0.75rem 1.5rem;
border-radius: 4px;
}