﻿/* ═══ VOID GACHA 召喚聖殿 · VOID GACHA Summoning Chamber ═══ */

.summon-chamber-wrap {
    overflow: visible;
}

.summon-chamber-page {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.summon-chamber {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: min(1180px, 100%);
    margin-inline: auto;
    min-height: 560px;
    padding: 2px 14px 16px;
    border-radius: 18px;
    overflow: visible;
    isolation: isolate;
    box-sizing: border-box;
}

.summon-chamber__bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/gacha/bg.jpg?v=3');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: saturate(1.08) contrast(1.05);
    z-index: 0;
}

.summon-chamber__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 70% at 50% 42%, transparent 0%, rgba(4, 2, 12, 0.55) 72%, rgba(2, 0, 8, 0.92) 100%);
    z-index: 1;
    pointer-events: none;
}

.summon-chamber__nebula {
    position: absolute;
    inset: -20% -10%;
    background:
        radial-gradient(ellipse 40% 30% at 20% 15%, rgba(80, 40, 200, 0.25), transparent 60%),
        radial-gradient(ellipse 35% 28% at 80% 20%, rgba(0, 180, 255, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 0%, rgba(255, 0, 180, 0.12), transparent 65%);
    animation: chamber-nebula-drift 18s ease-in-out infinite alternate;
    z-index: 1;
    pointer-events: none;
}

.summon-chamber__crack {
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 0;
    height: 38%;
    background:
        linear-gradient(0deg, rgba(180, 80, 255, 0.35) 0%, transparent 45%),
        repeating-linear-gradient(
            95deg,
            transparent 0,
            transparent 40px,
            rgba(255, 255, 255, 0.04) 40px,
            rgba(255, 255, 255, 0.04) 42px
        );
    opacity: 0.85;
    z-index: 2;
    pointer-events: none;
    animation: chamber-crack-pulse 3s ease-in-out infinite;
}

@keyframes chamber-nebula-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(2%, -1%) scale(1.03); }
}

@keyframes chamber-crack-pulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
}

.summon-chamber__pool-bar {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: min(720px, 100%);
    margin: 0 auto 4px;
    margin-inline: auto;
    display: flex;
    justify-content: center;
}

.summon-chamber__pool-tabs {
    width: 100%;
    max-width: min(680px, 98vw);
    margin: 0 auto 10px !important;
    padding: 10px 12px !important;
    gap: 14px !important;
    background: rgba(6, 4, 18, 0.82) !important;
    border-color: rgba(212, 175, 55, 0.25) !important;
    box-shadow:
        inset 0 0 28px rgba(127, 0, 255, 0.18),
        0 0 24px rgba(0, 255, 255, 0.08) !important;
    backdrop-filter: blur(3px) saturate(1.06) !important;
    -webkit-backdrop-filter: blur(3px) saturate(1.06) !important;
    overflow: visible;
}

.gacha-view .summon-chamber__pool-tabs .machine-pool-tab {
    min-height: 118px;
    padding: 18px 14px 16px !important;
    overflow: visible !important;
}

.gacha-view .summon-chamber__pool-tabs .machine-pool-tab__name {
    font-size: clamp(15px, 2.4vw, 18px);
    letter-spacing: 0.14em;
}

.gacha-view .summon-chamber__pool-tabs .machine-pool-tab__sub {
    font-size: 11px;
    opacity: 0.88;
}

.summon-chamber__pool-tabs .machine-pool-tab__icon-wrap {
    width: 68px;
    height: 68px;
    margin-bottom: 8px;
}

.summon-chamber__pool-tabs .pool-tab-gem {
    width: 52px;
    height: 52px;
}

.summon-chamber__title {
    position: relative;
    z-index: 6;
    isolation: isolate;
    width: 100%;
    max-width: min(960px, 100%);
    margin: 0 auto 12px;
    padding: 0;
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(168, 85, 247, 0.25);
}

.summon-chamber__title-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
    width: 100%;
    min-height: 48px;
    padding: 11px 18px 12px;
    box-sizing: border-box;
    white-space: nowrap;
    font-family: Orbitron, 'Noto Sans TC', system-ui, sans-serif;
    font-size: clamp(12px, 1.75vw, 18px);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.15;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.summon-chamber__title-zh,
