/* FIGHT DETAILS STYLES - Violence Breakdown (watch/index themed) */

:root{
    --idx-card-border:#1e1e1e;
    --idx-dim:#bdbdbd;
    --idx-accent:#ffaa00;
    --idx-danger:#ff4444;
    --cursor-zombie:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Ctext x='18' y='24' font-size='24' text-anchor='middle'%3E%26%23129503%3B%3C/text%3E%3C/svg%3E") 18 18, auto;
}

.fight-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Fight Header */
.fight-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 24px;
    background: #0a0a0a;
    border: 1px solid var(--idx-card-border);
    border-radius: 14px;
    position: relative;
    box-shadow: 0 10px 24px rgba(0,0,0,.4);
}

/* Commissioner's Blessing Stamp */
.commissioner-stamp {
    position: absolute;
    top: -20px;
    right: -25px;
    width: 130px;
    height: 130px;
    border: 4px solid #ff2222;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 34, 34, 0.2);
    transform: rotate(15deg);
    opacity: 0.9;
    cursor: help;
    z-index: 10;
    box-shadow: 0 0 20px rgba(255, 34, 34, 0.4);
}

/* Position variants based on fight ID */
.commissioner-stamp.stamp-position-0 {
    top: -15px;
    right: -20px;
    transform: rotate(12deg);
}

.commissioner-stamp.stamp-position-1 {
    top: -25px;
    right: -30px;
    transform: rotate(18deg);
}

.commissioner-stamp.stamp-position-2 {
    top: -12px;
    right: -35px;
    transform: rotate(8deg);
}

.commissioner-stamp.stamp-position-3 {
    top: -30px;
    right: -15px;
    transform: rotate(22deg);
}

.commissioner-stamp.stamp-position-4 {
    top: -18px;
    right: -40px;
    transform: rotate(6deg);
}

.commissioner-stamp.stamp-position-5 {
    top: -22px;
    right: -18px;
    transform: rotate(20deg);
}

.commissioner-stamp .stamp-text {
    font-size: 1rem;
    font-weight: bold;
    color: #ff2222;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 4px;
}

