/* ════════════════════════════════════════════════════════════════════════════
 * 🎴 抽卡系统 CSS（独立文件）
 *
 * 本文件包含所有抽卡相关样式，与 dressup.css（换装/剧情/UI）物理解耦：
 *   ① 抽卡相关弹窗 z-index 提升
 *   ② 旧版抽卡 v1（已下线为主面板，但 .gacha-result-card / .gacha-result-modal
 *      仍被结果弹窗复用，必须保留）
 *   ③ v2 星辉衣橱共用样式（早期嵌入抽屉的抽屉版已全部下线，
 *      .gacha-v2-bg / .gacha-v2-stars / .gacha-v2-up-card 等类名被全屏版复用）
 *   ④ v2 全屏沉浸式抽卡 #gachaFullscreen（当前唯一在用的抽卡 UI）
 *
 * 注意：暗色主题中 .gacha-result-card 是与多个非抽卡选择器合并定义的，
 * 那一行（dressup.css 第 83 行）保留在 dressup.css 不迁出。
 * ════════════════════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════ */
/* ① 抽卡相关弹窗 z-index 提升                                   */
/* ════════════════════════════════════════════════════════════ */

/* 🌟 抽卡相关弹窗：必须浮在 .gacha-fullscreen (z-index:1500) 之上 */
#gachaHistoryModal,
#gachaHelpModal,
#gachaResultModal {
    z-index: 1700;
}


/* ════════════════════════════════════════════════════════════ */
/* ② 旧版抽卡 v1（结果弹窗 / 结果卡片仍在使用）                  */
/* ════════════════════════════════════════════════════════════ */

.gacha-panel {
    padding: 8px 4px;
}

/* ── Banner 区 ── */
.gacha-banner {
    position: relative;
    text-align: center;
    padding: 24px 18px 20px;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(168,85,247,0.18), transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(244,114,182,0.14), transparent 60%),
        linear-gradient(160deg, rgba(30,20,50,0.9), rgba(20,14,40,0.95));
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
}
/* 星光粒子装饰 */
.gacha-banner::before {
    content: "✦ ✧ ★ ✦ ✧";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 0.8rem;
    color: rgba(251,191,36,0.15);
    pointer-events: none;
    animation: gachaStarDrift 8s linear infinite;
    letter-spacing: 20px;
}
@keyframes gachaStarDrift {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50%  { opacity: 0.7; }
    100% { transform: translateY(-6px) rotate(3deg); opacity: 0.3; }
}
.gacha-banner-title {
    position: relative;
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f472b6, #c084fc, #fbbf24);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gachaTitleShimmer 4s ease-in-out infinite;
    margin-bottom: 6px;
    letter-spacing: 1px;
}
@keyframes gachaTitleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.gacha-banner-sub {
    position: relative;
    font-size: 0.82rem;
    color: rgba(209,213,219,0.8);
    margin-bottom: 12px;
}
.gacha-rates {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}
.rate-tag {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    backdrop-filter: blur(4px);
}
.rate-n { background: rgba(107,114,128,0.2); color: #9ca3af; border-color: rgba(107,114,128,0.25); }
.rate-r { background: rgba(96,165,250,0.15); color: #93c5fd; border-color: rgba(96,165,250,0.25); }
.rate-sr { background: rgba(168,85,247,0.15); color: #c4b5fd; border-color: rgba(168,85,247,0.3); }
.rate-ssr { background: rgba(251,191,36,0.15); color: #fde68a; border-color: rgba(251,191,36,0.3); }

/* ── 保底进度 ── */
.gacha-pity {
    position: relative;
    margin-top: 12px;
    font-size: 0.72rem;
    color: rgba(209,213,219,0.7);
}
.gacha-pity-bar {
    margin-top: 6px;
    height: 6px;
    background: rgba(55,65,81,0.6);
    border-radius: 3px;
    overflow: hidden;
}
.gacha-pity-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #a855f7, #f472b6);
    transition: width 0.4s ease;
}

/* ── 抽卡按钮 ── */
.gacha-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.gacha-btn {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s;
    overflow: hidden;
}
.gacha-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent);
    pointer-events: none;
}
.gacha-btn-single {
    background: linear-gradient(145deg, rgba(99,102,241,0.25), rgba(139,92,246,0.15));
    border-color: rgba(139,92,246,0.4);
    color: #c4b5fd;
}
.gacha-btn-ten {
    background: linear-gradient(145deg, rgba(251,191,36,0.35), rgba(245,158,11,0.22));
    border-color: rgba(251,191,36,0.6);
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.gacha-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139,92,246,0.35);
}
.gacha-btn-ten:hover {
    box-shadow: 0 8px 28px rgba(251,191,36,0.5);
    border-color: rgba(251,191,36,0.8);
    background: linear-gradient(145deg, rgba(251,191,36,0.45), rgba(245,158,11,0.3));
}
.gacha-btn:active { transform: scale(0.96); }
.gacha-btn-label {
    font-size: 1rem;
    font-weight: 700;
}
.gacha-btn-cost {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0.9;
}
.gacha-btn-discount {
    font-size: 0.62rem;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(239,68,68,0.8);
    color: #fff;
    font-weight: 700;
}
.gacha-coin-icon {
    width: 16px;
    height: 16px;
}

