/* ========== 灵兽园（一念逍遥式：阵位 + 灵相 + 卡片图鉴） ========== */
#beast-panel-root .beast-panel { font-size: 12px; color: var(--text-main); min-height: 120px; }
#beast-panel-root .beast-panel--hatch {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    height: auto;
    display: flex;
    flex-direction: column;
}
.beast-hatch-stack {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.beast-hatch-stack-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.beast-panel-lock { font-size: 12px; color: var(--text-muted); text-align: center; margin: 12px 0; }
.beast-panel-hint { font-size: 10px; color: var(--text-muted); text-align: center; margin: 0 0 12px; line-height: 1.5; }

.beast-hatch-card {
    background: linear-gradient(145deg, rgba(20, 14, 28, 0.95) 0%, rgba(8, 10, 14, 0.98) 100%);
    border: 1px solid rgba(156, 39, 176, 0.35);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.45), 0 0 24px rgba(156, 39, 176, 0.08);
}
.beast-hatch-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.beast-hatch-title { font-size: 13px; font-weight: bold; color: var(--antique-gold); letter-spacing: 1px; }
.beast-hatch-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.beast-hatch-bar { height: 8px; border-radius: 4px; overflow: hidden; }
.beast-hatch-meta { font-size: 10px; color: var(--text-muted); margin-top: 6px; }
.beast-hatch-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
    flex: 0 0 auto;
}
.beast-hatch-row { display: grid; gap: 10px; align-items: stretch; }
/* 原 max-width:74% 会在全屏内两侧留大量空白，主孵化区显得过小 */
.beast-hatch-row--top { grid-template-columns: minmax(0, 1fr); max-width: 100%; width: 100%; margin: 0; }
.beast-hatch-row--bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.beast-hatch-slot {
    border-radius: 10px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    min-height: 232px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}
