/* ══════════════════════════════════════════════════════
   Design tokens — LCG Tracker
   ══════════════════════════════════════════════════════ */
:root {
    /* Fondos por elevación */
    --surface-0: #0d1117;   /* fondo de página */
    --surface-1: #161c26;   /* paneles */
    --surface-2: #1f2937;   /* chips, inputs, elementos sobre paneles */

    /* Acentos semánticos */
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, .14);
    --win: #34d399;
    --win-glow: rgba(52, 211, 153, .35);
    --loss: #f87171;
    --loss-glow: rgba(248, 113, 113, .30);

    /* Aspectos Marvel Champions */
    --aspect-liderazgo: #3b82f6;
    --aspect-justicia: #eab308;
    --aspect-proteccion: #10b981;
    --aspect-agresividad: #ef4444;

    /* Tiers de dificultad */
    --tier-standard: #94a3b8;
    --tier-expert: #a78bfa;

    /* Tipografía */
    --font-display: "Bebas Neue", "Oswald", sans-serif;
    --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Bordes y sombras de elevación */
    --panel-border: rgba(255, 255, 255, .06);
    --panel-border-top: rgba(255, 255, 255, .12);
    --panel-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    --panel-radius: 14px;
}

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

body {
    background: var(--surface-0);
    color: #eef3f8;
    font-family: var(--font-ui);
    margin-bottom: 72px;
}

.app-navbar {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface-1) 94%, #1d4ed8), rgba(13, 19, 28, .94));
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .24);
}

.app-navbar .navbar-brand {
    letter-spacing: .03em;
}

.app-navbar .nav-link {
    color: #9fb0c3;
    font-size: .88rem;
    font-weight: 700;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
    color: #f3f8fd;
}

h1, h2, h3, .navbar-brand {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: .03em;
}

/* Números tabulares: los contadores no bailan al animar */
.metric-panel strong,
.admin-metric strong,
.admin-stat-chip strong,
.player-stat-chip strong,
.marvel-stat-row__foot,
.marvel-combo-row__meta {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.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: linear-gradient(180deg, var(--surface-1), color-mix(in srgb, var(--surface-1) 92%, black));
    border: 1px solid var(--panel-border);
    border-top-color: var(--panel-border-top);
    border-radius: var(--panel-radius);
    box-shadow: var(--panel-shadow);
}

.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: linear-gradient(180deg, var(--surface-1), color-mix(in srgb, var(--surface-1) 92%, black));
    border: 1px solid var(--panel-border);
    border-top-color: var(--panel-border-top);
    border-radius: var(--panel-radius);
    box-shadow: var(--panel-shadow);
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-height: 96px;
    padding: 1rem;
}

.metric-panel strong {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: .02em;
    line-height: 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: linear-gradient(180deg, var(--surface-1), color-mix(in srgb, var(--surface-1) 92%, black));
    border: 1px solid var(--panel-border);
    border-top-color: var(--panel-border-top);
    border-radius: var(--panel-radius);
    box-shadow: var(--panel-shadow);
}

