/* Freiheits-Spiel — Geldhelden Game Stylesheet */

:root {
    --gs-navy: #1A2744;
    --gs-navy-light: #243564;
    --gs-gold: #C9A84C;
    --gs-gold-light: #E8C870;
    --gs-cream: #F5F0E8;
    --gs-cream-dark: #EDE5D5;
    --gs-white: #FFFFFF;
    --gs-text: #1A1A1A;
    --gs-text-muted: #6B7280;
    --gs-success: #16A34A;
    --gs-radius: 16px;
    --gs-radius-sm: 10px;
    --gs-shadow: 0 4px 24px rgba(26, 39, 68, 0.12);
    --gs-shadow-lg: 0 8px 40px rgba(26, 39, 68, 0.20);
}

#gh-freiheits-spiel,
.gh-spiel-root {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
}

#gh-freiheits-spiel *,
.gh-spiel-root * {
    box-sizing: border-box;
}

/* ── START SCREEN ─────────────────────────────────────────────────────────── */

.gh-sp-screen {
    width: 100%;
    animation: gh-sp-fadeIn 0.4s ease;
}

@keyframes gh-sp-fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gh-sp-start {
    background: linear-gradient(160deg, var(--gs-navy) 0%, var(--gs-navy-light) 60%, #1A3050 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.gh-sp-start::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.gh-sp-start::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.gh-sp-start-inner {
    max-width: 520px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.gh-sp-logo {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(201, 168, 76, 0.4));
}

.gh-sp-badge {
    display: inline-block;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.35);
    color: var(--gs-gold-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.gh-sp-title {
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 800;
    color: var(--gs-white);
    line-height: 1.1;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.gh-sp-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 32px;
    line-height: 1.5;
}

.gh-sp-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 36px;
    text-align: left;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.gh-sp-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.gh-sp-feature span {
    color: var(--gs-gold);
    font-weight: 700;
    font-size: 16px;
}

.gh-sp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gs-gold) 0%, var(--gs-gold-light) 100%);
    color: var(--gs-navy);
    font-size: 18px;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
    margin-bottom: 20px;
    width: 100%;
    justify-content: center;
    max-width: 340px;
}

.gh-sp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201, 168, 76, 0.55);
    color: var(--gs-navy);
    text-decoration: none;
}

.gh-sp-btn-primary:active {
    transform: translateY(0);
}

.gh-sp-disclaimer {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    margin: 0;
}

/* ── QUESTION SCREEN ──────────────────────────────────────────────────────── */

.gh-sp-question {
    background: var(--gs-cream);
    min-height: 90vh;
    display: flex;
    flex-direction: column;
}

.gh-sp-progress {
    height: 5px;
    background: var(--gs-cream-dark);
    width: 100%;
    flex-shrink: 0;
}

.gh-sp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gs-gold) 0%, var(--gs-gold-light) 100%);
    border-radius: 0 4px 4px 0;
    transition: width 0.5s ease;
}

.gh-sp-question-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 20px 40px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.gh-sp-question-meta {
    margin-bottom: 20px;
}

.gh-sp-step {
    font-size: 13px;
    font-weight: 600;
    color: var(--gs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gh-sp-emoji {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 16px;
}

.gh-sp-question-text {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 700;
    color: var(--gs-navy);
    line-height: 1.3;
    margin: 0 0 28px;
    letter-spacing: -0.01em;
}

.gh-sp-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.gh-sp-answer {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--gs-white);
    border: 2px solid transparent;
    border-radius: var(--gs-radius-sm);
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: left;
    width: 100%;
    box-shadow: 0 2px 8px rgba(26, 39, 68, 0.06);
}

.gh-sp-answer:hover:not(:disabled) {
    border-color: var(--gs-gold);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.2);
    transform: translateX(4px);
}

.gh-sp-answer:disabled {
    cursor: default;
}

.gh-sp-answer.selected {
    border-color: var(--gs-gold);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08) 0%, rgba(232, 200, 112, 0.04) 100%);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
    transform: translateX(4px);
}

.gh-sp-answer-letter {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: var(--gs-cream);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: var(--gs-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.gh-sp-answer.selected .gh-sp-answer-letter {
    background: var(--gs-gold);
    color: var(--gs-navy);
}

.gh-sp-answer-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--gs-text);
    line-height: 1.45;
    padding-top: 4px;
}

/* ── CALCULATING SCREEN ───────────────────────────────────────────────────── */

.gh-sp-calculating {
    background: var(--gs-navy);
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.gh-sp-calc-inner {
    text-align: center;
}

.gh-sp-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(201, 168, 76, 0.2);
    border-top-color: var(--gs-gold);
    border-radius: 50%;
    margin: 0 auto 28px;
    animation: gh-sp-spin 0.9s linear infinite;
}

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

.gh-sp-calc-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gs-white);
    margin: 0 0 10px;
}

.gh-sp-calc-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

/* ── RESULT SCREEN ────────────────────────────────────────────────────────── */

.gh-sp-result {
    background: linear-gradient(160deg, var(--gs-navy) 0%, var(--gs-navy-light) 100%);
    min-height: 90vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px 60px;
}

.gh-sp-result-inner {
    max-width: 560px;
    width: 100%;
    text-align: center;
}

.gh-sp-result-badge {
    display: inline-block;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.35);
    color: var(--gs-gold-light);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.gh-sp-result-emoji {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 16px rgba(201, 168, 76, 0.35));
}

.gh-sp-result-type {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    color: var(--gs-white);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.gh-sp-result-tagline {
    font-size: 18px;
    font-weight: 600;
    color: var(--gs-gold-light);
    margin: 0 0 28px;
    line-height: 1.4;
}

.gh-sp-result-description {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--gs-radius);
    padding: 24px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    text-align: left;
    margin-bottom: 24px;
}

.gh-sp-result-nextstep {
    background: rgba(201, 168, 76, 0.10);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: var(--gs-radius-sm);
    padding: 16px 20px;
    margin-bottom: 28px;
    font-size: 15px;
    color: var(--gs-gold-light);
    line-height: 1.5;
}

.gh-sp-result-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.gh-sp-btn-cta {
    font-size: 17px;
    padding: 18px 32px;
    max-width: 100%;
    margin-bottom: 0;
}

.gh-sp-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--gs-white);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 100px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
}

.gh-sp-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
    color: var(--gs-white);
    text-decoration: none;
}

.gh-sp-restart {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.2s ease;
}

.gh-sp-restart:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */

@media (min-width: 640px) {
    .gh-sp-question-inner {
        padding: 40px 32px 48px;
    }

    .gh-sp-answer {
        padding: 18px 22px;
    }

    .gh-sp-answer-text {
        font-size: 16px;
    }

    .gh-sp-features {
        flex-direction: row;
        max-width: none;
        justify-content: center;
        gap: 24px;
    }

    .gh-sp-btn-primary {
        width: auto;
        padding: 18px 44px;
        font-size: 19px;
    }
}

@media (min-width: 768px) {
    .gh-sp-result-actions {
        flex-direction: row;
    }

    .gh-sp-btn-secondary {
        width: auto;
        flex: 1;
    }

    .gh-sp-btn-cta {
        flex: 2;
    }
}
