/* Tippspiel-Seite - baut auf global.css auf */

.tipp-header {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
}

.tipp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(204, 0, 0, 0.12);
    border: 1px solid rgba(204, 0, 0, 0.3);
    color: var(--primary-red);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 0.9rem;
}

.tipp-header h1 {
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.tipp-header h1 span { color: var(--primary-red); }

.tipp-header p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ── Punkteregeln ── */
.tipp-rules {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.tipp-rule {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 0.35rem 0.9rem 0.35rem 0.35rem;
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.tipp-rule-pts {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B0000, #CC0000);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tipp-rules-bonus { margin-top: -0.9rem; margin-bottom: 1.8rem; }
.tipp-rules-bonus .tipp-rule { font-size: 0.7rem; }
.tipp-rules-bonus .tipp-rule-pts { background: linear-gradient(135deg, #7c3aed, #a855f7); }

/* ── Vorbereitungs-Hinweis ── */
.tipp-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    max-width: 640px;
    margin: 0 auto 1.8rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.tipp-notice i { color: #f59e0b; font-size: 1rem; margin-top: 0.15rem; flex-shrink: 0; }
.tipp-notice strong { color: var(--text-primary); }

/* ── Tabs ── */
.tipp-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.8rem;
}

.tipp-tab {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tipp-tab i { margin-right: 0.35rem; }
.tipp-tab:hover { border-color: rgba(204, 0, 0, 0.5); color: var(--text-primary); }

.tipp-tab.active {
    background: linear-gradient(135deg, #8B0000, #CC0000);
    border-color: transparent;
    color: #fff;
}

/* ── Login-Hinweis ── */
.tipp-login-box {
    max-width: 460px;
    margin: 0 auto 2rem;
    background: var(--card-bg);
    border: 1px solid rgba(204, 0, 0, 0.35);
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.tipp-login-box i { font-size: 2rem; color: var(--primary-red); margin-bottom: 0.75rem; }
.tipp-login-box p { color: var(--text-secondary); font-size: 0.9rem; margin: 0 0 1rem; }

.tipp-login-btn {
    background: linear-gradient(135deg, #8B0000, #CC0000);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.6rem 1.6rem;
    border-radius: 100px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.tipp-login-btn:hover { transform: translateY(-2px); }

/* ── Monats-Gruppen / Spiel-Karten ── */
.tipp-month { margin-bottom: 2rem; }

.tipp-month-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-red);
    margin: 0 0 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tipp-game {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.6rem;
}

.tipp-game-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tipp-game-info { flex: 1; min-width: 180px; }

.tipp-game-date {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.tipp-game-teams { display: flex; align-items: center; gap: .7rem; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.4; }
.tipp-game-teams strong { color: var(--text-primary); }
.tipp-team { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; }
.tipp-team-logo { width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; }
.tipp-versus { color: var(--text-muted); }

.tipp-game-result {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.tipp-game-result b { color: var(--text-primary); font-family: 'Courier New', monospace; font-size: 0.85rem; }

/* Tipp-Eingabe */
.tipp-inputs {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.tipp-input {
    width: 52px;
    height: 42px;
    background: #111;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.tipp-input:focus { outline: none; border-color: var(--primary-red); }
.tipp-input::-webkit-outer-spin-button,
.tipp-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tipp-input[type=number] { -moz-appearance: textfield; }

.tipp-colon { color: var(--text-muted); font-weight: 800; }

.tipp-save-btn {
    background: linear-gradient(135deg, #8B0000, #CC0000);
    border: none;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.tipp-save-btn:hover { transform: translateY(-2px); }
.tipp-save-btn:disabled { opacity: 0.4; cursor: default; transform: none; }
.tipp-save-btn.saved { background: #16a34a; }

/* Gesperrte/gewertete Tipps */
.tipp-locked {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tipp-locked-tip {
    font-family: 'Courier New', monospace;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.tipp-points {
    min-width: 54px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    white-space: nowrap;
}

.tipp-points.p5 { background: rgba(168, 85, 247, 0.18); color: #a855f7; }
.tipp-points.p4 { background: rgba(34, 197, 94, 0.18); color: #22c55e; }
.tipp-points.p3 { background: rgba(59, 130, 246, 0.18); color: #3b82f6; }
.tipp-points.p2 { background: rgba(245, 158, 11, 0.18); color: #f59e0b; }
.tipp-points.p0 { background: rgba(239, 68, 68, 0.14); color: #ef4444; }
.tipp-points.open { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }

/* ── EVD-Bonus-Tipps (Torschütze/Spieler des Spiels/Strafminuten) ── */
.tipp-bonus-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.2rem;
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px dashed var(--border-color);
    font-size: 0.78rem;
}

.tipp-bonus-item { display: flex; align-items: center; gap: 0.4rem; }
.tipp-bonus-label { color: var(--text-muted); white-space: nowrap; }

.tipp-bonus-select,
.tipp-bonus-input {
    background: #111;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.78rem;
    padding: 0.35rem 0.5rem;
}

.tipp-bonus-input { width: 70px; text-align: center; }
.tipp-bonus-select:focus,
.tipp-bonus-input:focus { outline: none; border-color: var(--primary-red); }

.tipp-bonus-answers { color: var(--text-secondary); }
.tipp-bonus-muted { color: var(--text-muted); }
.tipp-bonus-mine { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.5rem; font-size: 0.78rem; color: var(--text-secondary); }
.tipp-bonus-mine .tipp-points { margin-left: 0.3rem; }

/* ── Rangliste ── */
.tipp-lb {
    max-width: 640px;
    margin: 0 auto;
}

.tipp-lb-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    margin-bottom: 0.45rem;
}

.tipp-lb-row.me { border-color: rgba(204, 0, 0, 0.55); background: rgba(204, 0, 0, 0.07); }

.tipp-lb-rank {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tipp-lb-row:nth-child(1) .tipp-lb-rank { background: rgba(255, 200, 0, 0.18); color: #ffc800; }
.tipp-lb-row:nth-child(2) .tipp-lb-rank { background: rgba(200, 200, 200, 0.15); color: #ccc; }
.tipp-lb-row:nth-child(3) .tipp-lb-rank { background: rgba(205, 127, 50, 0.18); color: #cd7f32; }

.tipp-lb-name { flex: 1; font-weight: 700; color: var(--text-primary); font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tipp-lb-sub { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; display: block; }

.tipp-lb-points { font-size: 1.05rem; font-weight: 900; color: var(--primary-red); white-space: nowrap; }
.tipp-lb-points small { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; }

/* ── Leer/Laden ── */
.tipp-loading,
.tipp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 3.5rem 1rem;
    text-align: center;
}

.tipp-empty i { font-size: 2.5rem; opacity: 0.25; }

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #1a1a1a;
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
    .tipp-game { gap: 0.7rem; }
    .tipp-game-info { min-width: 100%; }
}
