html {
    min-height: 100%;
    position: relative;
}

body {
    background: #171a1f;
    color: #eef3f8;
    margin-bottom: 72px;
}

.text-body-secondary {
    color: #b9c4d1 !important;
}

code {
    color: #ff8fc1;
}

.landing-hero {
    background-position: center;
    background-size: cover;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    min-height: min(720px, calc(100vh - 170px));
    overflow: hidden;
}

.landing-hero__shade {
    align-items: center;
    background: linear-gradient(90deg, rgba(5, 10, 16, .96) 0%, rgba(5, 10, 16, .82) 42%, rgba(5, 10, 16, .24) 100%);
    display: flex;
    min-height: inherit;
    padding: clamp(2rem, 6vw, 5rem);
}

.landing-hero__content {
    max-width: 720px;
}

.landing-title {
    font-size: clamp(2.4rem, 6vw, 5.6rem);
    font-weight: 800;
    line-height: .98;
}

.landing-copy {
    color: rgba(255, 255, 255, .78);
    font-size: 1.2rem;
    line-height: 1.65;
    max-width: 680px;
}

.landing-band {
    border-bottom: 1px solid var(--bs-border-color);
    border-top: 1px solid var(--bs-border-color);
    padding: 3rem 0;
}

.value-tile,
.game-card,
.landing-cta {
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
}

.value-tile {
    min-height: 220px;
    padding: 1.25rem;
}

.value-tile span {
    color: var(--bs-info);
    display: inline-block;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.value-tile h3,
.game-card h3 {
    font-size: 1.15rem;
    margin-bottom: .75rem;
}

.value-tile p,
.game-card p {
    color: var(--bs-secondary-color);
    margin-bottom: 0;
}

.game-card {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1.25rem;
}

.game-card .btn {
    margin-top: auto;
}

.game-card--active {
    border-color: var(--bs-info);
}

.landing-cta {
    background: linear-gradient(135deg, rgba(35, 137, 168, .18), rgba(28, 32, 38, 1));
    padding: clamp(1.5rem, 4vw, 3rem);
}

.metric-panel {
    align-items: flex-start;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-height: 96px;
    padding: 1rem;
}

.metric-panel strong {
    color: var(--bs-info);
    font-size: 1.75rem;
    line-height: 1.1;
}

.auth-shell {
    align-items: center;
    background-image: url('/images/lcg-hero.png');
    background-position: center;
    background-size: cover;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    display: grid;
    gap: clamp(1.5rem, 5vw, 4rem);
    grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
    margin: 0 auto 4rem;
    max-width: none;
    min-height: min(720px, calc(100vh - 170px));
    overflow: hidden;
    padding: clamp(2rem, 6vw, 5rem);
    position: relative;
}

.auth-shell::before {
    background: linear-gradient(90deg, rgba(5, 10, 16, .96) 0%, rgba(5, 10, 16, .84) 46%, rgba(5, 10, 16, .46) 100%);
    content: "";
    inset: 0;
    position: absolute;
}

.auth-shell > * {
    position: relative;
    z-index: 1;
}

.auth-shell--compact {
    display: grid;
    grid-template-columns: minmax(320px, 560px);
    justify-content: end;
}

.auth-visual,
.auth-card {
    border-radius: 8px;
}

.auth-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: 0;
}

.auth-visual h1 {
    font-size: clamp(2.4rem, 6vw, 5.6rem);
    font-weight: 800;
    line-height: .98;
    max-width: 700px;
}

.auth-visual p:last-child {
    color: rgba(255, 255, 255, .78);
    font-size: 1.2rem;
    line-height: 1.65;
    max-width: 620px;
}

.auth-card {
    align-self: center;
    background: rgba(28, 32, 38, .92);
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
    backdrop-filter: blur(10px);
    padding: clamp(1.25rem, 4vw, 2rem);
    width: 100%;
}

.auth-shell--compact .auth-card {
    max-width: 540px;
}

.auth-card__header {
    margin-bottom: 1.5rem;
}

.auth-card__header h2 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    margin: .75rem 0 .5rem;
}

.auth-card__header p,
.auth-card__footer {
    color: var(--bs-secondary-color);
}

