/* ========================================
   CARDS
======================================== */

.card {
    min-width: 0;
    padding: var(--pb-space-5);
    background: var(--pb-surface);
    border: 1px solid var(--pb-border-light);
    border-radius: var(--pb-radius-lg);
    box-shadow: var(--pb-shadow-card);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pb-space-3);
    margin-bottom: var(--pb-space-5);
}

.card-title {
    font-size: var(--pb-text-base);
    font-weight: 600;
}

.card-subtitle {
    margin-top: var(--pb-space-1);
    color: var(--pb-text-muted);
    font-size: var(--pb-text-xs);
}

/* ========================================
   STATISTICS
======================================== */

.stat-label {
    color: var(--pb-text-secondary);
    font-size: var(--pb-text-sm);
}

.stat-value {
    margin-top: var(--pb-space-3);
    font-family: var(--pb-font-heading);
    font-size: var(--pb-text-3xl);
    font-weight: 600;
    letter-spacing: -0.04em;
}

.stat-meta {
    margin-top: var(--pb-space-2);
    color: var(--pb-text-muted);
    font-size: var(--pb-text-xs);
}

/* ========================================
   BUTTONS
======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--pb-space-2);
    min-height: 40px;
    padding: 0 var(--pb-space-4);
    border: 1px solid transparent;
    border-radius: var(--pb-radius-md);
    font-size: var(--pb-text-sm);
    font-weight: 600;
    transition: all var(--pb-transition-fast);
}

.btn-primary {
    background: var(--pb-primary);
    color: var(--pb-text-inverse);
}

.btn-primary:hover {
    background: var(--pb-primary-hover);
}

.btn-secondary {
    background: var(--pb-surface-hover);
    border-color: var(--pb-border);
    color: var(--pb-text);
}

.btn-secondary:hover {
    background: var(--pb-elevated);
}

.btn-ghost {
    background: transparent;
    color: var(--pb-text-secondary);
}

.btn-ghost:hover {
    background: var(--pb-surface-hover);
    color: var(--pb-text);
}

/* ========================================
   BADGES
======================================== */

.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 9px;
    border-radius: var(--pb-radius-full);
    font-size: var(--pb-text-xs);
    font-weight: 600;
}

.badge-success {
    background: rgba(52, 211, 153, 0.12);
    color: var(--pb-success);
}

.badge-primary {
    background: var(--pb-primary-muted);
    color: var(--pb-primary);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.12);
    color: var(--pb-warning);
}

/* ========================================
   LISTS
======================================== */

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pb-space-3);
    padding: var(--pb-space-3) 0;
    border-bottom: 1px solid var(--pb-border-light);
}

.list-item:last-child {
    border-bottom: 0;
}

.list-item-main {
    display: flex;
    align-items: center;
    gap: var(--pb-space-3);
    min-width: 0;
}

.list-item-title {
    font-size: var(--pb-text-sm);
    font-weight: 500;
}

.list-item-description {
    margin-top: 3px;
    color: var(--pb-text-muted);
    font-size: var(--pb-text-xs);
}

/* ========================================
   AVATARS
======================================== */

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group .user-avatar {
    margin-left: -8px;
    border: 2px solid var(--pb-surface);
}

.avatar-group .user-avatar:first-child {
    margin-left: 0;
}

/* ========================================
   ADVERTISEMENT
======================================== */

.ad-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pb-space-4);
    padding: var(--pb-space-4) var(--pb-space-5);
    background: rgba(148, 163, 184, 0.035);
    border: 1px dashed var(--pb-border);
    border-radius: var(--pb-radius-md);
}

.ad-label {
    color: var(--pb-text-muted);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ad-slot p {
    margin-top: var(--pb-space-1);
    color: var(--pb-text-secondary);
    font-size: var(--pb-text-xs);
}

/* ========================================
   HARMONY
======================================== */

.harmony-score {
    font-family: var(--pb-font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.06em;
}

.harmony-track {
    height: 7px;
    overflow: hidden;
    background: var(--pb-elevated);
    border-radius: var(--pb-radius-full);
}

.harmony-fill {
    height: 100%;
    background: var(--pb-primary);
    border-radius: inherit;
}

/* ========================================
   UTILITIES
======================================== */

.divider {
    height: 1px;
    background: var(--pb-border-light);
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--pb-space-3);
}

@media (max-width: 768px) {
    .ad-slot {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ========================================
   PLAYGROUPS
======================================== */

.playgroups-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--pb-space-5);
    margin-bottom: var(--pb-space-5);
    background: var(--pb-surface);
    border: 1px solid var(--pb-border-light);
    border-radius: var(--pb-radius-lg);
}

.playgroups-summary-icon,
.playgroup-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: var(--pb-radius-md);
    background: var(--pb-primary-muted);
    color: var(--pb-primary);
    font-size: 1.25rem;
}

