/* 端午集卡：整体模仿累计奖励页面色调与布局 */
.dragon-page {
    background:
        radial-gradient(circle at 18% 0%, rgba(126, 231, 135, 0.13), transparent 32%),
        radial-gradient(circle at 88% 14%, rgba(255, 215, 0, 0.1), transparent 28%),
        #0f1419;
}

.dragon-hero h1 {
    background: linear-gradient(90deg, #7ee787, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dragon-stat-main {
    position: relative;
    overflow: hidden;
}

.dragon-stat-main::after {
    content: '';
    position: absolute;
    right: -28px;
    top: -32px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.08);
}

.dragon-stat-rows {
    margin-top: 12px;
}

.dragon-consume-action {
    margin: 12px 0 14px;
}

.dragon-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dragon-consume-action .dragon-btn {
    width: 100%;
    min-height: 46px;
    font-size: 15px;
}

.dragon-btn-sign {
    background: linear-gradient(135deg, #ffd700, #ffab40);
}

.dragon-card-section,
.dragon-glass {
    margin: 0 0 12px;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.9));
    border: 1px solid var(--act-border);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.dragon-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.dragon-section-head h2 {
    margin: 0;
    color: #7ee787;
    font-size: 16px;
    font-weight: 800;
}

.dragon-btn {
    border: none;
    border-radius: 12px;
    padding: 9px 14px;
    background: linear-gradient(135deg, #7ee787, #2ecc71);
    color: #0f1419;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(126, 231, 135, 0.18);
}

.dragon-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.45);
    cursor: not-allowed;
    box-shadow: none;
}

.dragon-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dragon-card {
    position: relative;
    min-height: 160px;
    padding: 14px 12px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(12, 18, 32, 0.82);
    border: 1px solid rgba(126, 231, 135, 0.2);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dragon-card:not(.is-missing) {
    border-color: rgba(126, 231, 135, 0.5);
    box-shadow: 0 0 0 1px rgba(126, 231, 135, 0.12);
}

.dragon-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.12), transparent 48%);
    pointer-events: none;
}

.dragon-card.is-missing {
    opacity: 0.58;
    filter: grayscale(0.65);
}

.dragon-card img {
    position: relative;
    z-index: 1;
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
    margin: 8px auto 10px;
}

.dragon-card h3,
.dragon-card p {
    position: relative;
    z-index: 1;
    text-align: center;
}

.dragon-card h3 {
    margin: 0 0 6px;
    color: var(--act-text);
    font-size: 15px;
}

.dragon-card p {
    margin: 0;
    color: var(--act-muted);
    font-size: 12px;
    line-height: 1.5;
}

.dragon-card-gift {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 7px 10px;
    border: 1px solid rgba(126, 231, 135, 0.45);
    border-radius: 999px;
    background: rgba(126, 231, 135, 0.1);
    color: #7ee787;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.dragon-card-gift:hover {
    background: rgba(126, 231, 135, 0.18);
}

.dragon-owned {
    position: absolute;
    z-index: 2;
    right: 9px;
    top: 9px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #0f1419;
    background: linear-gradient(135deg, #ffd700, #ffab40);
    font-size: 12px;
    font-weight: 900;
}

.dragon-reward-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--act-text);
    font-size: 14px;
}

.dragon-progress-reward {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(12, 18, 32, 0.82);
    border: 1px solid rgba(126, 231, 135, 0.14);
}

.dragon-progress-reward span {
    flex: 1;
    min-width: 0;
    color: var(--act-text);
    font-weight: 700;
    line-height: 1.5;
}

.dragon-btn-mini {
    flex-shrink: 0;
    min-width: 76px;
    padding: 8px 12px;
    font-size: 13px;
}

.dragon-tip {
    display: block;
    margin-top: 10px;
    color: var(--act-muted);
    font-size: 12px;
    line-height: 1.6;
}

.dragon-rule-box {
    margin-top: 12px;
}

.dragon-rule-box .rules-body strong {
    color: #7ee787;
}

.dragon-empty {
    grid-column: 1 / -1;
    padding: 28px 10px;
    text-align: center;
    color: var(--act-muted);
}

.dragon-pack-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dragon-pack-page-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.dragon-pack-page-card .dragon-reward-list {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
    line-height: 1.5;
}

.dragon-pack-price {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 12px 0;
    color: #ffd700;
}

.dragon-pack-price strong {
    font-size: 18px;
}

.dragon-pack-price del {
    color: var(--act-muted);
    font-size: 12px;
}

.dragon-pack-page-card .dragon-btn {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: auto;
}

