    :root {
        --bg: #0f172a;
        --panel-bg: rgba(30, 37, 55, .6);
        --panel-border: #334155;
        --text-main: #e2e8f0;
        --text-dim: #94a3b8;
        --radius: 16px;

        --glow-blue: 0 0 25px rgba(96, 165, 250, .35), 0 0 80px rgba(96, 165, 250, .15);
        --glow-violet: 0 0 25px rgba(124, 58, 237, .35), 0 0 80px rgba(124, 58, 237, .15);
        --glow-pink: 0 0 25px rgba(251, 113, 133, .35), 0 0 80px rgba(251, 113, 133, .15);
        --glow-green: 0 0 25px rgba(16, 185, 129, .35), 0 0 80px rgba(16, 185, 129, .15);
    }

    body {
        background: var(--bg);
        color: var(--text-main);
        font-family: system-ui, Segoe UI, Roboto, sans-serif;
        margin: 0;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem 4rem;
    }

    header.page-head {
        max-width: 1100px;
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }

    header.page-head h1 {
        font-size: clamp(28px, 2vw, 36px);
        margin: .2rem 0 .5rem;
        font-weight: 600;
        color: #fff;
    }

    header.page-head p.lead {
        color: var(--text-dim);
        font-size: 1rem;
        line-height: 1.5;
        max-width: 700px;
        margin: 0 auto;
    }

    .grid {
        width: 100%;
        max-width: 1100px;
        display: grid;
        gap: 1.5rem;
        grid-template-columns: minmax(0, 1fr);
        /* 1 Spalte auf kleinen Screens */
    }

    /* Ab mittleren Screens → 2 Cards pro Reihe */
    @media (min-width: 768px) {
        .grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    .card {
        background: var(--panel-bg);
        border: 1px solid var(--panel-border);
        border-radius: var(--radius);
        padding: 1.25rem 1rem 1rem;
        box-shadow: none;
        /* kein Dauer-Glow */
        position: relative;
        min-height: 300px;
        display: flex;
        flex-direction: column;
        transition: box-shadow .25s ease, transform .18s ease;
    }

    .card[data-glow="pink"]:hover {
        box-shadow: var(--glow-pink);
        transform: translateY(-3px);
    }

    .card[data-glow="violet"]:hover {
        box-shadow: var(--glow-violet);
        transform: translateY(-3px);
    }

    .card[data-glow="blue"]:hover {
        box-shadow: var(--glow-blue);
        transform: translateY(-3px);
    }

    .card[data-glow="green"]:hover {
        box-shadow: var(--glow-green);
        transform: translateY(-3px);
    }


    .card-head {
        display: flex;
        align-items: flex-start;
        gap: .75rem;
        margin-bottom: .5rem;
    }

    .card-emoji {
        font-size: 1.4rem;
        line-height: 1;
    }

    .card-title {
        font-size: 1.05rem;
        font-weight: 600;
        color: #fff;
        line-height: 1.3;
    }

    /* Link-Styling nur in der Code-Spielwiese-Card */
    .card-title a {
        color: inherit;
        text-decoration: none;
        transition: color .15s ease, text-shadow .15s ease;
    }

    .card-title a:hover {
        color: #c084fc;
        /* sanftes Violett als Hint */
        text-shadow: 0 0 8px rgba(192, 132, 252, 0.6);
    }

    .card-desc {
        font-size: .9rem;
        line-height: 1.4;
        color: var(--text-dim);
        margin: 0 0 1rem;
    }

    .gallery {
        background: #0f172a;
        border: 1px solid #334155;
        border-radius: 10px;
        padding: .75rem .9rem;
        color: #e2e8f0;
        font-size: 1rem;
        line-height: 1.4;
        font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
        flex-grow: 1;
        box-shadow: inset 0 0 20px rgba(0, 0, 0, .6);
    }

    .mini-tag-row {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
        margin-top: 1rem;
    }

    .mini-tag {
        background: #1e2537;
        border: 1px solid #334155;
        border-radius: 8px;
        color: #fff;
        font-size: 0.9rem;
        font-weight: 600;
        padding: .4rem .6rem;
        line-height: 1.2;
        white-space: nowrap;
        text-decoration: none;
        display: inline-block;
    }

    .mini-tag:hover {
        background: #2a344f;
    }

    footer.page-foot {
        max-width: 1100px;
        width: 100%;
        text-align: center;
        margin-top: 3rem;
        color: var(--text-dim);
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .back-home {
        color: #fff;
        text-decoration: none;
        background: #33415533;
        border: 1px solid #475569;
        border-radius: 8px;
        padding: .5rem .75rem;
        font-size: 1rem;
        font-weight: 500;
        display: inline-block;
        margin-top: .75rem;
    }

    .back-home:hover {
        background: #47556944;
    }