/* recruit.css - 签约大厅（全屏Banner + 悬浮UI） */

.scene--recruit { overflow: hidden !important; }

/* ══════════ 全屏Banner底图 ══════════ */
.rcr-backdrop {
    position: fixed; inset: -20px; z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    animation: rcr-zoom-idle 20s ease-in-out infinite alternate;
}
.rcr-backdrop--switching {
    animation: rcr-zoom-switch 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes rcr-zoom-idle {
    0%   { transform: scale(1); }
    100% { transform: scale(1.06); }
}
@keyframes rcr-zoom-switch {
    0%   { transform: scale(1.12); opacity: 0.6; }
    40%  { opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.rcr-backdrop__overlay {
    position: fixed; inset: 0; z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(10,14,23,0.5) 0%,
            rgba(10,14,23,0) 15%,
            rgba(10,14,23,0) 45%,
            rgba(10,14,23,0.6) 60%,
            rgba(10,14,23,0.88) 80%,
            rgba(10,14,23,0.95) 100%),
        linear-gradient(90deg, rgba(10,14,23,0.55) 0%, rgba(10,14,23,0) 20%);
    pointer-events: none;
}

.rcr-layout {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    height: 100vh;
}

/* ══════════ 顶栏（悬浮） ══════════ */
.rcr-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px;
    background: linear-gradient(180deg, rgba(10,14,23,0.6) 0%, transparent 100%);
    flex-shrink: 0;
}
.rcr-topbar__left { display: flex; align-items: center; gap: 12px; }
.rcr-topbar__left .btn--back {
    font-size: 15px; font-weight: 800;
    color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.rcr-topbar__res {
    display: flex; gap: 8px; font-size: 13px;
}
.rcr-res {
    display: flex; align-items: center; gap: 4px;
    background: rgba(10,14,23,0.5);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    padding: 5px 12px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
}
.rcr-res strong { color: #fff; }
.rcr-res__icon { font-size: 14px; }

/* ══════════ 左侧池子切换 ══════════ */
.rcr-sidebar {
    position: absolute;
    top: 70px; left: 16px; z-index: 10;
    display: flex; flex-direction: column;
    gap: 6px; width: 130px;
}

.rcr-pool {
    display: flex; flex-direction: column; gap: 3px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(10,14,23,0.5);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.6);
    cursor: pointer; font-family: var(--font-main);
    font-size: 12px; text-align: left;
    transition: all 0.2s;
}
.rcr-pool:hover {
    background: rgba(78,168,222,0.12);
    border-color: rgba(78,168,222,0.3);
    color: #fff;
}
.rcr-pool--active {
    border-color: rgba(255,255,255,0.4);
    background: rgba(78,168,222,0.15);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--color-accent), 0 2px 8px rgba(0,0,0,0.3);
}

.rcr-pool__tag {
    display: inline-block; width: fit-content;
    font-size: 10px; font-weight: 800;
    color: var(--tag-color, #4ea8de);
    border: 1px solid var(--tag-color, #4ea8de);
    padding: 1px 6px; border-radius: 3px;
    letter-spacing: 0.5px;
}
.rcr-pool--active .rcr-pool__tag {
    background: var(--tag-color, #4ea8de);
    color: #fff;
}

.rcr-pool__name { font-weight: 700; font-size: 13px; line-height: 1.3; }

.rcr-pool--wish {
    margin-top: 8px;
    border: 1px dashed rgba(240,100,100,0.25);
    background: rgba(240,100,100,0.05);
    text-align: center; font-size: 12px;
    flex-direction: row; justify-content: center;
}
.rcr-pool--wish:hover {
    background: rgba(240,100,100,0.12);
    border-color: rgba(240,100,100,0.4);
    color: #fff;
}

/* ══════════ 中央文字信息（偏下方，避开底图焦点） ══════════ */
.rcr-center {
    flex: 1; display: flex;
    align-items: flex-end; justify-content: center;
    pointer-events: none;
    padding-bottom: 12px;
}

.rcr-hero-text {
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(10,14,23,0.6) 0%, transparent 70%);
    padding: 24px 48px;
    border-radius: 16px;
}
.rcr-hero-text__title {
    font-size: 44px; font-weight: 900;
    color: #fff;
    letter-spacing: 6px;
    line-height: 1.1;
    margin-bottom: 6px;
    text-shadow:
        0 2px 12px rgba(0,0,0,0.9),
        0 0 40px rgba(0,0,0,0.5),
        0 0 80px rgba(0,0,0,0.3);
}
.rcr-hero-text__sub {
    font-size: 16px; font-weight: 700;
    color: rgba(255,255,255,0.8);
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.rcr-hero-text__rates {
    font-size: 13px; color: rgba(255,255,255,0.65);
    letter-spacing: 1px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
.rcr-hero-text__pity {
    font-size: 12px; color: rgba(255,255,255,0.55);
    margin-top: 4px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
.rcr-hero-text__pity strong { color: var(--color-gold); }

/* ══════════ 右下角保底计数 ══════════ */
.rcr-pity-badge {
    position: absolute; right: 24px; bottom: 90px; z-index: 10;
    display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
    background: rgba(10,14,23,0.6);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    padding: 8px 14px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 11px; color: rgba(255,255,255,0.6);
}
.rcr-pity-badge strong {
    font-size: 14px; color: var(--color-gold); font-weight: 800;
}

/* ══════════ 底部抽卡按钮 ══════════ */
.rcr-actions {
    flex-shrink: 0;
    display: flex; gap: 24px;
    justify-content: center; align-items: center;
    padding: 12px 24px 28px;
}

.rcr-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 36px;
    border: 2px solid rgba(240,192,64,0.5);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(240,192,64,0.25) 0%, rgba(240,192,64,0.08) 100%);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    color: var(--color-gold);
    cursor: pointer; font-family: var(--font-main);
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.rcr-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(240,192,64,0.4) 0%, rgba(240,192,64,0.12) 100%);
    border-color: var(--color-gold);
    box-shadow: 0 0 24px rgba(240,192,64,0.25), 0 4px 16px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}
.rcr-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.rcr-btn--ten {
    padding: 18px 44px;
    border-color: rgba(240,192,64,0.6);
    background: linear-gradient(135deg, rgba(240,192,64,0.3) 0%, rgba(200,160,40,0.1) 100%);
}

.rcr-btn__label { font-size: 17px; font-weight: 900; letter-spacing: 2px; }
.rcr-btn__icon { font-size: 20px; }
.rcr-btn__cost { font-size: 17px; font-weight: 800; }

/* ══════════ 抽卡结果覆盖层 ══════════ */
.rcr-results:empty { display: none; }
.rcr-results {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center;
}

.rcr-anim {
    position: relative; width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: rgba(10,14,23,0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.rcr-anim__flash {
    position: fixed; inset: 0; z-index: 50;
    background: radial-gradient(circle, rgba(240,192,64,0.3), transparent 70%);
    animation: rcr-flash-in 0.6s ease-out forwards;
    pointer-events: none;
}
@keyframes rcr-flash-in {
    0%   { opacity: 0; transform: scale(0.8); }
    30%  { opacity: 1; }
    100% { opacity: 0; transform: scale(2); }
}

.rcr-anim__cards {
    display: flex; gap: 10px; flex-wrap: wrap;
    justify-content: center; padding: 8px;
}
.rcr-anim__close {
    margin-top: 20px; padding: 8px 24px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    cursor: pointer; font-family: var(--font-main);
    font-size: 13px; transition: all 0.2s;
}
.rcr-anim__close:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ── 翻牌卡牌 ── */
.rcr-card {
    width: 130px; perspective: 800px;
    opacity: 0; transform: scale(0.5) translateY(40px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.34,1.56,.64,1);
}
.rcr-card--revealed { opacity: 1; transform: scale(1) translateY(0); }
.rcr-card--revealed .rcr-card__inner { transform: rotateY(180deg); }

.rcr-card__inner {
    position: relative;
    width: 100%; aspect-ratio: 296/508;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(.4,0,.2,1);
}

.rcr-card__back,
.rcr-card__front {
    position: absolute; inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex; align-items: center; justify-content: center;
}

.rcr-card__back {
    z-index: 2;
}
.rcr-card__back img {
    width: 100%; height: 100%; object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.rcr-card__front {
    transform: rotateY(180deg);
    z-index: 1;
}
.rcr-card__frame-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: contain;
    z-index: 2; pointer-events: none;
    filter: drop-shadow(0 0 8px var(--rarity-color, rgba(78,168,222,0.4)));
}
.rcr-card__avatar {
    position: absolute;
    top: 14%; left: 12%; right: 12%;
    height: 52%;
    z-index: 3;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    pointer-events: none;
}
/* ImageManager v2：wrapper/img/svg 的 position/inset/display 已由内联样式控制，
   这里只负责尺寸撑满与圆角。严禁再加 display !important —— 会破坏 onload 正向显示策略 */
.rcr-card__avatar .img-wrapper {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    border-radius: 6px;
}
.rcr-card__avatar .img-fallback svg,
.rcr-card__avatar > svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}
.rcr-card__avatar .img-hd {
    object-position: center center;
    border-radius: 6px;
}

.rcr-card__content {
    position: absolute;
    bottom: 6%; left: 12%; right: 12%;
    z-index: 3; text-align: center;
}
.rcr-card__name { font-weight: 800; font-size: 14px; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.7); }
.rcr-card__role { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.rcr-card__rating { font-size: 12px; margin-top: 4px; color: #fff; }
.rcr-card__dupe { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 3px; }
.rcr-card__new {
    font-size: 13px; font-weight: 900;
    color: var(--color-success); margin-top: 3px;
    text-shadow: 0 0 10px rgba(46,204,113,0.6);
    animation: rcr-new-pulse 1s ease-in-out infinite alternate;
}
@keyframes rcr-new-pulse { from { opacity: 0.8; } to { opacity: 1; transform: scale(1.05); } }

.rcr-card--revealed {
    filter: drop-shadow(var(--card-glow, 0 0 15px rgba(78,168,222,0.3)));
}

/* ══════════ 心愿弹窗 ══════════ */
.rcr-modal {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.25s;
}
.rcr-modal--show { opacity: 1; }
.rcr-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.rcr-modal__content {
    position: relative; z-index: 1;
    padding: 24px; min-width: 320px; max-width: 420px;
}
.rcr-modal__content h3 { margin-bottom: 4px; }
.rcr-modal__content p { font-size: 12px; margin-bottom: 12px; }
.rcr-modal__input {
    width: 100%; padding: 10px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--color-surface-light);
    background: var(--color-surface);
    color: var(--color-text); font-size: 14px;
    font-family: var(--font-main); outline: none;
}
.rcr-modal__input:focus { border-color: var(--color-accent); }
.rcr-modal__btns { display: flex; gap: 8px; margin-top: 14px; }

/* ══════════ 响应式 ══════════ */
@media (max-width: 640px) {
    .rcr-sidebar { top: 56px; left: 8px; width: 100px; }
    .rcr-pool { padding: 8px; font-size: 11px; }
    .rcr-hero-text { padding: 16px 24px; }
    .rcr-hero-text__title { font-size: 28px; letter-spacing: 3px; }
    .rcr-hero-text__sub { font-size: 13px; }
    .rcr-actions { gap: 12px; padding: 10px 16px 20px; }
    .rcr-btn { padding: 12px 22px; }
    .rcr-btn--ten { padding: 14px 30px; }
    .rcr-btn__label { font-size: 14px; }
    .rcr-pity-badge { right: 12px; bottom: 76px; }
}