/* ── 历史记录 ── */
.gacha-history {
    border-top: 1px solid rgba(75,85,99,0.25);
    padding-top: 14px;
}
.gacha-history-title {
    font-size: 0.78rem;
    color: var(--text-mid);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.gacha-history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.gacha-history-item {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #374151;
    transition: transform 0.15s, box-shadow 0.15s;
}
.gacha-history-item:hover {
    transform: scale(1.08);
    z-index: 2;
}
.gacha-history-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gacha-history-item.rarity-n { border-color: #4b5563; }
.gacha-history-item.rarity-r { border-color: #3b82f6; }
.gacha-history-item.rarity-sr { border-color: #8b5cf6; box-shadow: 0 0 6px rgba(139,92,246,0.3); }
.gacha-history-item.rarity-ssr { border-color: #f59e0b; box-shadow: 0 0 10px rgba(251,191,36,0.4); }

/* ── 结果弹窗 ── */
.gacha-result-modal {
    max-width: 520px;
}
.gacha-result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin: 16px 0;
    max-height: 60vh;
    overflow-y: auto;
}
.gacha-result-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #374151;
    animation: gachaReveal 0.5s ease-out backwards;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
}
.gacha-result-card:hover {
    transform: scale(1.06);
}
.gacha-result-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}
.gacha-result-card .gacha-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 6px 5px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    font-size: 0.68rem;
    color: #fff;
    text-align: center;
    font-weight: 500;
}
.gacha-result-card .gacha-card-rarity {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 800;
}
.gacha-result-card.rarity-n  { border-color: #6b7280; }
.gacha-result-card.rarity-r  { border-color: #3b82f6; box-shadow: 0 0 8px rgba(59,130,246,0.3); }
.gacha-result-card.rarity-sr { border-color: #8b5cf6; box-shadow: 0 0 16px rgba(139,92,246,0.45); }
.gacha-result-card.rarity-ssr {
    border-color: #f59e0b;
    box-shadow: 0 0 24px rgba(251,191,36,0.5), inset 0 0 20px rgba(251,191,36,0.08);
    animation: gachaReveal 0.5s ease-out backwards, gachaSSRGlow 2s ease-in-out infinite;
}
@keyframes gachaSSRGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(251,191,36,0.4); }
    50%      { box-shadow: 0 0 32px rgba(251,191,36,0.7), 0 0 60px rgba(251,191,36,0.15); }
}
.gacha-result-card .dup-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.58rem;
    font-weight: 700;
    color: #fff;
    background: rgba(239,68,68,0.85);
}
@keyframes gachaReveal {
    from { opacity: 0; transform: scale(0.5) rotateY(90deg); }
    to   { opacity: 1; transform: scale(1) rotateY(0deg); }
}


/* ═══════════════════════════════════════════════════════════
   ③ v2 · 星辉衣橱（嵌抽屉版本，部分类被全屏版复用）
   ═══════════════════════════════════════════════════════════ */
.gacha-v2 {
    position: relative;
    width: 100%;
    min-height: 100%;
    padding: 0;
    margin: 0;
    color: #f6e9c4;
    font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans", sans-serif;
    overflow: hidden;
    background: #1a1208;
    border-radius: 12px;
}
/* 让父容器（.panel-content）撑满，让 v2 能 100% 高度铺满 */
.panel-content[data-panel="gacha"].active {
    padding: 0;
    height: 100%;
    overflow: hidden;
}
.panel-content[data-panel="gacha"] .gacha-v2 {
    height: 100%;
    min-height: 560px;
}

/* 背景层：金色教堂图 + 暗化叠加 */
.gacha-v2-bg {
    position: absolute;
    inset: 0;
    background: url("assets/gacha/bg.png") center/cover no-repeat;
    z-index: 0;
}
.gacha-v2-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(20,12,4,0.55) 75%, rgba(15,8,2,0.85) 100%);
}

