.yoz-epic-chest-threshold {
    margin: 18px 16px 28px;
    padding: 16px;

    border: 1px solid rgba(92, 130, 164, 0.25);
    border-radius: 7px;
    background: linear-gradient(135deg, rgba(5, 17, 29, 0.96), rgba(8, 27, 43, 0.92)), #061522;
    box-shadow: inset 0 0 34px rgba(1, 7, 14, 0.72), 0 12px 34px rgba(0, 0, 0, 0.16);
}

.yoz-epic-chest-threshold-intro h2,
.yoz-epic-chest-threshold-monsters h3,
.yoz-epic-chest-threshold-card h2 {
    margin: 0;

    color: #f0c761;
    font-family: "Cinzel", serif;
    font-weight: 700;
}

.yoz-epic-chest-threshold-intro h2 {
    font-size: 17px;
    line-height: 1.3;
}

.yoz-epic-chest-threshold-intro p {
    margin: 3px 0 13px;

    color: rgba(215, 225, 239, 0.74);
    font-size: 12px;
    line-height: 1.45;
}

.yoz-epic-chest-calendar {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(91, 136, 174, 0.28);
}

.yoz-epic-chest-calendar-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 9px;
}

.yoz-epic-chest-calendar-tabs button,
.yoz-epic-chest-calendar-card {
    border: 1px solid rgba(91, 136, 174, 0.36);
    border-radius: 5px;
    background: rgba(8, 29, 47, 0.82);
    color: #edf4fc;
    cursor: pointer;
}

.yoz-epic-chest-calendar-tabs button {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 700;
}

.yoz-epic-chest-calendar-tabs button.is-selected {
    border-color: #efc85e;
    background: linear-gradient(135deg, rgba(66, 111, 143, 0.52), rgba(16, 42, 66, 0.94));
    box-shadow: inset 0 -2px #efc85e;
}