.summon-chamber__title-en {
    flex-shrink: 0;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: none;
    -webkit-text-stroke: 0.55px rgba(36, 8, 56, 0.92);
    paint-order: stroke fill;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 1),
        0 2px 5px rgba(0, 0, 0, 0.88),
        0 0 10px rgba(255, 120, 210, 0.75),
        0 0 18px rgba(192, 132, 252, 0.55);
}

.summon-chamber__title-en {
    font-size: 0.94em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff8ff;
    -webkit-text-fill-color: #fff8ff;
}

.summon-chamber__title-sep {
    flex-shrink: 0;
    font-size: 0.55em;
    color: #ffb8e8;
    -webkit-text-fill-color: #ffb8e8;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.95),
        0 0 8px #ff6ec7,
        0 0 14px #e040fb;
    opacity: 1;
}

.summon-chamber__title-ico {
    flex-shrink: 0;
    font-size: 0.95em;
    color: #ffe566;
    -webkit-text-fill-color: #ffe566;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(255, 215, 0, 0.95),
        0 0 12px rgba(255, 77, 141, 0.55);
}

.summon-chamber__title::before {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: 0;
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(16, 6, 34, 0.98) 0%, rgba(8, 3, 20, 0.97) 100%),
        radial-gradient(ellipse 80% 120% at 50% 0%, rgba(255, 77, 141, 0.18), transparent 65%);
    border: 1px solid rgba(232, 121, 249, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -8px 24px rgba(124, 58, 237, 0.28);
}

.summon-chamber__title::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
        90deg,
        #ff6ec7,
        #e040fb,
        #00ffff,
        #c084fc,
        #ff6ec7,
        #f472b6,
        #a855f7
    );
    background-size: 300% 100%;
    animation: summon-chamber-title-flow 4s linear infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes summon-chamber-title-flow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}


.summon-chamber__stage {
    position: relative;
    z-index: 4;
    display: grid;
    /* 側欄固定寬度，避免 164px 支柱在 120px 欄內被裁切 */
    grid-template-columns: minmax(148px, 178px) minmax(280px, 1fr) minmax(148px, 178px);
    gap: 10px 14px;
    /* 用頂部對齊，避免不同模式因高度差異而垂直置中 */
    align-items: start;
    justify-content: center;
    width: 100%;
    max-width: min(1180px, 100%);
    margin-inline: auto;
    margin-top: 0;
    min-height: min(460px, 68vh);
    overflow: visible;
    box-sizing: border-box;
}

/* 限定／普通池：跟銀幣卡機維持同高度，避免視覺落差 */
.summon-chamber:not(.summon-chamber--no-packs):not(.summon-chamber--silver-showcase) .summon-chamber__stage {
    min-height: min(540px, 74vh);
}

/* 有八大卡包支柱時略上移，不與標題重疊 */
.summon-chamber:not(.summon-chamber--no-packs) .summon-chamber__stage {
    margin-top: -8px;
}

.summon-chamber__pillars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding-bottom: 0;
    width: 100%;
    max-width: 178px;
    overflow: visible;
    min-width: 0;
}

.summon-chamber__pillars--left {
    align-items: flex-end;
    justify-self: end;
    padding-right: 2px;
}

.summon-chamber__pillars--right {
    align-items: flex-start;
    justify-self: start;
    padding-left: 2px;
}

/** 銀幣卡機：無八大卡包，僅中央控制台（整體上移） */
.summon-chamber--no-packs:not(.summon-chamber--silver-showcase) .summon-chamber__pillars {
    display: none;
}

/**
 * 銀幣全池展示：與限定機共用 .summon-chamber:not(.summon-chamber--no-packs) 舞台
 *（三欄 grid、支柱 148px、中央預覽 300px、stage margin-top -8px）
 */
.summon-chamber--silver-showcase .summon-chamber__pillars {
    display: flex;
}

.summon-pillar--showcase {
    cursor: default;
    pointer-events: none;
}