.dragon-nav-tabs {
    width: fit-content;
    max-width: calc(100% - 20px);
    margin: -2px auto 16px;
    padding: 5px;
    display: flex;
    justify-content: center;
    gap: 4px;
    overflow-x: auto;
    border-radius: 999px;
    background: rgba(12, 18, 32, 0.78);
    border: 1px solid rgba(126, 231, 135, 0.18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    scrollbar-width: none;
}

.dragon-nav-tabs::-webkit-scrollbar {
    display: none;
}

.dragon-nav-tabs .shop-tab {
    min-width: 96px;
    height: 38px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--act-muted);
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    border: 1px solid transparent;
    background: transparent;
}

.dragon-nav-tabs .shop-tab.active {
    color: #0f1419;
    background: linear-gradient(135deg, #7ee787, #45d86f);
    border-color: rgba(255, 255, 255, 0.46);
    box-shadow: 0 8px 18px rgba(126, 231, 135, 0.22);
}

.dragon-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.dragon-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(8px);
}

.dragon-modal-panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: 86vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.98), rgba(15, 20, 25, 0.98));
    border: 1px solid rgba(126, 231, 135, 0.28);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 215, 0, 0.08) inset;
    color: var(--act-text);
}

.dragon-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(126, 231, 135, 0.16);
    background: radial-gradient(circle at top left, rgba(126, 231, 135, 0.12), transparent 42%);
}

.dragon-modal-head h3 {
    margin: 0;
    color: #7ee787;
    font-size: 18px;
    font-weight: 900;
}

.dragon-modal-head button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--act-text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.dragon-modal-head button:hover {
    background: rgba(126, 231, 135, 0.18);
    color: #7ee787;
}

.dragon-modal-body {
    padding: 16px;
    overflow-y: auto;
}

.dragon-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px;
    margin-bottom: 10px;
    border-radius: 14px;
    background: rgba(12, 18, 32, 0.86);
    border: 1px solid rgba(126, 231, 135, 0.16);
}

.dragon-option-card h4 {
    margin: 0 0 6px;
    color: var(--act-text);
    font-size: 15px;
}

.dragon-option-card p {
    margin: 0 0 6px;
    color: var(--act-muted);
    font-size: 12px;
    line-height: 1.5;
}

.dragon-option-card strong {
    display: block;
    color: #ffd700;
    font-size: 13px;
    line-height: 1.5;
}

/* 超豪华集齐奖励高亮 */
.dragon-option-card.luxury {
    border-color: rgba(255, 215, 0, 0.45);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 171, 64, 0.06));
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.1) inset;
}

.dragon-option-card.luxury h4 {
    color: #ffd700;
}

.dragon-pack-panel {
    width: min(720px, 100%);
}

.dragon-pack-card img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex-shrink: 0;
}

.dragon-pack-info {
    flex: 1;
    min-width: 0;
}

.dragon-pack-info small {
    display: block;
    margin-top: 4px;
    color: var(--act-muted);
    font-size: 12px;
}

.dragon-pack-buy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.dragon-pack-buy b {
    color: #ffd700;
}

.dragon-pack-buy del {
    color: var(--act-muted);
    font-size: 12px;
}

.dragon-modal-panel > .dragon-tip {
    margin: 0;
    padding: 0 16px 16px;
}

.dragon-gift-panel {
    width: min(420px, 100%);
}

.dragon-gift-panel .dragon-modal-body {
    padding: 18px;
}

.dragon-gift-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(126, 231, 135, 0.12), rgba(255, 215, 0, 0.07));
    border: 1px solid rgba(126, 231, 135, 0.22);
}

.dragon-gift-card-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(15, 20, 25, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.dragon-gift-card-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.dragon-gift-card-info {
    min-width: 0;
}

.dragon-gift-card-name {
    color: var(--act-text);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.4;
}

.dragon-gift-card-desc {
    margin-top: 4px;
    color: var(--act-muted);
    font-size: 12px;
    line-height: 1.5;
}

.dragon-gift-card-desc b {
    color: #ffd700;
}

.dragon-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.dragon-form-group label {
    color: #7ee787;
    font-size: 13px;
    font-weight: 800;
}

.dragon-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(126, 231, 135, 0.24);
    border-radius: 12px;
    outline: none;
    background: rgba(12, 18, 32, 0.9);
    color: var(--act-text);
    font-size: 15px;
    font-weight: 700;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.dragon-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
}

.dragon-input:focus {
    border-color: rgba(126, 231, 135, 0.78);
    background: rgba(12, 18, 32, 1);
    box-shadow: 0 0 0 3px rgba(126, 231, 135, 0.14);
}

.dragon-form-group small {
    color: var(--act-muted);
    font-size: 12px;
    line-height: 1.5;
}

.dragon-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 10px;
    padding-top: 2px;
}

.dragon-modal-actions .dragon-btn {
    min-height: 42px;
}

.dragon-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--act-text);
    box-shadow: none;
}

.dragon-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 420px) {
    .dragon-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dragon-section-head .dragon-btn {
        width: 100%;
    }
}