.yoz-epic-chest-calendar-cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.yoz-epic-chest-calendar-card {
    display: grid;
    min-width: 0;
    min-height: 92px;
    padding: 10px;
    text-align: left;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.yoz-epic-chest-calendar-card.has-image {
    background-image: linear-gradient(180deg, rgba(5, 17, 29, 0.18), rgba(3, 14, 25, 0.94)), var(--epic-card-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.yoz-epic-chest-calendar-card:hover { border-color: rgba(231, 212, 163, 0.72); transform: translateY(-1px); }
.yoz-epic-chest-calendar-card.is-active { border-color: #efc85e; box-shadow: inset 0 0 18px rgba(200, 155, 60, 0.18), 0 0 0 1px rgba(239, 200, 94, 0.38); }
.yoz-epic-chest-calendar-card.is-selected { border-color: #9b4dff; box-shadow: inset 0 0 18px rgba(102, 55, 164, 0.26), 0 0 0 1px rgba(155, 77, 255, 0.54); }
.yoz-epic-chest-calendar-card.is-active.is-selected { box-shadow: inset 0 0 18px rgba(102, 55, 164, 0.26), 0 0 0 1px rgba(155, 77, 255, 0.54), 0 0 16px rgba(200, 155, 60, 0.24); }
.yoz-epic-chest-calendar-card-status { color: #9ec9ec; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.yoz-epic-chest-calendar-card.is-active .yoz-epic-chest-calendar-card-status { color: #f0c761; }
.yoz-epic-chest-calendar-card strong { margin: 6px 0 3px; color: #f4f7fb; font-size: 12px; line-height: 1.2; }
.yoz-epic-chest-calendar-card small, .yoz-epic-chest-calendar-card time { color: rgba(215, 225, 239, 0.7); font-size: 10px; line-height: 1.35; }
.yoz-epic-chest-calendar-card-countdown { display: block; margin-top: 4px; color: #f1d58d; font-size: 11px; font-weight: 700; line-height: 1.35; }
.yoz-epic-chest-calendar-card time { margin-top: auto; }
.yoz-epic-chest-calendar-empty, .yoz-epic-chest-calendar-unavailable { margin: 0; padding: 11px; border: 1px solid rgba(91, 136, 174, 0.3); border-radius: 5px; color: rgba(215, 225, 239, 0.76); font-size: 11px; }
.yoz-epic-chest-calendar-unavailable { margin-top: 9px; border-color: rgba(200, 155, 60, 0.42); color: #f1d58d; }

.yoz-epic-chest-threshold-events {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.yoz-epic-chest-threshold-event {
    position: relative;

    display: flex;
    align-items: flex-end;

    min-width: 0;
    min-height: 89px;
    padding: 12px;

    overflow: hidden;

    border: 1px solid rgba(91, 136, 174, 0.36);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(27, 63, 92, 0.22), rgba(3, 14, 25, 0.93)), #0a1d2d;
    box-shadow: inset 0 0 18px rgba(1, 7, 14, 0.62);
    color: #f4f7fb;
    cursor: pointer;
    text-align: left;

    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.yoz-epic-chest-threshold-event::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.78;

    background: radial-gradient(circle at 78% 20%, rgba(84, 150, 193, 0.28), transparent 31%), linear-gradient(135deg, transparent 42%, rgba(151, 79, 255, 0.14));
}

.yoz-epic-chest-threshold-event.has-image {
    background-image: linear-gradient(180deg, rgba(27, 63, 92, 0.10), rgba(3, 14, 25, 0.82)), var(--epic-card-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.yoz-epic-chest-threshold-event:hover {
    border-color: rgba(231, 212, 163, 0.72);
    transform: translateY(-1px);
}

.yoz-epic-chest-threshold-event[aria-pressed="true"] {
    border-color: #efc85e;
    box-shadow: inset 0 0 20px rgba(1, 7, 14, 0.54), 0 0 0 1px rgba(239, 200, 94, 0.54), 0 0 16px rgba(200, 155, 60, 0.22);
}

.yoz-epic-chest-threshold-event-title,
.yoz-epic-chest-threshold-event-marker {
    position: relative;
    z-index: 1;
}

.yoz-epic-chest-threshold-event-title {
    color: #f3f6fa;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.yoz-epic-chest-threshold-event-marker {
    position: absolute;
    top: 10px;
    left: 10px;

    width: 18px;
    height: 18px;

    border: 1px solid rgba(176, 205, 231, 0.62);
    border-radius: 50%;
    background: rgba(4, 17, 29, 0.54);
}

.yoz-epic-chest-threshold-event[aria-pressed="true"] .yoz-epic-chest-threshold-event-marker {
    border-color: #f0c761;
    background: rgba(202, 155, 60, 0.22);
    box-shadow: 0 0 8px rgba(240, 199, 97, 0.46);
}

.yoz-epic-chest-threshold-event:focus-visible,
.yoz-epic-chest-threshold-monster:focus-visible {
    outline: 2px solid #9b4dff;
    outline-offset: 3px;
}

.yoz-epic-chest-threshold-monsters {
    margin-top: 12px;
}

.yoz-epic-chest-threshold-selection-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 1fr);
    gap: 12px;
    align-items: stretch;
}

.yoz-epic-chest-threshold-monster-picker,
.yoz-epic-chest-threshold-card {
    border: 1px solid rgba(91, 136, 174, 0.30);
    border-radius: 6px;
    background: rgba(7, 25, 40, 0.78);
    box-shadow: inset 0 0 22px rgba(1, 7, 14, 0.42);
}

.yoz-epic-chest-threshold-monster-picker {
    padding: 12px;
}

.yoz-epic-chest-threshold-monsters h3 {
    margin-bottom: 10px;
    font-size: 13px;
}

.yoz-epic-chest-threshold-monster-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.yoz-epic-chest-threshold-monster {
    display: flex;
    align-items: flex-end;

    min-width: 0;
    min-height: 101px;
    padding: 11px;

    border: 1px solid rgba(91, 136, 174, 0.36);
    border-radius: 5px;
    background: radial-gradient(circle at 72% 25%, rgba(113, 139, 83, 0.24), transparent 34%), linear-gradient(180deg, rgba(62, 82, 98, 0.30), rgba(5, 17, 28, 0.92));
    box-shadow: inset 0 0 16px rgba(1, 7, 14, 0.52);
    color: #f4f7fb;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    text-align: left;

    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.yoz-epic-chest-threshold-monster.has-image {
    background-image: linear-gradient(180deg, rgba(5, 17, 28, 0.08), rgba(5, 17, 28, 0.92)), var(--epic-card-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.yoz-epic-chest-threshold-monster:hover {
    border-color: rgba(231, 212, 163, 0.72);
    transform: translateY(-1px);
}

.yoz-epic-chest-threshold-monster[aria-pressed="true"] {
    border-color: #efc85e;
    box-shadow: inset 0 0 16px rgba(1, 7, 14, 0.42), 0 0 0 1px rgba(239, 200, 94, 0.50), 0 0 14px rgba(200, 155, 60, 0.20);
}

.yoz-epic-chest-threshold-monster-cards {
    min-width: 0;
}

.yoz-epic-chest-threshold-card {
    min-height: 175px;

    overflow: hidden;

    border-color: rgba(200, 155, 60, 0.38);
    background: radial-gradient(circle at 90% 30%, rgba(110, 77, 151, 0.22), transparent 38%), linear-gradient(135deg, rgba(22, 45, 67, 0.96), rgba(5, 18, 30, 0.92));
}

.yoz-epic-chest-threshold-card.has-image {
    background-image: linear-gradient(90deg, rgba(22, 45, 67, 0.98) 0%, rgba(5, 18, 30, 0.92) 55%, rgba(5, 18, 30, 0.22) 100%), var(--epic-card-image);
    background-position: center, right center;
    background-repeat: no-repeat;
    background-size: cover;
}

.yoz-epic-chest-threshold-card header {
    padding: 15px 17px 10px;
}

.yoz-epic-chest-threshold-card header p {
    margin: 0 0 4px;

    color: rgba(231, 212, 163, 0.78);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.yoz-epic-chest-threshold-card h2 {
    color: #f1c865;
    font-size: 21px;
    line-height: 1.15;
}

.yoz-epic-chest-threshold-card dl {
    display: grid;
    margin: 0;
    padding: 0 17px 14px;
}

.yoz-epic-chest-threshold-card dl > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: baseline;
    min-width: 0;
    padding: 7px 0;

    border-top: 1px solid rgba(172, 192, 217, 0.13);
}

.yoz-epic-chest-threshold-card dt {
    color: rgba(215, 225, 239, 0.68);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.yoz-epic-chest-threshold-card dd {
    margin: 0;

    color: #f3e5be;
    font-family: "Cinzel", serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-align: right;
}

.yoz-epic-chest-threshold-calculator,
.yoz-epic-chest-threshold-results {
    margin-top: 14px;
    padding: 14px;

    border: 1px solid rgba(91, 136, 174, 0.30);
    border-radius: 6px;
    background: rgba(7, 25, 40, 0.78);
    box-shadow: inset 0 0 22px rgba(1, 7, 14, 0.42);
}

.yoz-epic-chest-threshold-calculator h2,
.yoz-epic-chest-threshold-results h2 {
    margin: 0 0 10px;

    color: #f0c761;
    font-family: "Cinzel", serif;
    font-size: 16px;
    font-weight: 700;
}

.yoz-epic-chest-threshold-calculator label,
.yoz-epic-chest-threshold-calculator p {
    color: rgba(215, 225, 239, 0.74);
    font-size: 11px;
}

.yoz-epic-chest-threshold-calculator-controls {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(220px, 1fr);
    gap: 14px;
    margin-top: 6px;
}

.yoz-epic-chest-threshold-calculator input {
    min-width: 0;
    min-height: 40px;
    padding: 8px 12px;

    border: 1px solid rgba(91, 136, 174, 0.52);
    border-radius: 5px;
    background: rgba(10, 32, 51, 0.96);
    color: #f4f7fb;
    font-weight: 700;
}

.yoz-epic-chest-threshold-calculator button {
    min-height: 40px;

    border: 1px solid #f0c761;
    border-radius: 6px;
    background: linear-gradient(180deg, #f4ce6a, #c88d2d);
    color: #251806;
    cursor: pointer;
    font-weight: 800;
}

.yoz-epic-chest-threshold-calculator-error {
    margin-bottom: 0;
    color: #ff9b9b !important;
}

.yoz-epic-chest-threshold-kpis,
.yoz-epic-chest-threshold-neighbors {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.yoz-epic-chest-threshold-kpis article,
.yoz-epic-chest-threshold-neighbors article {
    min-width: 0;
    padding: 13px;

    border: 1px solid rgba(91, 136, 174, 0.36);
    border-radius: 6px;
    background: rgba(10, 31, 49, 0.72);
}

.yoz-epic-chest-threshold-kpis span,
.yoz-epic-chest-threshold-kpis small {
    display: block;

    color: rgba(215, 225, 239, 0.70);
    font-size: 10px;
}

.yoz-epic-chest-threshold-kpis strong {
    display: block;
    margin: 6px 0 3px;

    color: #f1c865;
    font-family: "Cinzel", serif;
    font-size: 18px;
    line-height: 1.15;
}

.yoz-epic-chest-threshold-progress::before {
    content: "";

    float: right;

    width: 43px;
    height: 43px;
    margin-left: 8px;

    border-radius: 50%;
    background: conic-gradient(#f0c761 var(--epic-progress), rgba(91, 136, 174, 0.24) 0);
    mask: radial-gradient(transparent 56%, #000 58%);
}

.yoz-epic-chest-threshold-neighbors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
}

.yoz-epic-chest-threshold-neighbors h3 {
    margin: 0 0 8px;

    color: #f0c761;
    font-family: "Cinzel", serif;
    font-size: 12px;
}

.yoz-epic-chest-threshold-neighbors table {
    width: 100%;

    border-collapse: collapse;
    color: rgba(231, 240, 249, 0.88);
    font-size: 10px;
}

.yoz-epic-chest-threshold-neighbors th,
.yoz-epic-chest-threshold-neighbors td {
    padding: 5px;

    border-top: 1px solid rgba(91, 136, 174, 0.20);
    text-align: right;
}

.yoz-epic-chest-threshold-neighbors th:first-child,
.yoz-epic-chest-threshold-neighbors td:first-child {
    text-align: left;
}

.yoz-epic-chest-threshold-neighbors .is-reference {
    background: rgba(200, 141, 45, 0.34);
    color: #fff4d2;
}

@media (max-width: 1100px) {
    .yoz-epic-chest-calendar-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .yoz-epic-chest-threshold-events {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .yoz-epic-chest-threshold-selection-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .yoz-epic-chest-calendar-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .yoz-epic-chest-threshold {
        margin: 14px;
        padding: 14px;
    }

    .yoz-epic-chest-threshold-events {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yoz-epic-chest-threshold-calculator-controls,
    .yoz-epic-chest-threshold-kpis,
    .yoz-epic-chest-threshold-neighbors {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .yoz-epic-chest-calendar-tabs,
    .yoz-epic-chest-calendar-cards,
    .yoz-epic-chest-threshold-events,
    .yoz-epic-chest-threshold-monster-grid,
    .yoz-epic-chest-threshold-calculator-controls,
    .yoz-epic-chest-threshold-kpis,
    .yoz-epic-chest-threshold-neighbors {
        grid-template-columns: minmax(0, 1fr);
    }

    .yoz-epic-chest-threshold-card dl > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .yoz-epic-chest-threshold-card dd {
        text-align: left;
    }
}