.beast-hatch-slot--working {
    border-color: color-mix(in srgb, var(--hatch-color, #9c27b0) 45%, rgba(255, 255, 255, 0.15));
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.45), 0 0 14px color-mix(in srgb, var(--hatch-color, #9c27b0) 20%, transparent);
}
.beast-hatch-working-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}
.beast-hatch-slot--working .beast-incubator-frame {
    margin: 0 auto 8px;
    border-color: color-mix(in srgb, var(--hatch-color, #9c27b0) 48%, rgba(255, 255, 255, 0.1));
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.5), 0 0 18px color-mix(in srgb, var(--hatch-color, #9c27b0) 22%, transparent);
}
.beast-hatch-slot--working .beast-hatch-head--below {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-bottom: 8px;
}
.beast-hatch-slot--working .beast-hatch-head--below > div {
    width: 100%;
}
.beast-hatch-bar--centered {
    width: 100%;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}
.beast-hatch-slot--working .beast-hatch-meta {
    text-align: center;
}
.beast-hatch-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: min(280px, 100%);
    margin: 12px auto 0;
    box-sizing: border-box;
}
/* 与奇遇映像厚礼同款色（.btn.rewarded-ad-btn），此处仅控制孵化条内尺寸 */
.btn.rewarded-ad-btn.beast-hatch-ad-btn {
    font-size: 11px;
    letter-spacing: 0.05em;
    padding: 7px 8px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    gap: 8px;
}
.btn.rewarded-ad-btn.beast-hatch-ad-btn .rewarded-ad-btn__play {
    width: 22px;
    height: 22px;
    font-size: 10px;
    padding-left: 2px;
}
.beast-hatch-jade-btn {
    width: 100%;
    box-sizing: border-box;
}
.beast-hatch-ad-pill {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    padding: 7px 8px;
    border-radius: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.28);
    text-align: center;
}
.beast-hatch-slot--working .beast-hatch-title { font-size: 15px; }
.beast-hatch-slot--working .beast-hatch-sub { font-size: 12px; }
.beast-hatch-slot--working .beast-hatch-meta { font-size: 11px; }
.beast-hatch-slot--working .beast-hatch-bar--centered { max-width: min(280px, 100%); }
.beast-hatch-slot--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-style: dashed;
    border-color: rgba(212, 175, 55, 0.45);
}
.beast-hatch-slot-empty-main { font-size: 13px; color: var(--antique-gold); }
.beast-hatch-slot-empty-sub { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.beast-hatch-slot--locked {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    background: linear-gradient(145deg, rgba(35, 35, 35, 0.8), rgba(12, 12, 12, 0.95));
}
.beast-hatch-slot-lock { text-align: center; }
.beast-hatch-slot-lock-title { color: #aaa; font-size: 13px; }
.beast-hatch-slot-lock-sub { color: #777; font-size: 11px; margin-top: 6px; }

.beast-egg-tray {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(0, 0, 0, 0.35);
}
.beast-egg-tray--dock {
    flex: 0 0 auto;
    margin-top: auto;
    margin-bottom: 0;
    border-radius: 10px 10px 0 0;
}
.beast-egg-tray-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
}
.beast-egg-tray-slot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 10px;
    box-sizing: border-box;
}
/* 全局 .item-slot 为 width:100%；槽位父级无固定宽时百分比塌缩，图标会变成几个像素 */
.beast-egg-tray-slot .item-slot.item-slot--icon-only {
    cursor: pointer;
    width: clamp(58px, 17vw, 78px);
    min-width: clamp(58px, 17vw, 78px);
    max-width: 100%;
    flex-shrink: 0;
    align-self: center;
    box-sizing: border-box;
}
.beast-egg-tray-slot--active {
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--egg-tray-active, #d4af37) 65%, #fff),
        0 0 14px color-mix(in srgb, var(--egg-tray-active, #d4af37) 36%, transparent);
    border-radius: 10px;
}
.beast-egg-tray-empty { font-size: 11px; color: var(--text-muted); padding: 6px 2px; }
.beast-egg-tips-layer {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
    box-sizing: border-box;
    background: transparent;
    pointer-events: auto;
}
.beast-egg-tips-layer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.02);
    pointer-events: auto;
}
.beast-egg-tips {
    position: relative;
    z-index: 1;
    width: min(84vw, 292px);
    max-width: 100%;
    pointer-events: auto;
    text-align: center;
    border-color: var(--bronze-border);
    background: linear-gradient(145deg, rgba(24, 20, 18, 0.98) 0%, rgba(10, 8, 6, 0.99) 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(212, 175, 55, 0.12);
}
.beast-egg-tips-body {
    padding: 10px 12px 6px;
    text-align: center;
}
.beast-egg-tips-slot-mount {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}
/* 与底部蛋槽同理：icon-only 在宽弹窗里 width:100% 会把格子撑满整行 */
.beast-egg-tips-slot-mount .item-slot.item-slot--icon-only {
    pointer-events: none;
    width: clamp(56px, 16vw, 68px);
    min-width: clamp(56px, 16vw, 68px);
    max-width: 100%;
    margin: 0 auto;
    flex-shrink: 0;
    box-sizing: border-box;
}
.beast-egg-tips-name {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.beast-egg-tips-desc {
    font-size: 11px;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 8px;
}
.beast-egg-tips-count {
    font-size: 12px;
    color: var(--text-muted);
}
.beast-egg-tips-count b {
    color: #fff;
    font-family: monospace;
    font-size: 14px;
}
.beast-egg-tips-footer {
    padding: 0 12px 12px;
    border-top: none;
}
.beast-egg-tips-muted {
    font-size: 12px;
    color: #9e9e9e;
    padding: 8px 0;
}

.beast-egg-glyph {
    width: 36px;
    height: 44px;
    border-radius: 50% 50% 48% 48% / 58% 58% 42% 42%;
    flex-shrink: 0;
    background: radial-gradient(ellipse at 35% 28%, #fff6 0%, transparent 45%),
        linear-gradient(165deg, color-mix(in srgb, var(--egg, #9c27b0) 85%, #fff) 0%, var(--egg, #6a1b9a) 100%);
    box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.45), 0 0 14px color-mix(in srgb, var(--egg, #9c27b0) 40%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.beast-egg-glyph--lg { width: 44px; height: 54px; }

.beast-egg-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.beast-egg-strip-copy { flex: 1; min-width: 0; }
.beast-egg-count { font-size: 13px; color: var(--text-main); }
.beast-egg-count b { color: var(--antique-gold); font-size: 16px; margin-left: 4px; }
.beast-egg-hint { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.beast-btn-hatch { padding: 8px 14px; font-size: 11px; white-space: nowrap; }
.beast-btn--disabled { opacity: 0.4; pointer-events: none; }

.beast-res-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.beast-res-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.beast-res-ico { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
.beast-res-ico--food {
    background: radial-gradient(circle at 30% 30%, #c5e1a5, #558b2f 70%);
    box-shadow: 0 0 8px rgba(139, 195, 74, 0.35);
}
.beast-res-ico--pill {
    background: radial-gradient(circle at 30% 30%, #e1bee7, #6a1b9a 75%);
    box-shadow: 0 0 8px rgba(156, 39, 176, 0.35);
}
.beast-res-ico--book {
    background: radial-gradient(circle at 30% 30%, #90caf9, #1565c0 75%);
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.35);
}
.beast-dan-hint { font-size: 10px; color: var(--text-muted); margin-bottom: 12px; }

.beast-on-duty {
    display: inline-block;
    font-size: 9px;
    font-weight: bold;
    color: #0d1a12;
    background: linear-gradient(90deg, var(--jade-green), #2e7d32);
    padding: 1px 6px;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
}

.beast-showcase {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(156, 39, 176, 0.25);
    background: linear-gradient(120deg, rgba(30, 18, 40, 0.6) 0%, rgba(8, 10, 14, 0.92) 55%);
    align-items: flex-start;
}
.beast-showcase--empty { border-color: rgba(255, 255, 255, 0.08); background: rgba(0, 0, 0, 0.25); }
.beast-portrait {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 35% 30%, #fff4 0%, transparent 42%),
        radial-gradient(circle at 50% 100%, #0006 0%, transparent 55%),
        var(--beast-glow, #ce93d8);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.5), 0 0 28px color-mix(in srgb, var(--beast-glow) 55%, transparent);
    border: 2px solid rgba(255, 255, 255, 0.15);
}
.beast-portrait-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}
.beast-portrait--empty { filter: grayscale(0.85); opacity: 0.7; }
.beast-detail { flex: 1; min-width: 0; }
.beast-name-line { font-size: 16px; font-weight: bold; letter-spacing: 1px; margin-bottom: 4px; }
.beast-power-line { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.beast-power-val { color: var(--antique-gold); font-weight: bold; font-size: 13px; margin-left: 4px; }
.beast-meta-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.beast-chip {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}
.beast-talent-line { font-size: 11px; color: #b39ddb; line-height: 1.4; margin-bottom: 6px; }
.beast-talent-desc { color: var(--text-muted); font-size: 10px; }
.beast-intim-row { font-size: 10px; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.beast-intim-bar {
    display: inline-block;
    width: 72px;
    height: 5px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    overflow: hidden;
    vertical-align: middle;
}
.beast-intim-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7e57c2, #ce93d8); border-radius: 3px; }
.beast-empty-hint { font-size: 10px; color: var(--text-muted); line-height: 1.55; margin: 0; }

.beast-action-row { display: flex; flex-wrap: wrap; gap: 6px; }
.beast-action-row--main { margin-top: 4px; }
.beast-btn-sm { padding: 5px 10px !important; font-size: 10px !important; }
.beast-btn-xs { padding: 3px 8px !important; font-size: 9px !important; }

.beast-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 8px;
    padding: 0 2px;
}
.beast-sort-title { font-size: 12px; color: var(--antique-gold); letter-spacing: 2px; }
.beast-sort-btns { display: flex; gap: 6px; }
.beast-sort-btn {
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
}
.beast-sort-btn--on {
    border-color: rgba(212, 175, 55, 0.5);
    color: var(--antique-gold);
    background: rgba(212, 175, 55, 0.12);
}

.beast-coll-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
@media (min-width: 420px) {
    .beast-coll-grid { grid-template-columns: repeat(4, 1fr); }
}
.beast-coll-card {
    position: relative;
    border-radius: 10px;
    padding: 8px 6px 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.beast-coll-card:active { transform: scale(0.97); }
.beast-coll-card--active {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.15);
}
.beast-coll-portrait {
    width: 44px;
    height: 44px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, #fff5 0%, transparent 40%), var(--beast-glow, #888);
    box-shadow: 0 0 12px color-mix(in srgb, var(--beast-glow) 45%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.beast-coll-name { font-size: 11px; font-weight: bold; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beast-coll-sub { font-size: 9px; color: var(--text-muted); margin-top: 2px; }
.beast-coll-pow { font-size: 10px; color: var(--antique-gold); margin-top: 4px; font-variant-numeric: tabular-nums; }
.beast-coll-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 3px;
    background: var(--jade-green);
    color: #0d1a12;
    font-weight: bold;
}

.beast-muted { color: var(--text-muted); font-weight: normal; }

/* ========== 灵兽园全屏分页（洞府入口 · 一念逍遥式底栏） ========== */
.beast-scene {
    position: absolute;
    inset: 0;
    z-index: 9750;
    display: none;
    flex-direction: column;
    background: linear-gradient(180deg, #0a0c12 0%, #050608 45%, #0d0818 100%);
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    touch-action: manipulation;
}
.beast-scene-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 120% 55% at 50% -8%, rgba(156, 39, 176, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 80% 40% at 80% 70%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 10% 40%, rgba(0, 230, 118, 0.04) 0%, transparent 45%);
    opacity: 1;
}
.beast-scene > *:not(.beast-scene-bg) {
    position: relative;
    z-index: 1;
}
.beast-scene-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.beast-scene-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(0, 0, 0, 0.45);
    color: var(--antique-gold);
    font-size: 26px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
}
.beast-scene-back:active {
    transform: scale(0.95);
    background: rgba(212, 175, 55, 0.12);
}
.beast-scene-head-mid {
    flex: 1;
    min-width: 0;
    text-align: center;
}
.beast-scene-head-spacer {
    width: 40px;
    flex-shrink: 0;
}
.beast-scene-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 6px;
    color: var(--antique-gold);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.beast-scene-res {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.beast-scene-res .tb-pill {
    padding: 3px 7px 3px 5px;
}
.beast-scene-res .tb-pill-val {
    max-width: min(100px, 26vw);
}
.tb-pill-food { border-color: rgba(129, 199, 132, 0.3); }
.tb-val-food { color: #b8f5bd; text-shadow: 0 0 8px rgba(76, 175, 80, 0.3); }
.tb-ico-food {
    width: 22px;
    height: 22px;
    background: radial-gradient(ellipse 72% 88% at 42% 34%, #b8ff9b 0%, #4caf50 46%, #1b5e20 100%);
    border: 1px solid rgba(129, 199, 132, 0.55);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3), inset 0 -2px 4px rgba(0, 30, 0, 0.35);
}
.beast-res-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: var(--text-main);
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.beast-res-mini .beast-res-ico {
    display: inline-block;
}
.beast-scene-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}
.beast-scene-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding: 12px 14px 8px;
    box-sizing: border-box;
}
.beast-scene-scroll--hatch {
    overflow-y: hidden;
    padding-bottom: 0;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
}
.beast-scene-scroll--hatch #beast-panel-root {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.beast-scene-foot {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 28%);
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    box-sizing: border-box;
}
.beast-scene-bigbtn {
    flex: 1;
    min-height: 52px;
    padding: 12px 10px;
    border-radius: 10px;
    border: 2px solid rgba(92, 78, 52, 0.95);
    background:
        radial-gradient(ellipse 85% 72% at 38% 22%, rgba(255, 250, 230, 0.45) 0%, rgba(220, 190, 120, 0.12) 38%, transparent 55%),
        linear-gradient(168deg, rgba(42, 36, 28, 0.98) 0%, rgba(18, 15, 12, 0.99) 52%, rgba(8, 7, 6, 1) 100%);
    color: #f8f0dc;
    font-family: 'KaiTi', 'STKaiti', 'SimSun', serif;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 12px rgba(212, 175, 55, 0.15);
    cursor: pointer;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -4px 12px rgba(0, 0, 0, 0.38);
    -webkit-tap-highlight-color: transparent;
}
.beast-scene-bigbtn:active {
    transform: scale(0.98);
    filter: brightness(1.06);
}
.beast-scene-bigbtn--on {
    border-color: rgba(212, 175, 55, 0.65);
    color: #ffe9a8;
    box-shadow:
        0 0 22px rgba(212, 175, 55, 0.22),
        0 4px 14px rgba(0, 0, 0, 0.55),
        inset 0 0 12px rgba(212, 175, 55, 0.08);
}
.beast-detail-layer {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 14px 12px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}
.beast-detail-layer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.02);
    pointer-events: auto;
}
.beast-detail-modal {
    position: relative;
    z-index: 1;
    width: min(92vw, 500px);
    max-width: 100%;
    height: min(82vh, 620px);
    max-height: min(84vh, calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: linear-gradient(180deg, rgba(11, 15, 24, 0.97) 0%, rgba(6, 9, 14, 0.98) 100%);
    box-shadow: 0 22px 68px rgba(0,0,0,0.95), inset 0 0 24px rgba(255,255,255,0.02);
}
.beast-detail-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}
.beast-detail-header-title {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--antique-gold);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.beast-detail-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(0, 0, 0, 0.38);
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.beast-detail-close:active {
    transform: scale(0.98);
    filter: brightness(1.08);
}
.beast-detail-tabs {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    padding: 12px 12px 10px;
    box-sizing: border-box;
    justify-content: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}
.beast-detail-tab {
    flex: 1;
    max-width: 120px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.86) 0%, rgba(4, 8, 14, 0.92) 100%);
    color: rgba(220, 220, 220, 0.6);
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.2em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}
.beast-detail-tab.is-on {
    border-color: rgba(212, 175, 55, 0.58);
    color: #f0c14a;
    background: linear-gradient(180deg, rgba(54, 44, 20, 0.6) 0%, rgba(28, 24, 12, 0.8) 100%);
    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.14), 0 0 14px rgba(212, 175, 55, 0.12);
}
.beast-detail-tab:active {
    transform: scale(0.99);
    filter: brightness(1.05);
}
.beast-detail-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 12px 12px;
    box-sizing: border-box;
}
.beast-detail-footer {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 100%);
    box-sizing: border-box;
}
.beast-detail-footbtn {
    flex: 1;
    padding: 10px 0 !important;
    box-sizing: border-box;
}
.beast-detail-title {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.beast-detail-sheet {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 0 6px;
}
.beast-detail-sheet--single {
    gap: 8px;
}

.beast-detail-hero {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 10px;
    align-items: center;
    padding: 6px 9px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(24, 20, 32, 0.72) 0%, rgba(8, 8, 12, 0.85) 100%);
    border: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.35);
}
.beast-detail-hero-portrait {
    position: relative;
}
.beast-detail-hero-portrait > .beast-cultivate-ring {
    position: relative;
    z-index: 0;
    margin: 0;
    padding: 6px;
}
/* 详情顶栏：圆内只取立绘纵向约 8%～60%（直径≈52% 图高），水平居中；取景中心略下移约 4% */
.beast-detail-hero-portrait .beast-portrait--hero {
    width: 68px;
    height: 68px;
    --beast-detail-av-y0: 8%;
    --beast-detail-av-y1: 60%;
    --beast-detail-av-band: 0.52;
    /* 原 34% 中心，再下移 ~4% → 38%（translate % 相对图片元素自身高度） */
    --beast-detail-av-translate-y: -38%;
}
.beast-detail-hero-portrait .beast-portrait--hero .beast-portrait-img {
    inset: auto;
    width: auto;
    max-width: none;
    height: calc(100% / var(--beast-detail-av-band));
    left: 50%;
    top: 50%;
    transform: translate(-50%, var(--beast-detail-av-translate-y));
    object-fit: contain;
    border-radius: 0;
}
/* 五行：叠在头像之上，圆形 + 外圈，字色同五行光、深色描边 */
.beast-detail-elem-chip {
    position: absolute;
    left: -3px;
    bottom: -3px;
    z-index: 4;
    width: 26px;
    height: 26px;
    min-width: 26px;
    padding: 0;
    box-sizing: border-box;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    color: var(--tag, #90caf9);
    background:
        radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--tag, #90caf9) 28%, transparent) 0%, transparent 58%),
        radial-gradient(circle at 50% 50%, rgba(8, 10, 14, 0.94) 0%, rgba(2, 4, 8, 0.98) 100%);
    border: 2px solid color-mix(in srgb, var(--tag, #90caf9) 72%, #e8f4ff);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.9),
        0 0 12px color-mix(in srgb, var(--tag, #90caf9) 38%, transparent);
    -webkit-text-stroke: 0.55px rgba(0, 0, 0, 0.88);
    paint-order: stroke fill;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.85);
}
.beast-detail-hero-meta {
    min-width: 0;
    text-align: left;
}
.beast-detail-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.beast-detail-hero-main {
    min-width: 0;
    flex: 1;
}
.beast-detail-hero-title {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.05;
}
.beast-detail-hero-sub {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(224, 224, 224, 0.72);
    letter-spacing: 0.5px;
}
.beast-detail-hero-sub b {
    color: var(--antique-gold);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}
.beast-detail-rank-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    vertical-align: middle;
    font-size: 11px;
    font-weight: 800;
    color: rgba(224, 224, 224, 0.88);
    background: rgba(0, 0, 0, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
}

.beast-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.beast-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #071014;
    background: color-mix(in srgb, var(--tag, #ce93d8) 82%, #fff);
    border: 1px solid color-mix(in srgb, var(--tag, #ce93d8) 45%, transparent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--tag, #ce93d8) 28%, transparent);
}
.beast-tag--muted {
    color: rgba(224, 224, 224, 0.78);
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    font-weight: 700;
}

.beast-detail-card {
    border-radius: 12px;
    padding: 9px;
    background: linear-gradient(180deg, rgba(6, 10, 16, 0.84) 0%, rgba(5, 8, 14, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.35);
}
.beast-detail-card--action {
    border-color: rgba(212, 175, 55, 0.2);
}
.beast-detail-card--center { text-align: center; }
.beast-detail-card-h {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--antique-gold);
    margin: 1px 0 7px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.beast-detail-card-h--center {
    text-align: center;
}
.beast-detail-attr-list {
    margin-top: 7px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}
.beast-detail-attr-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 31px;
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.015) 100%);
    font-size: 11px;
    color: rgba(224, 224, 224, 0.68);
}
.beast-detail-attr-row b {
    color: #f0d78c;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 380px) {
    .beast-detail-attr-list { grid-template-columns: 1fr; }
}
.beast-kv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
}
.beast-kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.beast-kv--full { grid-column: 1 / -1; }
.beast-k {
    font-size: 11px;
    color: rgba(224, 224, 224, 0.62);
    letter-spacing: 1px;
    white-space: nowrap;
}
.beast-v {
    font-size: 12px;
    color: rgba(244, 236, 208, 0.92);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: right;
}
@media (max-width: 380px) {
    .beast-kv-grid { grid-template-columns: 1fr; }
}

.beast-talent-card--flat {
    max-width: none;
    margin: 0 0 10px;
    border-color: rgba(212, 175, 55, 0.18);
    background: rgba(0, 0, 0, 0.25);
}
.beast-intim-panel--compact {
    max-width: none;
    margin: 0;
    justify-content: flex-start;
}
.beast-intim-panel--compact .beast-intim-bar--wide {
    flex: 1;
    max-width: 180px;
}

.beast-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
}
.beast-detail-actions--single {
    margin-top: 8px;
}
.beast-act-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 8px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.24);
    background: linear-gradient(180deg, rgba(30, 28, 40, 0.9) 0%, rgba(11, 13, 22, 0.96) 100%);
    color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    min-height: 54px;
}
.beast-act-btn:active {
    transform: scale(0.985);
    filter: brightness(1.06);
    border-color: rgba(212, 175, 55, 0.35);
}
.beast-act-title {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--antique-gold);
}
.beast-act-sub {
    font-size: 9px;
    color: rgba(224, 224, 224, 0.6);
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.2;
}
.beast-act-btn.is-disabled {
    opacity: 0.45;
    filter: grayscale(0.4);
    cursor: default;
    pointer-events: none;
}

.beast-deploy-strip {
    margin-bottom: 14px;
}
.beast-deploy-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 4px;
    margin-bottom: 8px;
    padding-left: 4px;
}
.beast-deploy-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: linear-gradient(135deg, rgba(24, 20, 32, 0.9) 0%, rgba(8, 8, 12, 0.95) 100%);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.beast-deploy-slot:active {
    filter: brightness(1.05);
}
.beast-deploy-slot--empty {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.12);
    cursor: default;
}
.beast-deploy-portrait {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    /* 与详情顶栏圆头像同一取景：原图纵轴约 8%～60%，中心约 38% */
    --beast-deploy-av-band: 0.52;
    --beast-deploy-av-translate-y: -38%;
    background: radial-gradient(circle at 35% 30%, #fff4 0%, transparent 42%),
        radial-gradient(circle at 50% 100%, #0006 0%, transparent 55%),
        var(--beast-glow, #ce93d8);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45), 0 0 18px color-mix(in srgb, var(--beast-glow) 45%, transparent);
    border: 2px solid rgba(255, 255, 255, 0.12);
}
.beast-deploy-portrait .beast-portrait-img {
    inset: auto;
    width: auto;
    max-width: none;
    height: calc(100% / var(--beast-deploy-av-band));
    left: 50%;
    top: 50%;
    transform: translate(-50%, var(--beast-deploy-av-translate-y));
    object-fit: contain;
    border-radius: 0;
}
.beast-deploy-empty-ico {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
}
.beast-deploy-meta {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.beast-deploy-name {
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}
.beast-deploy-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}
.beast-deploy-hint {
    font-size: 10px;
    color: var(--antique-gold);
    opacity: 0.85;
    flex-shrink: 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 2px;
}

.beast-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 6px;
}
@media (max-width: 340px) {
    .beast-hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 外层：上阵选中框（一念逍遥式） */
.beast-hub-card-wrap {
    display: flex;
    flex-direction: column;
    min-height: 200px;
    height: 100%;
    border-radius: 14px;
    padding: 0;
    background: transparent;
    transition: box-shadow 0.2s ease, padding 0.2s ease;
}
.beast-hub-card-wrap--active {
    padding: 3px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.35) 0%, rgba(180, 140, 40, 0.12) 45%, rgba(212, 175, 55, 0.28) 100%);
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.55),
        0 0 18px rgba(212, 175, 55, 0.35),
        inset 0 0 12px rgba(212, 175, 55, 0.08);
}

/* 内框：品质边框 + 内发光；整体背景随品质偏暗染色（--hub-tier-tint） */
.beast-hub-card-surface {
    --hub-tier-tint: var(--tier-0);
    flex: 1;
    min-height: 0;
    border-radius: 11px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 2px solid #2a3038;
    background: linear-gradient(
        175deg,
        color-mix(in srgb, var(--hub-tier-tint) 14%, #0a0c10) 0%,
        color-mix(in srgb, var(--hub-tier-tint) 7%, #07090d) 42%,
        #030508 100%
    );
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.65);
    color: var(--text-main);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.beast-hub-card-surface[data-tier='0'] {
    --hub-tier-tint: var(--tier-0);
    border-color: var(--tier-0);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.55), 0 0 8px color-mix(in srgb, var(--tier-0) 28%, transparent);
}
.beast-hub-card-surface[data-tier='1'] {
    --hub-tier-tint: var(--tier-1);
    border-color: var(--tier-1);
    box-shadow: inset 0 0 10px rgba(76, 175, 80, 0.12), 0 0 10px color-mix(in srgb, var(--tier-1) 32%, transparent);
}
.beast-hub-card-surface[data-tier='2'] {
    --hub-tier-tint: var(--tier-2);
    border-color: var(--tier-2);
    box-shadow: inset 0 0 12px rgba(33, 150, 243, 0.14), 0 0 12px color-mix(in srgb, var(--tier-2) 34%, transparent);
}
.beast-hub-card-surface[data-tier='3'] {
    --hub-tier-tint: var(--tier-3);
    border-color: var(--tier-3);
    box-shadow: inset 0 0 14px rgba(156, 39, 176, 0.2), 0 0 12px color-mix(in srgb, var(--tier-3) 36%, transparent);
}
.beast-hub-card-surface[data-tier='4'] {
    --hub-tier-tint: var(--tier-4);
    border-color: var(--tier-4);
    box-shadow: inset 0 0 16px rgba(232, 199, 107, 0.22), 0 0 14px color-mix(in srgb, var(--tier-4) 38%, transparent);
}
.beast-hub-card-surface[data-tier='5'] {
    --hub-tier-tint: var(--tier-5);
    border-color: var(--tier-5);
    box-shadow: inset 0 0 18px rgba(255, 82, 82, 0.26), 0 0 16px color-mix(in srgb, var(--tier-5) 40%, transparent);
}
.beast-hub-card-surface[data-tier='6'] {
    --hub-tier-tint: var(--tier-6);
    border-color: var(--tier-6);
    box-shadow: inset 0 0 20px rgba(255, 64, 129, 0.3), 0 0 18px color-mix(in srgb, var(--tier-6) 42%, transparent);
    animation: beastHubTier6Pulse 2.2s ease-in-out infinite alternate;
}
@keyframes beastHubTier6Pulse {
    from {
        box-shadow: inset 0 0 18px rgba(255, 64, 129, 0.26), 0 0 14px color-mix(in srgb, var(--tier-6) 38%, transparent);
    }
    to {
        box-shadow: inset 0 0 24px rgba(255, 64, 129, 0.38), 0 0 22px color-mix(in srgb, var(--tier-6) 55%, transparent);
    }
}

.beast-hub-card-tap {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* 竖版长卡：形象区撑满除底部信息条外的空间（约 4/5～5/6），头像上裁切居中 */
.beast-hub-art {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: 112px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 85% 65% at 50% 16%, color-mix(in srgb, var(--hub-tier-tint) 18%, transparent) 0%, transparent 58%),
        radial-gradient(ellipse 80% 70% at 50% 18%, rgba(255, 255, 255, 0.04) 0%, transparent 55%),
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--hub-tier-tint) 11%, rgba(18, 20, 26, 0.55)) 0%,
            color-mix(in srgb, var(--hub-tier-tint) 5%, rgba(5, 6, 9, 0.88)) 100%
        );
}
.beast-hub-art .beast-portrait-img {
    position: absolute;
    left: 50%;
    top: 0;
    width: 118%;
    height: 118%;
    max-width: none;
    transform: translateX(-50%);
    object-fit: cover;
    object-position: 50% 12%;
    border-radius: 0;
    z-index: 1;
    pointer-events: none;
}

.beast-hub-meta {
    flex: 0 0 auto;
    padding: 4px 6px 6px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        color-mix(in srgb, var(--hub-tier-tint) 10%, rgba(0, 0, 0, 0.18)) 35%,
        color-mix(in srgb, var(--hub-tier-tint) 6%, rgba(0, 0, 0, 0.38)) 100%
    );
    border-top: 1px solid color-mix(in srgb, var(--hub-tier-tint) 20%, rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}
.beast-hub-name {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.1em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.45);
}
.beast-hub-pow {
    font-size: 10px;
    color: #c9b87a;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
}
.beast-hub-pow-label {
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 0.1em;
    margin-right: 2px;
}
.beast-hub-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--jade-green);
    color: #0d1a12;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.35);
}
.beast-hub-deploy-row {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 4px;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.4);
    color: var(--antique-gold);
    font-family: inherit;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.12em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
.beast-hub-deploy-row:active {
    background: rgba(212, 175, 55, 0.08);
}
.beast-hub-deploy-row--on {
    text-align: center;
    color: var(--jade-green);
    font-size: 10px;
    cursor: default;
    letter-spacing: 0.08em;
}

.beast-cultivate-hero--detail {
    padding-top: 4px;
}
.beast-skill-stage--detail {
    padding-top: 12px;
}
.beast-panel-lock--fullscreen {
    margin: 24vh 16px;
    font-size: 14px;
    line-height: 1.7;
}

.beast-egg-glyph--hero {
    width: 56px;
    height: 68px;
}
.beast-incubator-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(128px, 36vmin, 168px);
    height: clamp(128px, 36vmin, 168px);
    margin: 0 auto 12px;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle at 50% 40%, rgba(156, 39, 176, 0.25) 0%, transparent 65%),
        radial-gradient(circle, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
    border: 2px solid rgba(156, 39, 176, 0.35);
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(156, 39, 176, 0.12);
}
.beast-incubator-frame--idle {
    border-color: rgba(212, 175, 55, 0.28);
    background: radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.12) 0%, transparent 65%),
        radial-gradient(circle, rgba(0, 0, 0, 0.45) 0%, transparent 70%);
}
.beast-incubator-glow {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--egg, #9c27b0) 35%, transparent) 0%, transparent 70%);
    animation: beastIncubatePulse 2.2s ease-in-out infinite;
    pointer-events: none;
}
.beast-hatch-prop-slot-mount {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.98);
    transform-origin: center center;
}
/* 与蛋条相同：icon-only 在圆形容器内 width:100% 会塌成极小，蛋显示成绿点 */
.beast-hatch-prop-slot-mount .item-slot.item-slot--icon-only {
    pointer-events: none;
    width: clamp(88px, 26vmin, 118px);
    min-width: clamp(88px, 26vmin, 118px);
    max-width: 92%;
    flex-shrink: 0;
    box-sizing: border-box;
}
@keyframes beastIncubatePulse {
    0%, 100% { opacity: 0.5; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1.05); }
}
.beast-hatch-card--stage .beast-hatch-head--below {
    text-align: center;
    justify-content: center;
    margin-bottom: 8px;
}
.beast-hatch-card--stage {
    text-align: center;
}
.beast-egg-strip--stage {
    flex-wrap: wrap;
    justify-content: center;
}
.beast-dan-hint--compact {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 0;
    flex-shrink: 0;
}
.beast-tab-hero {
    text-align: center;
    margin-bottom: 16px;
}
.beast-tab-hero-visual {
    height: 48px;
    margin: 0 auto 8px;
    max-width: 200px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.15) 50%, transparent 100%);
    border-radius: 4px;
}
.beast-tab-tagline {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 3px;
}