.playgroups-empty {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 64px 24px;
    text-align: center;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--pb-space-5);
    border-radius: var(--pb-radius-xl);
    background: var(--pb-primary-muted);
    color: var(--pb-primary);
    font-size: 1.8rem;
}

.playgroups-empty h2 {
    font-size: var(--pb-text-xl);
}

.playgroups-empty p {
    max-width: 400px;
    margin: var(--pb-space-3) 0 var(--pb-space-5);
    color: var(--pb-text-secondary);
    font-size: var(--pb-text-sm);
    line-height: 1.7;
}

.playgroups-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--pb-space-5);
    margin-bottom: var(--pb-space-8);
}

.playgroup-card {
    transition:
            border-color var(--pb-transition-fast),
            background var(--pb-transition-fast);
}

.playgroup-card:hover {
    background: var(--pb-surface-hover);
    border-color: var(--pb-border);
}

.playgroup-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--pb-space-5);
}

.playgroup-card h2 {
    font-size: var(--pb-text-lg);
}

.playgroup-description {
    min-height: 42px;
    margin-top: var(--pb-space-2);
    color: var(--pb-text-secondary);
    font-size: var(--pb-text-sm);
    line-height: 1.6;
}

.playgroup-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pb-space-3);
    padding-top: var(--pb-space-4);
    margin-top: var(--pb-space-5);
    border-top: 1px solid var(--pb-border-light);
    color: var(--pb-text-secondary);
    font-size: var(--pb-text-xs);
}

.playgroup-meta-icon {
    margin-right: 4px;
    color: var(--pb-primary);
}

.create-playgroup-section {
    margin-top: var(--pb-space-8);
}

.playgroup-form {
    display: flex;
    flex-direction: column;
    gap: var(--pb-space-5);
}

.playgroup-form textarea {
    width: 100%;
    min-height: 100px;
    padding: var(--pb-space-3) var(--pb-space-4);
    resize: vertical;
    color: var(--pb-text);
    background: var(--pb-bg);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-md);
    outline: none;
    font: inherit;
    font-size: var(--pb-text-sm);
    transition: border-color var(--pb-transition-fast);
}

.playgroup-form textarea:focus {
    border-color: var(--pb-primary);
    box-shadow: 0 0 0 3px var(--pb-primary-muted);
}

.playgroup-form textarea::placeholder {
    color: var(--pb-text-muted);
}

.playgroup-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pb-space-4);
    padding-top: var(--pb-space-4);
    border-top: 1px solid var(--pb-border-light);
}

.auth-success {
    padding: var(--pb-space-3) var(--pb-space-4);
    margin-bottom: var(--pb-space-5);
    color: var(--pb-success);
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: var(--pb-radius-md);
    font-size: var(--pb-text-sm);
}

@media (max-width: 768px) {
    .playgroups-grid {
        grid-template-columns: 1fr;
    }

    .playgroup-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .playgroup-form-footer .btn {
        width: 100%;
    }
}


/* ========================================
   GLOBAL FORM ELEMENTS
======================================== */

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--pb-space-2);
    min-width: 0;
}

.form-group label {
    color: var(--pb-text);
    font-size: var(--pb-text-sm);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 var(--pb-space-4);
    color: var(--pb-text);
    background: var(--pb-bg);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-md);
    outline: none;
    font: inherit;
    font-size: var(--pb-text-sm);
    transition:
            border-color var(--pb-transition-fast),
            box-shadow var(--pb-transition-fast);
}

.form-group textarea {
    min-height: 110px;
    padding: var(--pb-space-3) var(--pb-space-4);
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--pb-text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--pb-primary);
    box-shadow: 0 0 0 3px var(--pb-primary-muted);
}

.form-group input:disabled,
.form-group textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: none;
}


/* ========================================
   PLAYGROUP DETAIL PAGE
======================================== */

.playgroup-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--pb-space-2);
    margin-bottom: var(--pb-space-3);
    color: var(--pb-text-muted);
    font-size: var(--pb-text-xs);
}

.playgroup-breadcrumb a {
    color: var(--pb-text-secondary);
    transition: color var(--pb-transition-fast);
}

.playgroup-breadcrumb a:hover {
    color: var(--pb-primary);
}

.playgroup-breadcrumb span:last-child {
    color: var(--pb-primary);
}

.playgroup-title-link {
    transition: color var(--pb-transition-fast);
}

.playgroup-title-link:hover {
    color: var(--pb-primary);
}