/* 飘落星点 */
.gacha-v2-stars {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 12% 18%, rgba(255,236,180,0.9), transparent 60%),
        radial-gradient(1.5px 1.5px at 78% 32%, rgba(255,236,180,0.8), transparent 60%),
        radial-gradient(2px 2px at 35% 75%, rgba(255,236,180,0.7), transparent 60%),
        radial-gradient(1.5px 1.5px at 65% 85%, rgba(255,236,180,0.7), transparent 60%),
        radial-gradient(1.5px 1.5px at 88% 60%, rgba(255,236,180,0.6), transparent 60%),
        radial-gradient(1px 1px at 22% 50%, rgba(255,236,180,0.6), transparent 60%);
    animation: gachaStarTwinkle 3.6s ease-in-out infinite;
}
@keyframes gachaStarTwinkle {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

/* 顶栏 */
.gacha-v2-topbar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px 4px;
}
.gacha-v2-topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gacha-v2-title-fz {
    height: 22px;
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}
svg.gacha-v2-title-fz {
    height: 22px;
    width: auto;
    display: block;
    overflow: visible;
}
.gacha-v2-help {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #c9a35a;
    background: rgba(0,0,0,0.3);
    color: #f6e9c4;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: all 0.2s;
}
.gacha-v2-help:hover {
    background: rgba(201,163,90,0.3);
    transform: scale(1.1);
}
.gacha-v2-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gacha-v2-coin {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 8px;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(201,163,90,0.5);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #f6e9c4;
}
.gacha-v2-coin img {
    width: 16px;
    height: 16px;
    image-rendering: pixelated;
}

/* 🌟 服装卷胶囊（卷数大字 + 普通点小字双行） */
.gacha-v2-ticket-pill {
    padding: 4px 14px 4px 6px;
    gap: 8px;
    background: linear-gradient(135deg, rgba(58, 28, 70, 0.78), rgba(28, 16, 38, 0.85));
    border: 1px solid rgba(255, 215, 130, 0.65);
    box-shadow: 0 0 0 1px rgba(255, 215, 130, 0.15) inset, 0 4px 14px rgba(0,0,0,0.35);
}
.gacha-v2-ticket-pill .gacha-ticket-icon {
    width: 30px;
    height: 30px;
    image-rendering: auto;
    filter: drop-shadow(0 1px 2px rgba(255, 200, 100, 0.55));
}
.gacha-v2-ticket-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
    gap: 1px;
}
.gacha-v2-ticket-main {
    display: flex;
    align-items: baseline;
    gap: 3px;
    color: #ffe8a8;
    font-size: 17px;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.gacha-v2-ticket-unit {
    font-size: 10px;
    font-weight: 600;
    color: #f0c87c;
    letter-spacing: 0.5px;
}
.gacha-v2-ticket-sub {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 500;
    color: rgba(246, 233, 196, 0.7);
}
.gacha-v2-ticket-sub-icon {
    width: 10px !important;
    height: 10px !important;
    image-rendering: pixelated;
    opacity: 0.8;
}

/* 手机端略微紧凑 */
@media (max-width: 720px) {
    .gacha-v2-ticket-pill {
        padding: 3px 10px 3px 4px;
        gap: 6px;
    }
    .gacha-v2-ticket-pill .gacha-ticket-icon {
        width: 26px;
        height: 26px;
    }
    .gacha-v2-ticket-main {
        font-size: 15px;
    }
}

/* 限时活动文字 */
.gacha-v2-event-tip {
    position: relative;
    z-index: 5;
    text-align: right;
    font-size: 11px;
    color: rgba(246,233,196,0.85);
    padding: 0 22px;
    margin-top: 2px;
}
.gacha-v2-event-tip b {
    color: #ffd97a;
    font-weight: 700;
}

/* 主舞台 */
.gacha-v2-stage {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    padding: 8px 18px 6px;
    flex: 1;
    min-height: 0;
}

/* 左侧：星辉衣橱大标题 */
.gacha-v2-side-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 6px;
}
.gacha-v2-title-main {
    width: 100%;
    max-width: 130px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(255,200,80,0.4));
    animation: gachaTitleGlow 3s ease-in-out infinite alternate;
}
@keyframes gachaTitleGlow {
    from { filter: drop-shadow(0 2px 8px rgba(255,200,80,0.3)); }
    to   { filter: drop-shadow(0 2px 14px rgba(255,220,120,0.7)); }
}
.gacha-v2-side-sub {
    margin-top: 2px;
    font-size: 11px;
    color: #d6b886;
    letter-spacing: 1px;
    align-self: center;
}
.gacha-v2-side-time {
    margin-top: 14px;
    align-self: stretch;
    font-size: 10px;
    color: #b8a070;
    line-height: 1.5;
}
.gacha-v2-side-time-label {
    color: #d6b886;
    font-size: 10px;
}
.gacha-v2-side-time-value {
    color: #f6e9c4;
    font-size: 11px;
    font-weight: 600;
    margin-top: 1px;
}

/* UP 卡片区 */
.gacha-v2-up-cards {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 6px;
    align-items: stretch;
    min-height: 0;
}