.commissioner-stamp .stamp-subtext {
    font-size: 0.7rem;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.fight-title {
    font-size: 2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    font-family: 'Mozilla Headline', system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial;
}

.fight-title::after {
    content: " 🥊";
    display: inline-block;
    transform: scaleX(-1);
}

.fight-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.meta-badge {
    padding: 10px 15px;
    background: #000000;
    border: 1px solid #444444;
    border-radius: 6px;
    text-align: center;
}

.meta-label {
    display: block;
    font-size: 0.8rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
}

.status-scheduled { color: #ffaa00; }
.status-active { color: #00ff00; }
.status-completed { color: #888888; }
.status-voided { color: #ff4444; }

/* Fighter Matchup */
.fighter-matchup {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 20px;
}

.matchup-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch; /* Make fighter cards same height */
    gap: 18px;
}

.fighter-card {
    background: #0b0b0b;
    border: 1px solid var(--idx-card-border);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow .2s ease;
    min-height: 200px; /* Ensure minimum height */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.fighter-card:hover { border-color: var(--idx-accent); }

.fighter-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.fighter-name a {
    color: #ffffff;
    text-decoration: none;
}

.fighter-name a:hover {
    color: #ffaa00;
}

/* Winner/Loser outcome badges */
.outcome-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 4px;
    border: 1px solid currentColor;
    vertical-align: middle;
}

.winner-badge {
    color: #9acd32;
    background: rgba(154, 205, 50, 0.1);
}

.loser-badge {
    color: #ff6666;
    background: rgba(255, 102, 102, 0.08);
}

/* Effect Indicators */
.effect-indicators {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.effect-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    transition: all 0.3s ease;
}

.effect-badge:hover {
    transform: scale(1.1);
}

.effect-emoji {
    font-size: 1.8em;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.8));
}

.effect-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4500;
    color: #ffffff;
    font-size: 0.7em;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #000000;
    min-width: 16px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    animation: pulse 2s infinite;
}

.curse-badge .effect-count {
    background: #8B0000;
    border-color: #000000;
}

.blessing-badge .effect-count {
    background: #FFD700;
    color: #000000;
    border-color: #000000;
}

.curse-badge:hover .effect-emoji {
    filter: drop-shadow(0 0 8px rgba(139, 0, 0, 0.8));
}

.blessing-badge:hover .effect-emoji {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

.fighter-score {
    font-size: 2rem;
    font-weight: bold;
    color: #00ff00;
    margin-top: 10px;
}

.vs-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--idx-card-border);
    border-radius: 14px;
    background: #0b0b0b;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.vs-text { display:none; }
.vs-chip{ font-family:'Mozilla Headline',sans-serif; font-size:1.1rem; color:var(--idx-dim); letter-spacing:4px; padding:6px 14px; border:1px dashed #242424; border-radius:999px; }

.fight-status-badge { display:none; }
.pill{ border:1px solid #222; border-radius:999px; padding:6px 10px; font-weight:700; letter-spacing:1px; display:inline-block; }
.pill.live{ border-color:var(--idx-danger); color:var(--idx-danger); }
.pill.completed{ color:#9e9e9e; border-color:#242424; }
.pill.voided{ color:#b66; font-style:italic; border-color:#242424; }
.pill.next{ border-color:var(--idx-accent); color:var(--idx-accent); }

.fight-status-badge.status-active {
    background: #004400;
    color: #00ff00;
    border-color: #00ff00;
}

.fight-status-badge.status-completed {
    background: #333333;
    color: #888888;
    border-color: #888888;
}

.fight-status-badge.status-scheduled {
    background: #442200;
    color: #ffaa00;
    border-color: #ffaa00;
}

.fight-status-badge.status-voided {
    background: #440000;
    color: #ff4444;
    border-color: #ff4444;
}

/* Result Section */
.result-section {
    background: #000000;
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.result-section h4 {
    color: #00ff00;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.winner-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.completion-time {
    color: #888888;
    font-style: italic;
}

/* Draw Result */
.draw-result {
    border-color: #ffaa00;
}

.draw-result h4 {
    color: #ffaa00;
}

/* Voided Section */
.voided-section {
    background: #000000;
    border: 2px solid #ff4444;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.voided-section h4 {
    color: #ff4444;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.void-reason {
    font-style: italic;
    color: #cccccc;
    line-height: 1.5;
}

/* Effects Section */
.effects-section {
    background: #000;
    border: 3px solid #8B008B;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.effects-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.effects-col .col-title{ color:#ccc; font-weight:900; text-transform:uppercase; letter-spacing:1px; margin-bottom:8px; text-align:center; }

.effects-section::before {
    content: "⚡ REALITY MANIPULATION ⚡";
    position: absolute;
    top: 10px;
    right: 15px;
    background: #8B008B;
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.7em;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.effects-section h4 {
    text-align: center;
    color: #8B008B;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.effects-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.effect-item {
    background: #000;
    border: 2px solid #8B008B;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.effect-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #8B008B;
    animation: pulse 3s infinite;
}

.effect-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 0, 139, 0.4);
    border-color: #AA44AA;
}

.effect-item:hover::before {
    background: #AA44AA;
}

.effect-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.effect-emoji {
    font-size: 2.5em;
    animation: bounce 3s infinite;
}

.effect-name {
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

.effect-quantity {
    color: #8B008B;
    font-size: 1em;
    font-weight: bold;
    background: rgba(139, 0, 139, 0.2);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid #8B008B;
}

.effect-description {
    color: #cccccc;
    font-style: italic;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.effect-targets {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.effect-button {
    background: linear-gradient(45deg, #8B008B, #AA44AA);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9em;
    font-weight: bold;
    padding: 10px 15px 10px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
    min-width: 240px;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 10px;
}

.effect-button:hover {
    background: linear-gradient(45deg, #AA44AA, #8B008B);
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(139, 0, 139, 0.4);
}

.effect-button:active {
    transform: scale(0.98);
}

/* Avatar inside buttons */
.btn-target { width:28px; height:28px; border-radius:50%; overflow:hidden; background:#111; border:1px solid #333; display:grid; place-items:center; }
.btn-avatar-img { width:100%; height:100%; object-fit:cover; display:block; }
.btn-avatar-fallback { font-size:16px; line-height:1; }
.btn-label { text-align:left; }

/* Responsive effects */
@media (max-width: 768px) {
    .effect-targets {
        flex-direction: column;
    }
    
    .effect-button {
        min-width: auto;
    }
    
    .effect-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    .effects-row{ grid-template-columns:1fr; }
}

/* Betting Section */
.betting-section {
    background: #000;
    border: 2px solid #0088ff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.betting-section h4 {
    color: #0088ff;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.betting-status {
    font-size: 1.1rem;
    color: #cccccc;
}

/* Auth Prompt */
.auth-prompt {
    background: #000000;
    border: 2px solid #aa66aa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.auth-prompt h4 {
    color: #aa66aa;
    margin-bottom: 15px;
}

.auth-prompt a {
    color: #aa66aa;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
}

.auth-prompt a:hover {
    color: #ffffff;
}

/* Back Button */
.back-button {
    display: inline-block;
    padding: 15px 25px;
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 4px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #ffffff;
    color: #000000;
}

/* Error State */
.error-section {
    background: #000000;
    border: 2px solid #ff4444;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

.error-section h2 {
    color: #ff4444;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Fight Navigation Arrows */
.fight-nav-left,
.fight-nav-right {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.fight-nav-left {
    left: 15px;
}

.fight-nav-right {
    right: 15px;
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-arrow:hover {
    background: #333;
    transform: scale(1.1);
}

/* Fighter Betting Styles */
.fighter-betting {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #333;
}

.bet-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bet-input {
    flex: 1;
    padding: 8px 12px;
    background: #000;
    border: 1px solid #555;
    color: #fff;
    font-family: 'Times New Roman', serif;
    font-size: 0.9em;
    border-radius: 3px;
}

.bet-input:focus {
    outline: none;
    border-color: #4A90E2;
}

.bet-input::placeholder {
    color: #888;
}

.bet-button {
    padding: 8px 16px;
    background: #4A90E2;
    color: #000;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Times New Roman', serif;
    font-size: 0.85em;
    border-radius: 3px;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bet-button:hover {
    background: #357ABD;
}

/* Max button */
.bet-max-button {
    padding: 8px 10px;
    background: #222;
    color: #fff;
    border: 1px solid #555;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Times New Roman', serif;
    font-size: 0.85em;
    border-radius: 3px;
    transition: background 0.2s, border-color 0.2s;
}

.bet-max-button:hover {
    background: #2a2a2a;
    border-color: #888;
}

.fighter-bet-placed {
    margin-top: 15px;
    padding: 10px;
    background: #1a4a1a;
    border: 1px solid #4a8f4a;
    border-radius: 4px;
    text-align: center;
}

.bet-amount {
    font-weight: bold;
    color: #8fdf8f;
    font-size: 1.1em;
}

.bet-label {
    font-size: 0.7em;
    color: #8fdf8f;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.betting-info-bar {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
    color: #888;
    font-size: 0.85em;
    font-style: italic;
}

/* Card wrapper to align sections consistently */
.fight-section-card {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
}

/* Update existing betting section styles */
.betting-section {
    margin: 30px 0;
    padding: 25px;
    border: 2px solid #ffffff;
    background: #000;
    border-radius: 8px;
}

/* Betting row below Tale of the Tape */
.betting-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

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

/* Tale of the Tape */
.tale-of-tape {
    margin-top: 20px;
    margin-bottom: 20px;
    background: #0b0b0b;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.tale-of-tape > * {
    position: relative;
    z-index: 1;
}

.tale-of-tape.undead-present {
    box-shadow: inset 0 0 18px rgba(124, 58, 237, 0.25), 0 0 24px rgba(0, 0, 0, 0.35);
}

.tale-of-tape.undead-present::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.tale-of-tape.undead-left::after {
    background:
        linear-gradient(90deg, rgba(99, 255, 178, 0.28), rgba(12, 12, 12, 0)) top/100% 4px no-repeat,
        linear-gradient(90deg, rgba(99, 255, 178, 0.28), rgba(12, 12, 12, 0)) bottom/100% 4px no-repeat,
        linear-gradient(90deg, rgba(156, 126, 252, 0.45) 0%, rgba(164, 140, 232, 0.22) 32%, rgba(164, 140, 232, 0.00) 55%),
        radial-gradient(140% 120% at 0% 50%, rgba(156, 126, 252, 0.35), rgba(10, 10, 10, 0) 70%);
}

.tale-of-tape.undead-right::after {
    background:
        linear-gradient(270deg, rgba(99, 255, 178, 0.28), rgba(12, 12, 12, 0)) top/100% 4px no-repeat,
        linear-gradient(270deg, rgba(99, 255, 178, 0.28), rgba(12, 12, 12, 0)) bottom/100% 4px no-repeat,
        linear-gradient(270deg, rgba(156, 126, 252, 0.45) 0%, rgba(164, 140, 232, 0.22) 32%, rgba(164, 140, 232, 0.00) 55%),
        radial-gradient(140% 120% at 100% 50%, rgba(156, 126, 252, 0.35), rgba(10, 10, 10, 0) 70%);
}

.tale-of-tape.undead-left.undead-right::after {
    background:
        linear-gradient(90deg, rgba(99, 255, 178, 0.28), rgba(12, 12, 12, 0)) top/100% 4px no-repeat,
        linear-gradient(270deg, rgba(99, 255, 178, 0.28), rgba(12, 12, 12, 0)) top/100% 4px no-repeat,
        linear-gradient(90deg, rgba(99, 255, 178, 0.28), rgba(12, 12, 12, 0)) bottom/100% 4px no-repeat,
        linear-gradient(270deg, rgba(99, 255, 178, 0.28), rgba(12, 12, 12, 0)) bottom/100% 4px no-repeat,
        linear-gradient(90deg, rgba(156, 126, 252, 0.45) 0%, rgba(164, 140, 232, 0.22) 32%, rgba(164, 140, 232, 0.00) 55%),
        linear-gradient(270deg, rgba(156, 126, 252, 0.45) 0%, rgba(164, 140, 232, 0.22) 32%, rgba(164, 140, 232, 0.00) 55%),
        radial-gradient(140% 120% at 0% 50%, rgba(156, 126, 252, 0.35), rgba(10, 10, 10, 0) 70%),
        radial-gradient(140% 120% at 100% 50%, rgba(156, 126, 252, 0.35), rgba(10, 10, 10, 0) 70%);
}

.tale-of-tape.undead-left::before,
.tale-of-tape.undead-right::before {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
    opacity: 0.85;
    filter: blur(0.6px);
}

.tale-of-tape.undead-left::before {
    top: -30%;
    left: -35%;
    width: 85%;
    height: 160%;
    background:
        radial-gradient(circle at 26% 18%, rgba(206, 255, 237, 0.45) 0%, rgba(206, 255, 237, 0) 55%),
        radial-gradient(circle at 58% 40%, rgba(173, 132, 255, 0.38) 0%, rgba(173, 132, 255, 0) 60%),
        radial-gradient(circle at 34% 78%, rgba(198, 174, 255, 0.32) 0%, rgba(198, 174, 255, 0) 60%);
    animation: undeadParticleDriftLeft 14s ease-in-out infinite;
}

.tale-of-tape.undead-right::before {
    top: -30%;
    right: -35%;
    width: 85%;
    height: 160%;
    background:
        radial-gradient(circle at 74% 18%, rgba(206, 255, 237, 0.45) 0%, rgba(206, 255, 237, 0) 55%),
        radial-gradient(circle at 42% 40%, rgba(173, 132, 255, 0.38) 0%, rgba(173, 132, 255, 0) 60%),
        radial-gradient(circle at 66% 78%, rgba(198, 174, 255, 0.32) 0%, rgba(198, 174, 255, 0) 60%);
    animation: undeadParticleDriftRight 14s ease-in-out infinite;
}

.tale-of-tape.undead-left .tot-col.left,
.tale-of-tape.undead-right .tot-col.right {
    cursor: var(--cursor-zombie);
}

.tale-of-tape.undead-left .fighter-betting input,
.tale-of-tape.undead-right .fighter-betting input {
    cursor: text;
}

.tot-col {
    display: grid;
    gap: 8px;
    position: relative;
}

.tot-col > * {
    position: relative;
    z-index: 1;
}

.tale-of-tape.postmortem-present {
    box-shadow: inset 0 0 26px rgba(255, 72, 72, 0.3), 0 0 26px rgba(0, 0, 0, 0.45);
}

.postmortem-veil {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 53%;
    pointer-events: none;
    border-radius: 6px;
    z-index: 0;
    mix-blend-mode: screen;
    animation: postmortemPulse 2200ms ease-in-out infinite;
}

.postmortem-veil-left {
    left: -2px;
    background:
        linear-gradient(90deg, rgba(255, 106, 106, 0.9), rgba(10, 10, 10, 0)) top/100% 4px no-repeat,
        linear-gradient(90deg, rgba(255, 106, 106, 0.9), rgba(10, 10, 10, 0)) bottom/100% 4px no-repeat,
        radial-gradient(140% 120% at 0% 50%, rgba(255, 82, 82, 0.55), rgba(10, 10, 10, 0) 72%),
        linear-gradient(90deg, rgba(255, 60, 60, 0.45) 0%, rgba(10, 10, 10, 0) 75%);
}

.postmortem-veil-right {
    right: -2px;
    background:
        linear-gradient(270deg, rgba(255, 106, 106, 0.9), rgba(10, 10, 10, 0)) top/100% 4px no-repeat,
        linear-gradient(270deg, rgba(255, 106, 106, 0.9), rgba(10, 10, 10, 0)) bottom/100% 4px no-repeat,
        radial-gradient(140% 120% at 100% 50%, rgba(255, 82, 82, 0.55), rgba(10, 10, 10, 0) 72%),
        linear-gradient(270deg, rgba(255, 60, 60, 0.45) 0%, rgba(10, 10, 10, 0) 75%);
}

.postmortem-name {
    color: #ff5f5f !important;
    text-shadow: 0 0 6px rgba(255, 95, 95, 0.45), 0 0 18px rgba(255, 71, 71, 0.40);
    display: inline-block;
    animation: postmortemShake 420ms steps(2) infinite, postmortemPulse 2100ms ease-in-out infinite;
}

@keyframes postmortemShake {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-1px, -0.5px) rotate(-0.25deg); }
    50% { transform: translate(1px, 0.5px) rotate(0.25deg); }
    75% { transform: translate(-0.5px, 1px) rotate(-0.1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes postmortemPulse {
    0% { opacity: 0.35; }
    50% { opacity: 0.85; }
    100% { opacity: 0.35; }
}

.tot-col.left .tot-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 10px;
}

.tot-col.right .tot-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 10px;
}

.tot-row {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 6px 10px;
}

.tot-row .label {
    color: #aaa;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tot-row .value {
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
}

.tot-row .value.win {
    color: #9acd32; /* green highlight for winner */
}

.tot-row.subtle .label,
.tot-row.subtle .value {
    color: #bbb;
    font-size: 0.9rem;
}

.tot-center {
    text-align: center;
}

.tot-fighter-avatar {
    margin-bottom: 12px;
    text-align: center;
    position: relative;
}

.tot-fighter-avatar .tot-avatar-img {
    width: 120px;
    height: 120px;
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 6px;
    border: 2px solid #444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
}

/* Bet stamp overlay (like BLESSED) */
.bet-stamp{
    position:absolute;
    top:-12px;
    right:-16px;
    width:84px;
    height:84px;
    border:3px solid #ffaa00;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background:rgba(255,170,0,0.18);
    transform:rotate(12deg);
    opacity:.9;
    box-shadow:0 0 14px rgba(255,170,0,.35);
    pointer-events:none;
}
.bet-stamp-text{ font-weight:900; color:#ffaa00; letter-spacing:1px; }

.tot-fighter-name {
    color: #ccc;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Undead flair */
.undead-name {
    color: #c4b5fd !important;
    text-shadow: 0 0 8px rgba(196, 181, 253, 0.65), 0 0 14px rgba(124, 58, 237, 0.45), 0 0 22px rgba(0, 255, 128, 0.18);
    animation: undeadNamePulse 2200ms ease-in-out infinite;
}

@keyframes undeadNamePulse {
    0% {
        text-shadow: 0 0 6px rgba(196, 181, 253, 0.45), 0 0 10px rgba(124, 58, 237, 0.25), 0 0 0 rgba(0, 255, 128, 0.0);
    }
    50% {
        text-shadow: 0 0 14px rgba(196, 181, 253, 0.9), 0 0 22px rgba(124, 58, 237, 0.55), 0 0 12px rgba(0, 255, 128, 0.25);
    }
    100% {
        text-shadow: 0 0 6px rgba(196, 181, 253, 0.45), 0 0 10px rgba(124, 58, 237, 0.25), 0 0 0 rgba(0, 255, 128, 0.0);
    }
}

@keyframes undeadParticleDriftLeft {
    0% {
        transform: translate3d(-6%, 0%, 0) scale(1);
        opacity: 0.7;
    }
    30% {
        transform: translate3d(4%, -3%, 0) scale(1.05);
        opacity: 0.85;
    }
    60% {
        transform: translate3d(6%, 3%, 0) scale(0.97);
        opacity: 0.95;
    }
    100% {
        transform: translate3d(-6%, 0%, 0) scale(1);
        opacity: 0.7;
    }
}

@keyframes undeadParticleDriftRight {
    0% {
        transform: translate3d(6%, 0%, 0) scale(1);
        opacity: 0.7;
    }
    30% {
        transform: translate3d(-4%, -3%, 0) scale(1.05);
        opacity: 0.85;
    }
    60% {
        transform: translate3d(-6%, 3%, 0) scale(0.97);
        opacity: 0.95;
    }
    100% {
        transform: translate3d(6%, 0%, 0) scale(1);
        opacity: 0.7;
    }
}

.tot-title {
    font-family: var(--font-heading);
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 6px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.tot-faceoff {
    color: #ccc;
    font-weight: bold;
    font-size: 0.9rem;
}

.vs-dot {
    color: #ffaa00;
    margin: 0 6px;
}

@media (max-width: 768px) {
    .tale-of-the-tape,
    .tale-of-tape {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .tot-center { order: -1; }
    .tot-title { font-size: 0.9rem; }
    .tot-faceoff { font-size: 0.85rem; }
}

.betting-section h4 {
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.3rem;
}

.all-bets-section h5 {
    margin: 0 0 15px 0;
    color: #ffaa00;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.betting-status {
    text-align: center;
    padding: 30px 20px;
    color: #888;
    font-style: italic;
    line-height: 1.5;
    font-size: 1.1rem;
}

.all-bets-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.bets-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #333;
    background: #111;
    border-radius: 4px;
}

.bet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin: 0;
    background: #111;
    border-bottom: 1px solid #222;
    transition: background 0.2s;
}

.bet-item:last-child {
    border-bottom: none;
}

.bet-item:hover {
    background: #1a1a1a;
}

.bet-item.user-bet {
    background: #1a1a0a;
    border-left: 3px solid #ffaa00;
}

.bet-item.user-bet:hover {
    background: #222208;
}

.better-name {
    font-weight: bold;
    font-size: 0.95em;
}

.bet-details {
    color: #ccc;
    font-size: 0.9em;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fight-container {
        padding: 15px;
    }
    
    .matchup-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vs-section {
        order: -1;
    }
    
    .fight-meta {
        grid-template-columns: 1fr;
    }
    
    .fight-title {
        font-size: 1.8rem;
    }
    
    .vs-text {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .fight-nav-left,
    .fight-nav-right {
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .fight-nav-left {
        left: 10px;
    }

    .fight-nav-right {
        right: 10px;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
} 