.beast-portrait--hero {
    width: 112px;
    height: 112px;
}
.beast-cultivate-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 0 20px;
}
.beast-cultivate-ring {
    padding: 10px;
    border-radius: 50%;
    margin-bottom: 12px;
    background: radial-gradient(circle, color-mix(in srgb, var(--beast-glow) 22%, transparent) 0%, transparent 72%);
    border: 1px solid color-mix(in srgb, var(--beast-glow) 35%, transparent);
    box-shadow: 0 0 32px color-mix(in srgb, var(--beast-glow) 25%, transparent);
}
.beast-cultivate-ring--empty {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: none;
}
.beast-cultivate-name {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 6px;
}
.beast-cultivate-titleline {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--text-main);
    margin: -2px 0 6px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}
.beast-cultivate-power {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.beast-cultivate-power strong {
    color: var(--antique-gold);
    font-size: 16px;
    margin-left: 4px;
}
.beast-orb-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
}
.beast-elem-orb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    background: radial-gradient(circle at 30% 28%, #fff4 0%, transparent 45%),
        color-mix(in srgb, var(--orb, #888) 55%, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 10px color-mix(in srgb, var(--orb, #888) 30%, transparent);
}
.beast-elem-orb--muted {
    background: rgba(0, 0, 0, 0.45);
    color: var(--text-muted);
    box-shadow: none;
    font-size: 10px;
    font-weight: normal;
}
.beast-elem-orb--txt {
    min-width: 28px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}
.beast-talent-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(179, 157, 219, 0.25);
    text-align: left;
}
.beast-talent-card-ico {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(126, 87, 194, 0.5) 0%, rgba(40, 25, 60, 0.9) 100%);
    border: 1px solid rgba(179, 157, 219, 0.35);
}
.beast-talent-card-name {
    font-size: 13px;
    font-weight: bold;
    color: #b39ddb;
}
.beast-talent-card-desc {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.45;
}
.beast-intim-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 16px;
    font-size: 11px;
    color: var(--text-muted);
}
.beast-intim-label {
    flex-shrink: 0;
}
.beast-intim-bar--wide {
    width: 120px;
    height: 6px;
}
.beast-intim-val {
    font-variant-numeric: tabular-nums;
}
.beast-action-deck {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
}
.beast-action-card {
    flex: 1;
    min-width: 88px;
    max-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(35, 28, 45, 0.9) 0%, rgba(12, 10, 18, 0.95) 100%);
    color: var(--text-main);
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.beast-action-card:active {
    transform: scale(0.97);
    border-color: rgba(212, 175, 55, 0.35);
}
.beast-action-card-ico {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.beast-action-card-ico--up {
    background: radial-gradient(circle at 30% 30%, #a5d6a7 0%, #2e7d32 75%);
}
.beast-action-card-ico--rank {
    background: radial-gradient(circle at 30% 30%, #e1bee7 0%, #6a1b9a 80%);
}
.beast-action-card-ico--feed {
    background: radial-gradient(circle at 30% 30%, #ffe082 0%, #f57f17 80%);
}
.beast-empty-lead {
    font-size: 16px;
    color: var(--antique-gold);
    margin: 12px 0 8px;
    letter-spacing: 2px;
}

.beast-skill-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 12px 32px;
}
.beast-skill-orb {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: relative;
    margin-bottom: 16px;
    background: radial-gradient(circle at 35% 30%, #fff6 0%, transparent 42%),
        var(--beast-glow, #ce93d8);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.35), 0 0 36px color-mix(in srgb, var(--beast-glow) 45%, transparent);
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.beast-skill-orb--inline {
    width: 74px;
    height: 74px;
    margin: 0 auto 10px;
}
.beast-skill-orb--dim {
    filter: grayscale(0.6);
    opacity: 0.55;
}
.beast-skill-orb-core {
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.25) 0%, transparent 70%);
}
.beast-skill-name {
    font-size: 22px;
    font-weight: bold;
    color: var(--antique-gold);
    letter-spacing: 4px;
    margin-bottom: 8px;
}
.beast-skill-lv {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.beast-skill-desc {
    font-size: 12px;
    color: var(--text-main);
    line-height: 1.55;
    max-width: 300px;
    margin: 0 0 20px;
}
.beast-skill-actions {
    width: 100%;
    max-width: none;
    margin-top: 7px;
}
.beast-detail-card--skill {
    text-align: left;
}
.beast-skill-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.beast-skill-line-left {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}
.beast-skill-line-lv {
    color: #f0d78c;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.beast-skill-line-meta {
    color: #f0d78c;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.beast-btn-skill {
    width: 100%;
    box-sizing: border-box;
    padding: 9px !important;
    margin-bottom: 7px;
}
.beast-skill-cost {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.beast-skill-cost .beast-res-ico {
    display: inline-block;
}

.beast-roster-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 2px;
}
.beast-roster-title {
    font-size: 14px;
    color: var(--antique-gold);
    letter-spacing: 4px;
}
.beast-coll-grid--roster {
    margin-bottom: 24px;
}
.beast-roster-empty {
    text-align: center;
    padding: 36px 16px 48px;
}
.beast-roster-empty-ico {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
}

.beast-detail-scroll {
    background: transparent;
}
.beast-detail-tabs {
    display: none !important;
}
.beast-detail-footer {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 100%);
}
.beast-detail-footbtn {
    border-radius: 10px !important;
}
.beast-detail-quality-badge {
    margin-left: auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: #101010;
    background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--q, #b26cff) 65%, #fff) 0%, var(--q, #b26cff) 82%);
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow: 0 0 10px color-mix(in srgb, var(--q, #b26cff) 35%, transparent);
}
.beast-detail-mock {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #1f1f1f;
    padding: 2px 0 8px;
}
.beast-mock-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
}
.beast-mock-head {
    background: #d8d8d8;
    border-radius: 0;
    padding: 12px 10px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
}
.beast-mock-portrait-wrap { position: relative; }
.beast-mock-portrait {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.55);
    position: relative;
    background: radial-gradient(circle at 35% 30%, #fff7 0%, transparent 45%), var(--beast-glow, #888);
}
.beast-mock-elem {
    position: absolute;
    left: -2px;
    bottom: -2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ff2b2b;
    color: #111;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #111;
}
.beast-mock-name { font-size: 34px; font-weight: 900; line-height: 1.05; margin-top: 2px; }
.beast-mock-sub { margin-top: 10px; font-size: 16px; color: #222; }
.beast-mock-talent-pill {
    margin-top: 8px;
    margin-left: auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #dd6bff 0%, #b000ff 80%);
    color: #111;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-align: center;
}
.beast-mock-block {
    background: #c8c8c8;
    padding: 10px;
}
.beast-mock-block-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}
.beast-mock-block-title span {
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.35);
}
.beast-mock-skill-card {
    background: linear-gradient(180deg, #03050a 0%, #060914 100%);
    border: 1px solid #1b2944;
    border-radius: 10px;
    padding: 10px;
    color: #ced8f2;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    align-items: center;
}
.beast-mock-skill-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(145deg, #5533a5 0%, #25184a 100%);
    border: 1px solid rgba(255,255,255,0.15);
}
.beast-mock-skill-name { font-size: 14px; font-weight: bold; color: #d5c6ff; }
.beast-mock-skill-desc { font-size: 11px; color: #8fa1cc; margin-top: 4px; text-align: left; line-height: 1.45; }
.beast-mock-up-row {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.beast-mock-cost {
    font-size: 20px;
    color: #d9534f;
    font-weight: bold;
    line-height: 1;
}
.beast-mock-up-btn {
    min-width: 92px;
    padding: 8px 16px !important;
    border-radius: 22px !important;
}
.beast-mock-stat-grid {
    margin-top: 10px;
    background: #dedbcc;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    font-size: 14px;
}
.beast-mock-stat-grid b { color: #b68f12; margin-left: 6px; }
.beast-mock-main-btn {
    width: 160px;
    margin: 10px auto 0;
    display: block;
}