/* 单张 UP 卡片 */
.gacha-v2-up-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(80,55,20,0.4) 0%, rgba(40,25,10,0.7) 100%);
    border: 1px solid rgba(201,163,90,0.4);
    box-shadow: inset 0 0 30px rgba(255,200,80,0.08);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
}
.gacha-v2-up-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(255,200,80,0.25), inset 0 0 30px rgba(255,200,80,0.15);
}
.gacha-v2-up-card.is-ssr {
    background: linear-gradient(180deg, rgba(120,70,20,0.5) 0%, rgba(50,30,10,0.85) 100%);
    border: 1.5px solid rgba(255,200,80,0.7);
    box-shadow: inset 0 0 50px rgba(255,200,80,0.15), 0 0 20px rgba(255,200,80,0.2);
}
.gacha-v2-up-card-img {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.gacha-v2-up-card-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}
.gacha-v2-up-card.is-ssr .gacha-v2-up-card-img img {
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.6)) drop-shadow(0 0 10px rgba(255,210,120,0.3));
}
.gacha-v2-up-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 6px 10px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.65) 60%);
    pointer-events: none;
}
.gacha-v2-up-card-rarity {
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
}
.gacha-v2-up-card.is-ssr .gacha-v2-up-card-rarity {
    width: 36px;
    height: 36px;
}
.gacha-v2-up-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 0 6px rgba(255,200,80,0.4);
    letter-spacing: 1px;
}
.gacha-v2-up-card.is-ssr .gacha-v2-up-card-name {
    font-size: 18px;
    color: #fff5d4;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 10px rgba(255,200,80,0.6);
}
.gacha-v2-up-card-stars {
    margin-top: 2px;
    color: #ffd97a;
    font-size: 10px;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

/* 底部：保底横幅 + 按钮 */
.gacha-v2-footer {
    position: relative;
    z-index: 5;
    padding: 4px 22px 18px;
}
.gacha-v2-pity {
    text-align: left;
    font-size: 11px;
    color: rgba(246,233,196,0.85);
    line-height: 1.6;
    padding: 4px 0 6px;
}
.gacha-v2-pity-sub {
    color: rgba(246,233,196,0.6);
    font-size: 10px;
}
.gacha-v2-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
}
.gacha-v2-wish {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: transform 0.18s, filter 0.18s;
    /* 双层暖色发散：外层柔化抠图毛边，内层深色增强轮廓对比 */
    filter:
        drop-shadow(0 0 6px rgba(255,210,140,0.55))
        drop-shadow(0 0 16px rgba(255,180,80,0.32))
        drop-shadow(0 4px 8px rgba(0,0,0,0.45));
}
.gacha-v2-wish img,
.gacha-v2-wish svg {
    height: 56px;
    width: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    overflow: visible;
}
.gacha-v2-wish:hover {
    transform: translateY(-2px) scale(1.04);
    filter:
        drop-shadow(0 0 10px rgba(255,220,140,0.85))
        drop-shadow(0 0 24px rgba(255,180,80,0.55))
        drop-shadow(0 6px 14px rgba(0,0,0,0.5));
}
.gacha-v2-wish:active {
    transform: scale(0.97);
}
.gacha-v2-wish:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}
.gacha-v2-history-btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: transform 0.18s, filter 0.18s;
    filter:
        drop-shadow(0 0 5px rgba(255,210,140,0.5))
        drop-shadow(0 0 12px rgba(255,180,80,0.28))
        drop-shadow(0 3px 6px rgba(0,0,0,0.45));
    margin-left: 4px;
}
.gacha-v2-history-btn img,
.gacha-v2-history-btn svg {
    height: 52px;
    width: auto;
    display: block;
    overflow: visible;
}
.gacha-v2-history-btn:hover {
    transform: scale(1.08);
    filter:
        drop-shadow(0 0 9px rgba(255,220,140,0.85))
        drop-shadow(0 0 20px rgba(255,180,80,0.5))
        drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

/* 祈愿记录弹窗 */
.gacha-history-modal {
    max-width: 480px;
}
.gacha-history-modal-list {
    max-height: 360px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 8px 4px;
}
.gacha-history-modal-list .empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-mid, #888);
    padding: 30px 0;
    font-size: 13px;
}
.gacha-history-modal-list .item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #888;
    position: relative;
    background: #f5f0e6;
}
.gacha-history-modal-list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gacha-history-modal-list .item.rarity-r  { border-color: #3b82f6; }
.gacha-history-modal-list .item.rarity-sr { border-color: #8b5cf6; box-shadow: 0 0 8px rgba(139,92,246,0.4); }
.gacha-history-modal-list .item.rarity-ssr { border-color: #f59e0b; box-shadow: 0 0 12px rgba(251,191,36,0.55); }
.gacha-history-modal-list .item .rt {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    padding: 12px 2px 2px;
    letter-spacing: 0.5px;
}

/* 抽卡说明弹窗 */
.gacha-help-modal {
    max-width: 380px;
}
.gacha-help-body {
    padding: 6px 4px 10px;
}
.gacha-help-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
}
.gacha-help-label {
    flex: 0 0 auto;
    min-width: 38px;
    text-align: center;
}
.gacha-help-rate {
    flex: 0 0 50px;
    font-weight: 700;
    color: #f59e0b;
    font-size: 14px;
}
.gacha-help-desc {
    flex: 1;
    color: var(--text-mid, #666);
    font-size: 12px;
}
.gacha-help-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,163,90,0.5), transparent);
    margin: 8px 0;
}
.gacha-help-tip {
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-mid, #555);
    padding: 2px 0;
}
.gacha-help-tip b {
    color: #f59e0b;
}