/* 銀幣機：左右展示卡可點選，切換中央大卡預覽 */
.summon-chamber--silver-showcase .summon-pillar--showcase {
    cursor: pointer;
    pointer-events: auto;
}

/* 限定卡機：左右支柱依宗族卡包輪播 SEC / MR / UR */
.summon-chamber--limited-rotate .summon-pillar--limited-showcase {
    cursor: pointer;
    pointer-events: auto;
}

.summon-chamber--limited-rotate .summon-pillar--limited-showcase:hover .summon-pillar__pedestal,
.summon-chamber--limited-rotate .summon-pillar--limited-showcase:focus-visible .summon-pillar__pedestal {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.summon-pillar--limited-showcase .summon-pillar__tag {
    font-family: Orbitron, 'Segoe UI', sans-serif;
    letter-spacing: 0.14em;
}

.summon-pillar--limited-showcase.is-swapping .summon-pillar__pedestal {
    animation: limitedPillarSwap 0.45s ease;
}

@keyframes limitedPillarSwap {
    0% {
        opacity: 0.35;
        transform: scale(0.94);
        filter: brightness(0.85);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
}

.summon-chamber--silver-showcase .summon-pillar--showcase:hover .summon-pillar__pedestal,
.summon-chamber--silver-showcase .summon-pillar--showcase:focus-visible .summon-pillar__pedestal {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.summon-chamber--silver-showcase .summon-pillar--showcase.is-swapping .summon-pillar__pedestal {
    animation: limitedPillarSwap 0.45s ease;
}

/* 銀幣機：左右各 4 張 MR / UR 展示 */
.summon-chamber--silver-showcase .summon-chamber__pillars {
    gap: 10px;
    justify-content: center;
}

.summon-chamber--silver-showcase .summon-pillar--showcase {
    width: 100%;
    max-width: 168px;
    flex-shrink: 0;
}

.summon-chamber--silver-showcase .summon-pillar__art {
    aspect-ratio: 3 / 4;
    max-height: none;
}

/* 銀幣展示：選中卡僅邊框提示，光暈旋轉/亮度與其他支柱一致（避免左上預設選中特別快、特亮） */
.summon-chamber--silver-showcase .summon-pillar--showcase.is-active {
    transform: none;
    filter: none;
}

.summon-chamber--silver-showcase .summon-pillar--showcase.is-active .summon-pillar__aura {
    opacity: 0.45;
    animation-duration: 6s;
}

.summon-chamber--silver-showcase .summon-pillar--showcase.is-active .summon-pillar__pedestal {
    border-color: rgba(255, 215, 0, 0.55);
    box-shadow:
        var(--void-glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.42)),
        0 8px 24px rgba(0, 0, 0, 0.55),
        inset 0 0 20px rgba(127, 0, 255, 0.15),
        0 0 14px var(--pillar-glow, rgba(168, 85, 247, 0.35));
}

.summon-chamber--silver-showcase .summon-chamber__stage {
    min-height: min(540px, 74vh);
    align-items: start;
}

.summon-pillar--showcase:hover,
.summon-pillar--showcase:focus {
    transform: none;
    filter: none;
}

.summon-pillar--preview-only .summon-pillar__pedestal {
    opacity: 0.92;
}

.summon-pillar--preview-only .summon-pillar__rates {
    color: rgba(220, 230, 255, 0.82);
}

.summon-pillar[data-rarity='MR'] .summon-pillar__tag {
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.9), rgba(180, 40, 120, 0.85));
}

.summon-pillar[data-rarity='UR'] .summon-pillar__tag {
    background: linear-gradient(135deg, rgba(255, 180, 60, 0.9), rgba(200, 120, 40, 0.85));
}

.summon-chamber--no-packs .summon-chamber__stage {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: start;
    width: 100%;
    max-width: min(520px, 100%);
    margin-left: auto;
    margin-right: auto;
    min-height: auto;
    margin-top: -8px;
    padding-top: 4px;
}

.summon-chamber--no-packs {
    min-height: auto;
    padding-top: 0;
    padding-bottom: 8px;
}

