/* Player Resources tab — color-coded sections + GM-style combat menus */

.player-resources-pane {
    flex-direction: column;
    gap: 0.85rem;
}

#resources-pane.enhancement-tab-pane:not(.active) {
    display: none !important;
}

#resources-pane.enhancement-tab-pane.active {
    display: flex;
}

.player-res-section {
    border-radius: 14px;
    padding: 0;
}

.player-res-section-head {
    margin-bottom: 0.5rem;
}

.player-res-section-head--compact {
    margin-bottom: 0.35rem;
    text-align: center;
}

.player-res-section-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-color);
}

.player-res-section-title--link {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s ease;
}

.player-res-section-title--link:hover {
    color: #2563eb;
}

.player-res-section-desc {
    margin: 0;
    font-size: 0.78rem;
    opacity: 0.68;
    line-height: 1.35;
}

/* Character info — compact Init / Speed under portrait */
.player-movement-panel {
    width: 100%;
    max-width: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.45rem 0.4rem;
    border-radius: 10px;
    border: 1px solid rgba(56, 161, 105, 0.28);
    background: linear-gradient(165deg, rgba(16, 32, 28, 0.88) 0%, rgba(12, 22, 20, 0.94) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.player-movement-stats {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    gap: 0.35rem;
}

.player-movement-stat {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.05rem;
    min-width: 0;
    padding: 0.2rem 0.15rem;
    border-radius: 7px;
    text-align: center;
}

.player-movement-stat--init {
    background: rgba(49, 130, 206, 0.18);
    border: 1px solid rgba(99, 179, 237, 0.28);
}

.player-movement-stat--speed {
    background: rgba(56, 161, 105, 0.18);
    border: 1px solid rgba(104, 211, 145, 0.28);
}

.player-movement-stat-value {
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.05;
    color: #f0fff4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.player-movement-stat--init .player-movement-stat-value {
    color: #bee3f8;
}

.player-movement-stat--speed .player-movement-stat-value {
    color: #c6f6d5;
}

.player-movement-stat-label {
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(230, 255, 240, 0.62);
    line-height: 1;
}

.player-movement-bonus-pill:empty {
    display: none;
}

.player-movement-bonus-pill:not(:empty) {
    display: inline-block;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1a4731 !important;
    background: linear-gradient(180deg, rgba(214, 250, 228, 0.96) 0%, rgba(154, 230, 180, 0.9) 100%);
    border: 1px solid rgba(72, 187, 120, 0.45);
    line-height: 1.2;
    cursor: default;
}

.player-movement-bonus-pill.player-resource-bonus-pill--interactive {
    cursor: pointer;
}

.player-movement-bonus-pill.player-resource-bonus-pill--interactive:hover {
    filter: brightness(1.06);
    box-shadow: 0 1px 6px rgba(72, 187, 120, 0.35);
}

button.player-movement-bonus-pill {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
}

.player-bonus-detail-derived {
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.14);
}

.player-bonus-detail-derived-heading {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(232, 212, 168, 0.9);
}

.player-bonus-detail-list--derived {
    gap: 0.2rem;
}

.player-bonus-detail-row--derived .player-bonus-detail-source {
    font-weight: 700;
    color: rgba(240, 230, 210, 0.95);
}

.player-bonus-detail-derived-note {
    list-style: none;
    margin: 0;
    padding: 0 0 0.15rem 0.65rem;
    font-size: 0.7rem;
    line-height: 1.35;
    color: rgba(240, 230, 210, 0.65);
}

/* Legacy movement chips (removed layout) */
.player-movement-chips {
    display: none;
}

/* Legacy combat stats bar (removed from layout; keep for any stray references) */
.player-combat-stats-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 137, 84, 0.45);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(240, 230, 200, 0.2) 100%);
}

.player-combat-stat-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 3.25rem;
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.player-combat-stat-chip--init {
    background: linear-gradient(180deg, rgba(99, 179, 237, 0.35) 0%, rgba(49, 130, 206, 0.2) 100%);
    border-color: rgba(49, 130, 206, 0.35);
}

.player-combat-stat-chip--speed {
    background: linear-gradient(180deg, rgba(104, 211, 145, 0.35) 0%, rgba(56, 161, 105, 0.2) 100%);
    border-color: rgba(56, 161, 105, 0.35);
}

.player-combat-stat-value {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1a365d;
}

.player-combat-stat-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
}

.player-combat-stat-bonuses {
    flex: 1 1 140px;
    font-size: 0.72rem;
    margin: 0;
}

/* Staggered entrance */
@keyframes player-res-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.player-res-animate-in {
    animation: player-res-fade-up 0.4s ease-out both;
}

.player-res-animate-in--delay-1 { animation-delay: 0.05s; }
.player-res-animate-in--delay-2 { animation-delay: 0.1s; }
.player-res-animate-in--delay-3 { animation-delay: 0.15s; }

/* Combat menu launchers */
.player-combat-menu-launchers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.player-combat-menu-btn {
    position: relative;
    overflow: hidden;
    min-height: 46px;
    padding: 0.6rem 0.85rem;
    border-radius: 11px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.player-combat-menu-btn-glow {
    position: absolute;
    inset: -30%;
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.player-combat-menu-btn:hover {
    transform: translateY(-2px);
}

.player-combat-menu-btn:hover .player-combat-menu-btn-glow {
    opacity: 0.55;
}

.player-combat-menu-btn-label {
    position: relative;
    z-index: 1;
}

.player-combat-menu-btn--attack {
    color: #3a1210;
    background: linear-gradient(145deg, #f0a89a 0%, #c45c4a 48%, #8a2e22 100%);
    border-color: rgba(120, 30, 20, 0.45);
    box-shadow: 0 4px 14px rgba(160, 50, 40, 0.2);
}

.player-combat-menu-btn--attack .player-combat-menu-btn-glow {
    background: radial-gradient(circle at 30% 20%, rgba(255, 220, 200, 0.9) 0%, transparent 55%);
}

.player-combat-menu-btn--defense {
    color: #0f2a24;
    background: linear-gradient(145deg, #9fd4c4 0%, #4a8f7c 50%, #2a5548 100%);
    border-color: rgba(40, 90, 75, 0.45);
    box-shadow: 0 4px 14px rgba(60, 120, 100, 0.18);
}

.player-combat-menu-btn--defense .player-combat-menu-btn-glow {
    background: radial-gradient(circle at 70% 25%, rgba(200, 255, 235, 0.85) 0%, transparent 55%);
}

/* Vitals row — grit hero + compact channels */
.player-vitals-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
}

@media (max-width: 520px) {
    .player-channel-hero {
        width: 100%;
        max-width: none;
    }
}

/* --- Grit hero card (polished) --- */
.player-grit-hero {
    flex: 1 1 260px;
    min-width: 0;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(90, 30, 25, 0.45);
    background: linear-gradient(165deg, #2a2224 0%, #1a1618 48%, #121014 100%);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 40px rgba(180, 60, 50, 0.08);
}

.player-grit-hero-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.55rem;
    padding: 0.45rem 0.75rem 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(200, 70, 55, 0.12) 0%, transparent 100%);
}

.player-grit-hero-title {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 210, 195, 0.95);
    cursor: pointer;
    transition: color 0.15s ease;
}

.player-grit-hero-title:hover {
    color: #fff;
}

.player-grit-bonus-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    margin: 0 !important;
    line-height: 1.2;
}

.player-grit-hero .bonus-label {
    display: none;
}

.player-grit-bonus-tag:empty {
    display: none;
}

.player-grit-bonus-tag:not(:empty) {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #3d2e1a !important;
    background: linear-gradient(180deg, #f0e0b8 0%, #d4bc82 100%);
    border: 1px solid rgba(180, 140, 60, 0.45);
    white-space: nowrap;
}

.player-grit-hero-body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem 0.45rem;
}

.player-grit-meter-col {
    flex: 1 1 160px;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.player-grit-meter-wrap {
    position: relative;
    width: 100%;
}

.player-grit-adjust-strip {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    flex: 1 1 145px;
    max-width: 158px;
    min-width: 0;
    padding: 0.35rem 0.42rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-grit-adjust-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.player-grit-adjust-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.player-grit-adjust-btn {
    width: 1.85rem;
    height: 1.85rem;
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: filter 0.12s ease, transform 0.12s ease;
}

.player-grit-adjust-btn:hover {
    filter: brightness(1.12);
    transform: scale(1.04);
}

.player-grit-adjust-input {
    /* legacy — replaced by .player-grit-adjust-value */
    display: none;
}

.player-grit-adjust-actions {
    display: flex;
    gap: 0.35rem;
}

.player-grit-adjust-actions .player-grit-action {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.28rem 0.46rem;
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    border-radius: 8px;
    gap: 0.22rem;
}

.player-grit-adjust-actions .player-grit-action-icon {
    font-size: 0.78rem;
}

.player-grit-meter-track {
    position: relative;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.player-grit-meter-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #8b2e22 0%, #c44a3a 35%, #e87058 70%, #f4a090 100%);
    transition: width 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.25);
}

.player-grit-meter-temp-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 45%, #60a5fa 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -3px 8px rgba(15, 23, 42, 0.25),
        0 0 10px rgba(59, 130, 246, 0.45);
    transition: width 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    overflow: hidden;
    pointer-events: none;
}

.player-grit-meter-temp-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 55%, rgba(30, 64, 175, 0.2) 100%);
    pointer-events: none;
}

.player-grit-meter-temp-label {
    position: absolute;
    left: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(15, 23, 42, 0.85);
    white-space: nowrap;
    line-height: 1;
}

.player-grit-meter-track--has-temp {
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(59, 130, 246, 0.12);
}

.player-grit-meter-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 45%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
}

.player-grit-meter-shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
    animation: player-grit-shine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes player-grit-shine {
    0%, 100% { transform: translateX(-120%); opacity: 0; }
    45%, 55% { opacity: 1; }
    100% { transform: translateX(120%); }
}

