/* ── LIBRO BINGO ──────────────────────────────────────────────────────────── */
.ryou-bingo-wrap { font-family: 'Amaranth', sans-serif; }

/* Filters */
.ryou-bingo-filters {
    display: flex; gap: .7rem; flex-wrap: wrap; align-items: center;
    margin-bottom: 1.5rem;
    padding: .7rem; background: rgba(0,0,0,.05); border-radius: 6px;
}
.ryou-bingo-filters select,
.ryou-bingo-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;
}

/* Aldea section */
.ryou-bingo-aldea-section { margin-bottom: 2.5rem; }
.ryou-bingo-aldea-title {
    display: flex; align-items: center; gap: .6rem;
    font-family: 'Cinzel', serif; font-size: 1.5rem;
    color: #4a3820; margin: 0 0 1rem;
}

/* Grid */
.ryou-bingo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .9rem;
}

/* Card */
.ryou-bingo-card {
    background: var(--ryou-parch-lt, #faf5e4);
    border: 2px solid #8b1a1a;
    border-radius: 8px; cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    overflow: hidden; position: relative;
    font-family: 'Amaranth', sans-serif;
}
.ryou-bingo-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(139,26,26,.25); }
.ryou-bingo-card--cobrado { border-color: #2a7a2a; opacity: .8; }

.ryou-bingo-card-img {
    width: 100%; aspect-ratio: 3/4; max-height: 220px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.06); overflow: hidden; position: relative;
}
.ryou-bingo-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ryou-bingo-no-img { font-size: 4rem; }
.ryou-bingo-cobrado-badge {
    position: absolute; top: 6px; right: 6px;
    background: #2a7a2a; color: #fff; border-radius: 50%;
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
}

.ryou-bingo-card-body {
    padding: .6rem .8rem; display: flex; flex-direction: column; gap: .2rem;
    border-top: 2px solid #8b1a1a;
    background: linear-gradient(to bottom, #f5e8d0, #faf5e4);
}
.ryou-bingo-card--cobrado .ryou-bingo-card-body { border-top-color: #2a7a2a; }
.ryou-bingo-name { font-size: 14px; font-weight: 700; color: #1a1208; line-height: 1.2; }
.ryou-bingo-rango { font-size: 12px; color: #8b1a1a; font-weight: 600; }
.ryou-bingo-clasif { font-size: 12px; color: #555; }
.ryou-bingo-aldea-origen { font-size: 11px; color: #888; }
.ryou-bingo-reward-total {
    font-size: 13px; font-weight: 700; color: #8b1a1a;
    margin-top: .3rem; padding-top: .3rem;
    border-top: 1px dashed rgba(139,26,26,.3);
}
.ryou-bingo-cobros-count { font-size: 11px; color: #888; }

/* ── BINGO MODAL ────────────────────────────────────────────────────────────── */
#ryou-bingo-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.7);
    z-index: 99999; display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
#ryou-bingo-modal-box {
    background: var(--ryou-parch-lt, #faf5e4);
    border-radius: 10px; max-width: 560px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    padding: 1.5rem; position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    border: 2px solid #8b1a1a;
}
#ryou-bingo-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-bingo-modal-close:hover { background: #8b1a1a; color: #fff; }

/* Detail */
.ryou-bingo-detail { font-family: 'Amaranth', sans-serif; font-size: 14px; color: #1a1208; }
.ryou-bingo-detail-header {
    display: flex; gap: 1rem; align-items: flex-start;
    padding-bottom: 1rem; margin-bottom: 1rem;
    border-bottom: 2px solid #8b1a1a;
}
.ryou-bingo-detail-img {
    width: 110px; flex-shrink: 0; border-radius: 6px; object-fit: cover;
    border: 2px solid #8b1a1a;
}
.ryou-bingo-detail-info { display: flex; flex-direction: column; gap: .3rem; }
.ryou-bingo-detail-info h3 {
    font-family: 'Cinzel', serif; font-size: 20px; margin: 0; color: #1a1208;
}
.ryou-bingo-detail-badges { display: flex; flex-wrap: wrap; gap: .3rem; }
.ryou-bingo-badge {
    display: inline-block; background: #8b1a1a; color: #fff;
    border-radius: 20px; padding: .15rem .6rem; font-size: 11px; font-weight: 700;
}
.ryou-bingo-badge--aldea { background: #3a6b3a; }
.ryou-bingo-emisora { font-size: 13px; color: #555; margin-top: .2rem; }
.ryou-bingo-desc { line-height: 1.6; margin-bottom: 1rem; color: #3a2a10; }
.ryou-bingo-section { margin-bottom: 1rem; }
.ryou-bingo-section h4 {
    font-size: 14px; font-weight: 700; margin: 0 0 0; color: #fff;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
.ryou-bingo-reward-box {
    background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.12);
    border-radius: 6px; padding: .4rem .7rem;
    display: flex; flex-direction: column; gap: .15rem; margin-top: 0;
}
.ryou-bingo-reward-item {
    font-size: 14px; font-weight: 700; color: #8b1a1a;
    display: flex; align-items: center; gap: .4rem;
}
.ryou-bingo-cobros-list {
    margin-top: 1rem; border-top: 1px dashed rgba(0,0,0,.15); padding-top: .6rem;
    font-size: 13px;
}
.ryou-bingo-cobros-list summary { cursor: pointer; font-weight: 700; color: #4a3820; }
.ryou-bingo-cobros-list ul { margin: .3rem 0 0 1rem; padding: 0; }
.ryou-bingo-cobros-list li { margin-bottom: .2rem; }
.ryou-bingo-actions { margin-top: 1.2rem; }
.ryou-bingo-own-notice { color: #c07000; font-weight: 700; font-size: 14px; }
.ryou-bingo-cobro-form { display: flex; flex-direction: column; gap: .5rem; }
.ryou-bingo-nota {
    width: 100%; min-height: 60px; padding: .4rem;
    font-family: 'Amaranth', sans-serif; font-size: 13px;
    border: 1px solid var(--ryou-border); border-radius: 4px; resize: vertical;
}

/* Cobrado info on card */
.ryou-bingo-cobrado-info {
    font-size: 12px; color: #2a7a2a; font-weight: 600;
    margin-top: .4rem; padding-top: .4rem;
    border-top: 1px dashed rgba(42,122,42,.4);
    line-height: 1.4;
}
.ryou-bingo-cobrado-info small { font-weight: 400; color: #888; }
/* Cobrado cards: desaturate slightly but keep visible */
.ryou-bingo-card--cobrado {
    border-color: #2a7a2a;
    opacity: .85;
}
.ryou-bingo-card--cobrado .ryou-bingo-card-body {
    border-top-color: #2a7a2a;
}
.ryou-bingo-card--cobrado .ryou-bingo-reward-total {
    color: #888;
    text-decoration: line-through;
}
