58b2c7ea86
Build & Deploy Tippspiel / build (push) Successful in 52s
Dashboard: - Flags aligned to top (flex-start) — consistent height regardless of name length - LED time centered to flag height (64px) Match Cards: - Flags fullbleed (object-fit: cover), larger (56px), glassmorphism shine - LED kickoff time replaces dash separator between flags - Score appears at same position when Live/Finished - Removed separate kickoffRow — cards are more compact - scoreBox height matches flag height for vertical centering Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
552 lines
11 KiB
CSS
552 lines
11 KiB
CSS
/* MatchCard — Stadium Elite Style */
|
|
|
|
.card {
|
|
padding: 20px 24px;
|
|
transition: box-shadow 0.2s, transform 0.15s;
|
|
cursor: default;
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow:
|
|
0 16px 36px rgba(0,0,0,0.35),
|
|
inset 0 1px 0 rgba(255,255,255,0.10),
|
|
inset 1px 0 0 rgba(255,255,255,0.05);
|
|
}
|
|
|
|
.live {
|
|
box-shadow:
|
|
0 0 0 1px rgba(248,113,113,0.25),
|
|
0 10px 30px rgba(248,113,113,0.08),
|
|
inset 0 1px 0 rgba(255,255,255,0.07) !important;
|
|
}
|
|
|
|
/* Top row */
|
|
.topRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.status {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.statusLive {
|
|
color: var(--error);
|
|
}
|
|
|
|
/* BEENDET badge — right-aligned in header */
|
|
.finishedBadge {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
background: var(--surface-high);
|
|
padding: 3px 10px;
|
|
border-radius: 20px;
|
|
}
|
|
|
|
/* LIVE badge — right-aligned in header */
|
|
.liveBadge {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
color: var(--error);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
background: rgba(248, 113, 113, 0.12);
|
|
padding: 3px 10px;
|
|
border-radius: 20px;
|
|
border: 1px solid rgba(248, 113, 113, 0.25);
|
|
animation: pulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
|
|
|
|
.countdownBadge {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
padding: 3px 9px;
|
|
border-radius: 20px;
|
|
background: var(--surface-high);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.countdownUrgent {
|
|
background: rgba(254,174,50,0.12);
|
|
color: var(--gold);
|
|
border: 1px solid rgba(254,174,50,0.2);
|
|
animation: pulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
.group {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--primary);
|
|
background: var(--primary-dim);
|
|
padding: 3px 9px;
|
|
border-radius: 20px;
|
|
border: 1px solid rgba(75,183,248,0.15);
|
|
}
|
|
|
|
/* LED time between flags */
|
|
.kickoffLED {
|
|
font-family: 'DSEG7', 'Courier New', monospace;
|
|
font-size: 16px;
|
|
color: #FECC4C;
|
|
letter-spacing: 0.02em;
|
|
text-shadow:
|
|
0 0 3px rgba(254, 174, 50, 0.9),
|
|
0 0 8px rgba(254, 174, 50, 0.5),
|
|
0 0 16px rgba(254, 174, 50, 0.25);
|
|
}
|
|
|
|
/* Match row — Teams + Score/Time */
|
|
.matchRow {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
/* Teams — flag on top, name below */
|
|
.teamHome, .teamAway {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Center: Score or LED time, vertically centered to flag */
|
|
.scoreBox {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
align-self: flex-start;
|
|
height: 56px; /* match flag height for vertical centering */
|
|
min-width: 60px;
|
|
}
|
|
|
|
/* Flag box — fullbleed icon style */
|
|
.flagBox {
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 14px;
|
|
background: var(--surface-high);
|
|
box-shadow:
|
|
0 4px 12px rgba(0,0,0,0.25),
|
|
inset 0 1px 0 rgba(255,255,255,0.1);
|
|
border: 1px solid rgba(255,255,255,0.08);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.flagBox::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;
|
|
z-index: 1;
|
|
}
|
|
|
|
.crest {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
position: relative;
|
|
z-index: 0;
|
|
}
|
|
|
|
.teamName {
|
|
font-family: 'Plus Jakarta Sans', sans-serif;
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
line-height: 1.2;
|
|
text-align: center;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
|
|
.score {
|
|
font-family: 'Plus Jakarta Sans', sans-serif;
|
|
font-size: 26px;
|
|
font-weight: 800;
|
|
color: var(--text-primary);
|
|
letter-spacing: 4px;
|
|
}
|
|
|
|
.scoreLive {
|
|
font-size: 32px;
|
|
}
|
|
|
|
.kickoffCenter {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 2px;
|
|
}
|
|
|
|
.kickoffCenterTime {
|
|
font-family: 'Plus Jakarta Sans', sans-serif;
|
|
font-size: 13px;
|
|
font-weight: 800;
|
|
color: var(--primary);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Tipp area */
|
|
.tipRow {
|
|
border-top: 1px solid var(--border-subtle);
|
|
padding-top: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 44px;
|
|
}
|
|
|
|
/* Wenn tipRow zum Banner wird */
|
|
.tipRow.resultBanner {
|
|
border-top: none;
|
|
padding-top: 0;
|
|
min-height: unset;
|
|
}
|
|
|
|
.tipBtn {
|
|
width: 100%;
|
|
max-width: 260px;
|
|
padding: 11px 20px;
|
|
font-size: 14px;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
/* Existing tip display — 3-column grid so center stays centered */
|
|
.tipDisplay {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto 1fr;
|
|
align-items: center;
|
|
width: 100%;
|
|
gap: 8px;
|
|
}
|
|
|
|
.tipLeft { display: flex; justify-content: flex-start; align-items: center; }
|
|
.tipRight { display: flex; justify-content: flex-end; align-items: center; }
|
|
|
|
/* Banner-Variante: Icon + Label als Zeile */
|
|
.bannerLeft {
|
|
gap: 6px;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.tipCenter {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.tipLabel {
|
|
font-size: 10px;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.tipScore {
|
|
font-family: 'Plus Jakarta Sans', sans-serif;
|
|
font-weight: 800;
|
|
font-size: 17px;
|
|
color: var(--primary);
|
|
background: var(--primary-dim);
|
|
padding: 3px 14px;
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(75,183,248,0.15);
|
|
}
|
|
|
|
/* ── Ergebnis-Banner ──────────────────────────────────────────── */
|
|
.resultBanner {
|
|
margin: 0 -24px -20px !important;
|
|
padding: 10px 24px !important;
|
|
border-bottom-left-radius: 16px;
|
|
border-bottom-right-radius: 16px;
|
|
}
|
|
|
|
.resultIcon {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.resultLabel {
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* tipScore-Variante im Banner: dunkler Hintergrund statt Primary-Blau */
|
|
.tipScoreBanner {
|
|
font-family: 'Plus Jakarta Sans', sans-serif;
|
|
font-weight: 800;
|
|
font-size: 17px;
|
|
padding: 3px 14px;
|
|
border-radius: 8px;
|
|
background: rgba(0,0,0,0.18);
|
|
border: 1px solid rgba(255,255,255,0.08);
|
|
}
|
|
|
|
.resultPoints {
|
|
font-size: 14px;
|
|
font-weight: 800;
|
|
letter-spacing: 0.01em;
|
|
opacity: 0.95;
|
|
}
|
|
|
|
/* Farb-Varianten Banner */
|
|
.exact {
|
|
background: linear-gradient(90deg, rgba(254,174,50,0.22) 0%, rgba(254,174,50,0.09) 100%);
|
|
color: #FECC4C;
|
|
border-top: 1px solid rgba(254,174,50,0.30);
|
|
}
|
|
|
|
.tendency {
|
|
background: linear-gradient(90deg, rgba(52,211,153,0.18) 0%, rgba(52,211,153,0.08) 100%);
|
|
color: #4ade80;
|
|
border-top: 1px solid rgba(52,211,153,0.22);
|
|
}
|
|
|
|
.wrong {
|
|
background: linear-gradient(90deg, rgba(148,163,184,0.12) 0%, rgba(148,163,184,0.05) 100%);
|
|
color: var(--text-muted);
|
|
border-top: 1px solid rgba(148,163,184,0.15);
|
|
}
|
|
|
|
/* Card-Glow je Ergebnis */
|
|
.glowExact {
|
|
box-shadow:
|
|
0 0 0 1.5px rgba(254,174,50,0.40),
|
|
0 0 20px rgba(254,174,50,0.18),
|
|
0 10px 30px rgba(254,174,50,0.10),
|
|
inset 0 1px 0 rgba(255,255,255,0.09) !important;
|
|
border-color: rgba(254,174,50,0.35) !important;
|
|
}
|
|
|
|
.glowTendency {
|
|
box-shadow:
|
|
0 0 0 1px rgba(52,211,153,0.28),
|
|
0 10px 30px rgba(52,211,153,0.10),
|
|
inset 0 1px 0 rgba(255,255,255,0.07) !important;
|
|
}
|
|
|
|
.glowWrong {
|
|
box-shadow:
|
|
0 0 0 1px rgba(148,163,184,0.15),
|
|
0 10px 20px rgba(0,0,0,0.08),
|
|
inset 0 1px 0 rgba(255,255,255,0.05) !important;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.editBtn {
|
|
background: transparent;
|
|
border: 1px solid var(--border-subtle);
|
|
color: var(--text-muted);
|
|
padding: 4px 12px;
|
|
border-radius: 20px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
}
|
|
.editBtn:hover { border-color: var(--primary); color: var(--primary); }
|
|
|
|
.noTip {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
/* Tipped row — clean compact display */
|
|
.tippedRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
background: rgba(52, 211, 153, 0.08);
|
|
border: 1px solid rgba(52, 211, 153, 0.2);
|
|
border-radius: var(--radius-sm);
|
|
padding: 10px 14px;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
.tippedRow:hover {
|
|
background: rgba(52, 211, 153, 0.14);
|
|
}
|
|
|
|
.tippedIcon {
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 50%;
|
|
background: var(--success);
|
|
color: white;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.tippedLabel {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tippedScore {
|
|
font-size: 16px;
|
|
font-weight: 800;
|
|
color: var(--text-primary);
|
|
margin-left: auto;
|
|
}
|
|
|
|
.tippedEdit {
|
|
font-size: 11px;
|
|
color: var(--primary);
|
|
font-weight: 600;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* ── State-based card variants ──────────────────────────────────── */
|
|
|
|
.card_open { /* default — no extra styling needed */ }
|
|
|
|
.card_tipped {
|
|
border-left: 3px solid var(--success);
|
|
}
|
|
|
|
.card_live {
|
|
border-left: 3px solid var(--error);
|
|
}
|
|
|
|
.card_finished { /* glow classes already applied via JS */ }
|
|
|
|
.card_missed {
|
|
opacity: 0.45;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Live pulsing dot */
|
|
.liveDot {
|
|
width: 8px;
|
|
height: 8px;
|
|
background: var(--error);
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
margin-right: 6px;
|
|
vertical-align: middle;
|
|
animation: pulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
|
|
/* Points badge */
|
|
.pointsBadge {
|
|
display: inline-block;
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
font-size: 0.8rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.pointsBadge_exact {
|
|
background: linear-gradient(135deg, #FEAE32, #FFD700, #FECC4C);
|
|
color: #1a1a1a;
|
|
font-size: 0.9rem;
|
|
padding: 5px 12px;
|
|
box-shadow: 0 0 12px rgba(254,174,50,0.45);
|
|
animation: shimmer 2.5s ease-in-out infinite;
|
|
}
|
|
|
|
.pointsBadge_tendency {
|
|
background: linear-gradient(135deg, var(--success), #22c55e);
|
|
color: #0a2a1a;
|
|
}
|
|
|
|
.pointsBadge_wrong {
|
|
background: var(--surface-high);
|
|
color: var(--text-muted);
|
|
border: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
/* Missed label */
|
|
.missedLabel {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Countdown (replaces badge when < 60 min) */
|
|
.countdown {
|
|
color: var(--error);
|
|
font-weight: 700;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.countdownUrgent {
|
|
animation: pulse 0.8s ease-in-out infinite;
|
|
}
|
|
|
|
/* Tipped state: checkmark + score inline */
|
|
.tipDisplay_score {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
/* Change button for tipped state */
|
|
.changeBtn {
|
|
background: none;
|
|
border: none;
|
|
color: var(--primary);
|
|
cursor: pointer;
|
|
font-size: 0.8rem;
|
|
text-decoration: underline;
|
|
padding: 0;
|
|
}
|
|
|
|
.changeBtn:hover {
|
|
color: var(--primary);
|
|
opacity: 0.75;
|
|
}
|
|
|
|
@keyframes shimmer {
|
|
0% { box-shadow: 0 0 0 rgba(254, 174, 50, 0); }
|
|
50% { box-shadow: 0 0 16px rgba(254, 174, 50, 0.5); }
|
|
100% { box-shadow: 0 0 0 rgba(254, 174, 50, 0); }
|
|
}
|