.summon-chamber--no-packs .summon-chamber__center {
    width: 100%;
    max-width: min(480px, 94vw);
    margin-left: auto;
    margin-right: auto;
    justify-content: flex-start;
    align-items: center;
    /* 與限定/普通一致：讓中央預覽框頂部對齊 */
    padding: 0 16px 16px;
    margin-top: 0;
    gap: 10px;
    box-sizing: border-box;
}

.summon-chamber--no-packs .summon-chamber__foot,
.summon-chamber--no-packs .summon-chamber__newbie {
    display: none !important;
}

.summon-chamber--no-packs .summon-chamber__scheme {
    margin: 8px 0 0;
    order: 10;
}

.summon-chamber--no-packs .summon-chamber__pity-strip {
    display: none !important;
}

.summon-chamber--no-packs .summon-chamber__bg {
    opacity: 0.35;
}

.gacha-machine-wrap.pool-silver .summon-chamber--no-packs .summon-chamber__stage {
    margin-top: -8px;
}

.gacha-machine-wrap.pool-silver .summon-chamber--no-packs .summon-chamber__title {
    margin-bottom: 12px;
}

.gacha-machine-wrap.pool-silver .summon-chamber--no-packs .summon-chamber__pool-bar {
    margin-bottom: 2px;
}

/* 限定／普通池：還原 home 大預覽區 */
.summon-chamber:not(.summon-chamber--no-packs) .summon-chamber__preview.machine-preview,
.summon-chamber:not(.summon-chamber--no-packs) .machine-preview.summon-chamber__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(300px, 44vw);
    min-height: 300px;
    margin: 0 auto 10px;
}

/* 銀幣池：略小於全池，仍保持可讀大圖 */
.summon-chamber--no-packs .summon-chamber__preview {
    width: min(260px, 42vw);
    min-height: min(340px, 50vh) !important;
    margin: 0 auto 8px;
}

.summon-chamber--no-packs .summon-chamber__hands {
    display: none;
}

.summon-chamber--no-packs .summon-chamber__frame {
    width: 100%;
    max-width: 360px;
    margin: 0 auto 4px;
    padding: 8px 16px 10px;
    box-sizing: border-box;
}

.summon-chamber--no-packs .summon-chamber__frame-en {
    display: none;
}

.gacha-view .summon-chamber--no-packs .machine-center-glow .card-3d-wrap {
    width: min(260px, 42vw) !important;
    max-height: 390px;
}

.gacha-view .summon-chamber:not(.summon-chamber--no-packs) .machine-center-glow .card-3d-wrap {
    width: min(280px, 44vw) !important;
    max-height: 420px;
    aspect-ratio: 2 / 3;
    height: auto !important;
}

.summon-chamber--no-packs .summon-chamber__console {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
}

/* 銀幣池主題：背景略上移、冷色光暈 */
.gacha-machine-wrap.pool-silver .summon-chamber__bg {
    background-position: center 18%;
}

.gacha-machine-wrap.pool-silver .summon-chamber__nebula {
    background:
        radial-gradient(ellipse 45% 35% at 25% 12%, rgba(0, 180, 255, 0.28), transparent 58%),
        radial-gradient(ellipse 40% 32% at 78% 18%, rgba(100, 140, 255, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 0%, rgba(127, 0, 255, 0.1), transparent 65%);
}

/* 銀幣展示模式與限定機同一中央半透明區；僅無支柱舊版才用冷色實底 */
.gacha-machine-wrap.pool-silver .summon-chamber--no-packs:not(.summon-chamber--silver-showcase) .summon-chamber__center {
    border-color: rgba(80, 180, 255, 0.35);
    background: linear-gradient(180deg, rgba(6, 20, 40, 0.4) 0%, rgba(8, 4, 18, 0.75) 100%);
}

.gacha-machine-wrap.pool-silver .summon-chamber__title {
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.55),
        0 0 22px rgba(126, 200, 255, 0.3);
}