.auth-card__footer {
    border-top: 1px solid var(--bs-border-color);
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.admin-hero {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(5, 10, 16, .96), rgba(18, 22, 28, .88)),
        url('/images/lcg-hero.png') center / cover;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    min-height: 240px;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.admin-hero--catalog {
    min-height: 220px;
}

.admin-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
}

.admin-hero p:last-child {
    color: #d2d9e3;
    max-width: 720px;
}

.admin-hero__actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-width: 220px;
}

.admin-stat-chip {
    background: rgba(23, 27, 32, .76);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-width: 124px;
    padding: .85rem 1rem;
}

.admin-stat-chip span {
    color: var(--bs-secondary-color);
    font-size: .82rem;
}

.admin-stat-chip strong {
    color: var(--bs-info);
    font-size: 1.6rem;
    line-height: 1;
}

.admin-metric,
.admin-panel,
.admin-quick,
.admin-catalog-link,
.catalog-tab {
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
}

.admin-metric {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-height: 118px;
    padding: 1rem;
}

.admin-metric > span:first-child {
    color: var(--bs-info);
    font-weight: 800;
}

.admin-metric strong {
    color: var(--bs-info);
    font-size: 2rem;
    line-height: 1;
}

.admin-quick,
.admin-panel {
    overflow: hidden;
}

.admin-quick {
    padding: 1.25rem;
}

.admin-section-title {
    margin-bottom: 1rem;
}

.admin-section-title h2,
.admin-panel__header h2 {
    color: #f6f9fc;
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0;
}

.admin-page-shell {
    width: 100%;
}

.admin-page-shell--wide {
    margin-inline: auto;
    max-width: 1720px;
    position: relative;
    transform: translateX(-50%);
    width: min(1720px, calc(100vw - 3rem));
    left: 50%;
}

.admin-catalog-link {
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    min-height: 118px;
    padding: 1rem;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}

.admin-catalog-link:hover {
    border-color: var(--bs-info);
    color: inherit;
    transform: translateY(-1px);
}

.admin-catalog-link span,
.catalog-tab span {
    color: var(--bs-secondary-color);
    font-size: .82rem;
}

.admin-catalog-link strong {
    color: var(--bs-info);
    font-size: 1.2rem;
}