.player-grit-meter-display {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    z-index: 3;
    pointer-events: none;
}

.player-grit-meter-display > * {
    pointer-events: auto;
}

.player-grit-input-hero {
    display: inline-block;
    min-width: 1.5rem;
    max-width: 3.5rem;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    text-align: center;
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    text-shadow:
        0 0 12px rgba(0, 0, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 0.85),
        0 1px 0 rgba(0, 0, 0, 1);
}

.player-grit-adjust-value {
    min-width: 1.75rem;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    font-family: var(--font-cinzel, 'Cinzel', serif);
    line-height: 1.85rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.player-grit-separator {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1;
}

.player-grit-max-hero {
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: clamp(1.1rem, 3.5vw, 1.45rem);
    font-weight: 800;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.88);
    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.85),
        0 2px 4px rgba(0, 0, 0, 0.8);
}

.player-grit-quick-actions {
    display: none;
}

.player-grit-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 5.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
}

.player-grit-action:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.player-grit-action:active {
    transform: translateY(0);
}

.player-grit-action-icon {
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
}

.player-grit-action--heal {
    color: #0a2918;
    background: linear-gradient(180deg, #86efac 0%, #22c55e 55%, #16a34a 100%);
    box-shadow: 0 3px 12px rgba(34, 197, 94, 0.35);
}

.player-grit-action--damage {
    color: #fff;
    background: linear-gradient(180deg, #f87171 0%, #dc2626 55%, #991b1b 100%);
    box-shadow: 0 3px 12px rgba(220, 38, 38, 0.35);
}

.player-shield-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    width: 100%;
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.14) 0%, rgba(37, 99, 235, 0.08) 100%);
    border: 1px solid rgba(96, 165, 250, 0.22);
}

.player-shield-strip-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(191, 219, 254, 0.95);
    white-space: nowrap;
}

.player-shield-sources-pill:empty {
    display: none;
}

.player-shield-sources-pill:not(:empty) {
    display: inline-block;
    padding: 0.1rem 0.38rem;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none;
    color: #1e3a5f !important;
    background: linear-gradient(180deg, #dbeafe 0%, #93c5fd 100%);
    border: 1px solid rgba(59, 130, 246, 0.45);
    white-space: nowrap;
}

.player-shield-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.player-grit-meter-wrap.player-grit-meter--low .player-grit-meter-fill {
    animation: player-grit-pulse 1.8s ease-in-out infinite;
}

.player-grit-meter-wrap.player-grit-meter--critical .player-grit-meter-track {
    border-color: rgba(248, 113, 113, 0.45);
}

@keyframes player-grit-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

.player-shield-stepper {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.player-shield-btn {
    width: 1.65rem;
    height: 1.65rem;
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(147, 197, 253, 0.45);
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.12s ease;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.player-shield-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.player-shield-value {
    min-width: 1.75rem;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    font-family: var(--font-cinzel, 'Cinzel', serif);
    line-height: 1.65rem;
    color: #dbeafe;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

/* Legacy selectors — shield compact removed from DOM */
.player-shield-compact,
.player-grit-hero-footer,
.player-grit-hero-main,
.player-grit-meter,
.player-grit-value-row,
.player-grit-of,
.player-grit-bonuses {
    /* replaced by new layout */
}

/* --- Channel hero card (matches grit polish) --- */
.player-channel-hero {
    flex: 0 0 auto;
    width: min(100%, 248px);
    min-width: 168px;
    max-width: 248px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(128, 90, 213, 0.5);
    background:
        linear-gradient(135deg, rgba(255, 0, 0, 0.12), rgba(255, 230, 0, 0.1), rgba(0, 255, 0, 0.08), rgba(0, 120, 255, 0.1), rgba(200, 0, 255, 0.1)),
        linear-gradient(165deg, #221e28 0%, #16141a 52%, #0e0c10 100%);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.35),
        0 0 32px rgba(128, 90, 213, 0.12);
}

.player-channel-hero-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.55rem 0.75rem 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(128, 90, 213, 0.14) 0%, transparent 100%);
}

.player-channel-hero-title {
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(230, 210, 255, 0.95);
}

.player-channel-bonus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.player-channel-bonus-tag:empty {
    display: none;
}

.player-channel-bonus-tag:not(:empty) {
    display: inline-block;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 700;
    color: #2d1f4a !important;
    background: linear-gradient(180deg, #e9d8fd 0%, #b794f4 100%);
    border: 1px solid rgba(128, 90, 213, 0.45);
    white-space: nowrap;
}

.player-channel-body {
    padding: 0.55rem 0.75rem 0.55rem;
}

.player-channel-stats-row {
    display: grid;
    grid-template-columns: minmax(4.25rem, auto) minmax(0, 1fr);
    gap: 0.45rem;
    align-items: stretch;
}

.player-channel-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.35rem 0.3rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 100%;
}

.player-channel-available-col {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
}

.player-channel-stat--earned {
    border-color: rgba(246, 224, 94, 0.25);
}

.player-channel-stat-label {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.player-channel-stat-value {
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.player-channel-stat--earned .player-channel-stat-value {
    color: #fde68a;
}

.channel-earned-hint[data-tooltip] {
    cursor: help;
}

.channel-earned-hint[data-tooltip] .player-channel-stat-label,
.channel-earned-hint[data-tooltip] .channel-earned-label {
    text-decoration: underline dotted rgba(255, 255, 255, 0.35);
    text-underline-offset: 0.12em;
}

.player-channel-available {
    padding: 0;
    border-top: none;
    background: none;
}

.player-channel-available-label {
    display: block;
    margin-bottom: 0;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(191, 219, 254, 0.85);
}

.player-channel-meter-wrap {
    position: relative;
    width: 100%;
    height: 40px;
}

.player-channel-meter-track {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.player-channel-meter-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: auto;
    width: 0%;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #553c9a 0%, #805ad5 40%, #9f7aea 70%, #b794f4 100%);
    transition: width 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.2);
}

.player-channel-meter-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 45%, rgba(0, 0, 0, 0.12) 100%);
    pointer-events: none;
}

.player-channel-meter-shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.14) 50%, transparent 60%);
    animation: player-grit-shine 4s ease-in-out infinite;
    pointer-events: none;
}

.player-channel-stepper {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.2rem;
    padding: 0 0.85rem;
    box-sizing: border-box;
}

#channel-box .player-channel-stepper {
    justify-content: space-between;
    padding: 0 0.85rem;
}

.player-channel-stepper .player-channel-btn:first-of-type {
    margin-left: 0.15rem;
}

.player-channel-stepper .player-channel-btn:last-of-type {
    margin-right: 0.15rem;
}

.player-channel-meter-display {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    pointer-events: none;
    min-width: 0;
    line-height: 1;
}

.player-channel-meter-current {
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: clamp(1.05rem, 3vw, 1.35rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow:
        0 0 12px rgba(0, 0, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 0.85),
        0 1px 0 rgba(0, 0, 0, 1);
}

.player-channel-meter-max {
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.88);
    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.85),
        0 2px 4px rgba(0, 0, 0, 0.8);
}

.player-channel-separator {
    font-size: clamp(0.85rem, 2.4vw, 1rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1;
}

.player-channel-btn {
    flex: 0 0 1.55rem;
    width: 1.55rem;
    height: 1.55rem;
    padding: 0;
    border-radius: 6px;
    border: 1px solid rgba(183, 148, 244, 0.45);
    background: linear-gradient(180deg, #805ad5 0%, #553c9a 100%);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.12s ease;
    box-shadow: 0 1px 4px rgba(85, 60, 154, 0.45);
}

.player-channel-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.player-channel-value {
    min-width: 2rem;
    text-align: center;
    font-weight: 800;
    font-size: 1.15rem;
    font-family: var(--font-cinzel, 'Cinzel', serif);
    line-height: 2rem;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

.channel-earned-section--readonly .channel-earned-display {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2rem;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #3a2e20;
    background: linear-gradient(180deg, #fde68a 0%, #fbbf24 100%);
    border: 1px solid rgba(180, 140, 60, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.channel-earned-section--readonly .channel-earned-label {
    color: #3a2e20;
}

/* Legacy compact channel overrides removed */

/* Status & Items side-by-side row */
.player-res-dual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: stretch;
}

@media (max-width: 820px) {
    .player-res-dual-grid {
        grid-template-columns: 1fr;
    }
}

.player-res-dual-grid .player-status-hero,
.player-res-dual-grid .player-items-hero {
    height: 100%;
}

/* Recovery & consumables — dark hero (emerald accent) */
.player-items-hero {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(72, 187, 120, 0.38);
    background: linear-gradient(165deg, #182018 0%, #101810 52%, #0a100a 100%);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.32),
        0 0 24px rgba(72, 187, 120, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.player-items-hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(72, 187, 120, 0.12) 0%, transparent 100%);
    flex-shrink: 0;
}

.player-items-hero-title {
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(167, 243, 208, 0.95);
}

.player-resources-pane #quick-items-container.player-quick-items-panel {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.45rem 0.65rem 0.55rem;
    border: none;
    background: none;
    box-shadow: none;
    border-radius: 0;
    display: block;
}

.player-items-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
}

.player-items-group {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
}

.player-items-group-label {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(167, 243, 208, 0.72);
}

.player-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    max-height: 118px;
    overflow-y: auto;
    padding-right: 0.15rem;
}

#consumables-items-list.player-items-list {
    max-height: none;
    overflow: visible;
}

.player-items-empty {
    margin: 0;
    padding: 0.35rem 0.2rem;
    font-size: 0.68rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.42);
    text-align: center;
}

.player-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.28rem 0.38rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
    min-width: 0;
}

.player-item-row--recovery {
    border-color: rgba(72, 187, 120, 0.22);
    background: linear-gradient(180deg, rgba(72, 187, 120, 0.1) 0%, rgba(0, 0, 0, 0.18) 100%);
}

