/* Higher or Lower - Spieler-Stats-Vergleichsspiel */

.hl-header {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.hl-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #0f5c46, #22c58e);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 4px 20px rgba(26, 122, 94, 0.35);
}

.hl-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a7a5e, #22c58e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem;
}

.hl-header p {
    color: #b0b0b0;
    font-size: 1.1rem;
}

/* Score bar */
.hl-scorebar {
    max-width: 400px;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.hl-score-current,
.hl-score-best {
    text-align: center;
}

.hl-score-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 0.15rem;
}

.hl-score-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #22c58e;
    font-variant-numeric: tabular-nums;
}

/* Game area */
.hl-game {
    max-width: 720px;
    margin: 0 auto;
}

/* Start screen */
.hl-start {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
}

.hl-start-icon {
    font-size: 2.5rem;
    color: #22c58e;
    margin-bottom: 1rem;
}

.hl-start h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}

.hl-start p {
    color: #b0b0b0;
    max-width: 420px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

/* Füchse/Oberliga bias slider */
.hl-bias {
    max-width: 380px;
    margin: 0 auto 1.5rem;
}

.hl-bias-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    margin-bottom: 0.5rem;
}

.hl-bias-labels .hl-bias-neutral {
    color: #22c58e;
    font-weight: 700;
}

.hl-bias-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #0f5c46, #333 50%, #0f5c46);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.hl-bias-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #22c58e;
    border: 3px solid #0d0d0d;
    box-shadow: 0 2px 8px rgba(34, 197, 142, 0.5);
    cursor: pointer;
}

.hl-bias-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #22c58e;
    border: 3px solid #0d0d0d;
    box-shadow: 0 2px 8px rgba(34, 197, 142, 0.5);
    cursor: pointer;
}

.hl-bias-hint {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: #666;
    text-align: center;
    min-height: 1.1em;
}

.hl-bias-hint.hl-bias-hint-warn {
    color: #e0a030;
}

.btn-hl-start {
    background: linear-gradient(135deg, #0f5c46, #22c58e);
    color: #fff;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.btn-hl-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 197, 142, 0.35);
}

/* Cards */
.hl-cards {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hl-card {
    flex: 1;
    min-width: 0;
}

.hl-card-inner {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 16px;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: border-color 0.3s ease, background 0.3s ease;
    animation: hlCardIn 0.35s ease-out;
}

@keyframes hlCardIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.hl-card-inner.hl-card-correct {
    border-color: #22c58e;
    background: rgba(34, 197, 142, 0.1);
}

.hl-card-inner.hl-card-wrong {
    border-color: #dc143c;
    background: rgba(220, 20, 60, 0.1);
}

.hl-card-photo {
    margin-bottom: 0.75rem;
}

.hl-card-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #333;
}

.hl-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f5c46, #22c58e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    border: 3px solid #333;
}

.hl-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.15rem;
}

.hl-card-club {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 0.85rem;
    min-height: 1em;
}

.hl-card-stat {
    padding-top: 0.75rem;
    border-top: 1px solid #2a2a2a;
}

.hl-stat-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    margin-bottom: 0.25rem;
}

.hl-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #22c58e;
}

.hl-value-hidden {
    font-size: 1.5rem;
    font-weight: 800;
    color: #555;
}

/* VS divider */
.hl-vs {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0d0d0d;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hl-vs-stat {
    font-size: 0.65rem;
    font-weight: 700;
    color: #888;
    line-height: 1.1;
    padding: 0 4px;
}

/* Guess buttons */
.hl-guess-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-hl-guess {
    flex: 1;
    max-width: 220px;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    color: #fff;
}

.btn-hl-guess:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-hl-lower {
    background: linear-gradient(135deg, #7a1a3a, #dc143c);
}

.btn-hl-higher {
    background: linear-gradient(135deg, #0f5c46, #22c58e);
}

.btn-hl-guess:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* No game */
.hl-no-game {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #888;
}

.hl-no-game i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #444;
}

/* Game Over Modal */
.hl-gameover-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.hl-gameover-modal.active {
    display: flex;
}

.hl-gameover-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.hl-gameover-content h2 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a7a5e, #22c58e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hl-gameover-reveal {
    margin-bottom: 1rem;
}

.hl-gameover-score {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.hl-gameover-score strong {
    color: #22c58e;
    font-size: 1.4rem;
}

.hl-gameover-best {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.hl-gameover-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-share {
    background: linear-gradient(135deg, #0f5c46, #22c58e);
    color: #fff;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 197, 142, 0.3);
}

.btn-restart {
    background: none;
    border: 1px solid #333;
    color: #999;
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.btn-restart:hover {
    border-color: #666;
    color: #fff;
}

/* Toast */
.hl-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    z-index: 2000;
    animation: toastIn 0.3s ease-out;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Responsive */
@media (max-width: 640px) {
    .hl-header h1 { font-size: 2rem; }
    .hl-header p { font-size: 0.95rem; }

    .hl-cards {
        gap: 0.5rem;
    }

    .hl-card-inner {
        padding: 1rem 0.5rem;
    }

    .hl-card-photo img,
    .hl-avatar {
        width: 60px;
        height: 60px;
    }

    .hl-card-name {
        font-size: 0.85rem;
    }

    .hl-value,
    .hl-value-hidden {
        font-size: 1.15rem;
    }

    .hl-vs {
        width: 44px;
        height: 44px;
    }

    .hl-guess-buttons {
        gap: 0.5rem;
    }

    .btn-hl-guess {
        font-size: 0.85rem;
        padding: 0.75rem 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hl-card-inner,
    .hl-gameover-content {
        animation: none;
    }
}
