/* ============================================================
   gift.css - 新手大礼包弹窗样式
   ============================================================ */

#gift-modal {
    z-index: 200;
}

.gift-modal-content {
    width: 92%;
    max-width: 480px;
    background: linear-gradient(135deg, #2a1a1a 0%, #3a1a1a 50%, #2a1a1a 100%);
    border: 2px solid var(--secondary-yellow);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(212, 165, 116, 0.3);
}

.gift-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--secondary-yellow);
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(212, 165, 116, 0.5);
}

/* --- 礼包盒（V3.2.7.9.6 缩小：120x120 → 80x80）--- */
.gift-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    position: relative;
    transform-origin: center;
    animation: giftBoxEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes giftBoxEnter {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.gift-box-body, .gift-box-lid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    font-size: 68px;
    line-height: 80px;
    text-align: center;
}
.gift-box-body {
    z-index: 1;
}
.gift-box-lid {
    z-index: 2;
    transform-origin: top center;
    transition: transform 0.5s ease-out;
    transform: rotate(0deg);
}
.gift-box.opened .gift-box-lid {
    transform: rotate(-110deg) translateY(-10px);
}

/* --- 飞出的道具（V3.2.7.9.6 缩小）--- */
.gift-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 12px 0;
    min-height: 60px;
}
.gift-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--secondary-yellow);
    border-radius: 8px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: scale(0);
}
.gift-item.fly-out {
    animation: itemFlyOut 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes itemFlyOut {
    0% { opacity: 0; transform: scale(0) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.gift-item-icon { font-size: 20px; }
.gift-item-name {
    font-size: 12px;
    color: var(--secondary-yellow);
    font-weight: bold;
}
.gift-item-count {
    font-size: 11px;
    color: var(--text-secondary);
}

/* --- 礼包文案（V3.2.7.9.6 缩小）--- */
.gift-text {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: left;
    white-space: pre-wrap;
    margin-bottom: 12px;
    max-height: 120px;
    overflow-y: auto;
}

/* --- 礼包按钮 --- */
.gift-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.gift-btn {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s;
}
.gift-btn.primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    color: #fff;
}
.gift-btn.secondary {
    background: transparent;
    border: 1px solid var(--secondary-yellow);
    color: var(--secondary-yellow);
}
.gift-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}