.playgroup-open-link {
    display: inline-flex;
    margin-top: var(--pb-space-4);
    color: var(--pb-primary);
    font-size: var(--pb-text-sm);
    font-weight: 600;
}

.playgroup-open-link:hover {
    color: var(--pb-primary-hover);
}

.playgroup-detail-stats {
    margin-bottom: var(--pb-space-5);
}

.group-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--pb-space-4);
}

.group-feature {
    display: flex;
    align-items: center;
    gap: var(--pb-space-3);
    min-width: 0;
    padding: var(--pb-space-4);
    background: var(--pb-bg);
    border: 1px solid var(--pb-border-light);
    border-radius: var(--pb-radius-md);
}

.group-feature > span:first-child {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: var(--pb-radius-md);
    background: var(--pb-primary-muted);
    color: var(--pb-primary);
    font-size: var(--pb-text-lg);
}

.group-feature > div {
    flex: 1;
    min-width: 0;
}

.group-feature strong {
    font-size: var(--pb-text-sm);
}

.group-feature p {
    margin-top: 4px;
    color: var(--pb-text-muted);
    font-size: var(--pb-text-xs);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .group-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .playgroup-detail-stats .grid-span-4 {
        grid-column: span 12;
    }
}


/* ========================================
   PLAYGROUP INVITATIONS
======================================== */

.invitation-panel {
    margin-bottom: var(--pb-space-5);
}

.invitation-created {
    padding: var(--pb-space-4);
    margin-bottom: var(--pb-space-5);
    background: var(--pb-primary-muted);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-md);
}

.invitation-created > strong {
    display: block;
    margin-bottom: var(--pb-space-3);
    color: var(--pb-primary);
    font-size: var(--pb-text-sm);
}

.invitation-copy-row {
    display: flex;
    gap: var(--pb-space-3);
    margin-bottom: var(--pb-space-3);
}

.invitation-copy-row input {
    flex: 1;
    min-width: 0;
    padding: var(--pb-space-3) var(--pb-space-4);
    color: var(--pb-text);
    background: var(--pb-bg);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-md);
    font-size: var(--pb-text-sm);
}

.invitation-list {
    margin-top: var(--pb-space-6);
    border-top: 1px solid var(--pb-border-light);
    padding-top: var(--pb-space-5);
}

.invitation-list h3 {
    margin-bottom: var(--pb-space-3);
    font-size: var(--pb-text-sm);
}

.invitation-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pb-space-3);
    padding: var(--pb-space-3) 0;
    border-bottom: 1px solid var(--pb-border-light);
}

.invitation-list-item:last-child {
    border-bottom: 0;
}

.invitation-list-item strong {
    font-size: var(--pb-text-sm);
}

.is-copied {
    background: var(--pb-success);
}

@media (max-width: 600px) {
    .invitation-copy-row {
        flex-direction: column;
    }
}



/* ========================================
   INVITATION LANDING PAGE
======================================== */

.invitation-preview {
    padding: var(--pb-space-5);
    margin-bottom: var(--pb-space-6);
    background: var(--pb-bg);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-lg);
}

.invitation-preview h2 {
    margin-top: var(--pb-space-2);
    font-size: var(--pb-text-xl);
}

.invitation-preview p {
    margin-top: var(--pb-space-2);
    color: var(--pb-text-secondary);
    font-size: var(--pb-text-sm);
    line-height: 1.6;
}

.invitation-preview-meta {
    display: flex;
    justify-content: space-between;
    gap: var(--pb-space-3);
    padding-top: var(--pb-space-3);
    margin-top: var(--pb-space-3);
    border-top: 1px solid var(--pb-border-light);
    color: var(--pb-text-muted);
    font-size: var(--pb-text-xs);
}

.invitation-preview-meta strong {
    color: var(--pb-text);
    font-weight: 500;
}


/* ========================================
   PLAYGROUP MEMBER MANAGEMENT
======================================== */

.member-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px !important;
    flex-wrap: wrap;
}

.member-actions > form {
    display: inline-flex;
    align-items: center;
    gap: 8px !important;
    margin: 0;
}

.member-actions select,
.member-actions .form-control {
    width: auto !important;
    min-width: 112px;
    min-height: 36px;
    padding: 0 32px 0 11px;
    color: var(--pb-text);
    background-color: var(--pb-bg);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-md);
    outline: none;
    font: inherit;
    font-size: var(--pb-text-xs);
    cursor: pointer;
    transition: border-color var(--pb-transition-fast),
    background var(--pb-transition-fast),
    box-shadow var(--pb-transition-fast);
}

.member-actions select:hover {
    border-color: var(--pb-text-muted);
    background-color: var(--pb-surface-hover);
}