/* —— 窄屏适配 (≤ 720px) —— */
@media (max-width: 720px) {
    .gacha-v2-stage {
        grid-template-columns: 90px 1fr;
        gap: 8px;
        padding: 6px 12px;
    }
    .gacha-v2-side-left { padding-top: 0; }
    .gacha-v2-title-main { max-width: 90px; }
    .gacha-v2-up-cards {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    /* 🧹 已删除 .gacha-v2-up-card:nth-child(4) display:none —— 全屏版只渲染 3 张 SR，废规则 */
.gacha-v2-wish img,
.gacha-v2-wish svg { height: 46px; }
.gacha-v2-history-btn img,
.gacha-v2-history-btn svg { height: 44px; }
    .gacha-v2-topbar { padding: 10px 14px 2px; }
    .gacha-v2-event-tip { padding: 0 14px; font-size: 10px; }
    .gacha-v2-footer { padding: 4px 14px 14px; }
    .gacha-v2-up-card-name { font-size: 12px; }
    .gacha-v2-up-card.is-ssr .gacha-v2-up-card-name { font-size: 15px; }

    /* 🧹 注意：原本这里有一份手机端 .gacha-v2-hero 旧样式（width:100%; mask-image 双向 12%/88%；is-portrait padding-bottom:80px），
       已统一迁移到下方第二个 @media (max-width: 720px) 段（约 1316 行起），与 transform 缩放 / SR 副卡浮层逻辑一起维护。
       此处保留空注释作为锚点，避免再次重复定义造成迁移残留。 */
}
@media (max-width: 460px) {
    /* 🧹 已删除抽屉版 :not(.gacha-fullscreen) 隐藏 SR 卡的废规则 —— 抽屉版抽卡已废弃，仅保留全屏版 */
    .gacha-v2-actions { gap: 6px; }
.gacha-v2-wish img,
.gacha-v2-wish svg { height: 40px; }
.gacha-v2-history-btn img,
.gacha-v2-history-btn svg { height: 38px; }
}


/* ═══════════════════════════════════════════════════════════
   ④ v2 升级：全屏沉浸式抽卡（独立 overlay）
   #gachaFullscreen — 100vw × 100vh，不嵌在抽屉里
   ═══════════════════════════════════════════════════════════ */
.gacha-fullscreen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #0d0805;
    z-index: 1500;                  /* 高于抽屉 (1000)，低于 modal-overlay (2000) */
    color: #f6e9c4;
    font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans", sans-serif;
    overflow: hidden;
    display: none;                  /* 默认隐藏 */
    opacity: 0;
    transition: opacity 0.35s ease;
}
.gacha-fullscreen.active {
    display: block;
    opacity: 1;
}

/* 背景 + 飘星：复用 .gacha-v2-bg / .gacha-v2-stars，但限定到全屏壳子里 */
.gacha-fullscreen .gacha-v2-bg {
    position: absolute;
    inset: 0;
    background: url("assets/gacha/bg.png") center/cover no-repeat;
    z-index: 0;
}
.gacha-fullscreen .gacha-v2-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 30% 50%, rgba(0,0,0,0) 0%, rgba(15,8,2,0.45) 100%),
        linear-gradient(180deg, rgba(15,8,2,0.55) 0%, rgba(15,8,2,0.15) 30%, rgba(15,8,2,0.6) 100%);
}
.gacha-fullscreen .gacha-v2-stars {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* —— SSR 主推立绘层（铺满左半到中间，横板/竖板自适应） —— */
.gacha-v2-hero {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 65%;                     /* 主立绘占左 65% 宽 */
    z-index: 2;
    display: block;                 /* 由 img 自己撑满 */
    overflow: hidden;
    pointer-events: none;
    /* 右侧用径向渐变柔和过渡到背景，避免横板裁切边缘生硬 */
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 100%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 0%, #000 100%, transparent 100%);
}
.gacha-v2-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;            /* 🆕 已改：完整显示不裁剪 */
    object-position: center bottom;   /* ③ 立绘对齐位置 */
    display: block;
    filter: drop-shadow(0 8px 30px rgba(0,0,0,0.6))
            drop-shadow(0 0 60px rgba(255,210,140,0.18));
    animation: gachaHeroFloat 6s ease-in-out infinite alternate;
}
/* 竖版立绘 fallback：保持 contain（与上面一致，留作显式标记） */
.gacha-v2-hero img.is-portrait {
    object-fit: contain;
    object-position: center bottom;
}
@keyframes gachaHeroFloat {
    from { transform: translateY(0); }
    to   { transform: translateY(-8px); }
}

