This repository has been archived on 2026-05-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
tippspiel/frontend/src/components/TipModal.module.css
T
Ronny 0e1675fe90 style: dashboard LED smaller, TipModal flags fullbleed + subtle picker buttons
- Dashboard: LED digits 20px (was 26px) — less crowded between flags
- MatchCard: topRow margins for better badge alignment
- TipModal: flags now object-fit:cover (fullbleed)
- TipModal: picker buttons less glossy — reduced shine from 55% to 12%,
  smaller shadow, subtler hover effect

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 13:37:57 +02:00

331 lines
6.4 KiB
CSS

/* TipModal — Stadium Elite / Stitch Style */
.overlay {
position: fixed;
inset: 0;
z-index: 200;
background: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(12px);
display: flex;
align-items: flex-end;
justify-content: center;
padding-bottom: 0;
animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
/* Bottom sheet */
.sheet {
background: var(--surface-mid);
width: 100%;
max-width: 540px;
border-radius: 28px 28px 0 0;
padding: 12px 28px 36px;
box-shadow:
0 -8px 40px rgba(0,0,0,0.5),
0 0 0 1px rgba(75,183,248,0.08),
inset 0 1px 0 rgba(255,255,255,0.08);
animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
position: relative;
}
@keyframes slideUp {
from { transform: translateY(100%); }
to { transform: translateY(0); }
}
/* Glossy sheen on top of sheet */
.sheet::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0; height: 40%;
background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
border-radius: 28px 28px 0 0;
pointer-events: none;
}
/* Drag handle */
.handle {
width: 40px;
height: 4px;
background: var(--surface-high);
border-radius: 2px;
margin: 0 auto 20px;
}
/* Teams row */
.teamsRow {
display: grid;
grid-template-columns: 1fr 40px 1fr;
gap: 8px;
margin-bottom: 32px;
align-items: start;
}
.teamBlock {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
/* Large flag box */
.flagLarge {
width: 72px;
height: 72px;
border-radius: 16px;
background: var(--surface-high);
box-shadow: 0 2px 8px rgba(0,0,0,0.12);
border: 1px solid var(--border-subtle);
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.flagLarge::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 40%;
background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
pointer-events: none;
z-index: 1;
}
.flagImg {
width: 100%;
height: 100%;
object-fit: cover;
position: relative;
z-index: 0;
}
.flagEmoji { font-size: 36px; }
.teamName {
font-family: 'Plus Jakarta Sans', sans-serif;
font-weight: 700;
font-size: 14px;
color: var(--text-primary);
text-align: center;
line-height: 1.2;
}
.vsBlock {
display: flex;
align-items: center;
justify-content: center;
height: 72px;
}
/* Picker section */
.pickerSection {
margin-bottom: 20px;
}
.pickerLabel {
text-align: center;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-muted);
margin-bottom: 16px;
}
.pickerRow {
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
}
.pickerColon {
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: 48px;
font-weight: 800;
color: var(--text-secondary);
line-height: 1;
padding-bottom: 12px;
}
/* Individual picker */
.picker {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
.pickerBtn {
width: 48px;
height: 48px;
background: var(--surface-high);
border: 1px solid var(--border-subtle);
border-radius: 14px;
color: var(--text-primary);
font-size: 22px;
font-weight: 300;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.15s;
position: relative;
overflow: hidden;
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.pickerBtn::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 40%;
background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 100%);
pointer-events: none;
border-radius: 14px 14px 0 0;
}
.pickerBtn:hover {
background: rgba(75,183,248,0.08);
border-color: rgba(75,183,248,0.2);
color: var(--primary);
}
.pickerBtn:active {
transform: scale(0.93);
}
.pickerValue {
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: 58px;
font-weight: 800;
color: var(--text-primary);
min-width: 70px;
text-align: center;
line-height: 1;
text-shadow: 0 2px 12px rgba(0,0,0,0.4);
filter: drop-shadow(0 0 18px rgba(75,183,248,0.12));
}
/* Tendenz bar */
.tendencyBar {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 12px 16px;
background: var(--surface-high);
border-radius: 12px;
margin-bottom: 20px;
border: 1px solid var(--border-subtle);
position: relative;
overflow: hidden;
box-shadow:
0 4px 16px rgba(0,0,0,0.25),
inset 0 1px 0 rgba(255,255,255,0.1),
inset 1px 0 0 rgba(255,255,255,0.05);
}
/* Glossy sheen */
.tendencyBar::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 50%;
background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, transparent 100%);
pointer-events: none;
}
.tendencyIcon { font-size: 18px; }
.tendencyText {
font-size: 14px;
color: var(--text-secondary);
}
.tendencyText strong {
color: var(--tendency-color, var(--primary));
font-weight: 700;
}
/* Error */
.error {
color: var(--error);
font-size: 13px;
text-align: center;
padding: 10px 14px;
background: rgba(248,113,113,0.08);
border-radius: 10px;
margin-bottom: 16px;
border: 1px solid rgba(248,113,113,0.15);
}
/* CTA Buttons */
.saveBtn {
width: 100%;
padding: 15px;
font-size: 15px;
border-radius: 14px;
margin-bottom: 10px;
box-shadow: 0 6px 20px rgba(75,183,248,0.25);
}
.cancelBtn {
width: 100%;
padding: 12px;
background: transparent;
border: none;
color: var(--text-muted);
font-size: 14px;
cursor: pointer;
transition: color 0.15s;
}
.cancelBtn:hover { color: var(--text-secondary); }
/* Success overlay animation */
.successOverlay {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: color-mix(in srgb, var(--bg-deep) 92%, transparent);
border-radius: inherit;
animation: fadeIn 0.3s ease;
z-index: 10;
}
.successCheck {
width: 64px;
height: 64px;
border-radius: 50%;
background: var(--success);
color: white;
font-size: 32px;
display: flex;
align-items: center;
justify-content: center;
animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.successText {
margin-top: 12px;
font-size: 1.1rem;
font-weight: 600;
color: var(--text-primary);
}
@keyframes popIn {
0% { transform: scale(0); opacity: 0; }
100% { transform: scale(1); opacity: 1; }
}