.member-actions select:focus {
    border-color: var(--pb-primary);
    box-shadow: 0 0 0 3px var(--pb-primary-muted);
}

.member-actions select option {
    color: var(--pb-text);
    background: var(--pb-surface);
}

.member-actions .btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: var(--pb-text-xs);
}

.member-actions form[action="/playgroups/members/role"] .btn {
    color: var(--pb-primary);
    background: var(--pb-primary-muted);
    border-color: transparent;
}

.member-actions form[action="/playgroups/members/role"] .btn:hover {
    color: var(--pb-text-inverse);
    background: var(--pb-primary);
}

.member-actions form[action="/playgroups/members/remove"] .btn {
    color: var(--pb-text-muted);
    background: transparent;
    border-color: var(--pb-border-light);
}

.member-actions form[action="/playgroups/members/remove"] .btn:hover {
    color: var(--pb-danger);
    background: rgba(248, 113, 113, 0.09);
    border-color: rgba(248, 113, 113, 0.35);
}

.member-actions .badge {
    min-width: 66px;
    justify-content: center;
    text-transform: capitalize;
}

.member-actions .badge:not(.badge-primary):not(.badge-success) {
    color: var(--pb-text-secondary);
    background: rgba(148, 163, 184, 0.10);
}

@media (max-width: 768px) {
    .member-actions {
        justify-content: flex-start;
        width: 100%;
        padding-left: 52px;
        margin-top: 10px;
    }

    .list-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .member-actions > form {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .member-actions {
        gap: 6px !important;
        padding-left: 0;
    }

    .member-actions select {
        min-width: 100px;
    }
}


/* ========================================
   PLAYGROUP SETTINGS MODAL
======================================== */

.playgroup-header-actions {
    display: flex;
    align-items: center;
    gap: var(--pb-space-3);
}

.btn-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--pb-border);
    border-radius: 12px;
    background: var(--pb-card);
    color: var(--pb-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon svg {
    width: 19px;
    height: 19px;
    display: block;
}

.btn-icon:hover {
    color: var(--pb-primary);
    border-color: var(--pb-primary);
    background: var(--pb-card-hover);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 8, 18, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-dialog {
    width: min(100%, 620px);
    max-height: min(88vh, 820px);
    overflow: auto;
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-xl);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    animation: settings-modal-in 160ms ease-out;
}

@keyframes settings-modal-in {
    from { opacity: 0; transform: translateY(8px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid var(--pb-border-light);
}

.modal-header h2 {
    margin-top: 5px;
    font-size: var(--pb-text-xl);
}

.modal-header .card-subtitle {
    margin-top: 6px;
}

.eyebrow {
    color: var(--pb-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 26px 26px;
}

.group-settings-section {
    min-width: 0;
}

.group-settings-section .card-header {
    margin-bottom: 18px;
}

.group-settings-section .form-group + .form-group {
    margin-top: 16px;
}

.group-settings-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}

.group-danger-zone {
    padding: 18px;
    background: rgba(248, 113, 113, 0.045);
    border: 1px solid rgba(248, 113, 113, 0.24);
    border-radius: var(--pb-radius-md);
}

.group-danger-zone .card-header {
    margin-bottom: 12px;
}

.danger-zone-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.danger-zone-content strong {
    font-size: var(--pb-text-sm);
}

.danger-zone-content p {
    max-width: 390px;
    margin-top: 5px;
    line-height: 1.5;
}

.btn-danger {
    flex: 0 0 auto;
    color: #FCA5A5;
    background: rgba(248, 113, 113, 0.10);
    border: 1px solid rgba(248, 113, 113, 0.28);
}

.btn-danger:hover {
    color: #fff;
    background: #B91C1C;
    border-color: #DC2626;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .playgroup-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .modal-backdrop {
        align-items: flex-end;
        padding: 10px;
    }

    .modal-dialog {
        max-height: 92vh;
        border-radius: 18px;
    }

    .modal-header,
    .modal-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .group-settings-footer,
    .danger-zone-content {
        align-items: stretch;
        flex-direction: column;
    }

    .group-settings-footer .btn,
    .danger-zone-content .btn {
        width: 100%;
    }
}

.invitations-modal {
    width: min(760px, calc(100vw - 32px));
}

.invitations-modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.invitations-modal-body .invitation-panel {
    width: 100%;
}


/* =========================================
   DECKS – Layout und Karten
========================================= */

.deck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.deck-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--pb-border, #263248);
    border-radius: 16px;
    background: var(--pb-card, #111B2D);
}

.deck-card-art {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 150px;
    padding: 24px;
    background: linear-gradient(135deg, #18263A, #111B2D);
    color: var(--pb-primary, #2DD4BF);
    text-align: center;
}

.deck-card > * {
    max-width: 100%;
}

.deck-card .card-content,
.deck-card-content {
    padding: 18px;
    min-width: 0;
}

.deck-card h3,
.deck-card h4 {
    overflow-wrap: anywhere;
    margin: 0 0 8px;
}

.deck-card p {
    overflow-wrap: anywhere;
}

.deck-card .form-actions,
.deck-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 18px 18px;
}

.btn-small {
    padding: 8px 14px;
    font-size: 13px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 30px 0 16px;
}

.section-heading h2 {
    margin: 0 0 4px;
}

.section-heading p {
    margin: 0;
}

.empty-state {
    padding: 40px 24px;
    text-align: center;
    border: 1px dashed var(--pb-border, #263248);
    border-radius: 16px;
    background: var(--pb-card, #111B2D);
}

.form-card {
    width: 100%;
    max-width: 760px;
    padding: 24px;
    border: 1px solid var(--pb-border, #263248);
    border-radius: 16px;
    background: var(--pb-card, #111B2D);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

/* Playgroup-Auswahl auf der Deck-Startseite */
.playgroup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    width: 100%;
}

.playgroup-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    padding: 20px;
    border: 1px solid var(--pb-border, #263248);
    border-radius: 16px;
    background: var(--pb-card, #111B2D);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.playgroup-card:hover {
    background: var(--pb-card-hover, #18263A);
    border-color: var(--pb-primary, #2DD4BF);
}

@media (max-width: 640px) {
    .deck-grid,
    .playgroup-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-card {
        padding: 18px;
    }
}


/* =========================================
   DECKS – Playgroup selector and edit form
========================================= */

.deck-playgroup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: var(--pb-space-5);
    width: 100%;
    align-items: stretch;
}

.playgroup-deck-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 190px;
    padding: var(--pb-space-5);
    color: var(--pb-text);
    text-decoration: none;
    transition:
            background var(--pb-transition-fast),
            border-color var(--pb-transition-fast),
            transform var(--pb-transition-fast);
}

.playgroup-deck-card:hover {
    background: var(--pb-surface-hover);
    border-color: var(--pb-primary-border);
    transform: translateY(-2px);
}

.playgroup-deck-card-main {
    display: flex;
    align-items: center;
    gap: var(--pb-space-3);
    min-width: 0;
}

.playgroup-deck-card-icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: var(--pb-radius-md);
    background: var(--pb-primary-muted);
    color: var(--pb-primary);
    font-size: 1.2rem;
}

.playgroup-deck-card-copy {
    flex: 1;
    min-width: 0;
}

.playgroup-deck-card-copy h2 {
    margin: 0;
    color: var(--pb-text);
    font-family: var(--pb-font-heading);
    font-size: var(--pb-text-base);
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.playgroup-deck-card-meta {
    margin-top: 4px;
    color: var(--pb-text-muted);
    font-size: var(--pb-text-xs);
}

.playgroup-deck-card-main .badge {
    flex: 0 0 auto;
    white-space: nowrap;
}

.playgroup-deck-card-description {
    margin: var(--pb-space-5) 0;
    color: var(--pb-text-secondary);
    font-size: var(--pb-text-sm);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.playgroup-deck-card-description.is-muted {
    color: var(--pb-text-muted);
}

.playgroup-deck-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pb-space-3);
    padding-top: var(--pb-space-3);
    margin-top: auto;
    border-top: 1px solid var(--pb-border-light);
    color: var(--pb-text-secondary);
    font-size: var(--pb-text-xs);
}

.playgroup-deck-card-arrow {
    color: var(--pb-primary);
    font-size: var(--pb-text-base);
    transition: transform var(--pb-transition-fast);
}

.playgroup-deck-card:hover .playgroup-deck-card-arrow {
    transform: translate(2px, -2px);
}

/* Edit deck should use the full available content width. */
.deck-edit-form-card {
    width: 100%;
    max-width: none;
}

.deck-edit-form {
    width: 100%;
}

@media (max-width: 640px) {
    .deck-playgroup-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .playgroup-deck-card {
        min-height: 0;
    }

    .playgroup-deck-card-main {
        flex-wrap: wrap;
    }
}


/* Fix: Commander artwork placeholder */
.deck-card-art-placeholder {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 20px;
    text-align: center;
}

.deck-card-placeholder-label {
    display: block;
    color: var(--pb-text-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.deck-card-art-placeholder strong {
    display: block;
    color: var(--pb-primary);
    font-family: var(--pb-font-heading);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.deck-card-placeholder-note {
    display: block;
    color: var(--pb-text-muted);
    font-size: 11px;
}

.deck-card-identity {
    position: absolute;
    right: 14px;
    bottom: 13px;
    z-index: 2;
    display: flex;
    gap: 5px;
}


/* =========================================
   Commander library – focused visual polish
   Scoped only to deck cards
========================================= */

.deck-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 330px));
    align-items: start;
    gap: 20px;
}

.deck-card {
    padding: 0 !important;
    gap: 0;
    min-height: 0;
    height: auto;
    background: var(--pb-surface);
    overflow: hidden;
}

.deck-card > .deck-card-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
}

.deck-card-art-placeholder {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 18px;
    text-align: center;
}

.deck-card-placeholder-label,
.deck-card-label {
    display: block;
    margin: 0 0 6px;
    color: var(--pb-primary);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.deck-card-art-placeholder strong {
    display: block;
    margin: 0;
    color: var(--pb-primary);
    font-family: var(--pb-font-heading);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.deck-card-placeholder-note {
    display: block;
    color: var(--pb-text-muted);
    font-size: 11px;
    line-height: 1.4;
}

.deck-card-art > img {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}

.deck-card-art-overlay {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 35%;
    background: linear-gradient(transparent, rgba(11, 17, 32, 0.24));
    pointer-events: none;
}

.deck-card-identity {
    position: absolute;
    right: 13px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    gap: 5px;
}

.deck-card-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 16px 18px 14px !important;
}

.deck-card-heading {
    min-width: 0;
}

.deck-card-heading h3 {
    margin: 0;
    color: var(--pb-text);
    font-family: var(--pb-font-heading);
    font-size: var(--pb-text-base);
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.deck-card-deckname {
    margin: 4px 0 0;
    color: var(--pb-text-secondary);
    font-size: var(--pb-text-sm);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.deck-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 11px;
    border-top: 1px solid var(--pb-border-light);
}

.deck-card-owner {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--pb-text-muted);
    font-size: var(--pb-text-xs);
}

.deck-card-owner-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--pb-primary);
}

.deck-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 !important;
}

.deck-card-actions form {
    margin: 0;
}

.deck-card-actions .btn-small {
    min-height: 30px;
    padding: 0 9px;
    font-size: var(--pb-text-xs);
}

.deck-card-actions .btn-delete-subtle {
    color: var(--pb-text-muted);
}

.deck-card-actions .btn-delete-subtle:hover {
    color: var(--pb-danger);
    background: rgba(248, 113, 113, 0.08);
}

@media (max-width: 640px) {
    .deck-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =========================================
   GAME NIGHTS – form and session detail polish
   Scoped to Game Night views
========================================= */

.game-night-page {
    width: 100%;
    min-width: 0;
}

.game-night-page-header,
.game-night-detail-header {
    align-items: flex-end;
    margin-bottom: 28px;
}

.game-night-page-header > div:first-child,
.game-night-detail-header > div:first-child {
    min-width: 0;
}

.game-night-page .eyebrow,
.game-night-detail-page .eyebrow {
    display: inline-block;
    margin-bottom: 9px;
}

.game-night-form-card {
    width: 100%;
    max-width: none;
    padding: clamp(22px, 3vw, 34px);
}

.game-night-form-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--pb-border-light);
}

.game-night-form-intro h2,
.game-night-section-heading h3 {
    margin: 0;
    font-family: var(--pb-font-heading);
    font-size: var(--pb-text-lg);
    font-weight: 600;
}

.game-night-form-intro p,
.game-night-section-heading p {
    margin: 6px 0 0;
    color: var(--pb-text-muted);
    font-size: var(--pb-text-sm);
    line-height: 1.6;
}

.game-night-step {
    color: var(--pb-primary);
    font-family: var(--pb-font-heading);
    font-size: var(--pb-text-lg);
    font-weight: 700;
    white-space: nowrap;
}

.game-night-step span {
    color: var(--pb-text-muted);
    font-size: var(--pb-text-xs);
    font-weight: 500;
}

.game-night-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.game-night-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
}

.game-night-form-fields .form-group:first-child,
.game-night-form-fields .form-group:nth-child(2) {
    grid-column: 1 / -1;
}

.game-night-form-fields .form-group textarea {
    min-height: 104px;
}

.game-night-invite-section {
    padding-top: 24px;
    border-top: 1px solid var(--pb-border-light);
}

.game-night-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.game-night-member-count,
.game-night-member-role {
    color: var(--pb-text-muted);
    font-size: var(--pb-text-xs);
    white-space: nowrap;
}

.game-night-member-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.game-night-member {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 76px;
    padding: 13px 15px;
    background: var(--pb-bg);
    border: 1px solid var(--pb-border-light);
    border-radius: var(--pb-radius-md);
    cursor: pointer;
    transition: border-color var(--pb-transition-fast), background var(--pb-transition-fast);
}

.game-night-member:hover {
    background: var(--pb-surface-hover);
    border-color: var(--pb-border);
}

.game-night-member.is-host {
    cursor: default;
    background: rgba(45, 212, 191, 0.045);
    border-color: rgba(45, 212, 191, 0.22);
}

.game-night-member-check {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.game-night-member-check input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 18px;
    height: 18px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.game-night-member-check input:disabled {
    cursor: default;
}

.game-night-custom-check {
    display: block;
    width: 18px;
    height: 18px;
    border: 1px solid var(--pb-border);
    border-radius: 5px;
    background: var(--pb-surface);
    transition: all var(--pb-transition-fast);
}

.game-night-member-check input:checked + .game-night-custom-check {
    border-color: var(--pb-primary);
    background: var(--pb-primary);
    box-shadow: inset 0 0 0 4px var(--pb-surface);
}

.game-night-member-check input:focus-visible + .game-night-custom-check {
    outline: 3px solid var(--pb-primary-muted);
    outline-offset: 2px;
}

.game-night-member-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--pb-primary);
    background: var(--pb-primary-muted);
    font-size: var(--pb-text-xs);
    font-weight: 700;
    letter-spacing: .02em;
}

.game-night-member-copy,
.game-night-participant-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.game-night-member-copy strong,
.game-night-participant-copy strong {
    overflow: hidden;
    color: var(--pb-text);
    font-size: var(--pb-text-sm);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-night-member-copy small,
.game-night-participant-copy small {
    overflow: hidden;
    color: var(--pb-text-muted);
    font-size: var(--pb-text-xs);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-night-member .badge {
    flex: 0 0 auto;
}

.game-night-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid var(--pb-border-light);
}

.game-night-detail-grid {
    align-items: stretch;
    gap: 18px;
}

.game-night-detail-card {
    min-width: 0;
    padding: 24px;
}

.game-night-detail-card .card-header {
    margin-bottom: 18px;
}

.game-night-detail-icon,
.game-night-games-icon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--pb-primary);
    background: var(--pb-primary-muted);
    font-size: 20px;
}

