/* ============================================================
   Mafia Corruption — Visual Theme v1.0
   Override layer on top of MCCodes v2 base CSS.
   Palette:
     Base:      #0a0a0a / #111111
     Midtones:  #1a1410 / #2a2018
     Accent:    #8b0000 crimson  /  #cc0000 hover
     Gold:      #c9a84c  (rank, prestige, status)
     Text:      #e8e0d0  (never pure white)
   ============================================================ */

/* ── Custom Properties ───────────────────────────────────── */
:root {
    --bg-base:        #0a0a0a;
    --bg-deep:        #111111;
    --bg-mid:         #1a1410;
    --bg-panel:       #2a2018;
    --accent-red:     #8b0000;
    --accent-red-hi:  #cc0000;
    --accent-gold:    #c9a84c;
    --text-primary:   #e8e0d0;
    --text-muted:     #a09080;
    --border-dark:    #3a2e20;
    --glow-red:       0 0 8px rgba(139, 0, 0, .65), 0 0 18px rgba(139, 0, 0, .3);
    --glow-gold:      0 0 6px rgba(201, 168, 76, .55);
}

/* ── Base ────────────────────────────────────────────────── */
body {
    background-color: var(--bg-mid);  /* warm dark brown outer gutter */
    /* Horizontal scan-line texture — very subtle */
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(255, 255, 255, .014) 3px,
        rgba(255, 255, 255, .014) 4px
    );
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', calibri, helvetica, arial, sans-serif;
    font-size: 13px;
    color: var(--text-primary);
}

/* ── Typography ──────────────────────────────────────────── */
table, tr, td, th {
    font-family: 'Segoe UI', helvetica, arial, sans-serif;
    font-size: 13px;
    color: var(--text-primary);
}

b, strong {
    color: var(--accent-gold);
    font-weight: bold;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--accent-gold);
    text-shadow: var(--glow-gold);
    letter-spacing: .5px;
}

hr {
    border: none;
    border-top: 1px solid var(--border-dark);
    margin: 6px 0;
}

textarea {
    font-family: 'Segoe UI', helvetica, arial, sans-serif;
    font-size: 13px;
    background-color: #1e1710;
    color: var(--text-primary);
    border: 1px solid var(--border-dark);
    padding: 4px 7px;
    border-radius: 3px;
    transition: border-color .15s ease, box-shadow .15s ease;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 6px rgba(139, 0, 0, .5);
}

/* ── Links ───────────────────────────────────────────────── */
a:link, a:visited {
    color: var(--text-primary);
    text-decoration: none;
    transition: color .14s ease, text-shadow .14s ease;
}

a:hover, a:active {
    color: var(--accent-red-hi);
    text-shadow: var(--glow-red);
    text-decoration: none;
}

a.mc-btn,
a.mc-btn:link,
a.mc-btn:visited {
    color: var(--accent-gold) !important;
    text-shadow: none !important;
    padding: 7px 18px;
}

a.mc-btn:hover,
a.mc-btn:active {
    color: #ffd166 !important;
    text-shadow: 0 0 6px rgba(201, 168, 76, .55) !important;
}

/* ── Form Elements ───────────────────────────────────────── */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select {
    background-color: #1e1710;
    color: var(--text-primary);
    border: 1px solid var(--border-dark);
    padding: 3px 7px;
    border-radius: 3px;
    font-family: 'Segoe UI', helvetica, arial, sans-serif;
    font-size: 13px;
    transition: border-color .14s ease, box-shadow .14s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 6px rgba(139, 0, 0, .5);
}

