.app-toast-host {
    z-index: 1090;
    pointer-events: none;
    width: min(100% - 1.5rem, 22rem);
}

.app-toast-host .toast {
    pointer-events: auto;
}

@media (max-width: 576px) {
    .app-toast-host {
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
    }
}

.navbar-brand__title {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    line-height: 1.25;
    white-space: normal;
}

@media (max-width: 991.98px) {
    .navbar-header-fluid {
        flex-wrap: wrap;
        align-items: center;
        row-gap: 0.35rem;
    }

    .navbar-header-fluid > .navbar-brand {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        margin-inline-end: 0;
        order: 1;
        box-sizing: border-box;
    }

    .navbar-header-fluid > .navbar-brand .navbar-brand__title {
        display: block;
        width: 100%;
    }

    .navbar-header-fluid > .navbar-toolbar {
        order: 2;
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        margin-inline-start: 0;
        justify-content: flex-end;
        flex-wrap: nowrap;
        box-sizing: border-box;
    }

    .navbar-header-fluid > .navbar-collapse {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
    }
}

.navbar {
    max-width: 100%;
}

.navbar-toolbar {
    flex-shrink: 0;
    max-width: 100%;
}

.navbar-toggler-wrap {
    display: inline-flex;
    align-items: center;
}

.navbar-toolbar-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex: 0 0 auto;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.25rem 0.45rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    word-break: keep-all;
}

.navbar-toolbar-chip__icon {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
}

.navbar-toolbar-chip__count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    min-height: 1.25rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.navbar-toolbar-chip--pending {
    border-color: #ffc107;
    background: #fff8e1;
    color: #664d03;
}

.navbar-toolbar-chip--pending .navbar-toolbar-chip__count {
    background: #ffc107;
    color: #212529;
}

.navbar-toolbar-chip--pending:hover,
.navbar-toolbar-chip--pending:focus-visible {
    color: #664d03;
    background: #fff3cd;
}

.navbar-toolbar-chip--challenge {
    border-color: #9ec5fe;
    background: #e7f1ff;
    color: #084298;
}

.navbar-toolbar-chip--challenge .navbar-toolbar-chip__count {
    background: #0d6efd;
    color: #fff;
}

.navbar-toolbar-chip--challenge:hover,
.navbar-toolbar-chip--challenge:focus-visible {
    color: #084298;
    background: #cfe2ff;
}

.admin-pending-toggler-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    z-index: 2;
    min-width: 1.25rem;
    min-height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
    pointer-events: none;
    border: 2px solid #f8f9fa;
}

.admin-pending-nav-link__badge {
    font-size: 0.7rem;
    min-width: 1.4rem;
}

.navbar .container-fluid {
    gap: 0.35rem;
}

.navbar-brand {
    min-width: 0;
}

@media (min-width: 992px) {
    .navbar-brand {
        max-width: min(42vw, 28rem);
        margin-inline-end: auto;
    }
}

.header-auth-nav {
    gap: 0.25rem;
    width: 100%;
}

@media (min-width: 992px) {
    .header-auth-nav {
        width: auto;
        max-width: none;
    }
}

.header-auth-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    width: 100%;
    text-align: start;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .header-auth-nav__link {
        width: auto;
        text-align: end;
        justify-content: flex-end;
    }
}

.header-account-nav-item {
    margin-bottom: 0.25rem;
}

@media (min-width: 992px) {
    .header-account-nav-item {
        margin-bottom: 0;
        margin-inline-start: 0.35rem;
        max-width: min(12rem, 20vw);
    }
}

.header-account-toolbar-slot {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(7.5rem, 34vw);
}

.header-account-dropdown {
    position: relative;
    max-width: 100%;
    min-width: 0;
}

.header-account-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0.35rem 0.5rem 0.35rem 0.65rem;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    color: rgba(33, 37, 41, 0.85);
    text-align: start;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    background-color: transparent;
}

.header-account-dropdown__toggle:hover,
.header-account-dropdown__toggle:focus-visible {
    color: rgba(33, 37, 41, 1);
    background-color: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.header-account-dropdown__toggle::after {
    flex-shrink: 0;
    margin-inline-start: 0.15rem;
}

.header-account-dropdown__toggle-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    text-align: start;
    line-height: 1.15;
}

.header-account-dropdown__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
    font-size: 0.88rem;
}

.header-account-dropdown__roles-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    margin-top: 0.12rem;
    max-width: 100%;
}