.player-item-row--consumable {
    border-color: rgba(99, 179, 237, 0.2);
    background: linear-gradient(180deg, rgba(66, 153, 225, 0.08) 0%, rgba(0, 0, 0, 0.18) 100%);
}

.player-item-main {
    display: flex;
    flex-direction: column;
    gap: 0.04rem;
    min-width: 0;
    flex: 1 1 auto;
}

.player-item-row--consumable .player-item-main {
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
}

.player-item-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    padding: 1px;
}

.player-item-name {
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-item-effect {
    font-size: 0.58rem;
    line-height: 1.15;
    color: rgba(167, 243, 208, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-item-actions {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    flex-shrink: 0;
}

.player-item-qty {
    font-size: 0.62rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.72);
    min-width: 1.5rem;
    text-align: right;
}

.player-item-qty--empty {
    opacity: 0.45;
}

.player-item-use-btn {
    padding: 0.14rem 0.42rem;
    border-radius: 6px;
    border: 1px solid rgba(72, 187, 120, 0.45);
    background: linear-gradient(180deg, rgba(167, 243, 208, 0.92) 0%, rgba(72, 187, 120, 0.82) 100%);
    color: #1a2e1f;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}

.player-item-use-btn:hover {
    filter: brightness(1.06);
}

.player-item-use-btn--refill {
    border-color: rgba(99, 179, 237, 0.45);
    background: linear-gradient(180deg, rgba(190, 227, 248, 0.92) 0%, rgba(66, 153, 225, 0.82) 100%);
    color: #1a2838;
}

.player-items-hero .player-themed-scrollbar {
    scrollbar-color: rgba(72, 187, 120, 0.45) rgba(0, 0, 0, 0.28);
}

.player-items-hero .player-themed-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(72, 187, 120, 0.45);
}

.player-items-hero .player-themed-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(104, 211, 145, 0.65);
}

/* Status & Forms — dark hero (matches Grit / Channels) */
.player-resources-pane #status-effects-box.player-status-hero {
    min-height: unset !important;
    max-height: unset !important;
    overflow: hidden !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column;
    width: 100%;
}

.player-status-hero {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(214, 158, 46, 0.55);
    background: linear-gradient(165deg, #2a2418 0%, #1a1610 48%, #12100a 100%);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 40px rgba(214, 158, 46, 0.12);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.player-status-hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem 0.45rem;
    border-bottom: 1px solid rgba(214, 158, 46, 0.22);
    background: linear-gradient(180deg, rgba(214, 158, 46, 0.16) 0%, rgba(214, 158, 46, 0.04) 100%);
    flex-shrink: 0;
}

.player-status-hero-title {
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(251, 211, 141, 0.95);
}

.player-status-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.player-status-shapeshift-btn {
    width: 1.75rem;
    height: 1.75rem;
    padding: 0.1rem;
    border-radius: 8px;
    border: 1px solid rgba(183, 148, 244, 0.45);
    background: rgba(128, 90, 213, 0.18);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.player-status-shapeshift-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.player-status-shapeshift-btn:hover {
    filter: brightness(1.1);
    border-color: rgba(183, 148, 244, 0.72);
}

.player-status-shapeshift-btn.active-glow {
    box-shadow: 0 0 8px rgba(183, 148, 244, 0.65);
    border-color: rgba(183, 148, 244, 0.85);
}

.player-shapeshift-status-slot:empty {
    display: none;
}

.player-shapeshift-status-slot:not(:empty) {
    padding: 0.45rem 0.75rem 0;
}

#status-effects-box .status-effects-panel {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 0.75rem 0.65rem;
    padding: 0.45rem 0.5rem;
    border: 1px solid rgba(214, 158, 46, 0.28);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
}

.player-res-card-title {
    display: block;
    margin: 0 0 0.35rem;
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-color);
}

.player-res-card-title--status {
    margin-bottom: 0.35rem;
}

/* Resources track row — unified 6-column grid (Session + Techniques) */
.player-res-tracks {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.player-res-tracks-grid {
    display: grid;
    grid-template-columns: minmax(0, 27fr) minmax(0, 73fr);
    gap: 0.55rem;
    align-items: stretch;
    scroll-margin-top: 5.5rem;
}

.player-session-resources-cluster {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.5rem 0.55rem 0.55rem;
    border-radius: 16px;
    border: 1px solid rgba(129, 140, 248, 0.38);
    background:
        linear-gradient(145deg, rgba(96, 165, 250, 0.22) 0%, rgba(99, 102, 241, 0.18) 42%, rgba(236, 72, 153, 0.14) 78%, rgba(14, 12, 22, 0.92) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 6px 20px rgba(0, 0, 0, 0.28);
}

.player-session-resources-cluster .player-tracks-zone-label--session {
    padding: 0 0.05rem;
    color: rgba(199, 210, 254, 0.96);
}

.player-session-resources-cluster-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.38rem;
    min-width: 0;
}

.player-techniques-cluster {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.5rem 0.55rem 0.55rem;
    border-radius: 16px;
    border: 1px solid rgba(214, 158, 46, 0.32);
    background:
        linear-gradient(145deg, rgba(246, 173, 85, 0.14) 0%, rgba(104, 211, 145, 0.1) 28%, rgba(99, 179, 237, 0.1) 56%, rgba(183, 148, 244, 0.12) 82%, rgba(14, 12, 22, 0.92) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 6px 20px rgba(0, 0, 0, 0.28);
}

.player-techniques-cluster .player-tracks-zone-label--techniques {
    color: rgba(251, 211, 141, 0.96);
}

.player-techniques-cluster-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    min-width: 0;
}

.player-tracks-zone-label {
    margin: 0;
    padding: 0 0.1rem;
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(232, 212, 168, 0.95);
    line-height: 1.2;
}

.player-tracks-zone-label--techniques {
    margin: 0;
    padding: 0 0.1rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
}

.player-res-tracks-grid .resource-box.player-tech-track-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    padding: 0.45rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
    background: rgba(0, 0, 0, 0.14);
    box-sizing: border-box;
}

.player-res-tracks-grid .player-tech-track-wrap--mom.resource-box {
    border-color: rgba(129, 140, 248, 0.58);
    background: linear-gradient(165deg, rgba(96, 165, 250, 0.38) 0%, rgba(99, 102, 241, 0.3) 48%, rgba(30, 58, 138, 0.52) 100%);
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.12);
}

.player-res-tracks-grid .player-tech-track-wrap--ins.resource-box {
    border-color: rgba(244, 114, 182, 0.58);
    background: linear-gradient(165deg, rgba(244, 114, 182, 0.36) 0%, rgba(236, 72, 153, 0.28) 48%, rgba(131, 24, 67, 0.48) 100%);
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.12);
}

.player-res-tracks-grid .player-tech-track-wrap--ep.resource-box {
    border-color: rgba(246, 173, 85, 0.52);
    background: linear-gradient(165deg, rgba(251, 191, 36, 0.28) 0%, rgba(246, 173, 85, 0.22) 48%, rgba(68, 32, 10, 0.52) 100%);
    box-shadow: 0 0 12px rgba(246, 173, 85, 0.08);
}

.player-res-tracks-grid .player-tech-track-wrap--tp.resource-box {
    border-color: rgba(104, 211, 145, 0.52);
    background: linear-gradient(165deg, rgba(110, 231, 183, 0.26) 0%, rgba(104, 211, 145, 0.2) 48%, rgba(20, 68, 40, 0.52) 100%);
    box-shadow: 0 0 12px rgba(104, 211, 145, 0.08);
}

.player-res-tracks-grid .player-tech-track-wrap--bp.resource-box {
    border-color: rgba(99, 179, 237, 0.52);
    background: linear-gradient(165deg, rgba(125, 211, 252, 0.26) 0%, rgba(99, 179, 237, 0.2) 48%, rgba(22, 54, 96, 0.52) 100%);
    box-shadow: 0 0 12px rgba(99, 179, 237, 0.08);
    overflow: visible;
}

.player-res-tracks-grid .player-tech-track-wrap--cp.resource-box {
    border-color: rgba(183, 148, 244, 0.52);
    background: linear-gradient(165deg, rgba(216, 180, 254, 0.26) 0%, rgba(183, 148, 244, 0.2) 48%, rgba(62, 36, 102, 0.52) 100%);
    box-shadow: 0 0 12px rgba(183, 148, 244, 0.08);
}

.player-res-tracks-grid .resource-box > .player-tech-hero,
.player-res-tracks-grid .resource-box > button.player-tech-hero {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}

/* Interactive session resource cards — same shell as technique divs */
button.player-tech-hero.player-tech-hero--interactive {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 0;
    margin: 0;
    text-align: inherit;
    cursor: pointer;
    font: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
}

button.player-tech-hero.player-tech-hero--interactive:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/* Session value row — same slot as technique notches */
.player-res-tracks-grid .player-session-value-row {
    justify-content: center;
    align-items: center;
    gap: 0.28rem;
    min-height: 22px;
}

.player-res-tracks-grid .player-session-value-icon {
    width: 19px;
    height: 19px;
    object-fit: contain;
    flex-shrink: 0;
}

.player-res-tracks-grid .player-session-value-count,
.player-res-tracks-grid .momentum-count-display,
.player-res-tracks-grid .inspiration-count-display {
    position: static !important;
    transform: none !important;
    display: block !important;
    background: none !important;
    padding: 0 !important;
    min-width: 0 !important;
    border-radius: 0 !important;
    font-family: var(--font-cinzel, 'Cinzel', serif) !important;
    font-size: clamp(1rem, 2.5vw, 1.25rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85) !important;
    line-height: 1 !important;
    pointer-events: none;
}