.game-night-detail-rows {
    display: flex;
    flex-direction: column;
}

.game-night-detail-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--pb-border-light);
}

.game-night-detail-row:first-child {
    padding-top: 4px;
}

.game-night-detail-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.game-night-detail-symbol {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: var(--pb-primary);
    background: var(--pb-primary-muted);
    font-size: 17px;
}

.game-night-detail-row > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.game-night-detail-label {
    color: var(--pb-text-muted);
    font-size: var(--pb-text-xs);
}

.game-night-detail-row strong {
    color: var(--pb-text);
    font-size: var(--pb-text-sm);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.game-night-participant-total {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--pb-primary);
    background: var(--pb-primary-muted);
    font-size: var(--pb-text-sm);
    font-weight: 700;
}

.game-night-participant-list {
    display: flex;
    flex-direction: column;
}

.game-night-participant {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 13px 0;
    border-bottom: 1px solid var(--pb-border-light);
}

.game-night-participant:first-child {
    padding-top: 2px;
}

.game-night-participant:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.game-night-participant .badge {
    flex: 0 0 auto;
    margin-left: auto;
}

.game-night-games-card {
    padding: 26px;
}

.game-night-games-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.game-night-games-top h2 {
    margin: 0;
    font-family: var(--pb-font-heading);
    font-size: var(--pb-text-xl);
    font-weight: 600;
}