.header-account-dropdown__roles-inline .header-account-dropdown__role-badge {
    font-size: 0.58rem;
    padding: 0.2em 0.4em;
}

.header-account-dropdown__menu {
    --bs-dropdown-min-width: 10rem;
    width: min(16rem, calc(100vw - 1rem));
    max-width: min(16rem, calc(100vw - 1rem));
    box-sizing: border-box;
}

@media (max-width: 991.98px) {
    .header-account-dropdown--toolbar {
        position: relative;
    }

    .header-account-dropdown--toolbar .header-account-dropdown__menu {
        position: absolute;
        top: 100%;
        inset-inline-end: 0;
        inset-inline-start: auto;
        transform: none;
        margin-top: 0.25rem;
        max-width: min(16rem, calc(100vw - 0.75rem));
    }
}

@media (max-width: 399.98px) {
    .navbar-toolbar {
        gap: 0.15rem;
    }

    .header-account-toolbar-slot {
        max-width: 4.75rem;
    }

    .header-account-dropdown--toolbar .header-account-dropdown__menu.show {
        position: fixed;
        left: 0.5rem;
        right: 0.5rem;
        top: 5.5rem;
        width: auto;
        max-width: none;
        transform: none;
    }
}

.header-account-dropdown__menu .dropdown-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-body-color);
    padding-bottom: 0.35rem;
}

.header-account-dropdown__menu .dropdown-item.header-account-dropdown__logout {
    white-space: nowrap;
}

.header-account-dropdown__soon {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.35;
}

.header-account-dropdown__fullname {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.3;
}

.header-account-dropdown__roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.header-account-dropdown__role-badge {
    background-color: #0d6efd;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.3em 0.5em;
    line-height: 1.2;
    white-space: nowrap;
}

.pyramid-card__status--blocked {
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.72rem;
    margin: 0.35rem 0 0;
}

