/* ── LOGROS STORE ─────────────────────────────────────────────────────────── */
.ryou-logros-wrap { font-family: 'Amaranth', sans-serif; }

.ryou-logros-filters {
    display: flex; gap: .7rem; align-items: center; flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: .7rem; background: rgba(0,0,0,.05); border-radius: 6px;
}
.ryou-logros-filters select,
.ryou-logros-filters input[type=text] {
    font-family: 'Amaranth', sans-serif; font-size: 14px;
    padding: .3rem .6rem; border: 1px solid var(--ryou-border);
    border-radius: 4px; background: #fff; color: #222;
}
.ryou-logros-filters label { font-size: 14px; display: flex; align-items: center; gap: .3rem; }

.ryou-logros-grupo { margin-bottom: 2.5rem; }
.ryou-logros-grupo-title {
    font-family: 'Cinzel', serif; font-size: 16px; font-weight: 700;
    border-bottom: 2px solid; padding-bottom: .4rem; margin-bottom: 1rem;
}

/* ── LOGRO CARD (thumbnail) ─────────────────────────────────────────────────── */
.ryou-logros-grid {
    display: flex; flex-direction: column; gap: .8rem;
}
/* ── Horizontal card ─────────────────────────────────────────────────────── */
.ryou-logro-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    background: var(--ryou-parch-lt);
    border: 2px solid var(--logro-color, #888);
    border-left: 6px solid var(--logro-color, #888);
    border-radius: 8px; cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    overflow: hidden; position: relative;
    font-family: 'Amaranth', sans-serif;
}
.ryou-logro-card:hover { transform: translateX(3px); box-shadow: 2px 4px 12px rgba(0,0,0,.15); }
.ryou-logro-card--claimed { border-color: #2a7a2a; }
.ryou-logro-card-img {
    width: 200px; min-height: 120px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.06); overflow: hidden; flex-shrink: 0;
    position: relative; padding: 0 20px; box-sizing: border-box;
}
.ryou-logro-card-img img { width: 100%; height: 100%; object-fit: contain; }
.ryou-logro-no-img { font-size: 3rem; }
.ryou-logro-claimed-badge {
    position: absolute; top: 4px; right: 4px;
    background: #2a7a2a; color: #fff; border-radius: 50%;
    width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}
.ryou-logro-card-body {
    padding: .7rem 1rem; display: flex; flex-direction: column; gap: .3rem;
}
.ryou-logro-ref { font-size: 12px; color: #888; font-style: italic; }
.ryou-logro-name { font-size: 15px; font-weight: 700; color: #1a1208; line-height: 1.3; }
.ryou-logro-date { font-size: 11px; color: #888; }
.ryou-logro-cat-badge {
    display: inline-block; border-radius: 20px; padding: .15rem .6rem;
    font-size: 11px; font-weight: 700; color: #fff; width: fit-content;
}
.ryou-logro-card-desc {
    font-size: 13px; color: #3a2a10; line-height: 1.5; margin: .2rem 0;
}
.ryou-logro-card-reqs {
    font-size: 12px; color: #4a3820;
    background: rgba(0,0,0,.04); border-radius: 4px; padding: .3rem .5rem;
}
.ryou-logro-card-req-text { margin-top: .2rem; line-height: 1.4; }
.ryou-logro-card-rewards {
    font-size: 12px; color: #2a5a2a;
}
.ryou-logro-card-rewards ul { margin: .2rem 0 0 1rem; padding: 0; }
.ryou-logro-card-rewards li { margin-bottom: .1rem; display: flex; align-items: center; gap: .3rem; }
.ryou-logro-card-ganadores {
    font-size: 12px; margin-top: .2rem;
}
.ryou-logro-card-ganadores summary { cursor: pointer; color: #4a3820; font-weight: 700; }
.ryou-logro-card-ganadores ul { margin: .3rem 0 0 1rem; padding: 0; }
.ryou-logro-card-ganadores li { margin-bottom: .15rem; }
.ryou-logro-claimed-msg { font-size: 12px; font-weight: 700; color: #2a7a2a; }

/* ── LOGRO MODAL ────────────────────────────────────────────────────────────── */
#ryou-logro-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.65);
    z-index: 99999; display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
#ryou-logro-modal-box {
    background: var(--ryou-parch-lt, #faf5e4);
    border-radius: 10px; max-width: 600px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    padding: 1.5rem; position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
#ryou-logro-modal-close {
    position: absolute; top: .6rem; right: .6rem;
    background: rgba(0,0,0,.15); border: none; border-radius: 50%;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; cursor: pointer; color: #333; font-weight: 700;
    transition: background .15s;
}
#ryou-logro-modal-close:hover { background: rgba(0,0,0,.3); color: #fff; }

/* ── LOGRO DETAIL ───────────────────────────────────────────────────────────── */
.ryou-logro-detail { font-family: 'Amaranth', sans-serif; font-size: 14px; color: #1a1208; }
.ryou-logro-detail-header {
    display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem;
    padding-bottom: 1rem; border-bottom: 2px solid var(--logro-color, #888);
}
.ryou-logro-detail-img { width: 120px; height: 120px; object-fit: contain; border-radius: 6px; flex-shrink: 0; background: rgba(0,0,0,.05); padding: 8px; }
.ryou-logro-detail-title { display: flex; flex-direction: column; gap: .3rem; }
.ryou-logro-detail-title h3 { font-family: 'Cinzel', serif; font-size: 18px; margin: 0; color: #1a1208; }
.ryou-logro-desc { margin-bottom: 1rem; line-height: 1.6; color: #3a2a10; }
.ryou-logro-section { margin-bottom:2rem; }
.ryou-logro-section h4 { font-size:14px; font-weight:700; margin:0 0 1px 0; padding:0; line-height:1.2; color:#fff; text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000; }
.ryou-logro-req-texto { background: rgba(0,0,0,.05); border-radius: 4px; padding: .6rem; line-height: 1.6; }
.ryou-logro-req-auto { margin: .4rem 0 0 1rem; padding: 0; }
.ryou-logro-req-auto li { margin-bottom: .2rem; }
.ryou-logro-rewards { margin: .4rem 0 0 1rem; padding: 0; }
.ryou-logro-rewards li { margin-bottom: .3rem; display: flex; align-items: center; gap: .4rem; }
.ryou-logro-actions { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.ryou-logro-claimed-msg { font-weight: 700; color: #2a7a2a; font-size: 14px; }
.ryou-logro-req-fail { color: #a00; font-size: 13px; margin: .3rem 0 0; }
.ryou-logro-solicitud-form { display: flex; flex-direction: column; gap: .5rem; }
.ryou-logro-solicitud-nota {
    width: 100%; min-height: 70px; padding: .4rem;
    font-family: 'Amaranth', sans-serif; font-size: 13px;
    border: 1px solid var(--ryou-border); border-radius: 4px; resize: vertical;
}
.ryou-logro-ganadores {
    margin-top: 1rem; border-top: 1px dashed var(--ryou-border); padding-top: .6rem;
}
.ryou-logro-ganadores summary { cursor: pointer; font-weight: 700; font-size: 14px; color: #4a3820; }
.ryou-logro-ganadores ul { margin: .4rem 0 0 1rem; padding: 0; }
.ryou-logro-ganadores li { font-size: 13px; margin-bottom: .2rem; }
.ryou-logro-ganadores a { color: var(--ryou-gold); }

/* ── FICHA NINJA: logros section ────────────────────────────────────────────── */
.ryou-logro-ficha-grupo { margin-bottom: 1.2rem; }
.ryou-logro-ficha-grupo h4 { font-size: 14px; font-weight: 700; margin: 0 0 .5rem; }
.ryou-logro-ficha-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .6rem;
}
.ryou-logro-ficha-item { cursor: pointer; }
.ryou-logro-ficha-item .ryou-logro-delete-btn { width: 100%; margin-top: .3rem; font-size: 11px; padding: .15rem; }

/* ── Ninja card public: logros tab ──────────────────────────────────────────── */
#nf-tab-logros .ryou-logro-ficha-grid {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: .4rem;
}
#nf-tab-logros .ryou-logro-ficha-item {
    /* Override the horizontal card layout for the ficha tab */
    display: block !important;
    grid-template-columns: unset !important;
    border-left-width: 3px;
}
#nf-tab-logros .ryou-logro-ficha-item .ryou-logro-card-img {
    width: 100% !important;
    min-height: 44px !important;
    height: 44px;
    padding: 2px !important;
}
#nf-tab-logros .ryou-logro-ficha-item .ryou-logro-card-img img {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
}
#nf-tab-logros .ryou-logro-ficha-item .ryou-logro-card-body {
    padding: .2rem .3rem !important;
}
#nf-tab-logros .ryou-logro-ficha-item .ryou-logro-name {
    font-size: 10px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
#nf-tab-logros .ryou-logro-ficha-item .ryou-logro-date { display: none; }

/* ── Requisitos/Recompensas box ─────────────────────────────────────────────── */
.ryou-logro-req-box { background:rgba(255,255,255,.7); border:1px solid rgba(0,0,0,.12); border-radius:6px; padding:.3rem .7rem; display:flex; flex-direction:column; gap:.1rem; margin-top:0; }
.ryou-logro-req-item {
    font-size: 14px; font-family: 'Amaranth', sans-serif;
    color: #1a1208; padding: .1rem 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.ryou-logro-req-item:last-child { border-bottom: none; }
.ryou-logro-req-texto {
    font-size: 14px; font-family: 'Amaranth', sans-serif;
    color: #1a1208; line-height: 1.5;
}
.ryou-logro-req-texto ul, .ryou-logro-req-texto ol { margin: .3rem 0 .3rem 1.2rem; padding: 0; }
.ryou-logro-req-texto li { margin-bottom: .2rem; }