.gacha-machine-wrap.pool-silver .summon-chamber__title::before {
    background:
        linear-gradient(180deg, rgba(6, 18, 38, 0.98) 0%, rgba(4, 10, 28, 0.97) 100%),
        radial-gradient(ellipse 80% 120% at 50% 0%, rgba(126, 200, 255, 0.2), transparent 65%);
    border-color: rgba(126, 200, 255, 0.5);
}

.gacha-machine-wrap.pool-silver .summon-chamber__title-zh,
.gacha-machine-wrap.pool-silver .summon-chamber__title-en {
    color: #f5fcff;
    -webkit-text-fill-color: #f5fcff;
    background: none;
    -webkit-text-stroke: 0.55px rgba(8, 28, 52, 0.95);
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 1),
        0 2px 5px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(126, 200, 255, 0.85),
        0 0 16px rgba(0, 220, 255, 0.45);
}

.gacha-machine-wrap.pool-silver .summon-chamber__title::after {
    background: linear-gradient(90deg, #7ec8ff, #00ffff, #e040fb, #c084fc, #7ec8ff);
    background-size: 300% 100%;
}

.summon-pillar {
    position: relative;
    width: 100%;
    max-width: 168px;
    flex-shrink: 0;
    cursor: pointer;
    border: none;
    padding: 0;
    background: transparent;
    font-family: inherit;
    text-align: center;
    transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), filter 0.25s;
    touch-action: pan-y;
}

.summon-pillar:hover {
    transform: translateY(-6px) scale(1.04);
    filter: brightness(1.12);
}

.summon-pillar.is-active {
    transform: translateY(-10px) scale(1.06);
    filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 215, 0, 0.45));
}

.summon-pillar__pedestal {
    position: relative;
    padding: 8px 8px 10px;
    border-radius: 12px 12px 8px 8px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.55),
        inset 0 0 20px rgba(127, 0, 255, 0.15);
}

.summon-pillar.is-active .summon-pillar__pedestal {
    border-color: rgba(255, 215, 0, 0.65);
    box-shadow:
        0 0 28px var(--pillar-glow, rgba(168, 85, 247, 0.5)),
        inset 0 0 24px rgba(255, 215, 0, 0.12);
}

.summon-pillar__aura {
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    background: conic-gradient(
        from 0deg,
        transparent,
        var(--pillar-glow, rgba(168, 85, 247, 0.5)),
        transparent,
        var(--pillar-glow, rgba(0, 255, 255, 0.4)),
        transparent
    );
    opacity: 0.45;
    animation: pillar-aura-spin 6s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.summon-pillar.is-active .summon-pillar__aura {
    opacity: 0.85;
    animation-duration: 3s;
}

@keyframes pillar-aura-spin {
    to { transform: rotate(360deg); }
}

.summon-pillar__art {
    position: relative;
    z-index: 1;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--pillar-border, rgba(192, 132, 252, 0.55));
    box-shadow: 0 0 16px var(--pillar-glow, rgba(127, 0, 255, 0.35));
    background: #06040c;
}

.summon-pillar__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.summon-pillar__emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 42px;
}