.game-night-games-top p {
    max-width: 680px;
    margin: 7px 0 0;
    color: var(--pb-text-secondary);
    font-size: var(--pb-text-sm);
    line-height: 1.6;
}

.game-night-games-placeholder {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    margin-top: 24px;
    border: 1px solid var(--pb-border-light);
    border-radius: var(--pb-radius-md);
    background: var(--pb-bg);
}

.game-night-games-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 9px;
    border-radius: var(--pb-radius-full);
    color: var(--pb-primary);
    background: var(--pb-primary-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .09em;
}

.game-night-games-placeholder strong {
    color: var(--pb-text);
    font-size: var(--pb-text-sm);
}

.game-night-games-placeholder p {
    margin: 5px 0 0;
    color: var(--pb-text-muted);
    font-size: var(--pb-text-xs);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .game-night-member-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .game-night-form-fields {
        grid-template-columns: 1fr;
    }

    .game-night-form-fields .form-group {
        grid-column: 1 / -1;
    }

    .game-night-detail-grid > .grid-span-7,
    .game-night-detail-grid > .grid-span-5,
    .game-night-detail-grid > .grid-span-12 {
        grid-column: span 12;
    }

    .game-night-form-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .game-night-form-footer .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .game-night-form-card,
    .game-night-detail-card,
    .game-night-games-card {
        padding: 18px;
    }

    .game-night-section-heading {
        flex-direction: column;
        gap: 8px;
    }

    .game-night-member {
        gap: 9px;
        padding: 11px;
    }

    .game-night-member .badge,
    .game-night-member-role {
        font-size: 10px;
    }

    .game-night-games-placeholder {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px;
    }
}