.admin-panel__header {
    align-items: center;
    background: rgba(255, 255, 255, .015);
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.admin-panel__body {
    padding: 1.25rem;
}

.admin-form-panel {
    position: sticky;
    top: 1rem;
}

.admin-form-panel .form-control,
.admin-form-panel .form-select,
.admin-table .form-control,
.admin-table .form-select {
    background: #161c23;
    border-color: #47515d;
    box-shadow: none;
    color: #f3f6fa;
    font-size: 1.05rem;
}

.admin-form-panel .form-control::placeholder,
.admin-table .form-control::placeholder {
    color: #97a3b3;
}

.admin-form-panel .form-control:focus,
.admin-form-panel .form-select:focus,
.admin-table .form-control:focus,
.admin-table .form-select:focus {
    background: #1d232a;
    border-color: rgba(55, 186, 216, .9);
    box-shadow: 0 0 0 .18rem rgba(55, 186, 216, .16);
    color: #ffffff;
}

.admin-table th {
    color: #ccd6e2;
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.admin-table td,
.admin-table th {
    padding: 1rem 1rem;
    vertical-align: top;
}

.admin-table td {
    border-color: rgba(255, 255, 255, .08);
    color: #f1f5fa;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, .03);
}

.admin-table-wrap {
    max-height: 640px;
    overflow-x: auto;
}

.admin-table {
    min-width: 1180px;
}

.admin-games-table {
    min-width: 960px;
}

.admin-news-table {
    min-width: 1180px;
}

.admin-table__id {
    width: 84px;
}

.admin-table__preview {
    width: 90px;
}

.admin-table__name {
    min-width: 220px;
}

.admin-table__product {
    min-width: 200px;
}

.admin-table__defaults {
    min-width: 280px;
}

.admin-table__image {
    min-width: 280px;
}

.admin-table__actions {
    width: 240px;
}

.admin-empty {
    padding: 2rem;
}

.admin-empty h3 {
    font-size: 1.35rem;
    font-weight: 800;
}

.admin-feedback {
    background: rgba(55, 186, 216, .14);
    border-color: rgba(55, 186, 216, .35);
    color: #eef8ff;
}

.admin-game-cell {
    align-items: center;
    display: flex;
    gap: .85rem;
    min-width: 260px;
}

.admin-game-thumb {
    align-items: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: .8rem;
    color: #aab7c7;
    display: flex;
    flex: 0 0 64px;
    font-size: .75rem;
    font-weight: 700;
    height: 64px;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    width: 64px;
}

.admin-game-thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.admin-game-thumb--empty {
    padding: .35rem;
}

.admin-game-meta {
    display: flex;
    flex-direction: column;
    gap: .18rem;
}

.admin-game-meta strong {
    color: #f5f8fc;
    font-size: 1rem;
}

.admin-game-meta span {
    color: #98a4b3;
    font-size: .82rem;
}

.admin-game-modal .form-label {
    color: #ebf1f7;
    font-weight: 700;
}

.admin-game-modal .form-control,
.admin-game-modal .form-select {
    background: #161c23;
    border-color: #47515d;
    color: #f3f6fa;
}

.admin-game-modal .form-control::placeholder {
    color: #97a3b3;
}

.admin-news-title {
    min-width: 260px;
}

.admin-news-url {
    max-width: 380px;
}

.admin-news-url a {
    color: #7dd4ff;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.player-home-hero,
.player-game-shell {
    background: linear-gradient(180deg, rgba(34, 37, 43, .96), rgba(24, 26, 31, .98));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
}

.player-home-hero {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    padding: 1.5rem;
}

.player-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.player-game-shell {
    padding: 1.5rem;
}

.player-game-header {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr);
    margin-bottom: 1.25rem;
}

.player-game-topbar {
    align-items: flex-start;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.player-timestrip {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-bottom: 1rem;
}

.player-stat-chip--accent {
    background: rgba(55, 186, 216, .1);
    border-color: rgba(55, 186, 216, .4);
}

.player-stat-chip--accent strong {
    color: #7dd4ff;
}

.player-panel-meta {
    color: #aebccd;
    font-size: .82rem;
    margin-top: .15rem;
}

.player-game-header__identity {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.player-game-header__art {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    height: 88px;
    object-fit: cover;
    width: 88px;
}

.player-game-header__stats,
.player-progress-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.player-stat-chip,
.player-progress-card,
.player-time-snapshot,
.player-news-item,
.player-product-item {
    background: #1a2028;
    border: 1px solid #384351;
    border-radius: 10px;
}

.player-stat-chip,
.player-progress-card {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .85rem .95rem;
}

.player-stat-chip span,
.player-progress-card span,
.player-progress-card small,
.player-time-snapshot span,
.player-news-item__meta {
    color: #aebccd;
}

.player-stat-chip strong,
.player-progress-card strong,
.player-time-snapshot strong,
.player-news-item strong,
.player-product-item__body strong {
    color: #f3f8fd;
}

.player-game-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
    margin-bottom: 1rem;
}

.player-game-grid--summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.player-timeline-form .form-control {
    background: #161c23;
    border-color: #47515d;
    color: #f3f6fa;
}

.player-time-snapshot {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: .85rem .95rem;
}

.player-time-snapshot--clean {
    background: rgba(13, 17, 23, .42);
}

.player-time-snapshot div {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.player-news-list,
.player-product-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.player-news-item {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .9rem 1rem;
    transition: border-color .15s ease, transform .15s ease;
}

.player-news-item:hover {
    border-color: rgba(55, 186, 216, .55);
    transform: translateY(-1px);
}

.player-news-item--read {
    background: rgba(26, 32, 40, .55);
    border-color: rgba(255, 255, 255, .06);
}

.player-news-item__link {
    color: inherit;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
}

.player-news-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-bottom: .35rem;
    font-size: .82rem;
}

.player-news-item__action {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
}

.player-product-item {
    align-items: center;
    display: grid;
    gap: .8rem;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    padding: .75rem;
}

.player-product-item--locked {
    opacity: .75;
}

.player-product-item__action {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
}

.player-product-item__art {
    align-items: center;
    background: #12171d;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    display: flex;
    height: 64px;
    justify-content: center;
    overflow: hidden;
    width: 64px;
}

.player-product-item__art img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.player-product-item__art span {
    color: #d7e2ee;
    font-size: .72rem;
    font-weight: 800;
}

.player-product-item__body {
    min-width: 0;
}

.player-product-item__meta {
    color: #aebccd;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .8rem;
    font-size: .82rem;
    margin-top: .25rem;
}

.player-config-modal {
    overflow: hidden;
}

.player-config-intro {
    background: rgba(55, 186, 216, .08);
    border: 1px solid rgba(55, 186, 216, .18);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .85rem .95rem;
}

.player-config-intro strong {
    color: #f2f8fd;
    font-size: 1rem;
}

.player-config-intro span {
    color: #b8c4d1;
    font-size: .9rem;
}

.player-progress-card--muted {
    background: rgba(26, 32, 40, .72);
}

.catalog-tabs {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-tab {
    background: linear-gradient(180deg, rgba(37, 40, 46, .94), rgba(29, 32, 37, .94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-height: 98px;
    padding: 1.05rem 1.15rem;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.catalog-tab:hover,
.catalog-tab--active {
    border-color: var(--bs-info);
    color: inherit;
    transform: translateY(-1px);
}

.catalog-tab--active {
    background: linear-gradient(180deg, rgba(20, 55, 68, .95), rgba(23, 29, 34, .98));
}

.catalog-tab--active strong {
    color: var(--bs-info);
}

.catalog-tab strong {
    color: #f4f7fb;
    font-size: 1.05rem;
}

.admin-id {
    color: #d4dde8;
    font-weight: 700;
}

.admin-thumb {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    height: 48px;
    object-fit: cover;
    width: 48px;
}

.admin-thumb--empty {
    align-items: center;
    color: var(--bs-secondary-color);
    display: flex;
    font-size: .75rem;
    font-weight: 800;
    justify-content: center;
}

.admin-row-actions {
    display: flex;
    gap: .55rem;
    justify-content: flex-end;
    white-space: nowrap;
}

.admin-row-actions .btn {
    min-width: 104px;
    padding-inline: .85rem;
}

.admin-panel__meta {
    align-items: center;
    display: flex;
    gap: .5rem;
}

.admin-catalog-layout .col-lg-8 .admin-panel {
    min-height: 100%;
}

.admin-table small {
    color: #b8c2cf !important;
    display: block;
    margin-top: .45rem;
    line-height: 1.45;
}

/* Admin catalog refinements */
.admin-hero h1 {
    font-size: clamp(1.85rem, 4vw, 3.15rem);
    line-height: 1.02;
}

.admin-hero__copy {
    color: #d2d9e3;
    font-size: 1.02rem;
    max-width: 720px;
}

.admin-title-count {
    color: #8bb7d5;
    font-size: .8em;
    font-weight: 600;
}

.admin-dev-details {
    margin: 0;
    max-width: 760px;
}

.admin-dev-details summary {
    color: #95b7cc;
    cursor: pointer;
    display: inline-block;
    font-size: .92rem;
    font-weight: 600;
    list-style: none;
}

.admin-dev-details summary::-webkit-details-marker {
    display: none;
}

.admin-dev-details__body {
    color: #bcc8d6;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    margin-top: .75rem;
}

.catalog-tabs--compact {
    gap: .6rem;
}

.catalog-tabs--compact .catalog-tab {
    min-height: 74px;
    padding: .85rem 1rem;
}

.catalog-tabs--compact .catalog-tab strong {
    font-size: .98rem;
}

.admin-inline-help {
    color: #8da9bc;
    font-size: .82rem;
    font-weight: 600;
}

.admin-chip-selector {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

.admin-choice-chip {
    align-items: center;
    background: #1a2028;
    border: 1px solid #384351;
    border-radius: 999px;
    color: #dbe6f1;
    cursor: pointer;
    display: inline-flex;
    gap: .55rem;
    padding: .55rem .85rem;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.admin-choice-chip:hover {
    border-color: #5a6a7d;
    transform: translateY(-1px);
}

.admin-choice-chip input {
    accent-color: #4ca8d6;
    margin: 0;
}

.admin-choice-chip--selected {
    background: rgba(44, 114, 146, .18);
    border-color: rgba(76, 168, 214, .72);
}

.admin-table {
    min-width: 1020px;
}

.admin-table__name {
    min-width: 230px;
}

.admin-table__product {
    min-width: 180px;
}

.admin-table__defaults {
    min-width: 260px;
}

.admin-table__image {
    min-width: 200px;
}

.admin-table__actions {
    width: 190px;
}

.admin-table--readonly td {
    vertical-align: middle;
}

.admin-row--active {
    box-shadow: inset 3px 0 0 rgba(76, 168, 214, .9);
}

.admin-thumb {
    height: 56px;
    width: 56px;
}

.admin-cell-title {
    color: #f4f8fc;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.admin-soft-chip {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    color: #dbe8f4;
    display: inline-flex;
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.2;
    padding: .38rem .72rem;
}

.admin-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.admin-file-pill {
    background: #161c23;
    border: 1px solid #3a4654;
    border-radius: 10px;
    color: #ecf3fb;
    display: inline-flex;
    font-size: .92rem;
    line-height: 1.3;
    max-width: 100%;
    padding: .7rem .85rem;
    word-break: break-word;
}

.admin-row-actions {
    gap: .45rem;
}

.admin-row-actions .btn {
    min-width: 84px;
    padding-inline: .75rem;
}

.admin-toolbar {
    gap: 1rem;
}

.admin-toolbar__actions {
    display: flex;
    gap: .75rem;
}

.admin-modal .modal-dialog {
    max-width: 920px;
}

.admin-modal__content {
    background: linear-gradient(180deg, #20262f 0%, #1a1f27 100%);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .45);
    display: flex;
    flex-direction: column;
}

.admin-modal__header,
.admin-modal__footer {
    border-color: rgba(255, 255, 255, .08);
    padding-inline: 1.35rem;
}

.admin-modal__body {
    padding: 1.35rem;
}

.admin-modal__header h2 {
    color: #f6f9fc;
    font-size: 1.45rem;
    font-weight: 800;
}

.marvel-session-modal {
    max-width: min(1280px, calc(100vw - 2rem));
}

.marvel-session-modal .modal-content {
    max-height: calc(100vh - 2rem);
}

.marvel-session-modal form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.marvel-session-modal .admin-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.marvel-session-modal .admin-modal__footer,
.marvel-session-modal .admin-modal__header {
    flex: 0 0 auto;
}

.marvel-form-section {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.marvel-form-section:first-of-type {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.marvel-form-section h3,
.marvel-session-section h3 {
    color: #f3f7fc;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
}

.marvel-card-grid {
    display: grid;
    gap: .9rem;
}

.marvel-card-grid--villains {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.marvel-card-grid--encounters {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.marvel-card-picker {
    background: #1a2028;
    border: 1px solid #36404c;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-height: 100%;
    overflow: hidden;
    padding: .75rem;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.marvel-card-picker input {
    display: none;
}

.marvel-card-picker img {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.marvel-card-picker span {
    color: #eef4fa;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
}

.marvel-card-picker:hover {
    border-color: #4a596a;
    transform: translateY(-1px);
}

.marvel-card-picker--selected {
    border-color: #49a6d3;
    box-shadow: 0 0 0 1px rgba(73, 166, 211, .28);
}

.marvel-card-picker--compact {
    gap: .6rem;
    padding: .65rem;
}

.marvel-card-picker--compact span {
    font-size: .88rem;
}

.marvel-picker-panel {
    background: #171d25;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    overflow: hidden;
}

.marvel-picker-toolbar {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: .9rem;
}

.marvel-picker-scroll {
    display: grid;
    gap: .55rem;
    max-height: 320px;
    overflow-y: auto;
    padding: .9rem;
}

.marvel-list-picker {
    align-items: center;
    background: #1c232c;
    border: 1px solid #384351;
    border-radius: 10px;
    cursor: pointer;
    display: grid;
    gap: .9rem;
    grid-template-columns: 64px minmax(0, 1fr);
    padding: .65rem;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.marvel-list-picker input {
    display: none;
}

.marvel-list-picker img {
    border-radius: 8px;
    height: 64px;
    object-fit: cover;
    width: 64px;
}

.marvel-list-picker span {
    color: #eef4fa;
    font-size: .96rem;
    font-weight: 700;
    line-height: 1.35;
}

.marvel-list-picker:hover {
    border-color: #4d6072;
    transform: translateY(-1px);
}

.marvel-list-picker--selected {
    background: rgba(38, 92, 117, .22);
    border-color: #49a6d3;
    box-shadow: 0 0 0 1px rgba(73, 166, 211, .18);
}

.player-slot--hidden {
    display: none;
}

.player-card {
    min-height: 100%;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.player-hero-picker {
    align-items: stretch;
    display: grid;
    gap: .85rem;
    grid-template-columns: 96px minmax(0, 1fr);
}

.player-hero-preview {
    align-items: center;
    background: #161c23;
    border: 1px solid #394553;
    border-radius: 10px;
    color: #aebccc;
    display: flex;
    flex-shrink: 0;
    font-size: .9rem;
    font-weight: 600;
    justify-content: center;
    min-width: 86px;
    overflow: hidden;
    width: 86px;
}

.player-hero-preview--large {
    min-width: 96px;
    width: 96px;
}

.player-hero-preview img {
    aspect-ratio: 1 / 1;
    height: 84px;
    object-fit: cover;
    width: 84px;
}

.player-hero-preview--large img {
    height: 94px;
    width: 94px;
}

.player-hero-dropdown {
    min-width: 0;
    position: relative;
}

.player-hero-trigger {
    align-items: center;
    background: #161c23;
    border-color: #394553;
    color: #eef4fa;
    display: flex;
    justify-content: space-between;
    min-height: 54px;
    text-align: left;
    width: 100%;
}

.player-hero-trigger:hover,
.player-hero-trigger[aria-expanded="true"] {
    background: #1b2129;
    border-color: #4d6072;
    color: #fff;
}

.player-hero-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-hero-menu {
    background: #1b2129;
    border: 1px solid #3e4b59;
    border-radius: 12px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .42);
    display: none;
    left: 0;
    margin-top: .45rem;
    min-width: 320px;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 40;
}

.player-hero-menu.show {
    display: block;
}

.player-hero-menu__search {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: .75rem;
}

.player-hero-options {
    max-height: 280px;
    overflow-y: auto;
    padding: .5rem;
}

.player-hero-option {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #eef4fa;
    display: grid;
    gap: .75rem;
    grid-template-columns: 56px minmax(0, 1fr);
    padding: .55rem;
    text-align: left;
    width: 100%;
}

.player-hero-option img {
    border-radius: 8px;
    height: 56px;
    object-fit: cover;
    width: 56px;
}

.player-hero-option span {
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.3;
}

.player-hero-option:hover {
    background: #222a34;
    border-color: #425160;
}

.player-hero-option--selected {
    background: rgba(38, 92, 117, .22);
    border-color: #49a6d3;
}

.player-death-switch {
    align-items: center;
    background: #161c23;
    border: 1px solid #394553;
    border-radius: 10px;
    display: flex;
    gap: .85rem;
    justify-content: flex-start;
    min-height: 54px;
    padding: .85rem 1rem;
    width: 100%;
}

.player-death-switch .form-check-input {
    float: none;
    margin: 0;
}

.player-death-switch .form-check-label {
    font-size: .95rem;
    font-weight: 700;
    margin: 0;
}

.marvel-session-card .admin-panel__header {
    align-items: flex-start;
    padding: .85rem 1rem;
}

.marvel-session-card .admin-panel__body {
    padding: 1rem;
}

.marvel-session-header {
    align-items: center;
    display: flex;
    gap: .75rem;
}

.marvel-session-villain-art,
.marvel-session-villain-art__fallback {
    background: #161c23;
    border: 1px solid #394553;
    border-radius: 10px;
    height: 60px;
    width: 60px;
}

.marvel-session-villain-art {
    overflow: hidden;
}

.marvel-session-villain-art img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.marvel-session-villain-art__fallback {
    align-items: center;
    color: #eef4fa;
    display: flex;
    font-size: 1.35rem;
    font-weight: 800;
    justify-content: center;
}

.marvel-session-card h2 {
    font-size: 1.15rem;
    line-height: 1.1;
}

.marvel-session-section h3 {
    font-size: .92rem;
    margin-bottom: .5rem;
}

.marvel-session-section + .marvel-session-section {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: .8rem;
}

.marvel-stat-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.marvel-stat-row {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.marvel-stat-row__head {
    align-items: baseline;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.marvel-stat-row__head strong {
    color: #f3f8fd;
}

.marvel-stat-row__foot {
    color: #aebccd;
    display: flex;
    flex-wrap: wrap;
    font-size: .82rem;
    gap: .9rem;
}

.marvel-stat-track {
    background: #1a2028;
    border: 1px solid #384351;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.marvel-stat-fill {
    background: linear-gradient(90deg, #2fb380, #37bad8);
    border-radius: 999px;
    height: 100%;
}

.marvel-stat-fill--usage {
    background: linear-gradient(90deg, #37bad8, #6f7bf7);
}

.marvel-stat-fill--danger {
    background: linear-gradient(90deg, #d9534f, #e8857f);
}

.marvel-result-split {
    border: 1px solid #384351;
    border-radius: 999px;
    display: flex;
    height: 14px;
    overflow: hidden;
}

.marvel-result-split__wins {
    background: #2fb380;
}

.marvel-result-split__losses {
    background: #d9534f;
}

.marvel-result-legend {
    display: flex;
    flex-wrap: wrap;
    font-size: .9rem;
    gap: 1.25rem;
    margin-top: .6rem;
}

.marvel-result-legend span {
    align-items: center;
    display: inline-flex;
    gap: .4rem;
}

.marvel-result-legend span::before {
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 10px;
    width: 10px;
}

.marvel-result-legend__wins::before {
    background: #2fb380;
}

.marvel-result-legend__losses::before {
    background: #d9534f;
}

.marvel-combo-row {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    justify-content: space-between;
    padding: .6rem 0;
}

.marvel-combo-row:first-child {
    border-top: none;
    padding-top: 0;
}

.marvel-combo-row__matchup {
    color: #f3f8fd;
    font-weight: 600;
}

.marvel-combo-row__matchup span {
    color: #aebccd;
    font-weight: 400;
    padding: 0 .35rem;
}

.marvel-combo-row__meta {
    color: #aebccd;
    display: flex;
    gap: .85rem;
    font-size: .85rem;
}

.marvel-player-list {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.marvel-player-chip {
    align-items: center;
    background: #1a2028;
    border: 1px solid #384351;
    border-radius: 10px;
    display: flex;
    gap: .7rem;
    justify-content: space-between;
    min-width: 0;
    padding: .5rem .65rem;
}

.marvel-player-chip__identity {
    align-items: center;
    display: flex;
    gap: .65rem;
    min-width: 0;
}

.marvel-player-chip__art,
.marvel-player-chip__fallback {
    background: #141920;
    border: 1px solid #36404c;
    border-radius: 8px;
    flex-shrink: 0;
    height: 38px;
    width: 38px;
}

.marvel-player-chip__art {
    overflow: hidden;
}

.marvel-player-chip__art img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.marvel-player-chip__fallback {
    align-items: center;
    color: #dce7f2;
    display: flex;
    font-size: .85rem;
    font-weight: 800;
    justify-content: center;
}

.marvel-player-chip__meta {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.marvel-player-chip strong,
.marvel-player-chip span {
    display: block;
}

.marvel-player-chip strong {
    color: #f5f8fc;
    font-size: .84rem;
    line-height: 1.15;
}

.marvel-player-chip span {
    color: #bcc7d3;
    font-size: .78rem;
    line-height: 1.15;
}

.marvel-player-chip--defeated {
    border-color: rgba(220, 53, 69, .52);
}

.marvel-player-state {
    color: #ff9ca8 !important;
    font-size: .68rem !important;
    font-weight: 700;
    text-transform: uppercase;
}

.marvel-encounter-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.marvel-encounter-chip {
    align-items: center;
    background: #1a2028;
    border: 1px solid #384351;
    border-radius: 10px;
    display: flex;
    gap: .45rem;
    padding: .35rem .45rem;
}

.marvel-encounter-chip__art,
.marvel-encounter-chip__fallback {
    background: #141920;
    border: 1px solid #36404c;
    border-radius: 8px;
    flex-shrink: 0;
    height: 32px;
    width: 32px;
}

.marvel-encounter-chip__art {
    overflow: hidden;
}

.marvel-encounter-chip__art img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.marvel-encounter-chip__fallback {
    align-items: center;
    color: #dce7f2;
    display: flex;
    font-size: .75rem;
    font-weight: 800;
    justify-content: center;
}

.marvel-encounter-chip span {
    color: #eef4fa;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.15;
}

.marvel-aspect-badge {
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 700;
    padding: .28rem .55rem;
    white-space: nowrap;
}

.marvel-aspect-badge--liderazgo {
    background: #2d7dd2;
}

.marvel-aspect-badge--justicia {
    background: #c9a227;
    color: #151515;
}

.marvel-aspect-badge--proteccion {
    background: #2f8f46;
}

.marvel-aspect-badge--agresividad {
    background: #b33a3a;
}

@media (max-width: 991.98px) {
    .marvel-card-grid--villains,
    .marvel-card-grid--encounters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .marvel-picker-scroll {
        max-height: 280px;
    }

    .marvel-player-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .marvel-session-header {
        align-items: flex-start;
    }

    .player-hero-picker {
        grid-template-columns: 1fr;
    }

    .player-hero-preview {
        min-width: 0;
        width: 100%;
    }

    .player-hero-preview img {
        height: auto;
        width: 100%;
    }

    .marvel-card-grid--villains,
    .marvel-card-grid--encounters {
        grid-template-columns: 1fr 1fr;
    }

    .marvel-session-modal {
        max-width: calc(100vw - 1rem);
    }

    .marvel-list-picker {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .marvel-list-picker img {
        height: 56px;
        width: 56px;
    }

    .marvel-player-chip {
        align-items: flex-start;
        flex-direction: column;
    }

    .marvel-player-chip__meta {
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .marvel-card-grid--villains,
    .marvel-card-grid--encounters {
        grid-template-columns: 1fr;
    }
}

.admin-panel .form-label,
.admin-panel .form-check-label {
    color: #eef4fa;
    font-weight: 600;
}

.admin-panel .small,
.admin-panel p.small {
    color: #bcc8d6 !important;
}

.admin-panel .badge.text-bg-secondary {
    background: rgba(255, 255, 255, .14) !important;
    color: #f7fbff !important;
    font-size: .95rem;
    padding: .45rem .7rem;
}

.admin-empty p,
.admin-panel p,
.admin-catalog-link span,
.catalog-tab span {
    color: #bcc7d3;
}

.admin-catalog-layout .col-xl-8 .admin-panel,
.admin-catalog-layout .col-xxl-9 .admin-panel {
    min-height: 100%;
}

@media (max-width: 767.98px) {
    .landing-hero {
        min-height: auto;
    }

    .landing-hero__shade {
        background: rgba(5, 10, 16, .84);
        padding: 2rem 1.25rem;
    }

    .landing-copy {
        font-size: 1rem;
    }

    .admin-row-actions {
        flex-direction: column;
    }

    .admin-row-actions .btn {
        width: 100%;
    }

    .admin-table {
        min-width: 0;
    }
}

@media (max-width: 991.98px) {
    .player-home-hero,
    .player-game-header,
    .player-game-grid {
        grid-template-columns: 1fr;
    }

    .player-game-grid--summary {
        grid-template-columns: 1fr;
    }

    .player-home-hero,
    .player-game-topbar,
    .player-game-header__identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .player-home-hero__actions {
        width: 100%;
    }

    .player-news-item {
        flex-direction: column;
    }

    .player-news-item__action {
        width: 100%;
    }

    .player-news-item__action .btn {
        width: 100%;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-visual {
        justify-content: flex-end;
    }

    .admin-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-hero__actions {
        align-items: flex-start;
        min-width: 0;
    }

    .catalog-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-form-panel {
        position: static;
    }

    .admin-hero__actions {
        width: 100%;
    }

    .admin-stat-chip {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .player-game-header__stats,
    .player-progress-grid,
    .player-time-snapshot {
        grid-template-columns: 1fr;
    }

    .auth-shell {
        padding: 1.25rem;
    }

    .auth-card__footer {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .catalog-tabs {
        grid-template-columns: 1fr;
    }
}

.footer {
    bottom: 0;
    height: 60px;
    line-height: 60px;
    position: absolute;
    width: 100%;
}