.summon-pillar__tag {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffe566;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.summon-pillar__name {
    position: relative;
    z-index: 1;
    margin: 6px 0 2px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

.summon-pillar__sub {
    font-size: 10px;
    font-weight: 700;
    color: rgba(230, 220, 255, 0.95);
    letter-spacing: 0.06em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.summon-pillar__rates {
    font-size: 9px;
    font-weight: 800;
    color: #ffe566;
    margin-top: 3px;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* 支柱主題色 */
.summon-pillar[data-theme='cosmic'] { --pillar-glow: rgba(140, 80, 255, 0.55); --pillar-border: rgba(180, 120, 255, 0.7); }
.summon-pillar[data-theme='gundam'] { --pillar-glow: rgba(255, 60, 60, 0.5); --pillar-border: rgba(255, 100, 80, 0.65); }
.summon-pillar[data-theme='ocean'] { --pillar-glow: rgba(0, 180, 255, 0.5); --pillar-border: rgba(80, 200, 255, 0.65); }
.summon-pillar[data-theme='robot'] { --pillar-glow: rgba(100, 200, 255, 0.45); --pillar-border: rgba(120, 180, 255, 0.6); }
.summon-pillar[data-theme='monster'] { --pillar-glow: rgba(80, 220, 120, 0.5); --pillar-border: rgba(100, 255, 140, 0.6); }
.summon-pillar[data-theme='chinese'] { --pillar-glow: rgba(255, 200, 80, 0.5); --pillar-border: rgba(255, 220, 120, 0.65); }
.summon-pillar[data-theme='greek'] { --pillar-glow: rgba(255, 240, 180, 0.55); --pillar-border: rgba(255, 230, 160, 0.7); }
.summon-pillar[data-theme='limited'] { --pillar-glow: rgba(255, 0, 180, 0.5); --pillar-border: rgba(255, 100, 200, 0.65); }
.summon-pillar[data-theme='rainbow'] { --pillar-glow: rgba(255, 128, 255, 0.5); --pillar-border: rgba(200, 150, 255, 0.65); }

.summon-chamber__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12px 8px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.72) 100%);
    border-radius: 14px;
    border: 1px solid rgba(140, 100, 255, 0.28);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}

/* 八大卡包：中央區半透明，不擋住左右支柱 */
.summon-chamber:not(.summon-chamber--no-packs) .summon-chamber__center {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.22) 0%,
        rgba(0, 0, 0, 0.48) 55%,
        rgba(0, 0, 0, 0.58) 100%
    );
    border-color: rgba(140, 100, 255, 0.22);
    box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.25);
}

/* 減輕左右暗角，支柱卡牌更清晰 */
.summon-chamber:not(.summon-chamber--no-packs) .summon-chamber__vignette {
    background: radial-gradient(
        ellipse 92% 78% at 50% 42%,
        transparent 0%,
        rgba(4, 2, 12, 0.42) 74%,
        rgba(2, 0, 8, 0.82) 100%
    );
}

.summon-chamber__hands {
    position: relative;
    width: min(100%, 320px);
    height: 72px;
    margin-bottom: -8px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.5;
}

.summon-hand {
    position: absolute;
    bottom: 0;
    width: 88px;
    height: 64px;
    background: linear-gradient(145deg, #1a1028 0%, #080610 55%, #2a1840 100%);
    border-radius: 40% 40% 12% 12%;
    box-shadow:
        inset 0 -8px 20px rgba(0, 255, 255, 0.15),
        0 0 24px rgba(0, 212, 255, 0.25);
    border: 1px solid rgba(0, 212, 255, 0.35);
}

.summon-hand--l {
    left: 8%;
    transform: rotate(-8deg);
}

.summon-hand--r {
    right: 8%;
    transform: rotate(8deg) scaleX(-1);
}

.summon-hand::after {
    content: '';
    position: absolute;
    inset: 20% 15% 30%;
    background: radial-gradient(ellipse at 50% 80%, rgba(0, 255, 255, 0.35), transparent 70%);
    animation: hand-glow-pulse 2.5s ease-in-out infinite;
}

@keyframes hand-glow-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.summon-chamber__frame {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    padding: 12px 20px 14px;
    margin-bottom: 8px;
    box-sizing: border-box;
    border: 2px solid rgba(0, 212, 255, 0.55);
    border-radius: 10px;
    background: rgba(4, 6, 18, 0.92);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.75),
        0 0 28px rgba(0, 212, 255, 0.2),
        inset 0 0 16px rgba(0, 80, 120, 0.25);
    text-align: center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.summon-chamber__frame-en {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: rgba(200, 235, 255, 0.75);
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.summon-chamber__frame-zh {
    margin: 6px 0 0;
    font-size: clamp(16px, 2.4vw, 19px);
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.12em;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.95),
        0 0 14px rgba(0, 212, 255, 0.35);
}

.summon-chamber__frame-rate {
    margin: 6px 0 0;
    font-size: 12px;
    font-weight: 800;
    color: #ffe566;
    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.95),
        0 0 10px rgba(255, 215, 0, 0.4);
}

.summon-chamber__preview {
    position: relative;
    z-index: 3;
    width: min(300px, 44vw);
    aspect-ratio: 2 / 3;
    margin: 0 auto 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.65));
}