/* Game Nights playgroup selector – scoped styles */
.game-night-groups-page {
    width: 100%;
    min-width: 0;
}

.game-night-groups-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.game-night-groups-header > div:first-child {
    min-width: 0;
}

.game-night-groups-header .eyebrow {
    display: inline-block;
    margin-bottom: 9px;
}

.game-night-groups-summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--pb-border-light);
    border-radius: var(--pb-radius-md);
    background: var(--pb-card);
    white-space: nowrap;
}

.game-night-groups-summary-value {
    color: var(--pb-text);
    font-family: var(--pb-font-heading);
    font-size: var(--pb-text-lg);
    font-weight: 700;
}

.game-night-groups-summary-label {
    color: var(--pb-text-muted);
    font-size: var(--pb-text-xs);
}

.game-night-groups-section {
    width: 100%;
}

.game-night-groups-section-heading {
    margin-bottom: 17px;
}

.game-night-groups-section-heading h2 {
    margin: 0;
    color: var(--pb-text);
    font-family: var(--pb-font-heading);
    font-size: var(--pb-text-lg);
    font-weight: 600;
}

.game-night-groups-section-heading p {
    margin: 6px 0 0;
    color: var(--pb-text-muted);
    font-size: var(--pb-text-sm);
}

.game-night-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 18px;
    width: 100%;
    align-items: stretch;
}