/* —— 顶栏 —— */
.gacha-fullscreen .gacha-v2-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px 10px;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 100%);
}
.gacha-fullscreen .gacha-v2-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.gacha-v2-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(201,163,90,0.7);
    background: rgba(0,0,0,0.45);
    color: #f6e9c4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
}
.gacha-v2-back span {
    font-size: 22px;
    line-height: 1;
    transform: translate(-1px, -2px);
    font-weight: 300;
}
.gacha-v2-back:hover {
    background: rgba(201,163,90,0.3);
    transform: scale(1.08);
}
.gacha-fullscreen .gacha-v2-title-fz {
    height: 30px;
}
.gacha-fullscreen .gacha-v2-help {
    width: 26px;
    height: 26px;
    font-size: 14px;
}

/* —— 限时活动文字 —— */
.gacha-fullscreen .gacha-v2-event-tip {
    position: absolute;
    top: 64px;
    right: 28px;
    z-index: 10;
    font-size: 13px;
    color: rgba(246,233,196,0.9);
}
.gacha-fullscreen .gacha-v2-event-tip b {
    color: #ffd97a;
}

/* —— 左侧标题区（绝对定位，浮于立绘之上） —— */
.gacha-fullscreen .gacha-v2-side-left {
    position: absolute;
    left: 28px;
    top: 18%;
    z-index: 6;
    width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gacha-fullscreen .gacha-v2-title-main {
    width: 130px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(255,200,80,0.45));
    animation: gachaTitleGlow 3s ease-in-out infinite alternate;
}
.gacha-fullscreen .gacha-v2-side-sub {
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 2px;
    color: #d6b886;
}
.gacha-fullscreen .gacha-v2-side-time {
    margin-top: 18px;
    text-align: center;
    line-height: 1.6;
}
.gacha-fullscreen .gacha-v2-side-time-label {
    font-size: 11px;
    color: #b89870;
}
.gacha-fullscreen .gacha-v2-side-time-value {
    font-size: 12px;
    color: #f6e9c4;
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

/* —— SSR 名牌（立绘下方居中，金色椭圆光晕风格） —— */
.gacha-v2-ssr-nameplate {
    position: absolute;
    bottom: 130px;
    left: 32%;                      /* 居中于 hero 区域 */
    transform: translateX(-50%);
    z-index: 7;
    text-align: center;
    pointer-events: none;
    padding: 14px 60px;
}
.gacha-v2-ssr-nameplate::before {
    content: "";
    position: absolute;
    inset: -10px -20px;
    background: radial-gradient(ellipse 60% 70% at 50% 50%,
                rgba(255,220,140,0.35) 0%,
                rgba(255,200,80,0.15) 35%,
                transparent 70%);
    z-index: -1;
    filter: blur(2px);
}
.gacha-v2-ssr-rarity {
    font-size: 20px;
    font-weight: 700;
    color: #fff5d4;
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(255,200,80,0.7), 0 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 4px;
    font-family: "Times New Roman", serif;
    font-style: italic;
}
.gacha-v2-ssr-name {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 6px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.85),
                 0 0 18px rgba(255,200,80,0.6),
                 0 0 36px rgba(255,200,80,0.35);
    margin-bottom: 6px;
}
.gacha-v2-ssr-stars {
    color: #ffd97a;
    font-size: 18px;
    letter-spacing: 6px;
    text-shadow: 0 0 10px rgba(255,200,80,0.7), 0 2px 3px rgba(0,0,0,0.7);
}

/* —— SR 副卡区（右侧窄长条，错落排列） —— */
.gacha-fullscreen .gacha-v2-up-cards {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: center;
    padding: 0;
    grid-template-columns: none;    /* 覆盖小屏 grid */
    height: 70vh;
    max-height: 620px;
}
.gacha-fullscreen .gacha-v2-up-card {
    position: relative;
    width: 130px;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(80,55,20,0.25) 0%, rgba(20,12,5,0.65) 100%);
    border: 1px solid rgba(201,163,90,0.5);
    box-shadow:
        inset 0 0 30px rgba(255,200,80,0.08),
        0 6px 20px rgba(0,0,0,0.55);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