.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 ─────────────────────────────────────── */
.player-card {
    background: #131920;
    border: 1px solid #252f3a;
    border-radius: 14px;
    border-top: 3px solid var(--player-accent, #37bad8);
    overflow: visible;
    position: relative;
    z-index: 1;
}

.player-card--1 { --player-accent: #37bad8; }
.player-card--2 { --player-accent: #8b6af5; }
.player-card--3 { --player-accent: #e8a420; }
.player-card--4 { --player-accent: #2fb380; }

.player-card__header {
    align-items: center;
    border-bottom: 1px solid #1e2934;
    display: flex;
    gap: .75rem;
    padding: .75rem 1rem;
}

.player-card__num {
    align-items: center;
    background: var(--player-accent, #37bad8);
    border-radius: 50%;
    color: #080e14;
    display: flex;
    flex-shrink: 0;
    font-size: .78rem;
    font-weight: 800;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.player-card__user {
    background: #0e1520;
    border-color: #2a3847;
    color: #d6e4f0;
    flex: 1;
    min-width: 0;
}

.player-card__user:focus {
    border-color: var(--player-accent, #37bad8);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--player-accent, #37bad8) 18%, transparent);
}

.player-card__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

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

.player-hero-preview {
    align-items: center;
    background: #0e1520;
    border: 1px solid #2a3847;
    border-radius: 10px;
    color: #7a8fa3;
    display: flex;
    flex-shrink: 0;
    font-size: .82rem;
    font-weight: 600;
    justify-content: center;
    min-width: 100px;
    overflow: hidden;
    text-align: center;
    width: 100px;
}

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

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

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

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

.player-hero-trigger {
    align-items: center;
    background: #0e1520;
    border-color: #2a3847;
    color: #d6e4f0;
    display: flex;
    justify-content: space-between;
    min-height: 100px;
    text-align: left;
    width: 100%;
}

.player-hero-trigger:hover,
.player-hero-trigger[aria-expanded="true"] {
    background: #141d2b;
    border-color: var(--player-accent, #49a6d3);
    color: #fff;
}

.player-hero-trigger span {
    font-size: .95rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-hero-menu {
    background: #151d27;
    border: 1px solid #2e3f50;
    border-radius: 12px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .52);
    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, .07);
    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: #d6e4f0;
    display: grid;
    gap: .75rem;
    grid-template-columns: 52px minmax(0, 1fr);
    padding: .5rem;
    text-align: left;
    width: 100%;
}

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

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

.player-hero-option:hover {
    background: #1c2738;
    border-color: #3a5068;
}

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

/* ── Aspect picker ───────────────────────────────────── */
.player-aspect-picker {
    display: grid;
    gap: .45rem;
    grid-template-columns: repeat(4, 1fr);
}

.player-aspect-btn {
    cursor: pointer;
    display: block;
    position: relative;
}

.player-aspect-btn input[type="radio"] {
    height: 0;
    opacity: 0;
    position: absolute;
    width: 0;
}

.player-aspect-btn span {
    border-radius: 8px;
    display: block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .01em;
    padding: .5rem .2rem;
    text-align: center;
    transition: background .14s, border-color .14s, transform .1s;
    user-select: none;
}

.player-aspect-btn:hover span {
    transform: translateY(-1px);
}

.player-aspect-btn--liderazgo span {
    background: rgba(0, 120, 215, .1);
    border: 1px solid rgba(80, 160, 240, .28);
    color: #6ab4f5;
}
.player-aspect-btn--justicia span {
    background: rgba(230, 168, 23, .1);
    border: 1px solid rgba(230, 168, 23, .28);
    color: #f0c040;
}
.player-aspect-btn--proteccion span {
    background: rgba(47, 179, 128, .1);
    border: 1px solid rgba(47, 179, 128, .28);
    color: #4ecb9b;
}
.player-aspect-btn--agresividad span {
    background: rgba(217, 83, 79, .1);
    border: 1px solid rgba(217, 83, 79, .28);
    color: #e87b7b;
}

.player-aspect-btn--liderazgo input:checked + span {
    background: rgba(0, 120, 215, .3);
    border-color: #6ab4f5;
    box-shadow: 0 0 0 1px rgba(106, 180, 245, .25);
}
.player-aspect-btn--justicia input:checked + span {
    background: rgba(230, 168, 23, .3);
    border-color: #f0c040;
    box-shadow: 0 0 0 1px rgba(240, 192, 64, .25);
}
.player-aspect-btn--proteccion input:checked + span {
    background: rgba(47, 179, 128, .3);
    border-color: #4ecb9b;
    box-shadow: 0 0 0 1px rgba(78, 203, 155, .25);
}
.player-aspect-btn--agresividad input:checked + span {
    background: rgba(217, 83, 79, .3);
    border-color: #e87b7b;
    box-shadow: 0 0 0 1px rgba(232, 123, 123, .25);
}

/* ── Death switch ────────────────────────────────────── */
.player-death-switch,
.player-nemesis-switch {
    align-items: center;
    background: #0e1520;
    border: 1px solid #252f3a;
    border-radius: 10px;
    display: flex;
    gap: .85rem;
    justify-content: flex-start;
    min-height: 48px;
    padding: .75rem 1rem;
    width: 100%;
}

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

.player-death-switch .form-check-label,
.player-nemesis-switch .form-check-label {
    align-items: center;
    display: inline-flex;
    font-size: .9rem;
    font-weight: 600;
    gap: .65rem;
    margin: 0;
}

.player-nemesis-media,
.player-nemesis-media img,
.player-nemesis-media__fallback {
    border-radius: 8px;
    height: 34px;
    width: 34px;
}

.player-nemesis-media {
    border: 1px solid rgba(250, 204, 21, .28);
    box-shadow: 0 0 16px rgba(250, 204, 21, .16);
    flex: 0 0 auto;
    overflow: hidden;
}

.player-nemesis-media img {
    display: block;
    object-fit: cover;
}

.player-nemesis-media__fallback {
    align-items: center;
    background: rgba(250, 204, 21, .14);
    color: #facc15;
    display: flex;
    font-size: .82rem;
    font-weight: 900;
    justify-content: center;
}

.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: 12px;
    flex-shrink: 0;
    height: 82px;
    width: 82px;
}

.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.25rem;
    line-height: 1.05;
    margin-top: .1rem;
}

.marvel-session-section h3 {
    color: #7a97b0;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: .65rem;
    text-transform: uppercase;
}

.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: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

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

.marvel-stat-row__identity {
    align-items: center;
    display: flex;
    gap: .6rem;
    min-width: 0;
}

.marvel-stat-avatar {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    flex-shrink: 0;
    height: 40px;
    object-fit: cover;
    width: 40px;
}

.marvel-stat-avatar-fallback {
    align-items: center;
    background: linear-gradient(180deg, #1e2736, #1a2028);
    border: 1px solid #384351;
    border-radius: 8px;
    color: #aebccd;
    display: flex;
    flex-shrink: 0;
    font-size: .8rem;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    width: 40px;
}

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

.marvel-nemesis-stat {
    align-items: center;
    background: rgba(250, 204, 21, .07);
    border: 1px solid rgba(250, 204, 21, .18);
    border-radius: 9px;
    display: grid;
    gap: .55rem;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    margin-top: .55rem;
    padding: .45rem .6rem;
}

.marvel-nemesis-stat img,
.marvel-nemesis-stat__fallback {
    border-radius: 7px;
    height: 34px;
    width: 34px;
}

.marvel-nemesis-stat img {
    object-fit: cover;
}

.marvel-nemesis-stat__fallback {
    align-items: center;
    background: rgba(250, 204, 21, .14);
    border: 1px solid rgba(250, 204, 21, .25);
    color: #facc15;
    display: flex;
    font-size: .8rem;
    font-weight: 800;
    justify-content: center;
}

.marvel-nemesis-stat span {
    color: #facc15;
    display: block;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1.05;
    text-transform: uppercase;
}

.marvel-nemesis-stat strong {
    color: #f7f0d0;
    display: block;
    font-size: .9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marvel-nemesis-stat em {
    background: rgba(250, 204, 21, .13);
    border: 1px solid rgba(250, 204, 21, .22);
    border-radius: 999px;
    color: #facc15;
    font-size: .78rem;
    font-style: normal;
    font-weight: 800;
    padding: .24rem .55rem;
    white-space: nowrap;
}

.marvel-nemesis-row {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    display: grid;
    gap: .65rem;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: .62rem 0;
}

.marvel-nemesis-row:first-child {
    padding-top: 0;
}

.marvel-nemesis-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.marvel-nemesis-row img,
.marvel-nemesis-row__fallback {
    border-radius: 8px;
    height: 42px;
    width: 42px;
}

.marvel-nemesis-row img {
    object-fit: cover;
}

.marvel-nemesis-row__fallback {
    align-items: center;
    background: rgba(250, 204, 21, .14);
    border: 1px solid rgba(250, 204, 21, .25);
    color: #facc15;
    display: flex;
    font-size: .9rem;
    font-weight: 800;
    justify-content: center;
}

.marvel-nemesis-row strong {
    color: #f7f0d0;
    display: block;
    font-size: .9rem;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marvel-nemesis-row span {
    color: #9ca8b8;
    display: block;
    font-size: .78rem;
    margin-top: .12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marvel-nemesis-row em {
    background: rgba(250, 204, 21, .13);
    border: 1px solid rgba(250, 204, 21, .22);
    border-radius: 999px;
    color: #facc15;
    font-size: .76rem;
    font-style: normal;
    font-weight: 800;
    padding: .22rem .52rem;
    white-space: nowrap;
}

.marvel-stat-track {
    background: rgba(26, 32, 40, .8);
    border: 1px solid rgba(56, 67, 81, .7);
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
}

.marvel-stat-fill {
    background: linear-gradient(90deg, #2fb380, #37bad8);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(55, 186, 216, .4);
    height: 100%;
    transition: width .8s cubic-bezier(.22, 1, .36, 1);
}

.marvel-stat-fill--usage {
    background: linear-gradient(90deg, #37bad8, #8b5cf6);
    box-shadow: 0 0 10px rgba(139, 92, 246, .35);
}

.marvel-stat-fill--danger {
    background: linear-gradient(90deg, #dc2626, #f87171);
    box-shadow: 0 0 10px rgba(248, 113, 113, .35);
}

.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 {
    align-items: center;
    color: #f3f8fd;
    display: flex;
    flex-wrap: wrap;
    font-weight: 600;
    gap: .45rem;
}

.marvel-combo-row__versus {
    color: #aebccd;
    font-weight: 400;
    padding: 0 .35rem;
    text-transform: uppercase;
}

.marvel-combo-fighter {
    align-items: center;
    display: inline-flex;
    gap: .42rem;
    min-width: 0;
}

.marvel-combo-fighter img,
.marvel-combo-fighter__fallback {
    border-radius: 7px;
    height: 30px;
    width: 30px;
}

.marvel-combo-fighter img {
    object-fit: cover;
}

.marvel-combo-fighter__fallback {
    align-items: center;
    background: rgba(56, 189, 248, .13);
    border: 1px solid rgba(56, 189, 248, .28);
    color: var(--accent);
    display: inline-flex;
    font-size: .75rem;
    font-weight: 900;
    justify-content: center;
}

.marvel-combo-fighter--villain .marvel-combo-fighter__fallback {
    background: rgba(239, 68, 68, .13);
    border-color: rgba(239, 68, 68, .28);
    color: #f87171;
}

.marvel-combo-fighter strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.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: 10px;
    flex-shrink: 0;
    height: 48px;
    width: 48px;
}

.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-player-state--nemesis {
    color: #facc15 !important;
}

.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 {
    --aspect-color: #94a3b8;
    background: color-mix(in srgb, var(--aspect-color) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--aspect-color) 65%, transparent);
    border-radius: 999px;
    box-shadow: 0 0 14px color-mix(in srgb, var(--aspect-color) 30%, transparent);
    color: var(--aspect-color);
    display: inline-flex;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    padding: .32rem .68rem;
    text-shadow: 0 0 10px color-mix(in srgb, var(--aspect-color) 55%, transparent);
    text-transform: uppercase;
    white-space: nowrap;
}

.marvel-aspect-badge--liderazgo {
    --aspect-color: var(--aspect-liderazgo);
}

.marvel-aspect-badge--justicia {
    --aspect-color: var(--aspect-justicia);
}

.marvel-aspect-badge--proteccion {
    --aspect-color: var(--aspect-proteccion);
}

.marvel-aspect-badge--agresividad {
    --aspect-color: var(--aspect-agresividad);
}

@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%;
}

/* ══════════════════════════════════════════════════════
   Hero strip — Marvel dashboard
   ══════════════════════════════════════════════════════ */
.marvel-hero {
    --villain-art: none;
    background:
        linear-gradient(180deg, var(--surface-1), color-mix(in srgb, var(--surface-1) 88%, black));
    border: 1px solid var(--panel-border);
    border-top-color: var(--panel-border-top);
    border-radius: var(--panel-radius);
    box-shadow: var(--panel-shadow);
    min-height: 190px;
    overflow: hidden;
    position: relative;
}

.marvel-hero::before {
    background: var(--villain-art) right top / auto 160% no-repeat;
    content: "";
    inset: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 22%, black 80%);
    mask-image: linear-gradient(90deg, transparent 22%, black 80%);
    opacity: .42;
    pointer-events: none;
    position: absolute;
    transition: opacity .4s ease;
}

.marvel-hero:hover::before {
    opacity: .52;
}

.marvel-hero__shade {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    justify-content: space-between;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    position: relative;
}

/* Particulas ambientales (las crea site.js; nunca con reduced-motion) */
.marvel-hero__particles {
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
}

.marvel-hero__particles span {
    animation: particle-float var(--dur, 12s) linear var(--delay, 0s) infinite;
    background: var(--particle-color, rgba(56, 189, 248, .5));
    border-radius: 50%;
    bottom: -6px;
    box-shadow: 0 0 6px var(--particle-color, rgba(56, 189, 248, .35));
    height: var(--size, 3px);
    left: var(--x, 50%);
    opacity: 0;
    position: absolute;
    width: var(--size, 3px);
}

.marvel-hero__particles--ember span {
    --particle-color: rgba(245, 158, 11, .55);
}

@keyframes particle-float {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    12% {
        opacity: .65;
    }
    85% {
        opacity: .15;
    }
    100% {
        opacity: 0;
        transform: translate(var(--drift, 0px), -340px);
    }
}

.marvel-hero__kicker {
    color: var(--accent);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: .35rem;
    text-transform: uppercase;
}

.marvel-hero__title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: .95;
    margin: 0;
}

.marvel-hero--dashboard {
    min-height: 136px;
}

.marvel-hero--dashboard::before {
    background: var(--villain-art) right center / auto 145% no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 18%, black 82%);
    mask-image: linear-gradient(90deg, transparent 18%, black 82%);
    opacity: .34;
}

.marvel-hero--dashboard:hover::before {
    opacity: .42;
}

.marvel-hero--dashboard .marvel-hero__shade {
    display: grid;
    gap: 1rem 1.4rem;
    grid-template-columns: minmax(260px, 1fr) minmax(360px, 560px);
    padding: 1rem clamp(1rem, 2.3vw, 1.65rem);
}

.marvel-hero--dashboard.mb-4 {
    margin-bottom: 1rem !important;
}

.marvel-hero--dashboard .marvel-hero__kicker {
    font-size: .78rem;
    margin-bottom: .2rem;
}

.marvel-hero--dashboard .marvel-hero__title {
    font-size: clamp(1.9rem, 2.9vw, 2.55rem);
}

.marvel-hero--dashboard .marvel-streak {
    font-size: .82rem;
    margin-top: .35rem;
    padding: .34rem .72rem;
}

.marvel-hero--dashboard .marvel-hero__actions {
    margin-top: .75rem !important;
}

.marvel-hero--dashboard .marvel-hero__actions .btn-lg {
    border-radius: 8px;
    font-size: .92rem;
    padding: .48rem .85rem;
}

.marvel-hero--dashboard .marvel-hero__stats {
    display: grid;
    gap: .75rem;
    grid-template-columns: 94px minmax(0, 1fr);
    justify-self: end;
    min-width: 0;
    width: min(100%, 560px);
}

.marvel-hero--dashboard .marvel-winring {
    height: 94px;
    width: 94px;
}

.marvel-hero--dashboard .marvel-winring__value strong {
    font-size: 1.6rem;
}

.marvel-hero--dashboard .marvel-winring__value span {
    font-size: .6rem;
}

.marvel-hero--dashboard .marvel-hero__chips {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
}

.marvel-hero--dashboard .marvel-hero-chip {
    border-radius: 8px;
    min-width: 0;
    padding: .45rem .65rem;
}

.marvel-hero--dashboard .marvel-hero-chip span {
    font-size: .66rem;
    line-height: 1.1;
}

.marvel-hero--dashboard .marvel-hero-chip strong {
    font-size: 1.18rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marvel-streak {
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    color: #dbe8f4;
    display: inline-flex;
    font-size: .9rem;
    font-weight: 600;
    gap: .4rem;
    margin-top: .5rem;
    padding: .42rem .85rem;
}

.marvel-streak--win {
    background: color-mix(in srgb, var(--win) 14%, transparent);
    border-color: color-mix(in srgb, var(--win) 50%, transparent);
    box-shadow: 0 0 16px var(--win-glow);
    color: var(--win);
}

.marvel-streak--loss {
    background: color-mix(in srgb, var(--loss) 12%, transparent);
    border-color: color-mix(in srgb, var(--loss) 45%, transparent);
    color: var(--loss);
}

.marvel-hero__stats {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Anillo de winrate */
.marvel-winring {
    --ring-color: var(--accent);
    height: 132px;
    position: relative;
    width: 132px;
}

.marvel-winring--win { --ring-color: var(--win); }
.marvel-winring--loss { --ring-color: var(--loss); }
.marvel-winring--mid { --ring-color: #fbbf24; }

.marvel-winring svg {
    height: 100%;
    transform: rotate(-90deg);
    width: 100%;
}

.marvel-winring__track,
.marvel-winring__fill {
    fill: none;
    stroke-width: 9;
}

.marvel-winring__track {
    stroke: rgba(255, 255, 255, .06);
}

.marvel-winring__fill {
    animation: ring-fill 1.1s cubic-bezier(.22, 1, .36, 1) both, ring-glow-pulse 3s ease-in-out 1.2s infinite;
    filter: drop-shadow(0 0 9px color-mix(in srgb, var(--ring-color) 70%, transparent));
    stroke: var(--ring-color);
    stroke-linecap: round;
    stroke-width: 10;
}

@keyframes ring-fill {
    from { stroke-dashoffset: 326.73; }
}

@keyframes ring-glow-pulse {
    0%, 100% { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--ring-color) 60%, transparent)); }
    50% { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--ring-color) 85%, transparent)); }
}

.marvel-winring__value {
    align-items: center;
    display: flex;
    flex-direction: column;
    inset: 0;
    justify-content: center;
    position: absolute;
}

.marvel-winring__value strong {
    color: var(--ring-color);
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 400;
    line-height: 1;
}

.marvel-winring__value span {
    color: #aebccd;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.marvel-hero__chips {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.marvel-hero-chip {
    background: color-mix(in srgb, var(--surface-2) 78%, transparent);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    min-width: 170px;
    padding: .55rem .85rem;
}

.marvel-hero-chip span {
    color: #aebccd;
    font-size: .76rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.marvel-hero-chip strong {
    color: #f3f8fd;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.15;
}

.marvel-hero-chip em {
    font-style: normal;
}

.marvel-hero-chip--nemesis strong {
    align-items: center;
    display: flex;
    gap: .45rem;
}

.marvel-hero-chip--nemesis img,
.marvel-hero-chip--nemesis i {
    border-radius: 6px;
    flex-shrink: 0;
    height: 26px;
    width: 26px;
}

.marvel-hero-chip--nemesis img {
    object-fit: cover;
}

.marvel-hero-chip--nemesis i {
    align-items: center;
    background: rgba(250, 204, 21, .14);
    border: 1px solid rgba(250, 204, 21, .28);
    color: #facc15;
    display: inline-flex;
    font-family: var(--font-ui);
    font-size: .8rem;
    font-style: normal;
    font-weight: 800;
    justify-content: center;
}

.marvel-hero-xp {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 170px;
}

.marvel-hero-xp span {
    font-size: .78rem;
}

.text-win { color: var(--win); }
.text-loss { color: var(--loss); }

@media (max-width: 767.98px) {
    .marvel-hero::before {
        -webkit-mask-image: linear-gradient(180deg, transparent 35%, black 100%);
        mask-image: linear-gradient(180deg, transparent 35%, black 100%);
        opacity: .18;
    }

    .marvel-hero__stats {
        width: 100%;
    }

    .marvel-hero__chips {
        flex: 1;
    }

    .marvel-hero-chip {
        min-width: 0;
    }

    .marvel-hero--dashboard .marvel-hero__shade {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .marvel-hero--dashboard .marvel-hero__stats {
        grid-template-columns: 82px minmax(0, 1fr);
        justify-self: stretch;
        width: 100%;
    }

    .marvel-hero--dashboard .marvel-winring {
        height: 82px;
        width: 82px;
    }

    .marvel-hero--dashboard .marvel-hero__chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .marvel-hero--dashboard .marvel-hero__actions .btn-lg {
        flex: 1 1 150px;
    }
}

@media (max-width: 575.98px) {
    .marvel-hero--dashboard .marvel-hero__stats {
        grid-template-columns: 1fr;
    }

    .marvel-hero--dashboard .marvel-winring {
        height: 78px;
        width: 78px;
    }

    .marvel-hero--dashboard .marvel-hero__chips {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════
   Roster de heroes — coleccion con niveles y bloqueados
   ══════════════════════════════════════════════════════ */
.marvel-roster-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.marvel-roster-card {
    background: var(--surface-1);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.marvel-roster-card:hover {
    border-color: rgba(56, 189, 248, .45);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
    transform: translateY(-3px);
}

.marvel-roster-card__link {
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.marvel-roster-card__art {
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    overflow: hidden;
    position: relative;
}

.marvel-roster-card__art img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .25s ease;
    width: 100%;
}

.marvel-roster-card:hover .marvel-roster-card__art img {
    transform: scale(1.05);
}

.marvel-roster-card__fallback {
    align-items: center;
    color: #aebccd;
    display: flex;
    font-family: var(--font-display);
    font-size: 3rem;
    height: 100%;
    justify-content: center;
}

.marvel-roster-card__level {
    background: color-mix(in srgb, var(--surface-0) 72%, transparent);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(56, 189, 248, .5);
    border-radius: 999px;
    color: #7dd3fc;
    font-family: var(--font-display);
    font-size: .95rem;
    letter-spacing: .05em;
    padding: .15rem .65rem;
    position: absolute;
    right: .55rem;
    top: .55rem;
}

.marvel-roster-card__lock {
    align-items: center;
    background: color-mix(in srgb, var(--surface-0) 72%, transparent);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #aebccd;
    display: flex;
    height: 34px;
    justify-content: center;
    position: absolute;
    right: .55rem;
    top: .55rem;
    width: 34px;
}

.marvel-roster-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .5rem;
    padding: .75rem .85rem .9rem;
}

.marvel-roster-card__body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: .02em;
    margin: 0;
}

.marvel-roster-card__meta {
    color: #aebccd;
    display: flex;
    font-size: .76rem;
    justify-content: space-between;
}

.marvel-roster-card--locked .marvel-roster-card__art img,
.marvel-roster-card--locked .marvel-roster-card__fallback {
    filter: grayscale(1) brightness(.55);
}

.marvel-roster-card--locked .marvel-roster-card__body h3 {
    color: #8fa0b3;
}

.marvel-roster-card__pending {
    color: #76879b;
    font-size: .78rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.marvel-roster-card--locked:hover {
    border-color: rgba(255, 255, 255, .2);
}

@media (prefers-reduced-motion: reduce) {
    .marvel-roster-card,
    .marvel-roster-card__art img {
        transition: none;
    }

    .marvel-roster-card:hover {
        transform: none;
    }

    .marvel-roster-card:hover .marvel-roster-card__art img {
        transform: none;
    }
}

/* ══════════════════════════════════════════════════════
   Tarjetas de partida — banner del villano + resultado
   ══════════════════════════════════════════════════════ */
.marvel-session-card {
    --villain-art: none;
    border-left: 5px solid var(--surface-2);
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}

.marvel-session-card:hover {
    transform: translateY(-2px);
}

.marvel-session-card--win {
    border-left-color: var(--win);
    box-shadow: var(--panel-shadow), inset 5px 0 24px rgba(52, 211, 153, .08);
}

.marvel-session-card--loss {
    border-left-color: var(--loss);
    box-shadow: var(--panel-shadow), inset 5px 0 24px rgba(248, 113, 113, .08);
}

.marvel-session-card::before {
    background: var(--villain-art) right center / auto 130% no-repeat;
    content: "";
    inset: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 42%, black 96%);
    mask-image: linear-gradient(90deg, transparent 42%, black 96%);
    opacity: .20;
    pointer-events: none;
    position: absolute;
    transition: opacity .3s ease;
}

.marvel-session-card:hover::before {
    opacity: .34;
}

.marvel-session-card > * {
    position: relative;
}

/* Tiers de dificultad como rareza
   (el borde izquierdo es del resultado win/loss: no se toca) */
.marvel-session-card--expert {
    border-bottom-color: color-mix(in srgb, var(--tier-expert) 35%, transparent);
    border-right-color: color-mix(in srgb, var(--tier-expert) 35%, transparent);
    border-top-color: color-mix(in srgb, var(--tier-expert) 45%, transparent);
    box-shadow: var(--panel-shadow), 0 0 18px rgba(167, 139, 250, .12);
}

.marvel-session-card--heroic {
    border-bottom-color: rgba(245, 158, 11, .45);
    border-right-color: rgba(245, 158, 11, .45);
    border-top-color: rgba(245, 158, 11, .55);
    animation: heroic-pulse 3s ease-in-out infinite;
}

@keyframes heroic-pulse {
    0%, 100% {
        box-shadow: var(--panel-shadow);
    }
    50% {
        box-shadow: var(--panel-shadow), 0 0 28px rgba(245, 158, 11, .22);
    }
}

.marvel-tier-chip {
    border-radius: 999px;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    padding: .38rem .72rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.marvel-tier-chip--standard {
    background: color-mix(in srgb, var(--tier-standard) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--tier-standard) 40%, transparent);
    color: var(--tier-standard);
}

.marvel-tier-chip--expert {
    background: color-mix(in srgb, var(--tier-expert) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--tier-expert) 55%, transparent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--tier-expert) 25%, transparent);
    color: var(--tier-expert);
}

.marvel-tier-chip--heroic {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 0 14px rgba(245, 158, 11, .35);
    color: #fff;
}

/* ══════════════════════════════════════════════════════
   Celebracion al guardar partida
   ══════════════════════════════════════════════════════ */
.result-stamp-overlay {
    align-items: center;
    animation: overlay-fade-out .45s ease 2s forwards;
    display: flex;
    inset: 0;
    justify-content: center;
    pointer-events: none;
    position: fixed;
    z-index: 1080;
}

.result-stamp-overlay--loss {
    backdrop-filter: grayscale(.8) brightness(.8);
    -webkit-backdrop-filter: grayscale(.8) brightness(.8);
}

@keyframes overlay-fade-out {
    to { opacity: 0; }
}

.result-stamp {
    animation: stamp-in .5s cubic-bezier(.2, 1.6, .4, 1) both;
    border: .045em solid currentColor;
    border-radius: .08em;
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 14vw, 8.5rem);
    letter-spacing: .08em;
    line-height: 1;
    padding: .08em .3em .04em;
    transform: rotate(-7deg);
}

.result-stamp--win {
    box-shadow: 0 0 60px var(--win-glow), inset 0 0 30px color-mix(in srgb, var(--win) 12%, transparent);
    color: var(--win);
    text-shadow: 0 0 24px var(--win-glow);
}

.result-stamp--loss {
    box-shadow: 0 0 50px var(--loss-glow), inset 0 0 30px color-mix(in srgb, var(--loss) 10%, transparent);
    color: var(--loss);
    text-shadow: 0 0 20px var(--loss-glow);
}

@keyframes stamp-in {
    from {
        opacity: 0;
        transform: rotate(-7deg) scale(2.6);
    }
    to {
        opacity: 1;
        transform: rotate(-7deg) scale(1);
    }
}

/* Tarjeta recien guardada: pulso de bienvenida en el historial */
.marvel-session-card--fresh {
    animation: fresh-glow 2.4s ease-out .4s both;
}

@keyframes fresh-glow {
    0% {
        box-shadow: var(--panel-shadow), 0 0 0 2px var(--accent), 0 0 32px var(--accent-soft);
    }
    100% {
        box-shadow: var(--panel-shadow);
    }
}

/* ══════════════════════════════════════════════════════
   Barra de pestañas de estadisticas
   ══════════════════════════════════════════════════════ */
.marvel-stats-tabs__header {
    flex-wrap: wrap;
    gap: .75rem;
}

.marvel-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.marvel-tabbar .nav-link {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #aebccd;
    font-size: .9rem;
    font-weight: 600;
    padding: .42rem .95rem;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.marvel-tabbar .nav-link:hover {
    background: var(--surface-2);
    color: #f3f8fd;
}

.marvel-tabbar .nav-link.active {
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
    color: var(--accent);
}

/* ══════════════════════════════════════════════════════
   Fichas individuales (heroe / villano / encuentro)
   ══════════════════════════════════════════════════════ */
.ficha-back {
    align-items: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    color: #aebccd;
    display: inline-flex;
    font-size: .88rem;
    font-weight: 600;
    gap: .45rem;
    padding: .42rem 1rem .42rem .75rem;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.ficha-back:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .18);
    color: var(--accent);
}

.ficha-back svg {
    flex-shrink: 0;
    opacity: .75;
    transition: opacity .15s ease, transform .15s ease;
}

.ficha-back:hover svg {
    opacity: 1;
    transform: translateX(-2px);
}

.marvel-hero--ficha::before {
    background: var(--villain-art) right center / auto 165% no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 18%, black 78%);
    mask-image: linear-gradient(90deg, transparent 18%, black 78%);
    opacity: .34;
}

.marvel-hero--ficha {
    min-height: 108px;
}

.marvel-hero--ficha .marvel-hero__shade {
    display: grid;
    gap: .9rem 1.35rem;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    padding: .85rem clamp(1rem, 2vw, 1.45rem);
}

.marvel-hero--ficha.mb-4 {
    margin-bottom: 1rem !important;
}

.marvel-hero--ficha .marvel-hero__kicker {
    font-size: .76rem;
    margin-bottom: .15rem;
}

.marvel-hero--ficha .marvel-hero__title {
    font-size: clamp(1.65rem, 2.4vw, 2.25rem);
    line-height: .95;
}

.marvel-hero--ficha .marvel-hero__stats {
    display: grid;
    gap: .65rem .85rem;
    grid-template-columns: 86px minmax(0, 1fr);
    min-width: 0;
}

.marvel-hero--ficha .marvel-winring {
    height: 86px;
    width: 86px;
}

.marvel-hero--ficha .marvel-winring__value strong {
    font-size: 1.48rem;
}

.marvel-hero--ficha .marvel-winring__value span {
    font-size: .58rem;
}

.marvel-hero--ficha .marvel-hero__chips {
    display: grid;
    gap: .45rem;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    min-width: 0;
}

.marvel-hero--ficha .marvel-hero-chip {
    border-radius: 7px;
    min-width: 0;
    padding: .36rem .55rem;
}

.marvel-hero--ficha .marvel-hero-chip strong {
    font-size: 1.08rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marvel-hero--ficha .marvel-hero-chip span {
    font-size: .65rem;
    line-height: 1.1;
}

.marvel-hero--ficha .marvel-hero-xp {
    grid-column: 2;
    min-width: 0;
}

@media (max-width: 991.98px) {
    .marvel-hero--ficha .marvel-hero__shade {
        grid-template-columns: 1fr;
    }

    .marvel-hero--ficha .marvel-hero__stats {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .marvel-hero--ficha .marvel-hero__shade {
        align-items: flex-start;
        padding: 1rem;
    }

    .marvel-hero--ficha .marvel-hero__stats {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .marvel-hero--ficha .marvel-winring {
        height: 76px;
        width: 76px;
    }

    .marvel-hero--ficha .marvel-hero__chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .marvel-hero--ficha .marvel-hero-xp {
        grid-column: 1 / -1;
        min-width: 100%;
    }
}

.marvel-stat-link {
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    transition: color .15s ease;
}

.marvel-stat-link:hover {
    color: inherit;
}

.marvel-stat-link:hover strong {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ficha-history {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.ficha-history-row {
    align-items: center;
    background: rgba(30, 40, 52, .5);
    border: 1px solid rgba(255, 255, 255, .07);
    border-left: 4px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    justify-content: space-between;
    padding: .88rem 1.15rem;
    transition: background .15s ease, border-color .15s ease, transform .2s ease, box-shadow .2s ease;
}

.ficha-history-row:hover {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .16);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
    transform: translateY(-2px);
}

.ficha-history-row--win {
    border-left-color: var(--win);
    box-shadow: inset 4px 0 18px rgba(52, 211, 153, .09);
}

.ficha-history-row--loss {
    border-left-color: var(--loss);
    box-shadow: inset 4px 0 18px rgba(248, 113, 113, .09);
}

.ficha-history-row__identity {
    align-items: center;
    display: flex;
    gap: .65rem;
    min-width: 0;
}

.ficha-history-row__identity strong {
    color: #f3f8fd;
    display: block;
    font-size: .95rem;
    line-height: 1.2;
}

.ficha-history-row__identity span {
    color: #aebccd;
    display: block;
    font-size: .8rem;
}

.ficha-history-row__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

@media (max-width: 575.98px) {
    .ficha-history-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ══════════════════════════════════════════════════════
   Modal de registro — microinteracciones
   ══════════════════════════════════════════════════════ */
.marvel-step-indicator {
    display: flex;
    gap: .45rem;
}

.marvel-step {
    align-items: center;
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    color: #8295a8;
    display: flex;
    font-size: .8rem;
    font-weight: 700;
    height: 30px;
    justify-content: center;
    transition: background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
    width: 30px;
}

.marvel-step--done {
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 60%, transparent);
    box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 30%, transparent);
    color: var(--accent);
}

/* Pantalla VS: enfrentamiento confirmado */
.marvel-villain-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) 220px;
}

.marvel-villain-stage {
    align-items: center;
    background: linear-gradient(180deg, var(--surface-1), color-mix(in srgb, var(--surface-1) 88%, black));
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    justify-content: center;
    padding: 1.25rem 1rem;
}

.marvel-villain-stage__art {
    align-items: center;
    background: var(--surface-0);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    color: #51647a;
    display: flex;
    font-family: var(--font-display);
    font-size: 3rem;
    height: 140px;
    justify-content: center;
    overflow: hidden;
    width: 140px;
}

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

.marvel-villain-stage__label {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    text-align: center;
}

.marvel-villain-stage__label em {
    color: var(--loss);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: normal;
    letter-spacing: .2em;
}

.marvel-villain-stage__label strong {
    color: #f3f8fd;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.1;
}

.marvel-villain-stage--active {
    animation: stage-pop .4s cubic-bezier(.2, 1.5, .4, 1);
    border-color: color-mix(in srgb, var(--loss) 45%, transparent);
    box-shadow: 0 0 22px var(--loss-glow);
}

@keyframes stage-pop {
    0% { transform: scale(.92); }
    60% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* Spring al elegir aspecto */
.player-aspect-btn input:checked + span {
    animation: aspect-pop .3s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes aspect-pop {
    0% { transform: scale(.9); }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Heroe muerto: la preview se apaga */
.player-hero-preview img {
    transition: filter .35s ease, opacity .35s ease;
}

.player-card--dead .player-hero-preview img {
    filter: grayscale(1) brightness(.75);
}

.player-card--dead .player-hero-preview {
    border-color: rgba(248, 113, 113, .4);
}

@media (max-width: 767.98px) {
    .marvel-villain-layout {
        grid-template-columns: 1fr;
    }

    .marvel-villain-stage {
        flex-direction: row;
        justify-content: flex-start;
        padding: .85rem;
    }

    .marvel-villain-stage__art {
        flex-shrink: 0;
        font-size: 2rem;
        height: 84px;
        width: 84px;
    }

    .marvel-step-indicator {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════
   Tipografía display — Bebas Neue solo tiene peso 400:
   estos overrides evitan el faux-bold del navegador
   ══════════════════════════════════════════════════════ */
h1, h2, h3, .h1, .h2, .h3,
.landing-title,
.auth-visual h1,
.auth-card__header h2,
.admin-hero h1,
.admin-section-title h2,
.admin-panel__header h2,
.admin-empty h3,
.admin-modal__header h2,
.marvel-form-section h3,
.marvel-session-section h3 {
    font-weight: 400;
}

/* Números de stats con voz display */
.admin-metric strong,
.admin-stat-chip strong,
.player-stat-chip strong {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: .02em;
}

/* ══════════════════════════════════════════════════════
   Marvel — Mejoras visuales premium v2
   ══════════════════════════════════════════════════════ */

/* ── Botón flotante de nueva partida (FAB) ─────────────── */
.marvel-fab {
    align-items: center;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    border: none;
    border-radius: 999px;
    bottom: 5.5rem;
    box-shadow: 0 8px 28px rgba(14, 165, 233, .50), 0 0 0 1px rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    display: flex;
    font-family: var(--font-ui);
    font-size: .95rem;
    font-weight: 700;
    gap: .55rem;
    letter-spacing: .01em;
    padding: .82rem 1.55rem;
    position: fixed;
    right: 1.75rem;
    text-decoration: none;
    transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), box-shadow .22s ease;
    z-index: 500;
}

.marvel-fab:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 100%);
    box-shadow: 0 12px 36px rgba(14, 165, 233, .62), 0 0 0 1px rgba(255, 255, 255, .20);
    color: #fff;
    transform: translateY(-4px) scale(1.04);
}

.marvel-fab:active {
    transform: scale(.97);
}

.marvel-fab svg {
    flex-shrink: 0;
}

/* ── Marvel dashboard: densidad y jerarquia ───────────── */
.marvel-summary-grid .admin-panel--compact {
    min-height: 0;
}

.admin-panel--compact .admin-panel__header {
    padding: .72rem .9rem;
}

.admin-panel--compact .admin-panel__body {
    padding: .85rem .9rem;
}

.admin-panel--compact .marvel-stat-list {
    gap: .7rem;
}

.admin-panel--compact .marvel-stat-row {
    padding: .1rem 0;
}

.admin-panel--compact .marvel-stat-row__foot {
    font-size: .76rem;
    gap: .65rem;
}

.admin-panel--compact .marvel-combo-row {
    padding: .45rem 0;
}

.admin-panel--compact .marvel-combo-row__matchup {
    font-size: .9rem;
}

.admin-panel--compact .marvel-combo-row__meta {
    font-size: .76rem;
    gap: .6rem;
}

.marvel-stats-panel .admin-panel__header {
    padding: .75rem .95rem;
}

.marvel-stats-panel .admin-panel__body {
    padding: .8rem .95rem;
}

.marvel-stats-panel .marvel-stat-list {
    gap: .8rem;
}

.marvel-stats-panel .marvel-stat-row {
    padding: .05rem 0 .15rem;
}

.marvel-stats-panel .marvel-nemesis-stat {
    margin-top: .42rem;
}

.marvel-session-grid {
    margin-top: .4rem;
}

.marvel-session-card {
    border-left-width: 4px;
}

.marvel-session-card::before {
    background: var(--villain-art) right center / auto 118% no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 58%, black 100%);
    mask-image: linear-gradient(90deg, transparent 58%, black 100%);
    opacity: .13;
}

.marvel-session-card:hover::before {
    opacity: .20;
}

.marvel-session-card .admin-panel__header {
    align-items: center;
    gap: .75rem;
    padding: .68rem .85rem;
}

.marvel-session-card .admin-panel__header > .d-flex {
    gap: .35rem !important;
}

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

.marvel-session-card .admin-panel__body .row {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .65rem;
}

.marvel-session-header {
    gap: .62rem;
}

.marvel-session-villain-art,
.marvel-session-villain-art__fallback {
    border-radius: 9px;
    height: 58px;
    width: 58px;
}

.marvel-session-card h2 {
    font-size: 1.05rem;
    margin: 0;
}

.marvel-session-card .text-body-secondary {
    font-size: .78rem;
}

.marvel-session-section h3 {
    font-size: .66rem;
    margin-bottom: .45rem;
}

.marvel-player-list {
    gap: .42rem;
}

.marvel-player-chip {
    border-radius: 8px;
    gap: .5rem;
    padding: .38rem .5rem;
}

.marvel-player-chip__art,
.marvel-player-chip__fallback {
    border-radius: 8px;
    height: 38px;
    width: 38px;
}

.marvel-player-chip strong {
    font-size: .76rem;
}

.marvel-player-chip span {
    font-size: .7rem;
}

.marvel-player-chip__meta {
    gap: .2rem;
}

.marvel-player-state {
    font-size: .6rem !important;
}

.marvel-encounter-list {
    gap: .35rem;
}

.marvel-encounter-chip {
    border-radius: 8px;
    font-size: .74rem;
    padding: .34rem .48rem;
}

.marvel-encounter-chip__art,
.marvel-encounter-chip__fallback {
    height: 28px;
    width: 28px;
}

.marvel-session-card .marvel-tier-chip,
.marvel-session-card .admin-soft-chip,
.marvel-session-card .badge {
    font-size: .68rem;
    padding: .3rem .55rem;
}

.marvel-fab {
    bottom: 1.35rem;
    font-size: .86rem;
    padding: .66rem 1.1rem;
    right: 1.2rem;
}

/* ── Stat rows con hover ───────────────────────────────── */
.marvel-stat-list .marvel-stat-row {
    border-radius: 10px;
    padding: .3rem .25rem;
    transition: background .15s ease;
}

.marvel-stat-list .marvel-stat-row:hover {
    background: rgba(255, 255, 255, .028);
}

/* ── Combo rows con hover ─────────────────────────────── */
.marvel-combo-row {
    border-radius: 8px;
    margin: 0 -.35rem;
    padding: .65rem .35rem;
}

.marvel-combo-row:hover {
    background: rgba(255, 255, 255, .03);
}

/* ── Encounter chips más grandes ───────────────────────── */
.marvel-encounter-chip__art,
.marvel-encounter-chip__fallback {
    height: 36px;
    width: 36px;
}

/* ── Tab activo más vistoso ────────────────────────────── */
.marvel-tabbar .nav-link.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, .16), rgba(56, 189, 248, .06));
    border-color: rgba(56, 189, 248, .75);
    box-shadow: 0 0 14px rgba(56, 189, 248, .22);
    color: var(--accent);
}

/* ── Anillo pulso solo en victorias ────────────────────── */
.marvel-winring--win .marvel-winring__fill {
    animation: ring-fill 1.1s cubic-bezier(.22, 1, .36, 1) both,
               ring-glow-pulse 3s ease-in-out 1.2s infinite;
}

.marvel-winring--loss .marvel-winring__fill {
    animation: ring-fill 1.1s cubic-bezier(.22, 1, .36, 1) both;
}

/* ── Chips hero animados ───────────────────────────────── */
@keyframes chip-count-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.marvel-hero-chip strong {
    animation: chip-count-in .45s ease both;
    animation-delay: .3s;
}

/* ── Sesión card header mejorado ───────────────────────── */
.marvel-session-card .admin-panel__header {
    padding: .95rem 1.1rem;
}

.marvel-session-card h2 a {
    color: inherit;
    text-decoration: none;
    transition: color .15s ease;
}

.marvel-session-card h2 a:hover {
    color: var(--accent);
}

/* ── Tier chips con más padding ────────────────────────── */
.marvel-tier-chip {
    padding: .42rem .82rem;
}

/* ── Marvel dashboard final compact overrides ─────────── */
.admin-panel--compact .marvel-combo-row {
    margin: 0 -.2rem;
    padding: .42rem .2rem;
}

.marvel-session-card .admin-panel__header {
    padding: .68rem .85rem;
}

.marvel-session-card .marvel-tier-chip,
.marvel-session-card .admin-soft-chip,
.marvel-session-card .badge {
    font-size: .68rem;
    padding: .3rem .55rem;
}

.marvel-session-edit {
    align-items: center;
    border-color: rgba(148, 163, 184, .36);
    color: #d8e2ee;
    display: inline-flex;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
    min-height: 1.75rem;
    padding: .3rem .55rem;
    text-transform: uppercase;
}

.marvel-session-edit:hover {
    border-color: var(--accent);
    color: #fff;
}

.marvel-session-card .marvel-encounter-chip {
    font-size: .74rem;
    padding: .34rem .48rem;
}

.marvel-session-card .marvel-encounter-chip__art,
.marvel-session-card .marvel-encounter-chip__fallback {
    height: 28px;
    width: 28px;
}

@media (max-width: 767.98px) {
    .marvel-player-list {
        grid-template-columns: 1fr;
    }

    .marvel-session-card .admin-panel__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .marvel-session-card .admin-panel__header > .d-flex {
        justify-content: flex-start !important;
    }
}

/* ── Player chip derrotado en gris ─────────────────────── */
.marvel-player-chip--defeated .marvel-player-chip__art img {
    filter: grayscale(.7) brightness(.75);
}

/* ── Villain stage active más dramático ────────────────── */
.marvel-villain-stage--active {
    border-color: color-mix(in srgb, var(--loss) 55%, transparent);
    box-shadow: 0 0 28px var(--loss-glow), 0 0 0 1px color-mix(in srgb, var(--loss) 30%, transparent);
}

/* ── Fresh card glow mejorado ──────────────────────────── */
@keyframes fresh-glow {
    0% {
        box-shadow: var(--panel-shadow), 0 0 0 3px var(--accent), 0 0 40px var(--accent-soft);
    }
    100% {
        box-shadow: var(--panel-shadow);
    }
}

/* ── FAB responsive ────────────────────────────────────── */
@media (max-width: 575.98px) {
    .marvel-fab {
        bottom: 4.5rem;
        padding: .75rem 1.25rem;
        right: 1rem;
    }
}

/* Marvel session history refresh */
.marvel-session-card {
    background:
        linear-gradient(180deg, rgba(20, 27, 36, .98), rgba(13, 19, 28, .98)),
        var(--surface-1);
    border-color: rgba(91, 109, 130, .42);
    border-left-width: 5px;
    overflow: hidden;
}

.marvel-session-card::before {
    background: var(--villain-art) right center / auto 128% no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 55%, black 100%);
    mask-image: linear-gradient(90deg, transparent 55%, black 100%);
    opacity: .16;
}

.marvel-session-card:hover::before {
    opacity: .25;
}

.marvel-session-card__header {
    background: linear-gradient(90deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.marvel-session-card .admin-panel__header.marvel-session-card__header {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(220px, 1fr) auto;
    padding: .78rem .95rem;
}

.marvel-session-header {
    min-width: 0;
}

.marvel-session-villain-art,
.marvel-session-villain-art__fallback {
    border-color: rgba(148, 163, 184, .3);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
    height: 64px;
    width: 64px;
}

.marvel-session-date {
    color: #aebccd;
    font-size: .82rem;
    margin: 0 0 .18rem;
}

.marvel-session-card h2 {
    font-size: 1.28rem;
    letter-spacing: .02em;
    line-height: .95;
}

.marvel-session-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .42rem;
    justify-content: flex-end;
}

.marvel-result-pill {
    align-items: center;
    border-radius: 7px;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
    min-height: 2rem;
    padding: .46rem .7rem;
}

.marvel-result-pill--win {
    background: linear-gradient(135deg, #10b981, #22d3a8);
    box-shadow: 0 0 18px rgba(16, 185, 129, .24);
    color: #041410;
}

.marvel-result-pill--loss {
    background: linear-gradient(135deg, #dc2626, #f87171);
    box-shadow: 0 0 18px rgba(248, 113, 113, .24);
    color: #fff7f7;
}

.marvel-session-card .admin-panel__body {
    padding: .78rem .95rem .92rem;
}

.marvel-session-content {
    align-items: stretch;
}

.marvel-session-section h3 {
    color: #6fb7ea;
    font-size: .67rem;
    letter-spacing: .12em;
}

.marvel-player-list {
    gap: .55rem;
}

.marvel-player-chip {
    background: linear-gradient(135deg, rgba(31, 42, 56, .92), rgba(15, 22, 32, .92));
    border-color: rgba(92, 109, 130, .55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
    min-height: 58px;
    padding: .48rem .55rem;
}

.marvel-player-chip:hover {
    border-color: rgba(111, 183, 234, .45);
}

.marvel-player-chip__identity {
    flex: 1 1 auto;
}

.marvel-player-chip__art,
.marvel-player-chip__fallback {
    border-color: rgba(148, 163, 184, .35);
    height: 44px;
    width: 44px;
}

.marvel-player-chip__text {
    min-width: 0;
}

.marvel-player-chip__text strong {
    color: #f8fbff;
    font-size: .88rem;
}

.marvel-player-chip__text span {
    color: #aebccd;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marvel-player-chip__meta {
    align-items: flex-end;
    flex: 0 0 auto;
}

.marvel-player-state {
    align-items: center;
    display: inline-flex !important;
    gap: .28rem;
    white-space: nowrap;
}

.marvel-player-state--nemesis {
    background: rgba(250, 204, 21, .09);
    border: 1px solid rgba(250, 204, 21, .18);
    border-radius: 999px;
    padding: .18rem .45rem .18rem .22rem;
}

.marvel-player-state--nemesis img {
    border-radius: 50%;
    height: 20px;
    object-fit: cover;
    width: 20px;
}

.marvel-aspect-badge {
    font-size: .68rem;
    padding: .28rem .6rem;
}

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

.marvel-session-card .marvel-encounter-chip {
    background: linear-gradient(135deg, rgba(31, 42, 56, .92), rgba(15, 22, 32, .92));
    border-color: rgba(92, 109, 130, .55);
    min-height: 44px;
    padding: .42rem .58rem;
}

.marvel-session-card .marvel-encounter-chip__art,
.marvel-session-card .marvel-encounter-chip__fallback {
    height: 32px;
    width: 32px;
}

.marvel-session-edit {
    border-radius: 7px;
    min-height: 2rem;
}

.marvel-more-modal {
    max-width: min(760px, calc(100vw - 1rem));
}

.marvel-more-toolbar {
    margin-bottom: .8rem;
}

.marvel-more-list {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.marvel-more-row {
    align-items: center;
    background: linear-gradient(135deg, rgba(31, 42, 56, .92), rgba(15, 22, 32, .92));
    border: 1px solid rgba(92, 109, 130, .55);
    border-radius: 9px;
    display: grid;
    gap: .75rem;
    grid-template-columns: 48px minmax(0, 1fr);
    padding: .58rem .65rem;
}

.marvel-more-row__image img,
.marvel-more-row__fallback {
    border-radius: 8px;
    height: 44px;
    width: 44px;
}

.marvel-more-row__image img {
    object-fit: cover;
}

.marvel-more-row__fallback {
    align-items: center;
    background: rgba(56, 189, 248, .13);
    border: 1px solid rgba(56, 189, 248, .28);
    color: var(--accent);
    display: flex;
    font-size: .9rem;
    font-weight: 900;
    justify-content: center;
}

.marvel-more-row__body {
    min-width: 0;
}

.marvel-more-row__head {
    align-items: center;
    display: flex;
    gap: .6rem;
    justify-content: space-between;
    min-width: 0;
}

.marvel-more-row__head strong {
    color: #f8fbff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marvel-more-row p {
    color: #aebccd;
    font-size: .82rem;
    margin: .12rem 0 0;
}

.marvel-more-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .75rem;
    margin-top: .32rem;
}

.marvel-more-row__meta span {
    color: #c9d3df;
    font-size: .75rem;
}

.marvel-more-row__badge {
    border-radius: 999px;
    color: #dbe8f4;
    flex: 0 0 auto;
    font-size: .72rem;
    font-style: normal;
    font-weight: 900;
    padding: .22rem .52rem;
}

.marvel-more-row__badge--win {
    background: rgba(16, 185, 129, .18);
    color: #6ee7b7;
}

.marvel-more-row__badge--loss {
    background: rgba(248, 113, 113, .16);
    color: #fca5a5;
}

@media (max-width: 991.98px) {
    .marvel-session-card .admin-panel__header.marvel-session-card__header {
        grid-template-columns: 1fr;
    }

    .marvel-session-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .marvel-session-villain-art,
    .marvel-session-villain-art__fallback {
        height: 54px;
        width: 54px;
    }

    .marvel-session-card h2 {
        font-size: 1.08rem;
    }

    .marvel-player-chip__text span {
        max-width: 150px;
    }
}