/* Compact technique + session cards in tracks grid */
.player-res-tracks-grid .player-tech-hero-header {
    padding: 0.36rem 0.42rem 0.28rem;
    min-height: 2.55rem;
    align-items: flex-start;
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.player-res-tracks-grid .player-tech-hero.tech-mom .player-tech-hero-header { border-bottom-color: rgba(99, 102, 241, 0.32); }
.player-res-tracks-grid .player-tech-hero.tech-ins .player-tech-hero-header { border-bottom-color: rgba(244, 114, 182, 0.35); }
.player-res-tracks-grid .player-tech-hero.tech-ep .player-tech-hero-header { border-bottom-color: rgba(246, 173, 85, 0.32); }
.player-res-tracks-grid .player-tech-hero.tech-tp .player-tech-hero-header { border-bottom-color: rgba(104, 211, 145, 0.32); }
.player-res-tracks-grid .player-tech-hero.tech-bp .player-tech-hero-header { border-bottom-color: rgba(99, 179, 237, 0.32); }
.player-res-tracks-grid .player-tech-hero.tech-cp .player-tech-hero-header { border-bottom-color: rgba(183, 148, 244, 0.32); }

/* Title underline — matches legacy .resource-label on technique links */
.player-res-tracks-grid .player-tech-hero-title {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    padding-bottom: 0.25rem;
    margin-bottom: 0;
}

.player-res-tracks-grid .player-tech-hero.tech-mom .player-tech-hero-title { border-bottom-color: rgba(99, 102, 241, 0.45); }
.player-res-tracks-grid .player-tech-hero.tech-ins .player-tech-hero-title { border-bottom-color: rgba(244, 114, 182, 0.5); }
.player-res-tracks-grid .player-tech-hero.tech-ep .player-tech-hero-title { border-bottom-color: rgba(246, 173, 85, 0.45); }
.player-res-tracks-grid .player-tech-hero.tech-tp .player-tech-hero-title { border-bottom-color: rgba(104, 211, 145, 0.45); }
.player-res-tracks-grid .player-tech-hero.tech-bp .player-tech-hero-title { border-bottom-color: rgba(99, 179, 237, 0.45); }
.player-res-tracks-grid .player-tech-hero.tech-cp .player-tech-hero-title { border-bottom-color: rgba(183, 148, 244, 0.45); }

.player-res-tracks-grid a.player-tech-hero-title.resource-label {
    border-bottom-width: 2px;
    border-bottom-style: solid;
    margin-bottom: 0;
}

/* Reserve Source-pill width so session cards match technique header height */
.player-res-tracks-grid .player-tech-bonus-tags:empty {
    flex: 0 0 2.65rem;
    width: 2.65rem;
    min-height: 0.95rem;
}

.player-res-tracks-grid .player-tech-hero-body {
    padding: 0.32rem 0.42rem 0.42rem;
    gap: 0.28rem;
}

.player-res-tracks-grid .player-tech-hero-body--notches-only {
    padding-top: 0.38rem;
    padding-bottom: 0.45rem;
}

.player-res-tracks-grid .player-tech-name {
    font-size: 0.58rem;
}

.player-res-tracks-grid .player-tech-notch {
    width: 11px;
    height: 19px;
}

.player-res-tracks-grid .player-tech-notch-row {
    min-height: 22px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3px;
    row-gap: 3px;
}

.player-res-tracks-grid .player-tech-notch-row--compact .player-tech-notch {
    width: 9px;
    height: 17px;
}

.player-res-tracks-grid .player-tech-notch-row--dense .player-tech-notch {
    width: 7px;
    height: 15px;
}

.player-res-tracks-grid .player-tech-notch-row--xl .player-tech-notch {
    width: 6px;
    height: 14px;
}

.player-res-tracks-grid .player-tech-notch-row--compact,
.player-res-tracks-grid .player-tech-notch-row--dense,
.player-res-tracks-grid .player-tech-notch-row--xl {
    gap: 2px;
    row-gap: 2px;
}

.player-res-tracks-grid .player-tech-bonus-pill:not(:empty) {
    padding: 0.07rem 0.26rem;
    font-size: 0.48rem;
    letter-spacing: 0.03em;
}

.player-res-tracks-grid .player-tech-locked-body {
    min-height: 22px;
}

.player-tech-hero--locked {
    opacity: 0.72;
    border-style: dashed;
    cursor: default;
    pointer-events: none;
}

.player-tech-hero-title--locked {
    display: flex;
    flex-direction: column;
    gap: 0.02rem;
    min-width: 0;
    cursor: default;
    text-decoration: none;
}

.player-tech-locked-body {
    align-items: center;
    justify-content: center;
    min-height: 58px;
    text-align: center;
    gap: 0.2rem;
}

.player-tech-locked-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}

.player-tech-locked-hint {
    font-size: 0.54rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.42);
    padding: 0 0.15rem;
}

/* Techniques — dark hero cards (matches Grit / Channels) */
.player-res-techniques,
.player-res-tracks {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.player-tech-section-title {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(232, 212, 168, 0.95);
    cursor: pointer;
    transition: color 0.15s ease;
    text-align: left;
}

.player-tech-section-title:hover {
    color: #fff;
}

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

/* Legacy standalone techniques grid (outside tracks row) */
.player-res-techniques > .player-techniques-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

@media (min-width: 640px) {
    .player-res-techniques > .player-techniques-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.player-tech-track-wrap {
    min-width: 0;
}

.player-tech-hero {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, #222018 0%, #161412 52%, #0e0c0a 100%);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.player-tech-hero.tech-ep {
    border-color: rgba(246, 173, 85, 0.42);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.32),
        0 0 24px rgba(246, 173, 85, 0.1);
}

.player-tech-hero.tech-tp {
    border-color: rgba(104, 211, 145, 0.42);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.32),
        0 0 24px rgba(104, 211, 145, 0.1);
}

.player-tech-hero.tech-bp {
    border-color: rgba(99, 179, 237, 0.42);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.32),
        0 0 24px rgba(99, 179, 237, 0.1);
}

.player-tech-hero.tech-cp {
    border-color: rgba(183, 148, 244, 0.42);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.32),
        0 0 24px rgba(183, 148, 244, 0.1);
}

.player-tech-hero.tech-mom {
    border-color: rgba(99, 102, 241, 0.42);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.32),
        0 0 24px rgba(99, 102, 241, 0.1);
}

.player-tech-hero.tech-ins {
    border-color: rgba(244, 114, 182, 0.42);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.32),
        0 0 24px rgba(236, 72, 153, 0.1);
    transition: transform 0.14s ease, filter 0.14s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.player-tech-hero.tech-ins.has-inspiration {
    border-color: rgba(251, 182, 206, 0.68);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.32),
        0 0 24px rgba(244, 114, 182, 0.24);
}

.player-tech-hero.tech-ins.has-inspiration .player-session-value-icon {
    filter: saturate(45%);
}

.player-tech-hero--interactive.session-momentum-request {
    cursor: pointer;
    pointer-events: auto;
}

.player-tech-hero-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.45rem 0.55rem 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.player-tech-hero.tech-ep .player-tech-hero-header {
    background: linear-gradient(180deg, rgba(246, 173, 85, 0.14) 0%, transparent 100%);
}

.player-tech-hero.tech-tp .player-tech-hero-header {
    background: linear-gradient(180deg, rgba(104, 211, 145, 0.14) 0%, transparent 100%);
}

.player-tech-hero.tech-bp .player-tech-hero-header {
    background: linear-gradient(180deg, rgba(99, 179, 237, 0.14) 0%, transparent 100%);
}

.player-tech-hero.tech-cp .player-tech-hero-header {
    background: linear-gradient(180deg, rgba(183, 148, 244, 0.14) 0%, transparent 100%);
}

.player-tech-hero.tech-mom .player-tech-hero-header {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.14) 0%, transparent 100%);
}

.player-tech-hero.tech-ins .player-tech-hero-header {
    background: linear-gradient(180deg, rgba(244, 114, 182, 0.16) 0%, transparent 100%);
}

.player-tech-hero-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    text-decoration: none;
    color: inherit;
    line-height: 1.1;
    min-width: 0;
}

.player-tech-hero-title:hover .player-tech-abbr {
    filter: brightness(1.12);
}

.player-tech-bonus-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
}

.player-tech-bonus-pill:empty {
    display: none !important;
}