.game-night-group-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 205px;
    padding: 21px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background:
            radial-gradient(ellipse at top right, rgba(45, 212, 191, .075), transparent 58%),
            var(--pb-card);
    border: 1px solid var(--pb-border-light);
    border-radius: var(--pb-radius-lg);
    transition: transform var(--pb-transition-fast), border-color var(--pb-transition-fast), background var(--pb-transition-fast), box-shadow var(--pb-transition-fast);
}

.game-night-group-card:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 212, 191, .38);
    background:
            radial-gradient(ellipse at top right, rgba(45, 212, 191, .11), transparent 58%),
            var(--pb-card-hover);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
}

.game-night-group-card:focus-visible {
    outline: 2px solid var(--pb-primary);
    outline-offset: 3px;
}

.game-night-group-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.game-night-group-card-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--pb-primary);
    background: var(--pb-primary-muted);
    border-radius: 12px;
    font-size: 19px;
}

.game-night-group-card-arrow {
    color: var(--pb-text-muted);
    font-size: 18px;
    transition: color var(--pb-transition-fast), transform var(--pb-transition-fast);
}

.game-night-group-card:hover .game-night-group-card-arrow {
    color: var(--pb-primary);
    transform: translate(2px, -2px);
}

.game-night-group-card-content {
    flex: 1;
    min-width: 0;
    padding: 22px 0 18px;
}

.game-night-group-card-content h3 {
    margin: 0 0 11px;
    overflow-wrap: anywhere;
    color: var(--pb-text);
    font-family: var(--pb-font-heading);
    font-size: var(--pb-text-lg);
    font-weight: 600;
    line-height: 1.3;
}

.game-night-group-card-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--pb-text-muted);
    font-size: var(--pb-text-xs);
}

.game-night-group-member-icon {
    color: var(--pb-primary);
    font-size: 15px;
}

.game-night-group-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--pb-border-light);
    color: var(--pb-primary);
    font-size: var(--pb-text-sm);
    font-weight: 600;
}

.game-night-groups-empty {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
    padding: 36px 24px;
    text-align: center;
}

.game-night-groups-empty-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 17px;
    border-radius: 14px;
    color: var(--pb-primary);
    background: var(--pb-primary-muted);
    font-size: 22px;
}

.game-night-groups-empty .card-title {
    margin-bottom: 7px;
}

.game-night-groups-empty .card-subtitle {
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .game-night-groups-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .game-night-groups-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .game-night-group-card {
        min-height: 178px;
        padding: 18px;
    }
}

.game-night-response-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.game-night-response-actions form {
    margin: 0;
}

.game-night-response-actions button:disabled {
    opacity: 0.55;
    cursor: default;
}

@media (max-width: 520px) {
    .game-night-response-actions form,
    .game-night-response-actions button {
        width: 100%;
    }
}