/* Faceclaim Explorer | image-led Roleplayverse gallery (scoped to this page). */
.rv-faceclaim-page {
    --rv-fc-red: #ce2842;
    --rv-fc-red-dark: #9f1830;
    --rv-fc-deep: #7f1023;
    --rv-fc-ink: #24252c;
    --rv-fc-muted: #51545d;
    --rv-fc-border: #e7d7da;
    --rv-fc-soft: #fff3f5;
    --rv-fc-radius: 12px;
    max-width: 1320px;
    min-width: 0;
    color: var(--rv-fc-ink);
}
.rv-faceclaim-page *,
.rv-faceclaim-page *::before,
.rv-faceclaim-page *::after { box-sizing: border-box; }
.rv-faceclaim-page a { text-decoration: none; }
.rv-faceclaim-page a:focus-visible,
.rv-faceclaim-page button:focus-visible,
.rv-faceclaim-page input:focus-visible { outline: 3px solid rgba(206, 40, 66, .6); outline-offset: 3px; }

/* Only the hero receives a gradient; gallery surfaces stay clean white. */
.rv-fc-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 164px;
    padding: 29px 34px;
    margin-bottom: 20px;
    background: linear-gradient(115deg, #d42d49 0%, #b31f3b 55%, #8c1428 100%);
    border: 1px solid #b42039;
    border-radius: var(--rv-fc-radius);
    overflow: hidden;
}
.rv-fc-hero-content { min-width: 0; max-width: 720px; }
.rv-fc-eyebrow {
    color: #ffe5ea;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    margin-bottom: 9px;
}
.rv-fc-eyebrow i { font-size: 1.1rem; }
.rv-faceclaim-page .rv-fc-hero h1 {
    margin: 0 0 7px;
    font-size: clamp(1.75rem, 3.4vw, 2.35rem);
    line-height: 1.17;
    font-weight: 600;
    letter-spacing: -.025em;
    color: #fff !important;
}
.rv-faceclaim-page .rv-fc-hero p { margin: 0; max-width: 630px; color: #fff !important; font-size: .9rem; line-height: 1.6; }
.rv-fc-hero-aside {
    flex: 0 0 auto;
    min-width: 160px;
    padding: 15px 19px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 9px;
    text-align: right;
    color: #fff;
}
.rv-fc-hero-number { display: block; font-size: 1.9rem; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.rv-fc-hero-caption { display: block; margin-top: 5px; font-size: .66rem; line-height: 1.4; font-weight: 600; letter-spacing: .1em; color: #fff; }

.rv-fc-gallery-section { background: #fff; border: 1px solid var(--rv-fc-border); border-radius: var(--rv-fc-radius); padding: 25px; margin-bottom: 36px; }
.rv-fc-toolbar { display: flex; gap: 16px; justify-content: space-between; align-items: end; flex-wrap: wrap; margin-bottom: 18px; }
.rv-fc-toolbar-heading { flex: 1 1 300px; min-width: 0; }
.rv-faceclaim-page .rv-fc-toolbar-heading h2 { margin: 0 0 5px; font-size: 1.25rem; font-weight: 600; color: var(--rv-fc-ink); }
.rv-faceclaim-page .rv-fc-toolbar-heading p { margin: 0; font-size: .82rem; line-height: 1.6; color: var(--rv-fc-muted); }
.rv-fc-search { display: flex; align-items: center; gap: 8px; flex: 1 1 410px; max-width: 550px; min-width: 0; }
.rv-fc-search-input { position: relative; flex: 1 1 auto; min-width: 0; }
.rv-fc-search-input > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--rv-fc-red-dark); font-size: 1.1rem; pointer-events: none; }
.rv-faceclaim-page .rv-fc-search-input input.form-control { width: 100%; min-height: 44px; padding: 9px 12px 9px 40px; border: 1px solid #cdbec2; border-radius: 8px; background: #fff; color: var(--rv-fc-ink); font-size: .82rem; box-shadow: none; }
.rv-faceclaim-page .rv-fc-search-input input::placeholder { color: #65636a; opacity: 1; }
.rv-fc-search-submit, .rv-fc-reset, .rv-fc-empty-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 19px; border: 1px solid var(--rv-fc-red); border-radius: 8px; font-family: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.rv-fc-search-submit { flex: 0 0 auto; color: #fff; background: var(--rv-fc-red); }
.rv-fc-search-submit:hover, .rv-fc-search-submit:focus-visible { color: #fff; background: var(--rv-fc-red-dark); border-color: var(--rv-fc-red-dark); }
.rv-fc-reset { flex: 0 0 auto; width: 44px; padding: 0; background: #fff; color: var(--rv-fc-red-dark) !important; }
.rv-fc-reset:hover { background: var(--rv-fc-soft); }
.rv-fc-reset i { font-size: 1.22rem; }
.rv-fc-results { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 17px; padding-top: 15px; border-top: 1px solid var(--rv-fc-border); font-size: .84rem; color: var(--rv-fc-muted); }
.rv-fc-results strong { color: var(--rv-fc-ink); font-weight: 600; overflow-wrap: anywhere; }
.rv-fc-results-count { border: 1px solid #efced4; border-radius: 99px; padding: 5px 11px; color: var(--rv-fc-red-dark); font-weight: 600; font-size: .78rem; white-space: nowrap; }

/* Full-bleed preview images: no padding, colored mats or frame behind photos. */
.rv-fc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.rv-fc-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--rv-fc-border); border-radius: 10px; transition: border-color .16s ease, transform .16s ease; }
.rv-fc-card:hover { border-color: #ca6375; transform: translateY(-2px); }
.rv-fc-image-link { display: block; position: relative; width: 100%; aspect-ratio: 4/5; overflow: hidden; background: #f4f0f1; }
.rv-fc-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .24s ease; }
.rv-fc-card:hover .rv-fc-image { transform: scale(1.035); }
.rv-fc-view-image { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 6px 9px; border-radius: 7px; background: #b51b38; color: #fff !important; font-size: .73rem; font-weight: 600; line-height: 1.2; opacity: 0; transition: opacity .16s ease; }
.rv-fc-view-image i { font-size: 1rem; }
.rv-fc-card:hover .rv-fc-view-image,
.rv-fc-image-link:focus-visible .rv-fc-view-image { opacity: 1; }
.rv-fc-card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 15px 15px 13px; }
.rv-fc-overline { font-size: .64rem; font-weight: 600; letter-spacing: .105em; color: #8f2840; line-height: 1.5; }
.rv-faceclaim-page .rv-fc-card h3 { margin: 5px 0 10px; color: var(--rv-fc-ink); font-size: 1rem; font-weight: 600; line-height: 1.4; min-height: 2.8em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.rv-fc-origin { display: flex; gap: 6px; min-width: 0; align-items: flex-start; color: var(--rv-fc-muted); font-size: .79rem; line-height: 1.45; }
.rv-fc-origin i { color: #a93851; flex: 0 0 auto; margin-top: 1px; font-size: .96rem; }
.rv-fc-origin span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.rv-fc-used-by { margin-top: 15px; padding-top: 12px; border-top: 1px solid #eee1e4; min-width: 0; }
.rv-faceclaim-page .rv-fc-character-link { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 5px; color: var(--rv-fc-red-dark) !important; font-size: .86rem; line-height: 1.45; font-weight: 600; }
.rv-fc-character-link span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-fc-character-link i { flex: 0 0 auto; font-size: 1.2rem; }
.rv-faceclaim-page .rv-fc-character-link:hover { color: var(--rv-fc-deep) !important; }
.rv-fc-nickname { margin-top: 2px; font-size: .74rem; line-height: 1.45; color: var(--rv-fc-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rv-fc-card-extra { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rv-faceclaim-page .rv-fc-source-link { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; line-height: 1.4; font-weight: 500; color: var(--rv-fc-red-dark) !important; }
.rv-faceclaim-page .rv-fc-source-link:hover { text-decoration: underline; }
.rv-fc-extra-details { min-width: 0; }
.rv-fc-extra-details summary { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; line-height: 1.45; color: var(--rv-fc-muted); cursor: pointer; list-style: none; }
.rv-fc-extra-details summary::-webkit-details-marker { display: none; }
.rv-fc-extra-details[open] { flex-basis: 100%; border-top: 1px solid #eee1e4; padding-top: 9px; }
.rv-fc-extra-details p { margin: 7px 0 0; color: var(--rv-fc-muted); font-size: .74rem; line-height: 1.5; overflow-wrap: anywhere; }

.rv-fc-empty { text-align: center; padding: 53px 16px; }
.rv-fc-empty > i { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 50%; background: var(--rv-fc-soft); color: var(--rv-fc-red); font-size: 2rem; }
.rv-faceclaim-page .rv-fc-empty h3 { margin: 14px 0 8px; color: var(--rv-fc-ink); font-size: 1.2rem; }
.rv-faceclaim-page .rv-fc-empty p { margin: 0 0 18px; color: var(--rv-fc-muted); }
.rv-faceclaim-page .rv-fc-empty-link { color: var(--rv-fc-red-dark) !important; background: #fff; }
.rv-faceclaim-page .rv-fc-empty-link:hover { background: var(--rv-fc-soft); }
.rv-fc-pagination { margin-top: 26px; }
.rv-fc-pagination nav .d-sm-flex { align-items: center !important; flex-wrap: wrap; gap: 18px; }
.rv-fc-pagination nav p { margin: 0 !important; line-height: 1.5; color: var(--rv-fc-muted) !important; }
.rv-fc-pagination .pagination { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 0; }
.rv-fc-pagination .page-item:not(:first-child) .page-link { margin-left: 0; }
.rv-fc-pagination .page-link { min-width: 38px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--rv-fc-border); border-radius: 7px; color: var(--rv-fc-ink); }
.rv-fc-pagination .page-item.active .page-link { background: var(--rv-fc-red); border-color: var(--rv-fc-red); color: #fff; }
.rv-fc-pagination .page-item:not(.active) .page-link:hover { background: var(--rv-fc-soft); color: var(--rv-fc-red-dark); border-color: #e8a9b5; }

/* Native dialog: show the full original image without cropping it. */
.rv-faceclaim-page .rv-fc-viewer { width: min(94vw, 1000px); max-width: 1000px; max-height: min(91vh, 800px); max-height: min(91dvh, 800px); padding: 0; border: 1px solid #e0c9cf; border-radius: 12px; color: var(--rv-fc-ink); background: #fff; overflow: hidden; }
.rv-faceclaim-page .rv-fc-viewer::backdrop { background: rgba(22, 18, 26, .82); }
.rv-fc-viewer-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .75fr); max-height: min(91vh, 800px); max-height: min(91dvh, 800px); }
.rv-fc-viewer-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 450px; background: #1b1a1e; overflow: hidden; }
.rv-fc-viewer-visual img { display: block; max-height: min(86vh, 750px); max-height: min(86dvh, 750px); max-width: 100%; width: auto; height: auto; object-fit: contain; }
.rv-fc-viewer-close, .rv-fc-viewer-nav { appearance: none; border: 1px solid rgba(255,255,255,.35); background: #2c252a; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rv-fc-viewer-close { position: absolute; z-index: 2; top: 13px; right: 13px; border-radius: 7px; width: 37px; height: 37px; }
.rv-fc-viewer-close i { font-size: 1.3rem; }
.rv-fc-viewer-nav { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); width: 36px; height: 46px; border-radius: 7px; }
.rv-fc-viewer-nav i { font-size: 1.6rem; }
.rv-fc-viewer-prev { left: 10px; }
.rv-fc-viewer-next { right: 10px; }
.rv-fc-viewer-nav[hidden] { display: none; }
.rv-fc-viewer-close:hover, .rv-fc-viewer-nav:hover { background: #ac1e38; }
.rv-fc-viewer-sidebar { padding: 25px 23px; overflow: auto; min-width: 0; }
.rv-faceclaim-page .rv-fc-viewer-sidebar h2 { margin: 6px 0 9px; font-size: 1.3rem; line-height: 1.4; font-weight: 600; color: var(--rv-fc-ink); overflow-wrap: anywhere; }
.rv-fc-viewer-origin { margin: 0 0 23px; color: var(--rv-fc-muted); line-height: 1.5; font-size: .88rem; overflow-wrap: anywhere; }
.rv-fc-viewer-used-label { display: block; }
.rv-fc-viewer-character { margin: 5px 0 0; color: var(--rv-fc-ink); font-size: .9rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.rv-fc-viewer-note, .rv-fc-viewer-description { color: var(--rv-fc-muted); margin: 16px 0 0; font-size: .82rem; line-height: 1.65; overflow-wrap: anywhere; }
.rv-fc-viewer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 22px; }
.rv-faceclaim-page .rv-fc-viewer-primary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 7px; background: var(--rv-fc-red); padding: 10px 15px; font-size: .83rem; line-height: 1.3; font-weight: 600; color: #fff !important; }
.rv-faceclaim-page .rv-fc-viewer-primary:hover { background: var(--rv-fc-red-dark); color: #fff !important; }
.rv-faceclaim-page #rv-fc-viewer-source-link { display: inline-flex; align-items: center; gap: 5px; font-size: .79rem; font-weight: 500; color: var(--rv-fc-red-dark) !important; }
.rv-faceclaim-page #rv-fc-viewer-source-link[hidden] { display: none; }
.rv-fc-viewer-counter { margin-top: 24px; color: var(--rv-fc-muted); font-size: .75rem; }

@media (min-width: 768px) and (max-width: 1199.98px) {
    .rv-fc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .rv-fc-hero { display: block; padding: 23px 21px; min-height: 0; }
    .rv-fc-hero-aside { display: none; }
    .rv-fc-hero-number { font-size: 1.45rem; }
    .rv-fc-hero-caption { font-size: .58rem; }
    .rv-fc-gallery-section { padding: 15px; }
    .rv-fc-search { max-width: none; flex-basis: 100%; }
    .rv-fc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .rv-fc-card-body { padding: 12px 11px; }
    .rv-faceclaim-page .rv-fc-card h3 { font-size: .88rem; }
    .rv-fc-origin { font-size: .73rem; }
    .rv-fc-view-image { top: 8px; right: 8px; opacity: 1; }
    .rv-fc-view-image span { display: none; }
    .rv-fc-used-by { margin-top: 12px; padding-top: 10px; }
    .rv-faceclaim-page .rv-fc-character-link { font-size: .78rem; }
    .rv-fc-nickname { font-size: .7rem; }
    .rv-fc-card-extra { gap: 5px; }
    .rv-fc-viewer-layout { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
    .rv-fc-viewer-visual { min-height: 0; height: min(54vh, 490px); height: min(54dvh, 490px); }
    .rv-fc-viewer-visual img { max-height: 100%; max-width: 100%; }
    .rv-fc-viewer-sidebar { max-height: min(36vh, 330px); max-height: min(36dvh, 330px); padding: 17px 19px; }
    .rv-fc-viewer-sidebar h2 { font-size: 1.08rem !important; }
    .rv-fc-viewer-origin { margin-bottom: 11px; }
    .rv-fc-viewer-links { margin-top: 12px; }
    .rv-fc-viewer-counter { margin-top: 15px; }
}
@media (max-width: 359.98px) {
    .rv-fc-hero { display: block; }
    .rv-fc-hero-aside { display: none; }
    .rv-fc-search { flex-wrap: wrap; }
    .rv-fc-search-input { flex-basis: 100%; }
    .rv-fc-search-submit { flex: 1; }
    .rv-fc-grid { grid-template-columns: 1fr; }
    .rv-fc-viewer-visual { height: min(45vh, 390px); height: min(45dvh, 390px); }
}
@media (hover: none) { .rv-fc-view-image { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .rv-fc-card, .rv-fc-image, .rv-fc-view-image { transition: none; }
    .rv-fc-card:hover, .rv-fc-card:hover .rv-fc-image { transform: none; }
}