.summon-chamber__preview .machine-center-glow {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 12px;
}

.summon-chamber__preview .card-unified-rarity {
    padding: 5px 8px 6px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.summon-chamber__preview .card-unified-rarity__main,
.summon-chamber__preview .card-unified-rarity__sub {
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 1),
        0 0 8px rgba(0, 0, 0, 0.85);
}

.summon-chamber__preview .card-unified-stars-wrap {
    background: rgba(0, 0, 0, 0.72);
    border-color: rgba(232, 121, 249, 0.65);
}

.summon-chamber__preview .card-footer-ui {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
}

.summon-chamber__preview .machine-center-glow {
    width: 100% !important;
    height: auto !important;
    min-height: 0;
}

.summon-chamber__preview .card-3d-wrap {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    aspect-ratio: 2 / 3;
}

.summon-chamber__console {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    padding: 12px 14px 10px;
    box-sizing: border-box;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(24, 14, 36, 0.95), rgba(6, 4, 14, 0.98));
    border: 2px solid rgba(212, 175, 55, 0.35);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.6),
        inset 0 0 30px rgba(127, 0, 255, 0.12);
}

/* 召喚按鈕佈局與 MYTHIC RISING 樣式 → css/mythic-summon-buttons.css */
.summon-console__actions:not(.summon-console__actions--mythic) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    justify-items: stretch;
    gap: 12px;
    width: 100%;
}

.summon-btn__main {
    display: none !important;
}

.summon-chamber__prob {
    margin: 0;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.72);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border: 1px solid rgba(0, 212, 255, 0.28);
    line-height: 1.45;
    word-break: break-word;
}