.pyramid-card__status {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    line-height: 1.35;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.pyramid-global-hint {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

.header-account-dropdown__logout-form {
    margin: 0;
}

.header-account-dropdown__logout {
    width: 100%;
    text-align: start;
    border: 0;
    background: transparent;
}

.eight-ball {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #666, #111);
    border: 2px solid #222;
}

.home-layout {
    align-items: flex-start;
}

.pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.pyramid-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.nav-link.active {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.pyramid-section {
    max-width: 100%;
    overflow-x: hidden;
}

.pyramid-card {
    box-sizing: border-box;
    width: 9.25rem;
    max-width: 9.25rem;
    min-height: 5.25rem;
    padding: 0.5rem 0.55rem 0.45rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.pyramid-card__header {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0.15rem;
    min-height: 2.5rem;
}

.pyramid-card__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pyramid-card__avatar--placeholder {
    display: inline-block;
    background: #e9ecef;
    border: 1px solid #dee2e6;
}

.pyramid-badge--cooldown {
    border-color: #fd7e14;
    color: #b35c00;
    background: #fff3e6;
}

.profile-avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

.profile-avatar-preview--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    border: 1px solid #dee2e6;
    color: #495057;
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pyramid-card__rank {
    font-weight: 700;
    font-size: 0.85rem;
}

.pyramid-card__name {
    font-size: 0.78rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.pyramid-card__body {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    min-height: 2.1rem;
    margin-top: 0.25rem;
}

.pyramid-card--current {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.pyramid-card--challenger {
    border-color: #fd7e14;
    box-shadow: 0 0 0 2px rgba(253, 126, 20, 0.2);
}

.pyramid-card--outgoing-opponent {
    border-color: #6f42c1;
    box-shadow: 0 0 0 1px rgba(111, 66, 193, 0.25);
}

.pyramid-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    margin: 0 auto;
    padding: 0.2rem 0.35rem;
    border-radius: 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.2;
}

.pyramid-badge--blocked {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f1aeb5;
}

.pyramid-badge--challenger {
    background-color: #fff3cd;
    color: #664d03;
    border: 1px solid #ffe69c;
}

.pyramid-badge--opponent {
    background-color: #e7e2f3;
    color: #432874;
    border: 1px solid #d7c9e8;
}

.pyramid-badge__icon {
    flex-shrink: 0;
}

.pyramid-card__challenge-form {
    margin: 0;
    width: 100%;
}

.pyramid-card__challenge-btn {
    width: 100%;
    min-height: 2.125rem;
    padding: 0.2rem 0.45rem;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    border-width: 1px;
    border-radius: 0.3rem;
    box-shadow: 0 0.1rem 0.25rem rgba(220, 53, 69, 0.3);
}

.pyramid-card__challenge-btn:hover,
.pyramid-card__challenge-btn:focus-visible {
    box-shadow: 0 0.2rem 0.5rem rgba(220, 53, 69, 0.45);
}

.pyramid-card__challenge-btn:focus-visible {
    outline: 3px solid #212529;
    outline-offset: 2px;
}

@media (min-width: 320px) and (max-width: 575.98px) {
    .pyramid-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: stretch;
        width: 100%;
        max-width: 100%;
    }

    .pyramid-card {
        width: 100%;
        max-width: 100%;
    }
}

.club-logo-nav {
    width: 3rem;
    height: 3rem;
    max-width: 3rem;
    max-height: 3rem;
    object-fit: contain;
    flex-shrink: 0;
    align-self: center;
}

@media (max-width: 399.98px) {
    .club-logo-nav {
        width: 2.125rem;
        height: 2.125rem;
        max-width: 2.125rem;
        max-height: 2.125rem;
    }
}

.pyramid-card__avatar-btn,
.profile-avatar-preview-btn {
    display: inline-block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 50%;
    line-height: 0;
    cursor: pointer;
    vertical-align: middle;
}

.pyramid-card__avatar-btn:focus-visible,
.profile-avatar-preview-btn:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

body.app-avatar-modal-open .modal-backdrop.show {
    opacity: 0.88;
    background-color: #000;
}

.app-avatar-modal__dialog {
    max-width: min(360px, 92vw);
}

.app-avatar-modal__content {
    position: relative;
    background: rgba(24, 26, 28, 0.96) !important;
    border-radius: 0.65rem;
    color: #f8f9fa;
}

.app-avatar-modal__image {
    display: block;
    width: min(320px, 80vw);
    height: min(320px, 80vw);
    max-width: 100%;
    margin-inline: auto;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    background: #343a40;
}

.app-avatar-modal__caption {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f8f9fa;
}

.app-avatar-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    filter: invert(1) grayscale(100%);
    opacity: 0.92;
}

.app-file-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
}

.app-file-input__native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-file-input__filename {
    flex: 1 1 100%;
    word-break: break-word;
}

@media (min-width: 400px) {
    .app-file-input__filename {
        flex: 1 1 auto;
    }
}

.header-account-dropdown__toggle-inner {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    max-width: 100%;
}

.header-account-dropdown__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.header-account-dropdown__avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    border: 1px solid #ced4da;
    color: #495057;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.header-account-dropdown--toolbar .header-account-dropdown__avatar {
    width: 32px;
    height: 32px;
}

@media (max-width: 991.98px) {
    .header-account-dropdown--toolbar .header-account-dropdown__toggle-stack {
        display: none;
    }

    .header-account-dropdown--toolbar .header-account-dropdown__toggle::after {
        display: none;
    }

    .header-account-toolbar-slot {
        max-width: 2.85rem;
    }

    .header-account-dropdown--toolbar .header-account-dropdown__toggle {
        padding: 0.25rem;
        min-width: 2.5rem;
    }
}

.discipline-badge {
    font-weight: 500;
    font-size: 0.75rem;
}

.challenge-row--highlight {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
    background-color: rgba(var(--bs-primary-rgb), 0.08);
}

.challenge-mobile-card .discipline-badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.challenge-action-btn {
    min-height: 2.75rem;
}

.challenge-actions-cell {
    min-width: 11rem;
    max-width: 20rem;
}

.challenge-result-form__scores {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.35rem 0.5rem;
    max-width: 100%;
    margin-left: auto;
}

.challenge-result-form__side {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1 1 5.5rem;
    min-width: 0;
}

.challenge-result-form__player-name {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    word-break: break-word;
}

.challenge-result-form__colon {
    align-self: flex-end;
    font-weight: 700;
    padding-bottom: 0.35rem;
    flex: 0 0 auto;
}

.challenge-result-form__error {
    display: none;
    font-weight: 600;
    line-height: 1.35;
}

.challenge-result-form__error--visible {
    display: block;
}

.challenge-result-form__score.is-invalid {
    border-color: var(--bs-danger);
    box-shadow: 0 0 0 0.15rem rgba(var(--bs-danger-rgb), 0.2);
}

@media (min-width: 768px) {
    .challenge-result-form__scores {
        max-width: 22rem;
    }

    .challenge-result-form__side {
        flex: 1 1 6.5rem;
    }
}

.nav-challenges-pending {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-challenges-pending__badge {
    font-size: 0.7rem;
    min-width: 1.35rem;
}

.navbar-toolbar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-challenges-compact {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 2.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #0d6efd;
    background: #e7f1ff;
    color: #084298;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    max-width: 7.5rem;
    word-break: break-word;
}

.nav-challenges-compact:hover,
.nav-challenges-compact:focus {
    color: #084298;
    background: #cfe2ff;
}

@media (max-width: 575.98px) {
    .challenge-result-form {
        width: 100%;
    }

    .challenge-result-form__scores {
        max-width: 100%;
        margin-left: 0;
    }
}

.news-panel {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
}

.news-list__date {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
}

@media (max-width: 991.98px) {
    .news-panel {
        position: static;
        max-height: none;
    }
}

.discipline-switcher__desktop {
    flex-wrap: wrap;
    gap: 0.35rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 0.5rem;
}

.discipline-switcher__tab {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: #495057;
    background: #f8f9fa;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.discipline-switcher__tab:hover {
    color: #111;
    background: #e9ecef;
}

.discipline-switcher__tab--active {
    color: #fff;
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

.discipline-switcher__select {
    font-weight: 500;
}

.discipline-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .discipline-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .discipline-dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.discipline-dashboard-tile {
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.discipline-dashboard-tile__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #e9ecef;
}

.discipline-dashboard-tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.discipline-dashboard-tile__body {
    position: relative;
}

.discipline-admin-thumb {
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.admin-info-hint {
    line-height: 1;
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.admin-info-hint:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
    border-radius: 999px;
}

.admin-info-hint__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    border: 1px solid currentColor;
    font-size: 0.7rem;
    font-weight: 700;
    font-style: italic;
    color: var(--bs-secondary);
}

.popover.admin-info-popover {
    max-width: min(100vw - 2rem, 22rem);
}

.popover.admin-info-popover .popover-body {
    font-size: 0.9rem;
}

.popover.admin-info-popover a {
    word-break: break-word;
}

/* Admin-Listen: Desktop-Tabelle + Mobile-Karten (<768px) */
@media (min-width: 768px) {
    .admin-data-table .admin-action-form {
        display: inline;
    }

    .admin-data-table .admin-action-form + .admin-action-form {
        margin-inline-start: 0.35rem;
    }

    .admin-data-table .admin-mobile-details {
        display: inline-block;
        vertical-align: middle;
    }

    .admin-data-table .admin-rank-move-form {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        align-items: center;
    }

    .admin-data-table .admin-rank-target {
        width: 4.5rem;
    }
}

@media (max-width: 767.98px) {
    .admin-mobile-cards {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .admin-mobile-card__value {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .admin-mobile-card__actions .admin-action-form,
    .admin-mobile-card__actions > form,
    .admin-mobile-card__actions > details {
        display: block;
        width: 100%;
    }

    .admin-mobile-card__actions .btn,
    .admin-mobile-details > summary.btn {
        width: 100%;
        min-height: 2.75rem;
    }

    .admin-mobile-card__actions .admin-rank-move-form {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .admin-mobile-card__actions .admin-rank-target {
        width: 100%;
        max-width: none;
    }

    .admin-mobile-details__panel {
        min-width: 0 !important;
    }
}

.rules-accordion .accordion-button {
    font-weight: 600;
}

.rules-accordion .accordion-body {
    line-height: 1.55;
}

.rules-settings-dl dt {
    font-weight: 500;
}

.rules-pyramid-demo {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.rules-pyramid-demo__rows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    overflow-x: auto;
    padding: 0.25rem 0;
}

.rules-pyramid-demo__row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.35rem;
}

.rules-pyramid-demo__place {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.rules-pyramid-demo__place:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.rules-pyramid-demo__place--challenger {
    border-color: var(--bs-danger);
    background: rgba(var(--bs-danger-rgb), 0.15);
    box-shadow: 0 0 0 2px rgba(var(--bs-danger-rgb), 0.25);
}

.rules-pyramid-demo__place--target {
    border-color: var(--bs-success);
    background: rgba(var(--bs-success-rgb), 0.2);
}

.rules-pyramid-demo__hint {
    font-weight: 500;
    min-height: 1.5em;
}

@media (max-width: 390px) {
    .rules-pyramid-demo__place {
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
        font-size: 0.65rem;
    }

    .rules-pyramid-demo__row {
        gap: 0.25rem;
    }
}