/* 错落感：第 1 张正常，第 2 张稍上，第 3 张正常 —— 像效果图那样上下交错 */
.gacha-fullscreen .gacha-v2-up-card:nth-child(1) { transform: translateY(8px); }
.gacha-fullscreen .gacha-v2-up-card:nth-child(2) { transform: translateY(-12px); }
.gacha-fullscreen .gacha-v2-up-card:nth-child(3) { transform: translateY(4px); }
.gacha-fullscreen .gacha-v2-up-card:hover {
    transform: translateY(-18px) !important;
    box-shadow:
        inset 0 0 30px rgba(255,200,80,0.18),
        0 12px 32px rgba(255,200,80,0.4);
}
.gacha-fullscreen .gacha-v2-up-card .gacha-v2-up-card-img {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}
.gacha-fullscreen .gacha-v2-up-card .gacha-v2-up-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
.gacha-fullscreen .gacha-v2-up-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 6px 14px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 65%);
    text-align: center;
}
.gacha-fullscreen .gacha-v2-up-card-rarity {
    width: 30px;
    height: 30px;
    margin-bottom: 2px;
}
.gacha-fullscreen .gacha-v2-up-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 0 10px rgba(255,200,80,0.4);
    margin-bottom: 3px;
}
.gacha-fullscreen .gacha-v2-up-card-stars {
    color: #ffd97a;
    font-size: 11px;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

/* —— 底部：保底文案 + 按钮 —— */
.gacha-fullscreen .gacha-v2-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    padding: 10px 28px 22px;
    background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}
.gacha-fullscreen .gacha-v2-pity {
    flex: 0 0 auto;
    text-align: left;
    font-size: 12px;
    color: rgba(246,233,196,0.85);
    line-height: 1.7;
    padding: 0;
}
.gacha-fullscreen .gacha-v2-pity-sub {
    color: rgba(246,233,196,0.6);
    font-size: 11px;
}
.gacha-fullscreen .gacha-v2-actions {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 0;
}
.gacha-fullscreen .gacha-v2-wish img,
.gacha-fullscreen .gacha-v2-wish svg {
    height: 64px;
}
.gacha-fullscreen .gacha-v2-history-btn img,
.gacha-fullscreen .gacha-v2-history-btn svg {
    height: 56px;
}

