.realm-events-wrap,
.realm-events-wrap *,
.realm-events-wrap *::before,
.realm-events-wrap *::after {
    box-sizing: border-box;
}

.realm-events-wrap {
    color: #d0c8b8;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    text-shadow: 0 1px 1px #000;
}

.realm-events-intro {
    margin: 0 0 14px;
    color: #848177;
    line-height: 1.45;
}

.realm-events-status {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 4px;
    background: rgba(180, 40, 40, 0.15);
    border: 1px solid #3a1515;
    color: #cc5555;
}

.realm-events-table {
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
}

.realm-events-table thead th {
    border-bottom: 1px solid #16181c;
    color: #A07332;
    font-family: calibrib, Verdana, sans-serif;
    font-size: 13px;
    font-weight: normal;
    padding: 8px 10px;
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
}

.realm-events-table tbody tr td {
    padding: 8px 10px;
    color: #d0c8b8;
    border-bottom: 1px solid rgba(22, 24, 28, 0.5);
    vertical-align: middle;
}

.realm-events-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.re-realm {
    font-weight: bold;
    color: #f6c85c;
    white-space: nowrap;
}

.re-note {
    color: #848177;
    max-width: 280px;
}

.re-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid #2a2a2e;
    background: rgba(0, 0, 0, 0.25);
    color: #d0c8b8;
}

.re-phase-0, .re-phase-1 { color: #848177; }
.re-phase-2 { color: #d0a53d; border-color: #5a4318; background: rgba(208, 165, 61, 0.12); }
.re-phase-3 { color: #c9b36a; }
.re-phase-4 { color: #ffc437; border-color: #d0a53d; background: rgba(249, 181, 45, 0.12); }
.re-phase-5 { color: #e06a3a; border-color: #6a2a18; background: rgba(180, 60, 30, 0.15); }
.re-phase-6 { color: #7dba5a; border-color: #2a4a18; background: rgba(80, 140, 40, 0.15); }

.re-progress-text {
    margin-bottom: 4px;
}

.re-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid #16181c;
    border-radius: 3px;
    overflow: hidden;
    max-width: 180px;
}

.re-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8a6418, #d0a53d);
    width: 0;
}

.re-empty-row td {
    text-align: center;
    color: #4e5253;
    font-style: italic;
    padding: 20px 10px;
}

@media (max-width: 720px) {
    .realm-events-table-wrap {
        overflow-x: auto;
    }

    .realm-events-table {
        min-width: 640px;
    }
}