input[type="submit"],
input[type="button"],
button {
    background: linear-gradient(180deg, #680000 0%, #3a0000 100%);
    color: var(--text-primary);
    border: 1px solid var(--accent-red);
    padding: 4px 14px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .6px;
    transition: background .14s ease, box-shadow .14s ease;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
    background: linear-gradient(180deg, #8b0000 0%, #5a0000 100%);
    box-shadow: var(--glow-red);
}

select option {
    background-color: #1e1710;
    color: var(--text-primary);
}

fieldset {
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    padding: 8px 12px;
    background: linear-gradient(180deg, #1a1410 0%, #120d09 100%);
}

legend {
    color: var(--accent-gold);
    font-weight: bold;
    letter-spacing: .4px;
    padding: 0 6px;
    text-shadow: var(--glow-gold);
}

/* ── Outer Wrapper ───────────────────────────────────────── */
.table2 {
    background: transparent;
}

/* Left / right chrome rails — body (#1a1410) → content (#111111) */
.lgrad {
    background-image: none !important;
    background: linear-gradient(90deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
    width: 19px;
}

.rgrad {
    background-image: none !important;
    background: linear-gradient(90deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
    width: 19px;
}

/* Centre content column */
.center {
    width: 932px;
    background-color: var(--bg-deep) !important;
    vertical-align: top;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 0, 0, .6), inset 0 0 1px rgba(58, 42, 26, .4);
}

/* Bottom footer bar — replace old dgrad jpgs */
.dgrad {
    background-image: none !important;
    background: linear-gradient(180deg, #1a1410 0%, var(--bg-base) 100%);
    height: 38px;
}

.dgradl {
    background-image: none !important;
    background: linear-gradient(135deg, #1a1410 30%, var(--bg-base) 100%);
    height: 38px;
    width: 38px;
}

.dgradr {
    background-image: none !important;
    background: linear-gradient(225deg, #1a1410 30%, var(--bg-base) 100%);
    height: 38px;
    width: 38px;
}

/* Vertical divider between sidebar and content area */
.linegrad {
    background-image: none !important;
    background: linear-gradient(
        180deg,
        transparent   0%,
        var(--accent-red) 15%,
        var(--accent-red) 85%,
        transparent  100%
    );
    width: 2px;
}

/* ── Panel Component ─────────────────────────────────────── */
/* Used in sidebar (Profile / Stats / Navigation)
   and applied to main-area tables via .table wrapper */
.mc-panel {
    background-color: var(--bg-mid);
    border: 1px solid #3a2a1a;
    border-radius: 3px;
    margin-bottom: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04),
                0 2px 6px rgba(0, 0, 0, .4);
}

.mc-panel__header {
    background: linear-gradient(180deg, #6a0000 0%, #4a0000 100%);
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 5px 8px;
    border-bottom: 1px solid #3a2a1a;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}

.mc-panel__body {
    padding: 7px 8px;
    color: var(--text-primary);
    font-size: 12px;
    line-height: 1.6;
}

.mc-panel__body a:not(.mc-btn) {
    display: block;
    color: var(--text-primary) !important;
    padding: 2px 0;
    transition: color .12s ease, padding-left .12s ease;
}

.mc-panel__body a:not(.mc-btn):hover,
.mc-panel__body a:not(.mc-btn):active {
    color: var(--accent-red-hi) !important;
    text-shadow: var(--glow-red);
    padding-left: 4px;
}

.mc-panel__body a:has(> img):hover,
.mc-panel__body a:has(> img):active {
    color: inherit !important;
    text-shadow: none !important;
    padding-left: 0 !important;
}

/* ── Stat Bars ───────────────────────────────────────────── */
.mc-stat {
    margin-bottom: 7px;
}

.mc-stat:last-child {
    margin-bottom: 0;
}

.mc-stat__label {
    display: inline-block;
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.mc-stat__val {
    display: inline-block;
    float: right;
    color: var(--text-muted);
    font-size: 11px;
}

.mc-stat__track {
    display: block;
    clear: both;
    height: 8px;
    background-color: #0a0a0a;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 3px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6);
}

.mc-stat__fill {
    display: block;
    height: 100%;
    border-radius: 2px;
    transition: width .3s ease, background-color .4s ease;
}

.mc-stat__fill--normal {
    background: linear-gradient(90deg, #b8740a, #e8a020);
    box-shadow: 0 0 6px rgba(232, 160, 32, .4);
}

.mc-stat__fill--danger {
    background: linear-gradient(90deg, #7a0000, #cc0000);
    box-shadow: 0 0 6px rgba(204, 0, 0, .5);
}

.mc-stat__fill--gold {
    background: linear-gradient(90deg, #a07800, #f0c040);
    box-shadow: 0 0 6px rgba(240, 192, 64, .4);
}

/* ── Sidebar Panel ───────────────────────────────────────── */
/* Override inline bgcolor="#FFFFFF" on the 20% side-panel td */
td[width="20%"] {
    background-color: var(--bg-mid) !important;
    /* Subtle vertical noise texture */
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, .014) 3px,
            rgba(255, 255, 255, .014) 4px
        ),
        linear-gradient(180deg, #1e1610 0%, #140f0b 100%) !important;
    color: var(--text-primary) !important;
    border-right: 1px solid var(--border-dark);
    padding: 8px 6px;
    vertical-align: top;
}

/* ── Main Content Area ───────────────────────────────────── */
td[width="80%"] {
    background-color: var(--bg-deep) !important;
    color: var(--text-primary) !important;
    padding: 8px 14px;
    vertical-align: top;
}

/* ── Data Tables ─────────────────────────────────────────── */
/* .table uses 1px cell-spacing gap as a "border" between rows —
   set it to crimson so the gaps read as dividers */
.table {
    background-color: var(--accent-red);
    border-collapse: separate;
    border-spacing: 0 1px;
    border: 1px solid #3a2a1a;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.table td {
    background-color: var(--bg-mid);
    color: var(--text-primary);
    height: 22px;
    padding: 3px 8px;
}

/* Alternating row — slightly lighter */
.table tr:nth-child(even) td {
    background-color: #221a12;
}

.table td:hover {
    background-color: #2e2016 !important;
}

.table3 td {
    background-color: #1e1812;
    color: var(--text-primary);
    padding: 3px 8px;
}

/* Alt class used on individual cells */
td .alt, .alt {
    background-color: #221a12 !important;
    color: var(--text-primary);
}

/* Header row class used on individual cells */
td .h, .h {
    background-image: linear-gradient(180deg, #500000 0%, #2a0000 100%) !important;
    background-color: var(--accent-red) !important;
    color: var(--text-primary) !important;
    font-weight: bold;
    letter-spacing: .3px;
    border-bottom: 2px solid var(--accent-red-hi) !important;
    padding: 4px 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

/* th elements within .table */
.table th {
    background-image: linear-gradient(180deg, #500000 0%, #2a0000 100%) !important;
    background-color: var(--accent-red) !important;
    color: var(--text-primary) !important;
    font-weight: bold;
    letter-spacing: .3px;
    border-bottom: 2px solid var(--accent-red-hi);
    padding: 4px 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

/* ── Stat / Progress Bars ────────────────────────────────── */
/* Dim the "empty" segment of each bar */
img[src="redbar.png"] {
    filter: brightness(.35) saturate(.6);
}

/* Enrich the filled segments */
img[src="greenbar.png"] {
    filter: saturate(1.3) brightness(.85);
}

img[src="bluebar.png"] {
    filter: saturate(1.3) brightness(.8);
}

img[src="yellowbar.png"] {
    filter: hue-rotate(-8deg) saturate(1.4) brightness(.8);
}

/* ── Donator / Special Inline Styles ─────────────────────── */
span[style*="color: red"],
span[style*="color:red"] {
    text-shadow: 0 0 6px rgba(180, 0, 0, .5);
    font-weight: bold;
}

/* ── Game Banner ─────────────────────────────────────────── */

/* Outer wrapper — sits above the main sidebar/content split */
.mc-banner {
    width: 100%;
    background-color: var(--bg-base);
    text-align: left;
    display: block;
}

/* Top bar — wordmark left, buttons right */
.mc-banner__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-base);
    padding: 14px 20px 14px 20px;
    box-sizing: border-box;
    width: 100%;
}

/* Wordmark text block — sits in the top bar, left-aligned */
.mc-banner__wordmark {
    display: block;
    line-height: 1;
    user-select: none;
}

.mc-wordmark__mafia {
    display: block;
    font-family: Georgia, 'Times New Roman', 'Palatino Linotype', serif;
    font-size: 52px;
    font-weight: bold;
    color: #e8e0d0;
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .85);
}

.mc-wordmark__corruption {
    display: block;
    font-family: Georgia, 'Times New Roman', 'Palatino Linotype', serif;
    font-size: 23px;
    font-weight: normal;
    color: #cc0000;
    letter-spacing: 10px;
    text-transform: uppercase;
    line-height: 1.5;
    text-shadow: 0 0 14px rgba(204, 0, 0, .6),
                 0 0 30px rgba(139, 0, 0, .28);
}

/* Vote / Upgrade button cluster — right side of top bar */
.mc-banner__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* Filmstrip — sits below the top bar at natural image dimensions */
.mc-banner__filmstrip {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0; /* collapse inline-image gap */
    background-color: var(--bg-base);
}

/* Filmstrip image — full width, natural height preserved */
.mc-banner__film-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Dark crimson edge vignettes over the filmstrip */
.mc-banner__vignette-l {
    position: absolute;
    top: 0; left: 0;
    width: 220px; height: 100%;
    background: linear-gradient(
        90deg,
        rgba(50, 0, 0, .80) 0%,
        rgba(50, 0, 0, .25) 55%,
        transparent         100%
    );
    pointer-events: none;
    z-index: 1;
}

.mc-banner__vignette-r {
    position: absolute;
    top: 0; right: 0;
    width: 220px; height: 100%;
    background: linear-gradient(
        270deg,
        rgba(50, 0, 0, .80) 0%,
        rgba(50, 0, 0, .25) 55%,
        transparent         100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Shared button style */
button.mc-btn,
.mc-btn {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
    outline: none;
    display: inline-block;
    padding: 7px 18px;
    background: linear-gradient(180deg, #7a0000 0%, #4a0000 100%);
    color: var(--accent-gold) !important;
    border: 1px solid var(--accent-gold);
    border-radius: 3px;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: .6px;
    text-transform: uppercase;
    text-shadow: none !important;
    transition: background .13s ease, box-shadow .13s ease, color .13s ease, transform .1s ease;
    white-space: nowrap;
}

button.mc-btn:hover,
button.mc-btn:active,
.mc-btn:hover,
.mc-btn:active {
    background: linear-gradient(180deg, var(--accent-red) 0%, #620000 100%);
    box-shadow: 0 0 8px rgba(139, 0, 0, .7), 0 0 12px rgba(139, 0, 0, .3), inset 0 3px 8px rgba(0, 0, 0, .8);
    color: #ffd166 !important;
    text-shadow: 0 0 6px rgba(201, 168, 76, .55) !important;
    transform: translateY(1px);
}

/* Gold-bordered variant (Upgrade) — slightly brighter border */
.mc-btn--gold {
    border-color: var(--accent-gold);
    box-shadow: 0 0 4px rgba(201, 168, 76, .2);
}

/* ── Navigation Bar ──────────────────────────────────────── */
.mc-nav {
    width: 100%;
    background-color: #1a1410;
    border-top: 2px solid var(--accent-red);
    border-bottom: 1px solid #3a2e20;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.mc-nav a {
    display: inline-flex;
    align-items: center;
    color: var(--text-primary) !important;
    padding: 9px 15px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .35px;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    text-shadow: none !important;
    transition: color .12s ease, border-color .12s ease, background .12s ease;
    white-space: nowrap;
}

.mc-nav a:hover,
.mc-nav a:active {
    color: var(--accent-red-hi) !important;
    border-bottom-color: var(--accent-red-hi);
    background: rgba(139, 0, 0, .14);
    text-shadow: 0 0 8px rgba(204, 0, 0, .45) !important;
}

/* ── Alert state — events / mail notifications ──────────── */
.mc-nav a.mc-nav--alert {
    color: var(--accent-red-hi) !important;
    text-shadow: var(--glow-red) !important;
    font-weight: bold !important;
    animation: mc-alert-pulse 2s ease-in-out infinite;
}

.mc-panel__body a.mc-nav--alert {
    color: var(--accent-red-hi) !important;
    text-shadow: var(--glow-red) !important;
    font-weight: bold !important;
    animation: mc-alert-pulse 2s ease-in-out infinite;
}

@keyframes mc-alert-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .65; }
}

/* ── Horizontal notification bar ────────────────────────── */
.mc-alert-bar {
    width: 100%;
    background: linear-gradient(90deg, #1a0505, #2a0808, #1a0505);
    border: 1px solid var(--accent-red);
    border-radius: 3px;
    padding: 7px 14px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-primary);
    box-sizing: border-box;
    letter-spacing: .2px;
}

.mc-alert-bar a {
    color: var(--accent-red-hi) !important;
    text-shadow: var(--glow-red);
}

.mc-alert-bar strong {
    font-weight: bold;
}

/* ── Legacy title.jpg — hidden now banner is active ─────── */
img[src="title.jpg"],
img[alt="Mccodes Version 2"] {
    display: none;
}

/* ── Utility / Status Classes ────────────────────────────── */
/* Reusable gold class for rank/prestige elements */
.rank, .prestige, .status-gold, .gold {
    color: var(--accent-gold) !important;
    text-shadow: var(--glow-gold);
    font-weight: bold;
}

.status-red, .danger {
    color: var(--accent-red-hi) !important;
    text-shadow: var(--glow-red);
}

.muted {
    color: var(--text-muted);
}

/* ── Responsive overrides ────────────────────────────────── */

/* Make the fixed MCCodes outer table fluid on smaller screens */
@media (max-width: 980px) {
    table[width="970"],
    table[width="970"] > tbody > tr > td.center {
        width: 100% !important;
    }

    .center {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Tablet — compact top bar */
@media (max-width: 768px) {
    .mc-banner__top {
        padding: 10px 14px;
    }

    .mc-wordmark__mafia {
        font-size: 36px;
        letter-spacing: 3px;
    }

    .mc-wordmark__corruption {
        font-size: 16px;
        letter-spacing: 7px;
    }

    .mc-banner__vignette-l,
    .mc-banner__vignette-r {
        width: 120px;
    }

    .mc-banner__actions {
        gap: 6px;
    }

    .mc-btn {
        padding: 5px 12px;
        font-size: 11px;
    }

    .mc-nav a {
        padding: 7px 11px;
        font-size: 11px;
    }
}

/* Mobile — tight top bar, scrollable nav */
@media (max-width: 480px) {
    .mc-banner__top {
        padding: 8px 10px;
    }

    .mc-wordmark__mafia {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .mc-wordmark__corruption {
        font-size: 11px;
        letter-spacing: 5px;
    }

    .mc-banner__vignette-l,
    .mc-banner__vignette-r {
        width: 70px;
    }

    .mc-banner__actions {
        gap: 5px;
    }

    .mc-btn {
        padding: 4px 9px;
        font-size: 10px;
        letter-spacing: .3px;
    }

    /* Nav becomes single-row horizontal scroll on very small screens */
    .mc-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;       /* Firefox */
    }

    .mc-nav::-webkit-scrollbar {
        display: none;               /* Chrome/Safari */
    }

    .mc-nav a {
        padding: 6px 10px;
        font-size: 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* ── Scrollbar (Chromium / WebKit) ───────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: var(--bg-base);
}

::-webkit-scrollbar-track {
    background: #111111;
}

::-webkit-scrollbar-thumb {
    background: #3d0000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
    box-shadow: var(--glow-red);
}

/* ── City explore page ───────────────────────────────────────── */
.city-hero {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.city-hero__img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
    border: 1px solid #2a0000;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .7);
}

.city-explore {
    padding: 12px 0;
}

.city-explore table td {
    padding: 6px 10px;
    vertical-align: top;
}

.city-explore u {
    display: block;
    margin-bottom: 6px;
    color: var(--accent-red);
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 11px;
}

/* ── Combat Interface ────────────────────────────────────── */
.mc-combat {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

/* Combat log — scrollable round-by-round entries */
.mc-combat__log {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    min-height: 20px;
}

/* Individual log entry */
.mc-combat__entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 4px;
    border-left: 4px solid transparent;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    background: rgba(255,255,255,.03);
}

/* Player hit — crimson left border */
.mc-combat__entry--hit {
    border-left-color: var(--accent-red-hi);
    background: linear-gradient(90deg, rgba(139,0,0,.18) 0%, rgba(139,0,0,.04) 100%);
}

/* Enemy hit — dark blue-grey left border */
.mc-combat__entry--enemy {
    border-left-color: #3a6ea8;
    background: linear-gradient(90deg, rgba(30,60,120,.20) 0%, rgba(30,60,120,.04) 100%);
}

/* Miss — muted yellow */
.mc-combat__entry--miss {
    border-left-color: #6e6030;
    background: rgba(80,70,20,.12);
}

/* Step number */
.mc-combat__step {
    color: var(--text-muted);
    font-size: 12px;
    flex-shrink: 0;
    min-width: 22px;
}

/* Damage number — big + bold */
.mc-combat__dmg {
    font-size: 17px;
    font-weight: bold;
    color: var(--accent-red-hi);
    text-shadow: var(--glow-red);
}

.mc-combat__dmg--enemy {
    color: #5b9bd5;
    text-shadow: 0 0 8px rgba(91,155,213,.6);
}

.mc-combat__miss {
    color: #c9a84c;
    font-weight: bold;
    font-size: 15px;
}

/* Remaining HP note */
.mc-combat__hp {
    color: var(--text-muted);
    font-size: 12px;
    flex-shrink: 0;
}

/* Inline weapon thumbnail */
.mc-combat__wepimg {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    image-rendering: pixelated;
}

/* HP bar row */
.mc-combat__hpbars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
    width: 100%;
}

.mc-combat__hpbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mc-combat__hpbar-label {
    min-width: 120px;
    font-size: 13px;
    font-weight: bold;
    color: var(--text-primary);
    text-align: right;
}

.mc-combat__hpbar-track {
    flex: 1;
    height: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border-dark);
    border-radius: 3px;
    overflow: hidden;
}

.mc-combat__hpbar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width .3s ease;
}

.mc-combat__hpbar-fill--you {
    background: linear-gradient(90deg, #2a7a2a, #3ebd3e);
    box-shadow: 0 0 6px rgba(62,189,62,.5);
}

.mc-combat__hpbar-fill--opp {
    background: linear-gradient(90deg, #7a2a2a, var(--accent-red-hi));
    box-shadow: 0 0 6px rgba(204,0,0,.45);
}

.mc-combat__hpbar-val {
    min-width: 38px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: left;
}

/* Weapon selection */
.mc-combat__weapons {
    margin-top: 8px;
    text-align: center;
}

.mc-combat__weapons-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-gold);
    text-shadow: var(--glow-gold);
    letter-spacing: .5px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.mc-combat__weapons-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Weapon card — clickable attack button */
.mc-combat__weapon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 22px;
    min-width: 140px;
    background: linear-gradient(180deg, #2a1810 0%, #1a1008 100%);
    border: 1px solid var(--accent-red);
    border-radius: 5px;
    text-decoration: none !important;
    color: var(--text-primary) !important;
    cursor: pointer;
    transition: background .14s ease, box-shadow .14s ease, border-color .14s ease, transform .1s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.45);
}

.mc-combat__weapon-card:hover {
    background: linear-gradient(180deg, #420000 0%, #2a0000 100%);
    border-color: var(--accent-red-hi);
    box-shadow: 0 0 14px rgba(139,0,0,.6), 0 0 28px rgba(139,0,0,.25);
    transform: translateY(-2px);
}

.mc-combat__weapon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    image-rendering: pixelated;
}

.mc-combat__weapon-placeholder {
    font-size: 40px;
    line-height: 1;
    opacity: .6;
}

.mc-combat__weapon-slot {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mc-combat__weapon-name {
    font-size: 15px;
    font-weight: bold;
    color: var(--accent-gold);
    text-align: center;
}

.mc-combat__weapon-action {
    font-size: 12px;
    color: var(--accent-red-hi);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Fists / no weapon state */
.mc-combat__weapon-card--fists {
    opacity: .5;
    cursor: default;
    pointer-events: none;
}

/* Victory panel */
.mc-combat__victory {
    margin: 22px auto;
    max-width: 480px;
    background: linear-gradient(180deg, #1f0808 0%, #120404 100%);
    border: 2px solid var(--accent-red);
    border-radius: 6px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 0 24px rgba(139,0,0,.5), 0 0 50px rgba(139,0,0,.18);
}

.mc-combat__victory--lost {
    border-color: #3a6ea8;
    box-shadow: 0 0 24px rgba(58,110,168,.4);
    background: linear-gradient(180deg, #080f1f 0%, #040812 100%);
}

.mc-combat__victory-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--accent-gold);
    text-shadow: var(--glow-gold);
    margin-bottom: 8px;
    letter-spacing: .5px;
}

.mc-combat__victory--lost .mc-combat__victory-title {
    color: #5b9bd5;
    text-shadow: 0 0 10px rgba(91,155,213,.5);
}

.mc-combat__victory-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.mc-combat__victory-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.mc-combat__victory-actions form {
    margin: 0;
}

/* Danger variant button (Hospitalize) */
.mc-btn--danger {
    background: linear-gradient(180deg, #6a0000 0%, #3e0000 100%);
    border-color: var(--accent-red-hi);
    color: #ffaaaa !important;
}

.mc-btn--danger:hover {
    background: linear-gradient(180deg, #990000 0%, #5a0000 100%);
    color: #ffd0d0 !important;
}