/* —— 进入动画 —— */
.gacha-fullscreen.active .gacha-v2-hero img {
    animation: gachaHeroEnter 0.8s ease-out, gachaHeroFloat 6s ease-in-out 0.8s infinite alternate;
}
@keyframes gachaHeroEnter {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.gacha-fullscreen.active .gacha-v2-up-card {
    animation: gachaCardEnter 0.6s ease-out backwards;
}
.gacha-fullscreen.active .gacha-v2-up-card:nth-child(1) { animation-delay: 0.2s; }
.gacha-fullscreen.active .gacha-v2-up-card:nth-child(2) { animation-delay: 0.35s; }
.gacha-fullscreen.active .gacha-v2-up-card:nth-child(3) { animation-delay: 0.5s; }
@keyframes gachaCardEnter {
    from { opacity: 0; transform: translateX(80px) translateY(var(--ty, 0)); }
    to   { opacity: 1; }
}
.gacha-fullscreen.active .gacha-v2-ssr-nameplate {
    animation: gachaNameEnter 0.7s ease-out 0.4s backwards;
}
@keyframes gachaNameEnter {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* —— 平板适配 (≤ 1024px) —— */
@media (max-width: 1024px) {
    .gacha-v2-hero { width: 60%; }
    .gacha-fullscreen .gacha-v2-up-cards {
        gap: 10px;
    }
    .gacha-fullscreen .gacha-v2-up-card { width: 110px; }
    .gacha-v2-ssr-name { font-size: 30px; letter-spacing: 4px; }
    .gacha-v2-ssr-rarity { font-size: 18px; }
    .gacha-fullscreen .gacha-v2-side-left { left: 18px; top: 16%; width: 110px; }
    .gacha-fullscreen .gacha-v2-title-main { width: 110px; }
}

/* —— 手机竖屏适配 (≤ 720px) —— */
/* 视觉重心调整：SR 副卡上移、SSR 主立绘放大下移（主推占据视觉中心） */
@media (max-width: 720px) {
    /* SSR 主立绘：照搬手机端换装的尺寸逻辑 ——
       换装是 height:75dvh; width:42.2dvh; 居中底部锚定。
       这里用同样的 dvh 基准，让两个页面立绘大小完全一致；再叠加 translateY(-11%) scale(0.86) 与换装对齐。 */
    .gacha-fullscreen .gacha-v2-hero {
        /* 📐 与换装一致的尺寸：宽 42.2dvh、高 75dvh，水平居中、底部锚定（SR 副卡改为叠在立绘上） */
        width: 42.2dvh;
        height: 65dvh;
        max-width: 88%;             /* 极宽屏兜底（不再让位 SR 柱，可以稍大一点） */
        top: auto;
        bottom: 0;
        left: 50%;                  /* 居中独占舞台 */
        transform: translateX(-50%) translateY(-11%) scale(1.25);
        transform-origin: 50% 100%;
        margin-left: 0;
        /* 🌫️ 顶部柔光衔接 SR 卡，底部不消隐 */
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 100%);
                mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 100%);
    }
    .gacha-v2-hero img {
        width: 100%;
        height: 100%;
        object-fit: contain;        /* 🆕 完整呈现立绘，不裁剪（容器留白由 mask 柔光过渡到背景） */
        object-position: center bottom;
    }
    /* 重要：清除早期 padding-bottom: 80px 残留 */
    .gacha-v2-hero img.is-portrait {
        padding-bottom: 0;
        object-fit: contain;        /* 🆕 同上，竖板也保持完整 */
        object-position: center bottom;
    }
    /* 星辉衣橱标题：仍贴左上 */
    .gacha-fullscreen .gacha-v2-side-left {
        left: 14px;
        top: 70px;
        width: 96px;
    }
    .gacha-fullscreen .gacha-v2-title-main { width: 96px; }
    .gacha-fullscreen .gacha-v2-side-sub { font-size: 10px; letter-spacing: 1px; }
    .gacha-fullscreen .gacha-v2-side-time { margin-top: 6px; }
    .gacha-fullscreen .gacha-v2-side-time-value { font-size: 10px; }

    /* SR 副卡：叠在立绘右上角的玻璃感浮层（不再独占右侧一柱）
       —— 主立绘居中后，SR 卡作为"推荐位"飘在立绘右上方的负空间里 */
    .gacha-fullscreen .gacha-v2-up-cards {
        position: absolute;
        top: 78px;                   /* 顶栏下方一点（稍上移给 3 张腾空间） */
        bottom: calc(130px + env(safe-area-inset-bottom, 0px));               /* 距底部 footer 留空，3 张能放进来 */
        right: 8px;
        left: auto;
        transform: none;
        width: auto;
        height: auto;
        max-height: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 18px;                    /* 紧凑一点 */
        padding: 0;
        z-index: 6;                  /* 叠在立绘之上 */
        pointer-events: auto;
    }
    .gacha-fullscreen .gacha-v2-up-card {
        width: 80px;
        max-width: 80px;
        height: 140px;
        flex: 0 0 140px;             /* 固定高度=容器高度，不被 flex 拉伸/压缩（要和 height 一致） */
        /* 玻璃感浮层：半透明 + 背景模糊，避免遮挡立绘 */
        background: rgba(20, 12, 6, 0.42);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border: 1px solid rgba(255, 220, 180, 0.35);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    }
    /* 去掉错落：手机端不需要 */
    .gacha-fullscreen .gacha-v2-up-card:nth-child(1),
    .gacha-fullscreen .gacha-v2-up-card:nth-child(2),
    .gacha-fullscreen .gacha-v2-up-card:nth-child(3) { transform: none; }
    .gacha-fullscreen .gacha-v2-up-card-name { font-size: 9px; letter-spacing: 1px; }
    .gacha-fullscreen .gacha-v2-up-card-info { padding: 6px 3px 4px; }
    .gacha-fullscreen .gacha-v2-up-card-rarity { width: 16px; height: 16px; font-size: 9px; }
    .gacha-fullscreen .gacha-v2-up-card-stars { font-size: 7px; letter-spacing: 1px; }

    /* SSR 名牌：紧凑横向单行，位于主立绘下沿（footer 上方）但不压住脸；主立绘占满全宽，名牌居屏幕水平中心（主推犹在偏左身位，名牌仍按原设计居中起袈误作用） */
    .gacha-v2-ssr-nameplate {
        left: 50%;
        top: auto;
        bottom: calc(130px + env(safe-area-inset-bottom, 0px));          /* 贴近 footer 上方，避开主推上半身 */
        padding: 5px 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        white-space: nowrap;
        background: rgba(15,8,2,0.55);
        backdrop-filter: blur(4px);
    }
    .gacha-v2-ssr-rarity {
        font-size: 13px;
        margin-bottom: 0;
        letter-spacing: 1px;
    }
    .gacha-v2-ssr-name {
        font-size: 19px;
        letter-spacing: 2px;
        margin-bottom: 0;
    }
    .gacha-v2-ssr-stars {
        font-size: 11px;
        letter-spacing: 2px;
    }

    /* 底部：保底文案 + 按钮（含安全区适配，三星/iPhone 底部导航条） */
    .gacha-fullscreen .gacha-v2-footer {
        padding: 8px 14px calc(14px + env(safe-area-inset-bottom, 0px));
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .gacha-fullscreen .gacha-v2-pity { text-align: center; font-size: 11px; }
    .gacha-fullscreen .gacha-v2-actions { justify-content: center; gap: 10px; }
    .gacha-fullscreen .gacha-v2-wish img,
    .gacha-fullscreen .gacha-v2-wish svg { height: 48px; }
    .gacha-fullscreen .gacha-v2-history-btn img,
    .gacha-fullscreen .gacha-v2-history-btn svg { height: 44px; }
    .gacha-fullscreen .gacha-v2-event-tip {
        font-size: 10px;
        right: 12px;
        top: 56px;
    }
    .gacha-fullscreen .gacha-v2-topbar { padding: 12px 14px 8px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
    .gacha-fullscreen .gacha-v2-title-fz { height: 22px; }
    .gacha-fullscreen svg.gacha-v2-title-fz { height: 22px; }
}