.player-tech-bonus-pill:not(:empty) {
    display: inline-block;
    padding: 0.12rem 0.38rem;
    border-radius: 999px;
    border: 1px solid rgba(180, 140, 60, 0.45);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
    color: #3d2e1a !important;
    background: linear-gradient(180deg, #f0e0b8 0%, #d4bc82 100%);
    text-transform: uppercase;
}

.player-tech-abbr {
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.player-tech-hero.tech-ep .player-tech-abbr { color: #fbd38d; }
.player-tech-hero.tech-tp .player-tech-abbr { color: #9ae6b4; }
.player-tech-hero.tech-bp .player-tech-abbr { color: #90cdf4; }
.player-tech-hero.tech-cp .player-tech-abbr { color: #d6bcfa; }
.player-tech-hero.tech-mom .player-tech-abbr { color: #a5b4fc; }
.player-tech-hero.tech-ins .player-tech-abbr { color: #f9a8d4; }

.player-tech-name {
    font-size: 0.52rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.52);
}

.player-tech-hero-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.45rem 0.55rem 0.55rem;
}

.player-tech-meter-wrap {
    position: relative;
    min-height: 40px;
}

.player-tech-meter-track {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}

.player-tech-meter-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: inherit;
    transition: width 0.35s cubic-bezier(0.33, 1, 0.68, 1);
    box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.22);
}

.player-tech-hero.tech-ep .player-tech-meter-fill {
    background: linear-gradient(90deg, #9c4221 0%, #dd6b20 45%, #f6ad55 100%);
}

.player-tech-hero.tech-tp .player-tech-meter-fill {
    background: linear-gradient(90deg, #276749 0%, #38a169 45%, #68d391 100%);
}

.player-tech-hero.tech-bp .player-tech-meter-fill {
    background: linear-gradient(90deg, #2b6cb0 0%, #4299e1 45%, #63b3ed 100%);
}

.player-tech-hero.tech-cp .player-tech-meter-fill {
    background: linear-gradient(90deg, #6b46c1 0%, #805ad5 45%, #b794f4 100%);
}

.player-tech-meter-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 45%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
}

.player-tech-meter-shine {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
    animation: player-grit-shine 4s ease-in-out infinite;
    pointer-events: none;
}

.player-tech-pool-display {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 40px;
    pointer-events: none;
}

.player-tech-pool-current {
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: clamp(1.1rem, 3.5vw, 1.35rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.player-tech-pool-sep {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.player-tech-pool-max {
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.player-tech-notch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
    min-height: 24px;
}

.player-tech-notch {
    width: 13px;
    height: 22px;
    padding: 0;
    border-radius: 3px;
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.12s ease;
    appearance: none;
    -webkit-appearance: none;
}

.player-tech-notch:hover {
    transform: scale(1.12);
    filter: brightness(1.12);
}

.player-tech-hero.tech-ep .player-tech-notch.full { background: #f6ad55; border: 1px solid #c05621; }
.player-tech-hero.tech-tp .player-tech-notch.full { background: #68d391; border: 1px solid #276749; }
.player-tech-hero.tech-bp .player-tech-notch.full { background: #63b3ed; border: 1px solid #2b6cb0; }
.player-tech-hero.tech-cp .player-tech-notch.full { background: #b794f4; border: 1px solid #6b46c1; }

.player-tech-notch.empty {
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.22);
}

.player-tech-hero.tech-ep .player-tech-notch.empty { border-color: rgba(246, 173, 85, 0.45); }
.player-tech-hero.tech-tp .player-tech-notch.empty { border-color: rgba(104, 211, 145, 0.45); }
.player-tech-hero.tech-bp .player-tech-notch.empty { border-color: rgba(99, 179, 237, 0.45); }
.player-tech-hero.tech-cp .player-tech-notch.empty { border-color: rgba(183, 148, 244, 0.45); }

/* Legacy class aliases */
.player-tech-track,
.player-tech-track-head,
.player-tech-label {
    /* replaced by player-tech-hero */
}

/* Shapeshift tracker card */
.player-shapeshift-status-card {
    display: flex;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.4rem 0.45rem;
    border-radius: 10px;
    border: 1px solid rgba(159, 122, 234, 0.42);
    background: linear-gradient(180deg, rgba(128, 90, 213, 0.16) 0%, rgba(0, 0, 0, 0.22) 100%);
}

.player-shapeshift-status-main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.player-shapeshift-status-main:hover {
    filter: brightness(1.06);
}

.player-shapeshift-status-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.25);
    padding: 2px;
}

.player-shapeshift-status-copy {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.player-shapeshift-status-label {
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(233, 216, 253, 0.72);
}

.player-shapeshift-status-name {
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    color: rgba(250, 245, 255, 0.96);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-shapeshift-status-turns {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    flex-shrink: 0;
    padding: 0.15rem 0.35rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(159, 122, 234, 0.28);
}

.player-shapeshift-status-turns[data-readonly="true"] {
    opacity: 0.88;
}

.player-shapeshift-turns-label {
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(233, 216, 253, 0.95);
}

.player-shapeshift-turns-sep {
    opacity: 0.45;
    margin: 0 0.05rem;
}

.player-shapeshift-turn-pips {
    display: flex;
    gap: 3px;
}

.player-shapeshift-turn-pip {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    border: 1px solid rgba(233, 216, 253, 0.45);
    background: transparent;
}

.player-shapeshift-turn-pip.is-filled {
    background: rgba(183, 148, 244, 0.95);
    border-color: rgba(233, 216, 253, 0.65);
    box-shadow: 0 0 6px rgba(183, 148, 244, 0.45);
}

.player-status-summary {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.player-status-view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    padding: 0.35rem 0.5rem;
    border-radius: 9px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    color: inherit;
    font: inherit;
}

.player-status-view-all-btn:hover {
    border-color: rgba(214, 158, 46, 0.45);
    background: rgba(214, 158, 46, 0.08);
}

.player-status-view-all-btn--empty {
    cursor: pointer;
}

.player-status-view-all-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(251, 211, 141, 0.9);
}

.player-status-empty-hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.48);
    font-style: italic;
}

.player-status-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
}

.player-status-chip {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    width: 100%;
    min-width: 0;
    padding: 0.22rem 0.38rem 0.22rem 0.28rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.12s ease;
    box-sizing: border-box;
}

.player-status-chip:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.player-status-chip-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 3px;
}

.player-status-chip-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    color: rgba(255, 255, 255, 0.92);
}

.player-shapeshift-status-turns:not([data-readonly="true"]) .player-shapeshift-turn-pip {
    cursor: pointer;
}

.player-shapeshift-status-turns:not([data-readonly="true"]) .player-shapeshift-turn-pip:hover {
    filter: brightness(1.15);
}

.player-status-add-btn {
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(214, 158, 46, 0.45);
    background: linear-gradient(180deg, rgba(251, 211, 141, 0.95) 0%, rgba(214, 158, 46, 0.85) 100%);
    color: #3d2e1a;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.player-status-add-btn:hover {
    filter: brightness(1.08);
}

.player-status-tone--immunity { --status-accent: #f6ad55; --status-bg: rgba(237, 137, 54, 0.18); --status-border: rgba(246, 173, 85, 0.5); --status-text: #feebc8; }
.player-status-tone--shapeshift { --status-accent: #b794f4; --status-bg: rgba(128, 90, 213, 0.18); --status-border: rgba(183, 148, 244, 0.5); --status-text: #e9d8fd; }
.player-status-tone--blind { --status-accent: #9f7aea; --status-bg: rgba(128, 90, 213, 0.16); --status-border: rgba(159, 122, 234, 0.48); --status-text: #e9d8fd; }
.player-status-tone--burning { --status-accent: #fc8181; --status-bg: rgba(229, 62, 62, 0.16); --status-border: rgba(252, 129, 129, 0.48); --status-text: #fed7d7; }
.player-status-tone--disrupted { --status-accent: #f6e05e; --status-bg: rgba(214, 158, 46, 0.14); --status-border: rgba(246, 224, 94, 0.45); --status-text: #fefcbf; }
.player-status-tone--grappled { --status-accent: #a0aec0; --status-bg: rgba(113, 128, 150, 0.16); --status-border: rgba(160, 174, 192, 0.45); --status-text: #e2e8f0; }
.player-status-tone--prone { --status-accent: #b7791f; --status-bg: rgba(139, 115, 85, 0.18); --status-border: rgba(183, 121, 31, 0.48); --status-text: #fbd38d; }
.player-status-tone--restrained { --status-accent: #4fd1c5; --status-bg: rgba(49, 151, 149, 0.16); --status-border: rgba(79, 209, 197, 0.45); --status-text: #b2f5ea; }
.player-status-tone--severed { --status-accent: #d6bcfa; --status-bg: rgba(107, 70, 193, 0.16); --status-border: rgba(214, 188, 250, 0.45); --status-text: #faf5ff; }
.player-status-tone--formlocked { --status-accent: #ed8936; --status-bg: rgba(221, 107, 32, 0.16); --status-border: rgba(237, 137, 54, 0.48); --status-text: #feebc8; }
.player-status-tone--staggered { --status-accent: #f687b3; --status-bg: rgba(213, 63, 140, 0.14); --status-border: rgba(246, 135, 179, 0.45); --status-text: #fed7e2; }
.player-status-tone--hungry { --status-accent: #ecc94b; --status-bg: rgba(214, 158, 46, 0.12); --status-border: rgba(236, 201, 75, 0.42); --status-text: #fefcbf; }
.player-status-tone--fatigued { --status-accent: #718096; --status-bg: rgba(74, 85, 104, 0.2); --status-border: rgba(113, 128, 150, 0.45); --status-text: #e2e8f0; }
.player-status-tone--thirsty { --status-accent: #63b3ed; --status-bg: rgba(66, 153, 225, 0.14); --status-border: rgba(99, 179, 237, 0.45); --status-text: #bee3f8; }
.player-status-tone--dehydrated { --status-accent: #4299e1; --status-bg: rgba(43, 108, 176, 0.18); --status-border: rgba(66, 153, 225, 0.48); --status-text: #bee3f8; }
.player-status-tone--anxiety { --status-accent: #d6bcfa; --status-bg: rgba(128, 90, 213, 0.14); --status-border: rgba(183, 148, 244, 0.42); --status-text: #e9d8fd; }
.player-status-tone--guilt { --status-accent: #805ad5; --status-bg: rgba(85, 60, 154, 0.2); --status-border: rgba(128, 90, 213, 0.48); --status-text: #e9d8fd; }
.player-status-tone--combat { --status-accent: #fc8181; --status-bg: rgba(197, 48, 48, 0.14); --status-border: rgba(252, 129, 129, 0.42); --status-text: #fed7d7; }

.player-status-chip[class*="player-status-tone--"] {
    border-color: var(--status-border, rgba(255, 255, 255, 0.14));
    background: var(--status-bg, rgba(255, 255, 255, 0.06));
}

.player-status-chip[class*="player-status-tone--"] .player-status-chip-name {
    color: var(--status-text, rgba(255, 255, 255, 0.92));
}

.player-status-expand-overlay {
    position: fixed;
    inset: 0;
    z-index: 12500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.player-status-expand-overlay.active {
    display: flex;
}

body.player-status-expand-open {
    overflow: hidden;
}

.player-status-expand-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
}

.player-status-expand-panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 440px);
    max-height: min(82vh, 560px);
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1px solid rgba(214, 158, 46, 0.38);
    background: linear-gradient(168deg, #2c2620 0%, #1c1915 52%, #111010 100%);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.72);
    color: rgba(255, 255, 255, 0.92);
    animation: player-res-fade-up 0.28s ease-out both;
    overflow: hidden;
}

.player-status-expand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(214, 158, 46, 0.1) 0%, transparent 100%);
}

.player-status-expand-title {
    margin: 0;
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(251, 211, 141, 0.96);
}

.player-status-expand-close {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.player-status-expand-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.65rem 0.85rem;
    min-height: 80px;
    scrollbar-width: thin;
    scrollbar-color: rgba(180, 140, 90, 0.55) rgba(0, 0, 0, 0.28);
}

.player-status-expand-shapeshift {
    margin-bottom: 0.55rem;
}

#player-status-expand-body .status-effects-active-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.38rem;
    max-height: none;
    overflow: visible;
    flex: unset;
    min-height: unset;
}

.player-status-expand-body .player-effect-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.4rem;
    padding-right: 1.5rem;
    border-radius: 9px;
    border: 1px solid var(--status-border, rgba(255, 255, 255, 0.12));
    background: var(--status-bg, rgba(255, 255, 255, 0.05));
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.12s ease;
    min-width: 0;
}

.player-status-expand-body .player-effect-item:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.player-status-expand-body .player-effect-icon {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    padding: 1px;
    border: none;
    box-sizing: border-box;
}

.player-status-expand-body .player-effect-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--status-text, rgba(255, 255, 255, 0.92)) !important;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.player-status-expand-body .player-effect-remove {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    border: none;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
}

.player-status-expand-empty {
    margin: 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    padding: 1rem 0;
}

.player-status-expand-add-btn {
    margin: 0 0.85rem 0.85rem;
    padding: 0.48rem;
    border-radius: 9px;
    border: 1px solid rgba(214, 158, 46, 0.45);
    background: linear-gradient(180deg, rgba(251, 211, 141, 0.95) 0%, rgba(214, 158, 46, 0.85) 100%);
    color: #3d2e1a;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
}

.player-status-expand-add-btn:hover {
    filter: brightness(1.06);
}

.player-status-hero-header .player-status-add-btn,
.player-status-hero #add-status-effect-btn,
.player-status-hero .player-status-shapeshift-btn {
    margin-top: 0;
    flex-shrink: 0;
}

.player-status-expand-overlay .player-themed-scrollbar {
    scrollbar-color: rgba(180, 140, 90, 0.55) rgba(0, 0, 0, 0.28);
}

.player-status-expand-overlay .player-themed-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(180, 140, 90, 0.55);
}

.player-status-expand-overlay .player-themed-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(214, 158, 46, 0.72);
}

/* Status detail / picker modals must sit above the expand overlay (12500) */
#status-details-modal.modal-overlay.show {
    z-index: 12650;
}

#status-effect-modal.combat-tracker-popup-overlay.show {
    z-index: 12650;
}

/* Wound track */
.player-wound-track.wound-track-container {
    padding: 0.35rem 0 0.15rem;
}

.player-wound-track .wound-bubble-wrapper {
    pointer-events: none;
}

.player-wound-track.player-wound-track--editable .wound-bubble-wrapper {
    pointer-events: auto;
}

.player-wound-track .wound-bubble-label {
    cursor: default;
}

.player-wound-track.player-wound-track--editable .wound-bubble-label {
    cursor: pointer;
}

.player-wound-track--readonly .wound-bubble:not(.active-wound) {
    opacity: 0.45;
}

.player-wound-track .wound-bubble.active-wound {
    box-shadow: 0 0 0 3px rgba(180, 60, 50, 0.45), 0 0 14px rgba(180, 60, 50, 0.25);
    transform: scale(1.08);
}

/* Combat menu popup */
.player-combat-menu-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.player-combat-menu-popup-overlay.active {
    display: flex;
}

body.player-combat-menu-open {
    overflow: hidden;
}

.player-combat-menu-popup-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
}

.combat-menu-popup-content {
    position: relative;
    z-index: 1;
    width: min(92vw, 560px);
    max-height: min(86vh, 680px);
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1px solid rgba(180, 70, 55, 0.42);
    background:
        radial-gradient(120% 80% at 50% -30%, rgba(180, 70, 55, 0.16) 0%, transparent 55%),
        linear-gradient(168deg, #2c2629 0%, #1c191d 52%, #111014 100%);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.72);
    overflow: hidden;
    color: rgba(255, 255, 255, 0.92);
    animation: player-menu-pop 0.28s cubic-bezier(0.33, 1, 0.68, 1);
}

@keyframes player-menu-pop {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.combat-menu-popup-content.combat-menu-popup--attack {
    border-color: rgba(176, 74, 74, 0.55);
}

.combat-menu-popup-content.combat-menu-popup--defense {
    border-color: rgba(82, 121, 111, 0.55);
}

.combat-menu-popup-header {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.combat-menu-popup-eyebrow {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.5;
}

.combat-menu-popup-title {
    margin: 0.1rem 0 0;
    flex: 1;
    font-size: 1.1rem;
    font-weight: 700;
}

.combat-menu-popup-close {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.combat-menu-popup-body {
    padding: 0.75rem 0.9rem 0.9rem;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.combat-menu-popup-body[hidden] {
    display: none !important;
}

/* Defense detail drill-down (inside combat popup) */
.combat-menu-defense-detail {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.75rem 0.9rem 0.9rem;
}

.combat-menu-defense-detail[hidden] {
    display: none !important;
}

.combat-menu-defense-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 7px 11px;
    border-radius: 9px;
    border: 1px solid rgba(82, 121, 111, 0.55);
    background: linear-gradient(180deg, rgba(107, 154, 138, 0.22) 0%, rgba(49, 88, 78, 0.48) 100%);
    color: rgba(230, 245, 240, 0.95);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

.combat-menu-defense-back:hover {
    border-color: rgba(140, 190, 175, 0.7);
}

.combat-menu-defense-detail-title {
    margin: 0 0 10px;
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: rgba(180, 220, 205, 0.98);
}

.combat-menu-defense-detail-body {
    padding: 0;
    border: none;
    background: transparent;
    overflow: visible;
}

/* Defense maneuver drill-down — readable outcome cards */
.defense-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.defense-detail-stat {
    display: flex;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(82, 121, 111, 0.16);
    border: 1px solid rgba(82, 121, 111, 0.38);
}

.defense-detail-stat .handbook-ability-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.2;
}

.defense-detail-stat .handbook-icon-inline {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.defense-detail-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

@media (min-width: 520px) {
    .defense-detail-columns {
        grid-template-columns: 1fr 1fr;
    }
}

.defense-detail-col {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
    padding: 0.55rem 0.6rem 0.6rem;
}

.defense-detail-col--elemental {
    border-color: rgba(159, 122, 234, 0.42);
    background: linear-gradient(180deg, rgba(128, 90, 213, 0.14) 0%, rgba(0, 0, 0, 0.22) 100%);
    box-shadow: inset 0 1px 0 rgba(183, 148, 244, 0.12);
}

.defense-detail-col--physical {
    border-color: rgba(237, 137, 54, 0.42);
    background: linear-gradient(180deg, rgba(221, 107, 32, 0.14) 0%, rgba(0, 0, 0, 0.22) 100%);
    box-shadow: inset 0 1px 0 rgba(246, 173, 85, 0.12);
}

.defense-detail-col-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.45rem;
    line-height: 1.2;
}

.defense-detail-col-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
}

.defense-detail-col--elemental .defense-detail-col-label {
    color: rgba(233, 216, 253, 0.98);
}

.defense-detail-col--physical .defense-detail-col-label {
    color: rgba(254, 235, 200, 0.98);
}

.defense-detail-role-pill {
    display: inline-block;
    padding: 0.1rem 0.38rem;
    border-radius: 999px;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
}

.defense-detail-role-pill--elemental {
    color: #2d1f4a !important;
    background: linear-gradient(180deg, #e9d8fd 0%, #b794f4 100%);
    border: 1px solid rgba(159, 122, 234, 0.55);
}

.defense-detail-role-pill--physical {
    color: #4a2c0a !important;
    background: linear-gradient(180deg, #feebc8 0%, #f6ad55 100%);
    border: 1px solid rgba(237, 137, 54, 0.55);
}

.defense-outcome-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.defense-outcome-item {
    margin: 0;
    padding: 0.42rem 0.5rem;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.76rem;
    line-height: 1.48;
    color: rgba(255, 255, 255, 0.88);
}

.defense-outcome-item--elemental {
    border-left: 3px solid rgba(183, 148, 244, 0.75);
    background: rgba(128, 90, 213, 0.1);
}

.defense-outcome-item--physical {
    border-left: 3px solid rgba(246, 173, 85, 0.75);
    background: rgba(221, 107, 32, 0.1);
}

.defense-outcome-item strong {
    color: rgba(210, 240, 225, 0.98);
    font-weight: 700;
}

/* Themed scrollbars for player popups */
.player-themed-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(130, 110, 80, 0.55) rgba(0, 0, 0, 0.28);
}

.player-themed-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.player-themed-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 4px;
}

.player-themed-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(130, 110, 80, 0.55);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.player-themed-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(170, 145, 105, 0.7);
}

.combat-menu-popup--defense .player-themed-scrollbar {
    scrollbar-color: rgba(110, 160, 140, 0.55) rgba(0, 0, 0, 0.28);
}

.combat-menu-popup--defense .player-themed-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(110, 160, 140, 0.55);
}

.combat-menu-popup--defense .player-themed-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(140, 195, 175, 0.72);
}

/* Handbook popups — Grit & Recovery, Techniques, etc. */
.player-handbook-popup-overlay {
    z-index: 12000;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.player-handbook-popup-overlay .player-handbook-popup-content {
    width: min(92vw, 640px);
    max-height: min(86vh, 720px);
    margin-bottom: 0;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(180, 140, 90, 0.38);
    background:
        radial-gradient(120% 80% at 50% -30%, rgba(180, 140, 90, 0.14) 0%, transparent 55%),
        linear-gradient(168deg, #2c2624 0%, #1c1917 52%, #111010 100%);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.72);
    color: rgba(255, 255, 255, 0.92);
    overflow: hidden;
}

.player-handbook-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.player-handbook-popup-header {
    flex-shrink: 0;
    padding: 0.85rem 2.5rem 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.player-handbook-popup-eyebrow {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.5;
}

.player-handbook-popup-title {
    margin: 0.15rem 0 0;
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    color: rgba(240, 225, 195, 0.98);
}

.player-handbook-popup-body {
    padding: 0.75rem 1rem 1rem;
}

.player-handbook-popup-inner {
    font-size: 0.84rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.player-handbook-popup-inner h4 {
    margin: 1rem 0 0.45rem;
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(232, 212, 168, 0.95);
}

.player-handbook-popup-inner h4:first-child {
    margin-top: 0;
}

.player-handbook-popup-inner p,
.player-handbook-lead {
    margin: 0 0 0.65rem;
    line-height: 1.48;
}

.player-handbook-lead {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    font-style: italic;
}

.player-handbook-empty {
    margin: 0;
    padding: 1.5rem 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.62);
}

.player-handbook-popup-inner .handbook-card,
.player-handbook-table-wrap {
    margin-top: 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.player-handbook-popup-inner .handbook-table,
.player-handbook-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.player-handbook-popup-inner .handbook-table th,
.player-handbook-popup-inner .handbook-table td,
.player-handbook-table th,
.player-handbook-table td {
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: top;
}

.player-handbook-popup-inner .handbook-table th,
.player-handbook-table th {
    background: rgba(180, 140, 90, 0.16);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(232, 212, 168, 0.92);
}

.player-handbook-popup-inner .handbook-table td strong,
.player-handbook-table td strong {
    color: rgba(240, 225, 195, 0.98);
}

.player-handbook-popup-inner .handbook-ability-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Technique modal — Learned / Not Learned tabs */
.player-technique-modal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.player-technique-modal-tabs .player-technique-tab-btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.38rem 0.55rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.player-technique-tab-panel[hidden] {
    display: none !important;
}

.player-handbook-popup-inner .handbook-icon-inline,
.player-handbook-popup-inner .keyword-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
}

.player-handbook-popup-inner .rules-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin: 0.65rem 0;
}

@media (min-width: 520px) {
    .player-handbook-popup-inner .rules-container {
        grid-template-columns: 1fr 1fr;
    }
}

.player-handbook-popup-inner .rule-block {
    padding: 0.55rem 0.6rem;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
    font-size: 0.76rem;
    line-height: 1.4;
}

.player-handbook-popup-inner .rule-reward {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #f6ad55;
}

.player-handbook-popup-inner details.handbook-collapsible {
    margin-top: 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.18);
    padding: 0.55rem 0.65rem;
}

.player-handbook-popup-inner details.handbook-collapsible summary {
    cursor: pointer;
    list-style: none;
}

.player-handbook-popup-inner details.handbook-collapsible summary::-webkit-details-marker {
    display: none;
}

.player-handbook-popup-inner details.handbook-collapsible summary h4 {
    margin: 0;
    display: inline;
}

.player-handbook-popup-overlay .player-themed-scrollbar {
    scrollbar-color: rgba(180, 140, 90, 0.55) rgba(0, 0, 0, 0.28);
}

.player-handbook-popup-overlay .player-themed-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(180, 140, 90, 0.55);
}

.player-handbook-popup-overlay .player-themed-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(210, 170, 120, 0.72);
}

.combat-menu-defense-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}

.combat-menu-defense-table th,
.combat-menu-defense-table td {
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    vertical-align: top;
}

.combat-menu-defense-table th {
    background: rgba(82, 121, 111, 0.18);
    font-weight: 700;
}

.combat-menu-popup-body .combat-menu-intro,
.combat-menu-popup-body .combat-menu-footnote,
.combat-menu-popup-body .combat-taking-damage-intro,
.combat-menu-popup-body .combat-taking-damage-footnote {
    font-size: 0.85rem;
    line-height: 1.42;
    opacity: 0.85;
}

.combat-menu-popup-body .combat-impacts-table,
.combat-menu-popup-body .combat-grit-loss-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    margin: 0.55rem 0;
}

.combat-menu-popup-body .combat-impacts-table th,
.combat-menu-popup-body .combat-grit-loss-table th,
.combat-menu-popup-body .combat-impacts-table td,
.combat-menu-popup-body .combat-grit-loss-table td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.32rem 0.42rem;
    text-align: left;
}

.combat-menu-popup-body .combat-defense-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

@media (min-width: 480px) {
    .combat-menu-popup-body .combat-defense-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.combat-menu-popup-body .combat-defense-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.45rem 0.3rem;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.28);
    color: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.combat-menu-popup-body .combat-defense-grid-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.28);
}

.combat-menu-popup-body .combat-defense-grid-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.combat-menu-popup-body .combat-defense-grid-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.combat-menu-popup-body .combat-defense-grid-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.combat-menu-popup-body .combat-defense-grid-dice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.22rem;
    font-variant-numeric: tabular-nums;
}

.combat-menu-popup-body .combat-defense-die-size {
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    line-height: 1;
}

.combat-menu-popup-body .combat-defense-option-tags {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.18rem;
    margin-top: 0.08rem;
}

.combat-menu-popup-body .bonus-pill-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    padding: 0.1rem 0.38rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.combat-menu-popup-body .bonus-pill-inline.adv {
    color: #d1fae5;
    background: linear-gradient(180deg, rgba(52, 211, 153, 0.95) 0%, rgba(22, 163, 74, 0.92) 100%);
    border: 1px solid rgba(134, 239, 172, 0.45);
    box-shadow: 0 1px 4px rgba(34, 197, 94, 0.28);
}

.combat-menu-popup-body .bonus-pill-inline.dis {
    color: #fee2e2;
    background: linear-gradient(180deg, rgba(248, 113, 113, 0.95) 0%, rgba(220, 38, 38, 0.92) 100%);
    border: 1px solid rgba(252, 165, 165, 0.45);
    box-shadow: 0 1px 4px rgba(220, 38, 38, 0.28);
}

.combat-menu-popup-body .combat-defense-mod-pill {
    font-size: 0.68rem;
    min-width: 1.5rem;
    padding: 0.12rem 0.42rem;
}

.combat-signed {
    display: inline;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.combat-signed--plus {
    color: #86efac;
}

.combat-signed--minus {
    color: #fca5a5;
}

.combat-menu-popup-body .combat-defense-rules-link {
    display: block;
    width: 100%;
    margin-top: 0.55rem;
    padding: 0.45rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .player-combat-menu-launchers {
        grid-template-columns: 1fr;
    }

    .player-res-tracks-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .player-techniques-cluster {
        padding-top: 0.5rem;
    }

    .player-techniques-cluster-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --- Resource bonus pill click breakdown --- */
button.player-grit-bonus-tag,
button.player-channel-bonus-tag,
button.player-movement-bonus-pill,
button.player-tech-bonus-pill {
    font: inherit;
    letter-spacing: inherit;
    cursor: default;
    appearance: none;
    -webkit-appearance: none;
    line-height: 1.2;
}

button.player-tech-bonus-pill:not(:empty) {
    display: inline-block !important;
}

.player-resource-bonus-pill--interactive {
    cursor: pointer;
}

.player-grit-bonus-tag.player-resource-bonus-pill--interactive:hover,
.player-channel-bonus-tag.player-resource-bonus-pill--interactive:hover,
.player-movement-bonus-pill.player-resource-bonus-pill--interactive:hover,
.player-tech-bonus-pill.player-resource-bonus-pill--interactive:hover {
    filter: brightness(1.08);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.bonus-indicator.player-resource-bonus-pill--interactive {
    cursor: pointer;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
}

.bonus-indicator:empty {
    display: none;
}

.player-bonus-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 12050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.player-bonus-detail-overlay.active {
    pointer-events: auto;
    opacity: 1;
}

body.player-bonus-detail-open {
    overflow: hidden;
}

.player-bonus-detail-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(8, 6, 4, 0.55);
    cursor: pointer;
}

.player-bonus-detail-panel {
    position: relative;
    width: min(100%, 22rem);
    max-height: min(70vh, 20rem);
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: 1px solid rgba(212, 188, 130, 0.45);
    background: linear-gradient(165deg, #2a2218 0%, #1a1510 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    color: #f0e6d2;
    overflow: hidden;
}

.player-bonus-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
}

.player-bonus-detail-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e8d4a8;
}

.player-bonus-detail-close {
    border: none;
    background: transparent;
    color: rgba(240, 230, 210, 0.75);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
}

.player-bonus-detail-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.player-bonus-detail-body {
    padding: 0.55rem 0.75rem 0.75rem;
    overflow-y: auto;
}

.player-bonus-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.player-bonus-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    font-size: 0.78rem;
    line-height: 1.35;
}

.player-bonus-detail-source {
    flex: 1;
    color: rgba(240, 230, 210, 0.88);
}

.player-bonus-detail-source-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.player-bonus-detail-source-wrap .player-bonus-detail-source {
    flex: unset;
}

.player-bonus-detail-trigger {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(240, 230, 210, 0.52);
}

.player-bonus-detail-source--has-tooltip {
    cursor: help;
    text-decoration: underline dotted rgba(240, 230, 210, 0.45);
    text-underline-offset: 0.15em;
}

.player-bonus-detail-source--has-tooltip:hover {
    color: rgba(255, 248, 230, 0.98);
}

.player-bonus-detail-value {
    flex-shrink: 0;
    font-weight: 700;
    color: #c9e6a0;
}

.player-bonus-detail-row--total {
    margin-top: 0.25rem;
    padding-top: 0.4rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.player-bonus-detail-row--total .player-bonus-detail-source,
.player-bonus-detail-row--total .player-bonus-detail-value {
    font-weight: 800;
    color: #f0e0b8;
}

.player-bonus-detail-exchange {
    margin: 0 0 0.65rem;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(240, 230, 210, 0.82);
    text-align: center;
}

.player-bonus-detail-section-heading {
    margin: 0.55rem 0 0.35rem;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240, 230, 210, 0.62);
}

.player-bonus-detail-row--subtotal {
    margin-top: 0.15rem;
    padding-top: 0.35rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.player-bonus-detail-row--label-only .player-bonus-detail-source {
    color: rgba(240, 230, 210, 0.92);
}

.player-bonus-detail-list--total {
    margin-top: 0.35rem;
}

.player-bonus-detail-value--note {
    color: rgba(191, 219, 254, 0.85);
    font-size: 0.72rem;
    font-weight: 700;
}

.player-bonus-detail-empty {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(240, 230, 210, 0.65);
}

/* Shield / Temporary Grit source panel */
.player-bonus-detail-panel--shield {
    width: min(100%, 26rem);
    max-height: min(78vh, 28rem);
    border-color: rgba(96, 165, 250, 0.45);
    background: linear-gradient(165deg, #1a2438 0%, #121820 52%, #0c1018 100%);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.55),
        0 0 32px rgba(59, 130, 246, 0.12);
}

.player-bonus-detail-panel--shield .player-bonus-detail-header {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.18) 0%, rgba(0, 0, 0, 0.22) 100%);
    border-bottom-color: rgba(96, 165, 250, 0.22);
}

.player-bonus-detail-panel--shield .player-bonus-detail-title {
    color: #bfdbfe;
}

.player-bonus-detail-panel--shield .player-bonus-detail-exchange {
    border-left-color: rgba(96, 165, 250, 0.55);
    background: rgba(59, 130, 246, 0.1);
    color: rgba(219, 234, 254, 0.92);
}

.player-bonus-detail-panel--shield .player-bonus-detail-section-heading {
    color: rgba(191, 219, 254, 0.88);
}

.player-bonus-detail-list--shield {
    gap: 0.55rem;
}

.player-bonus-detail-row--shield-card {
    border-bottom: none;
    padding: 0;
}

.player-bonus-detail-shield-card {
    padding: 0.55rem 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, rgba(15, 23, 42, 0.35) 100%);
}

.player-bonus-detail-shield-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.player-bonus-detail-shield-card-head .player-bonus-detail-source {
    font-weight: 700;
    color: rgba(239, 246, 255, 0.96);
}

.player-bonus-detail-panel--shield .player-bonus-detail-value {
    color: #93c5fd;
    font-size: 1.05rem;
}

.player-bonus-detail-sublabel {
    margin: 0.2rem 0 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: rgba(147, 197, 253, 0.82);
    line-height: 1.35;
}

.player-bonus-detail-desc {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.82);
    white-space: pre-line;
}

.player-bonus-detail-math {
    margin: 0.3rem 0 0;
    padding: 0.28rem 0.4rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.35;
    color: #dbeafe;
    background: rgba(30, 58, 138, 0.35);
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.player-bonus-detail-panel--shield .player-bonus-detail-trigger {
    margin: 0.28rem 0 0;
    font-size: 0.58rem;
    color: rgba(148, 163, 184, 0.9);
}

/* Momentum bonus source panel */
.player-bonus-detail-panel--momentum {
    width: min(100%, 26rem);
    max-height: min(78vh, 28rem);
    border-color: rgba(129, 140, 248, 0.45);
    background: linear-gradient(165deg, #1e1b4b 0%, #15132a 52%, #0f0d1a 100%);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.55),
        0 0 32px rgba(99, 102, 241, 0.12);
}

.player-bonus-detail-panel--momentum .player-bonus-detail-header {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.18) 0%, rgba(0, 0, 0, 0.22) 100%);
    border-bottom-color: rgba(129, 140, 248, 0.22);
}

.player-bonus-detail-panel--momentum .player-bonus-detail-title {
    color: #c7d2fe;
}

.player-bonus-detail-panel--momentum .player-bonus-detail-exchange {
    border-left-color: rgba(129, 140, 248, 0.55);
    background: rgba(99, 102, 241, 0.1);
    color: rgba(224, 231, 255, 0.92);
}

.player-bonus-detail-panel--momentum .player-bonus-detail-section-heading {
    color: rgba(199, 210, 254, 0.88);
}

.player-bonus-detail-list--momentum {
    gap: 0.55rem;
}

.player-bonus-detail-panel--momentum .player-bonus-detail-shield-card {
    border-color: rgba(129, 140, 248, 0.22);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.12) 0%, rgba(30, 27, 75, 0.35) 100%);
}

.player-bonus-detail-panel--momentum .player-bonus-detail-shield-card-head .player-bonus-detail-source {
    color: rgba(238, 242, 255, 0.96);
}

.player-bonus-detail-panel--momentum .player-bonus-detail-value {
    color: #a5b4fc;
    font-size: 1.05rem;
}

.player-bonus-detail-panel--momentum .player-bonus-detail-sublabel {
    color: rgba(165, 180, 252, 0.82);
}

.player-bonus-detail-panel--momentum .player-bonus-detail-trigger {
    margin: 0.28rem 0 0;
    font-size: 0.58rem;
    color: rgba(148, 163, 184, 0.9);
}

.resource-token-modifiers--source-cards .player-bonus-detail-exchange {
    margin: 0 0 0.65rem;
    padding: 0.45rem 0.55rem;
    border-left: 3px solid rgba(129, 140, 248, 0.55);
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: normal;
    text-transform: none;
    text-align: left;
    color: rgba(224, 231, 255, 0.9);
    background: rgba(99, 102, 241, 0.1);
}

.resource-token-modifiers--source-cards .player-bonus-detail-section-heading {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    color: rgba(199, 210, 254, 0.88);
}

.resource-token-modifiers--source-cards .player-bonus-detail-list--momentum {
    margin: 0;
    padding: 0;
}

.resource-token-modal--shield .resource-token-modifiers--source-cards .player-bonus-detail-exchange {
    border-left-color: rgba(96, 165, 250, 0.55);
    color: rgba(219, 234, 254, 0.9);
    background: rgba(59, 130, 246, 0.1);
}

.resource-token-modal--shield .resource-token-modifiers--source-cards .player-bonus-detail-section-heading {
    color: rgba(191, 219, 254, 0.88);
}

.resource-token-modal--shield .resource-token-modifiers--source-cards .player-bonus-detail-list--shield {
    margin: 0;
    padding: 0;
}

.resource-token-modal--shield .resource-token-modifiers .player-bonus-detail-value {
    color: #93c5fd;
}

.resource-token-modal--shield .resource-token-modifiers--source-cards .player-bonus-detail-shield-card {
    border-color: rgba(96, 165, 250, 0.22);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, rgba(15, 23, 42, 0.35) 100%);
}

.resource-token-modal--shield .resource-token-modifiers--source-cards .player-bonus-detail-shield-card-head .player-bonus-detail-source {
    color: rgba(239, 246, 255, 0.96);
}

.resource-token-modal--shield .resource-token-modifiers--source-cards .player-bonus-detail-sublabel {
    color: rgba(147, 197, 253, 0.82);
}

/* Bond (BP) full-card flip — pet grit back face */
.bp-flip-host {
    width: 100%;
    overflow: visible;
}

.bp-flip-host .bp-flip-card-container {
    width: 100%;
    perspective: 900px;
    overflow: visible;
}

.bp-flip-host .bp-flip-card-container .flip-card-inner {
    position: relative;
    min-height: 4.75rem;
    transform-style: preserve-3d;
    transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

.bp-flip-host .bp-flip-card-container.is-flipped .flip-card-inner {
    min-height: 6.85rem;
    transform: rotateY(180deg);
}

.bp-flip-host .bp-flip-front,
.bp-flip-host .bp-flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.bp-flip-host .bp-flip-front {
    transform: rotateY(0deg);
    z-index: 2;
}

.bp-flip-host .bp-flip-back {
    transform: rotateY(180deg);
}

.bp-flip-host .bp-flip-card-container:not(.is-flipped) .bp-flip-back {
    pointer-events: none;
}

.bp-flip-host .bp-flip-card-container.is-flipped .bp-flip-front {
    pointer-events: none;
}

.bp-flip-host .player-tech-bonus-tags {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.18rem;
}

.bp-companion-flip-tab {
    position: static;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0.1rem;
    margin: 0;
    border: 1px solid rgba(99, 179, 237, 0.45);
    border-radius: 999px;
    background: rgba(99, 179, 237, 0.12);
    cursor: pointer;
}

.bp-companion-flip-tab:hover {
    background: rgba(99, 179, 237, 0.22);
    box-shadow: 0 0 10px rgba(99, 179, 237, 0.28);
}

.bp-companion-flip-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.bp-pet-grit-body {
    gap: 0.28rem !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.55rem !important;
}

.bp-pet-name-link {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    color: #bee3f8;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bp-pet-name-link:hover {
    color: #ebf8ff;
}

.bp-pet-grit-control-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.35rem;
    align-items: center;
    width: 100%;
}

.bp-pet-grit-btn {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 8px;
    border: 1px solid rgba(99, 179, 237, 0.45);
    background: rgba(99, 179, 237, 0.12);
    color: #ebf8ff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.bp-pet-grit-btn:hover:not(:disabled) {
    background: rgba(99, 179, 237, 0.24);
}

.bp-pet-grit-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.bp-pet-grit-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}

.bp-pet-grit-bar-track {
    height: 0.42rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(99, 179, 237, 0.28);
    overflow: hidden;
}

.bp-pet-grit-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2b6cb0 0%, #4299e1 55%, #63b3ed 100%);
    transition: width 0.25s ease;
}

.bp-pet-grit-readout {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.12rem;
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.bp-pet-grit-sep {
    opacity: 0.55;
}

.player-tech-empty-pool {
    font-size: 0.68rem;
    color: rgba(144, 205, 244, 0.75);
    font-style: italic;
    line-height: 1.35;
    padding: 0.15rem 0;
}

.bp-flip-host button.player-tech-hero-title {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.bp-flip-host a.player-tech-hero-title.resource-label {
    text-decoration: none;
    color: inherit;
}