.summon-chamber__scheme {
    margin: 10px auto 4px;
    width: 100%;
    font-size: 11px;
    font-weight: 700;
    color: rgba(230, 220, 255, 0.92);
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.summon-chamber__pity-strip {
    margin-top: 6px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 4px;
}

.summon-chamber__pity-strip .pity-chip {
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px !important;
    background: rgba(0, 0, 0, 0.72) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
    border-width: 1px;
}

.summon-chamber__newbie {
    margin-top: 8px;
}

.summon-chamber__foot {
    position: relative;
    z-index: 5;
    margin: 12px 0 0;
    text-align: center;
    font-size: 11px;
    color: rgba(200, 180, 255, 0.75);
}

.summon-chamber-wrap {
    flex: 0 0 auto;
    overflow: visible;
    width: 100%;
}

.gacha-hub--machine:has(.summon-chamber) {
    overflow: visible;
    min-height: auto;
    max-height: none;
    background: transparent;
    border: none;
    box-shadow: none;
}

.gacha-hub--machine:has(.summon-chamber)::after {
    display: none;
}

.gacha-view:has(.summon-chamber).view-panel {
    overflow-x: visible;
    overflow-y: auto;
    max-height: none;
}

.gacha-view:has(.summon-chamber) .gacha-arena {
    min-height: auto;
    max-height: none;
    overflow: visible;
    align-items: center;
}

.gacha-view:has(.summon-chamber) .gacha-holo-wall,
.gacha-view:has(.summon-chamber) .gacha-flank-beam {
    display: none;
}

.gacha-view:has(.summon-chamber) .gacha-machine--page.summon-chamber-page {
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    flex: 0 0 auto;
}

.gacha-view:has(.summon-chamber) .gacha-hub--machine {
    width: min(100%, 1180px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.gacha-view:has(.summon-chamber) .gacha-machine-wrap,
.gacha-machine-wrap.summon-chamber-wrap {
    overflow: visible;
    width: 100%;
    max-width: min(1180px, 100%);
    margin-left: auto;
    margin-right: auto;
    margin-top: -12px;
}

.gacha-view:has(.summon-chamber) .gacha-hub-top {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    padding: 6px 14px 2px;
}

.gacha-view:has(.summon-chamber) .gacha-hub-top h2 {
    font-size: clamp(1.5rem, 3.4vw, 2rem);
    font-weight: 900;
    letter-spacing: 0.24em;
    -webkit-text-fill-color: unset;
    color: rgba(240, 230, 255, 0.95);
    text-shadow: 0 0 16px rgba(127, 0, 255, 0.5);
}

.gacha-view:has(.summon-chamber) .gacha-hub-util {
    padding: 4px 12px 8px;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

.gacha-view:has(.summon-chamber) .gacha-hub-util .gacha-util-btn {
    background: rgba(10, 6, 24, 0.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(140, 100, 255, 0.28);
}

.gacha-view:has(.summon-chamber) .gacha-footer-panel {
    position: relative;
    z-index: 5;
    margin-top: 8px;
}

@media (max-width: 900px) {
    /* 手機／PWA：展示卡牌改為每行 2 張（2×2 起跳，八大卡包共 2 欄 × 4 列） */
    .summon-chamber:not(.summon-chamber--no-packs) .summon-chamber__stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        min-height: auto;
        margin-top: 0;
        gap: 10px 8px;
    }

    .summon-chamber__stage {
        min-height: auto;
        margin-top: 0;
        gap: 12px;
    }

    .summon-chamber:not(.summon-chamber--no-packs) .summon-chamber__pillars--left,
    .summon-chamber:not(.summon-chamber--no-packs) .summon-chamber__pillars--right {
        display: contents;
    }

    .summon-chamber__pillars {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        padding-bottom: 0;
        gap: 10px;
    }

    .summon-chamber__pillars--left,
    .summon-chamber__pillars--right {
        align-items: stretch;
        justify-self: stretch;
        padding: 0;
    }

    .summon-pillar {
        width: 100%;
        max-width: none;
    }

    .summon-chamber--silver-showcase .summon-pillar--showcase {
        max-width: none;
    }

    .summon-chamber__center {
        grid-column: 1 / -1;
        order: -1;
        padding-bottom: 0;
        width: 100%;
    }

    .summon-chamber:not(.summon-chamber--no-packs) .summon-chamber__preview {
        width: 100%;
        max-width: min(360px, 94vw);
        aspect-ratio: auto;
    }

    .gacha-view .summon-chamber:not(.summon-chamber--no-packs) .machine-center-glow .card-3d-wrap {
        width: 100% !important;
        max-height: min(44vh, 400px);
    }

    .summon-chamber--no-packs .summon-chamber__stage {
        align-items: stretch;
        margin-top: 0;
    }

    .gacha-machine-wrap.pool-silver .summon-chamber--no-packs .summon-chamber__stage {
        margin-top: 0;
    }

    .summon-chamber--no-packs .summon-chamber__center {
        justify-content: flex-start;
        align-items: center;
    }

    .summon-console__actions {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .summon-chamber-page {
        padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    }

    .summon-chamber:not(.summon-chamber--no-packs) .summon-chamber__stage {
        gap: 8px 6px;
    }

    .summon-pillar__art {
        aspect-ratio: 2 / 3;
    }

    .summon-pillar__rates {
        font-size: 8px;
        line-height: 1.35;
    }

    .summon-pillar__name {
        font-size: 10px;
    }

    .summon-pillar__sub {
        font-size: 9px;
    }
}

@media (max-width: 520px) {
    .summon-chamber__title-inner {
        font-size: clamp(10px, 3.1vw, 14px);
        gap: 0.35em;
        padding: 9px 12px 10px;
        letter-spacing: 0.06em;
    }

    .summon-chamber__title-en {
        letter-spacing: 0.1em;
    }

    .gacha-view .summon-chamber__pool-tabs .machine-pool-tab {
        min-height: 100px;
        padding: 14px 10px 12px !important;
    }

    .summon-chamber__pool-tabs .machine-pool-tab__icon-wrap {
        width: 58px;
        height: 58px;
    }

    .summon-chamber__pool-tabs .pool-tab-gem {
        width: 44px;
        height: 44px;
    }

    .mythic-summon-btn__title,
    .mythic-summon-btn__title--epic {
        font-size: 14px;
    }

    .mythic-summon-btn__cost {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .summon-chamber__title::after {
        animation: none;
    }
}
