﻿/* 任務與 VOID GACHA 冒險 */
.missions-view {
    padding-bottom: 32px;
    text-align: center;
}

.missions-view > h2 {
    margin-bottom: 8px;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
}

.missions-view-intro {
    margin: 0 auto 24px;
    max-width: 640px;
    font-size: 15px;
    color: rgba(200, 210, 255, 0.88);
    line-height: 1.6;
}

.missions-economy-banner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 auto 28px;
    max-width: 720px;
}

.missions-coin {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.missions-coin::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.35;
    pointer-events: none;
}

.missions-coin-silver {
    order: 2;
    background: linear-gradient(135deg, rgba(20, 40, 80, 0.9), rgba(60, 120, 200, 0.25));
    box-shadow: 0 0 24px rgba(100, 180, 255, 0.2);
}

.missions-coin-silver::before {
    background: radial-gradient(circle at 20% 30%, rgba(150, 220, 255, 0.5), transparent 60%);
}

.missions-coin-gold {
    order: 1;
    background: linear-gradient(135deg, rgba(60, 40, 10, 0.95), rgba(255, 200, 50, 0.2));
    box-shadow: 0 0 28px rgba(255, 200, 80, 0.25);
}

.missions-coin-gold::before {
    background: radial-gradient(circle at 80% 20%, rgba(255, 230, 120, 0.55), transparent 55%);
}

.missions-coin-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    width: 100%;
}

.missions-coin-label .void-coin-icon {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.missions-coin strong {
    display: block;
    font-size: 1.65rem;
    font-variant-numeric: tabular-nums;
}

.missions-coin small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--muted);
}

.missions-section {
    margin-bottom: 16px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.missions-section h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.missions-hint {
    margin: 0 auto 16px;
    max-width: 560px;
    font-size: 14px;
    color: rgba(200, 210, 255, 0.82);
    line-height: 1.55;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(8, 10, 24, 0.85);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.task-card.ready {
    border-color: rgba(80, 220, 140, 0.45);
    box-shadow: 0 0 20px rgba(60, 200, 120, 0.15);
}

.task-card.claimed {
    opacity: 0.65;
}

/* 每月限時福利任務 */
.missions-section--monthly {
    margin-top: 8px;
    padding-top: 4px;
    border-top: 1px solid rgba(180, 140, 255, 0.15);
}

.missions-section--monthly h3 {
    background: linear-gradient(105deg, #e8d5ff, #b794f6, #ffd89b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.missions-hint--monthly strong {
    color: #c9a0ff;
}

.monthly-task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.monthly-task-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(160, 120, 255, 0.35);
    background: linear-gradient(135deg, rgba(20, 12, 40, 0.9), rgba(8, 10, 24, 0.88));
    transition: opacity 0.25s, filter 0.25s, border-color 0.2s;
}

.monthly-task-card.is-ready {
    border-color: rgba(120, 220, 160, 0.5);
    box-shadow: 0 0 18px rgba(80, 200, 140, 0.12);
}

.monthly-task-card.is-locked {
    opacity: 0.52;
    filter: grayscale(0.35);
    border-color: rgba(120, 120, 140, 0.25);
    background: rgba(12, 12, 20, 0.75);
}

.monthly-task-card__title {
    margin: 0 0 4px;
    font-size: 1rem;
    color: #f0e8ff;
}

.monthly-task-card__desc {
    margin: 0 0 8px;
    font-size: 0.82rem;
    color: rgba(200, 195, 230, 0.78);
    line-height: 1.45;
}

.monthly-task__progress-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    overflow: hidden;
    margin-bottom: 6px;
}

.monthly-task__progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6b46c1, #b794f6, #f6d365);
    transition: width 0.35s ease;
}

.monthly-task-card.is-locked .monthly-task__progress-fill {
    background: rgba(100, 100, 120, 0.5);
}

.monthly-task-card__reward {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(212, 175, 55, 0.9);
}

.monthly-task__reward-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 10px;
}

.monthly-task__btn {
    display: inline-block;
    min-width: 148px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    text-align: center;
    white-space: nowrap;
}

/* .monthly-task__btn--claim 見 css/void-claim-reward.css */

.monthly-task__btn--progress {
    color: rgba(200, 200, 220, 0.85);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.monthly-task__btn--lock {
    color: rgba(180, 180, 200, 0.9);
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed rgba(140, 140, 160, 0.4);
    font-size: 0.72rem;
    line-height: 1.35;
    white-space: normal;
    max-width: 160px;
}

.task-icon {
    font-size: 28px;
    width: 44px;
    text-align: center;
}

.task-body h4 {
    margin: 0 0 4px;
    font-size: 14px;
}

.task-body p {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--muted);
}

.task-progress-track {
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 6px;
}

.task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7f00ff, #00d4ff);
    border-radius: 4px;
    transition: width 0.3s;
}

.task-reward {
    font-size: 11px;
    color: #c8b0ff;
    margin: 0;
}

.task-btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    border: none;
    cursor: default;
}

/* .task-btn.claim 見 css/void-claim-reward.css */

.task-btn.locked {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.task-btn.done {
    background: rgba(127, 0, 255, 0.2);
    color: #b8a0ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.2;
}

.task-reset-hint {
    font-size: 9px;
    font-weight: 600;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

/* ── 華麗任務區塊：在線 / 時段 / 卡牌互動 ── */
.missions-eng-group {
    max-width: 640px;
    margin: 0 auto 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.missions-eng-group .missions-eng {
    margin: 0;
    max-width: none;
}

.missions-eng {
    position: relative;
    max-width: 720px;
    margin: 0 auto 28px;
    padding: 14px 14px 12px;
    border-radius: 16px;
    border: 1px solid rgba(192, 132, 252, 0.28);
    background:
        linear-gradient(155deg, rgba(24, 12, 48, 0.92) 0%, rgba(8, 14, 36, 0.96) 55%, rgba(12, 8, 28, 0.94) 100%);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 48px rgba(127, 0, 255, 0.12);
    overflow: visible;
    isolation: isolate;
}

.missions-eng > * {
    position: relative;
    z-index: 1;
}

.missions-eng::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(127, 0, 255, 0.18), transparent 65%);
    pointer-events: none;
}

.missions-eng__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    text-align: center;
}

.missions-eng__badge {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.2), rgba(127, 0, 255, 0.35));
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 0 20px rgba(255, 200, 80, 0.2);
}

.missions-eng__head-text {
    flex: 1 1 100%;
    min-width: 0;
    text-align: center;
}

.missions-eng__title {
    margin: 0 0 2px;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow: 0 0 18px rgba(192, 132, 252, 0.45);
    text-align: center;
}

.missions-eng__hint {
    margin: 0;
    font-size: 13px;
    color: rgba(200, 210, 255, 0.78);
    line-height: 1.45;
    text-align: center;
}

.missions-eng__timer {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    max-width: none;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: linear-gradient(180deg, rgba(0, 40, 80, 0.5), rgba(8, 8, 24, 0.85));
    box-shadow: 0 0 28px rgba(0, 180, 255, 0.15);
    text-align: center;
}

.missions-eng__timer-ring {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(0, 212, 255, 0.35);
    box-shadow:
        inset 0 0 20px rgba(0, 180, 255, 0.12),
        0 0 16px rgba(127, 0, 255, 0.15);
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}

.missions-eng__timer-inner {
    position: relative;
    z-index: 1;
}

.missions-eng__timer-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
    color: #e8f4ff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.missions-eng__timer-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.missions-eng__timer-value strong {
    font-size: 1.35rem;
    font-weight: 900;
    background: linear-gradient(
        90deg,
        #ff3d7a 0%,
        #ffd700 25%,
        #00f5ff 50%,
        #b24bff 75%,
        #ff3d7a 100%
    );
    background-size: 280% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: missionsTimerRainbow 5s linear infinite;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.9)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
}

.missions-eng__timer-value em {
    font-style: normal;
    font-size: 0.9em;
    font-weight: 700;
    color: #b8e4ff;
    -webkit-text-fill-color: #b8e4ff;
}

@keyframes missionsTimerRainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 280% 50%; }
}

.missions-eng__list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eng-task-card {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) minmax(92px, 108px);
    gap: 8px 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(12, 16, 36, 0.95), rgba(20, 10, 40, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.eng-task-card--ready {
    border-color: rgba(255, 180, 80, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 12px rgba(255, 140, 60, 0.15);
}

.eng-task-card--claimed {
    opacity: 0.72;
}

.eng-task-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(40, 20, 70, 0.9), rgba(10, 8, 24, 0.95));
    border: 1px solid rgba(192, 132, 252, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.eng-task-card__body {
    min-width: 0;
    text-align: center;
}

.eng-task-card__title {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
    text-align: center;
}

.eng-task-card__desc {
    margin: 0 0 4px;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(168, 212, 255, 0.78);
    text-align: center;
}

.eng-task-card__desc:empty {
    display: none;
    margin: 0;
}

.eng-task-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.eng-task-progress-track {
    flex: 1;
    height: 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.eng-task-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7f00ff, #00d4ff, #ffe566);
    background-size: 200% 100%;
    animation: engProgressShine 2.5s ease-in-out infinite;
    transition: width 0.35s ease;
}

@keyframes engProgressShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.eng-task-progress-label {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 230, 150, 0.9);
    min-width: 28px;
    text-align: center;
}

.eng-task-card__rewards {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.eng-task-reward-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #e8f4ff;
    background: rgba(0, 80, 140, 0.35);
    border: 1px solid rgba(100, 180, 255, 0.35);
}

.eng-task-reward-pill--gold {
    background: rgba(80, 50, 0, 0.4);
    border-color: rgba(255, 200, 80, 0.45);
    color: #ffe9b0;
}

.eng-task-card__action {
    flex-shrink: 0;
}

.eng-task-btn {
    min-width: 0;
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(200, 210, 255, 0.88);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: default;
    white-space: nowrap;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.eng-task-btn.btn-locked {
    color: rgba(160, 170, 200, 0.65);
}

/* .eng-task-btn.btn-ready 見 css/void-claim-reward.css */

.eng-task-btn.btn-claimed {
    background: linear-gradient(180deg, rgba(100, 60, 180, 0.5), rgba(40, 20, 80, 0.7));
    border-color: rgba(180, 140, 255, 0.4);
    color: #d4c0ff;
}

@media (prefers-reduced-motion: reduce) {
    .missions-eng__timer-value strong {
        animation: none;
        background-position: 50% 50%;
        -webkit-text-fill-color: #ffe566;
        color: #ffe566;
        background: none;
    }
}

@media (max-width: 560px) {
    .missions-eng-group {
        gap: 8px;
        margin-bottom: 14px;
    }

    .eng-task-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 8px;
        padding: 9px 10px;
        text-align: center;
        justify-items: center;
    }

    .eng-task-card__icon {
        margin: 0 auto;
    }

    .eng-task-card__action {
        grid-column: 1;
        justify-self: stretch;
        width: 100%;
    }

    .eng-task-btn {
        width: 100%;
    }
}

.missions-adventure-section {
    position: relative;
    max-width: 980px;
}

.missions-adventure-section::before {
    content: '';
    position: absolute;
    inset: -20px -10px auto;
    height: 120px;
    background: radial-gradient(ellipse at 50% 0%, rgba(127, 0, 255, 0.15), transparent 70%);
    pointer-events: none;
}

.zone-list.battle-zone-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 4px;
}

.zone-card.battle-zone {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.zone-card-bg {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    pointer-events: none;
}

.zone-card-inner {
    position: relative;
    padding: 18px 14px 20px;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 280px;
    box-sizing: border-box;
}

.zone-card.theme-dust .zone-card-bg {
    background: linear-gradient(135deg, #1a1520 0%, #3d3020 50%, #1a2030 100%);
}
.zone-card.theme-steel .zone-card-bg {
    background: linear-gradient(135deg, #101820 0%, #284060 45%, #1a1020 100%);
}
.zone-card.theme-nebula .zone-card-bg {
    background: linear-gradient(135deg, #0a0830 0%, #4020a0 50%, #082040 100%);
}
.zone-card.theme-abyss .zone-card-bg {
    background: linear-gradient(135deg, #041828 0%, #106060 50%, #020818 100%);
}
.zone-card.theme-war .zone-card-bg {
    background: linear-gradient(135deg, #280808 0%, #802020 45%, #201008 100%);
}
.zone-card.theme-myth .zone-card-bg {
    background: linear-gradient(135deg, #2a0810 0%, #c41e3a 40%, #2e5e9e 100%);
}
.zone-card.theme-inferno .zone-card-bg {
    background: linear-gradient(135deg, #300800 0%, #ff5500 40%, #1a0020 100%);
}
.zone-card.theme-void .zone-card-bg {
    background: linear-gradient(135deg, #0a0020 0%, #7f00ff 45%, #000810 100%);
}

.zone-card.diff-easy { box-shadow: 0 0 20px rgba(100, 200, 255, 0.12); }
.zone-card.diff-normal { box-shadow: 0 0 22px rgba(127, 0, 255, 0.18); }
.zone-card.diff-hard { box-shadow: 0 0 24px rgba(255, 120, 40, 0.2); }
.zone-card.diff-extreme { box-shadow: 0 0 28px rgba(255, 50, 80, 0.28); }

.zone-card.active {
    border-color: rgba(0, 255, 200, 0.55);
    box-shadow: 0 0 32px rgba(0, 220, 180, 0.35);
}

.zone-card.disabled {
    opacity: 0.82;
    filter: saturate(0.85);
    pointer-events: none;
}

.zone-card.disabled:not(.active) {
    opacity: 0.72;
}

.zone-card.zone-cooldown {
    opacity: 1;
    pointer-events: none;
    filter: grayscale(0.75) brightness(0.72);
}

.zone-cooldown-veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(8, 6, 18, 0.72);
    pointer-events: none;
}

.zone-cooldown-timer {
    margin: 0;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: rgba(200, 200, 220, 0.85);
    letter-spacing: 0.04em;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.35);
}

.zone-tier-badge {
    font-size: 13px;
    font-weight: 900;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--tier-color, #ffe566);
    border: 1px solid color-mix(in srgb, var(--tier-color, #fff) 45%, transparent);
    letter-spacing: 0.06em;
}

.mission-tier-c { --tier-color: #8fd4ff; }
.mission-tier-b { --tier-color: #7dffb8; }
.mission-tier-a { --tier-color: #c4a0ff; }
.mission-tier-s { --tier-color: #ffb080; }
.mission-tier-ss { --tier-color: #ffd700; }

/* 任務階級 · 框內配色 */
.zone-card.battle-zone.mission-tier-c {
    --mission-tier-border: rgba(143, 212, 255, 0.48);
    --mission-tier-glow: rgba(143, 212, 255, 0.2);
    --mission-tier-fill-top: rgba(18, 36, 58, 0.92);
    --mission-tier-fill-bottom: rgba(10, 18, 32, 0.94);
}

.zone-card.battle-zone.mission-tier-b {
    --mission-tier-border: rgba(125, 255, 184, 0.48);
    --mission-tier-glow: rgba(125, 255, 184, 0.2);
    --mission-tier-fill-top: rgba(14, 42, 32, 0.92);
    --mission-tier-fill-bottom: rgba(8, 22, 18, 0.94);
}

.zone-card.battle-zone.mission-tier-a {
    --mission-tier-border: rgba(196, 160, 255, 0.52);
    --mission-tier-glow: rgba(196, 160, 255, 0.24);
    --mission-tier-fill-top: rgba(34, 18, 52, 0.92);
    --mission-tier-fill-bottom: rgba(16, 10, 28, 0.94);
}

.zone-card.battle-zone.mission-tier-s {
    --mission-tier-border: rgba(255, 176, 128, 0.58);
    --mission-tier-glow: rgba(255, 140, 60, 0.28);
    --mission-tier-fill-top: rgba(52, 22, 12, 0.92);
    --mission-tier-fill-bottom: rgba(28, 12, 8, 0.94);
}

.zone-card.battle-zone.mission-tier-ss {
    --mission-tier-border: rgba(255, 215, 0, 0.72);
    --mission-tier-glow: rgba(255, 0, 128, 0.38);
    --mission-tier-fill-top: rgba(56, 10, 36, 0.94);
    --mission-tier-fill-bottom: rgba(22, 6, 38, 0.96);
}

.zone-card.battle-zone[class*='mission-tier-'] {
    border-color: var(--mission-tier-border, rgba(255, 255, 255, 0.12));
    box-shadow:
        0 0 28px var(--mission-tier-glow, rgba(127, 0, 255, 0.12)),
        inset 0 0 0 1px color-mix(in srgb, var(--tier-color, #fff) 18%, transparent);
}

.zone-card.battle-zone[class*='mission-tier-'] .zone-card-inner {
    background: linear-gradient(
        165deg,
        var(--mission-tier-fill-top, rgba(12, 10, 24, 0.88)),
        var(--mission-tier-fill-bottom, rgba(6, 4, 16, 0.94))
    );
}

.zone-card.battle-zone[class*='mission-tier-'] .zone-card-bg {
    opacity: 0.38;
    mix-blend-mode: screen;
}

.zone-card.battle-zone[class*='mission-tier-'] .zone-tier-badge {
    background: color-mix(in srgb, var(--tier-color, #fff) 16%, rgba(0, 0, 0, 0.62));
    box-shadow: 0 0 14px color-mix(in srgb, var(--tier-color, #fff) 28%, transparent);
}

/* SS 傳說 · 特殊框光 */
.zone-card.battle-zone.mission-tier-ss {
    border-width: 2px;
    animation: missionTierSsPulse 2.8s ease-in-out infinite;
}

.zone-card.battle-zone.mission-tier-ss::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(
        120deg,
        rgba(255, 0, 128, 0.14),
        rgba(255, 215, 0, 0.16),
        rgba(0, 255, 255, 0.12),
        rgba(255, 0, 128, 0.14)
    );
    background-size: 220% 220%;
    animation: missionTierSsShimmer 5s linear infinite;
}

.zone-card.battle-zone.mission-tier-ss .zone-card-inner {
    background: linear-gradient(
        165deg,
        rgba(72, 12, 42, 0.95) 0%,
        rgba(28, 8, 48, 0.96) 45%,
        rgba(12, 28, 52, 0.94) 100%
    );
    box-shadow: inset 0 0 36px rgba(255, 215, 0, 0.08);
}

.zone-card.battle-zone.mission-tier-ss .zone-tier-badge {
    color: #fff6c8;
    border-color: rgba(255, 215, 0, 0.72);
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.35), rgba(255, 215, 0, 0.28));
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.55);
    animation: missionTierSsBadge 2.8s ease-in-out infinite;
}

@keyframes missionTierSsPulse {
    0%,
    100% {
        box-shadow:
            0 0 24px rgba(255, 0, 128, 0.28),
            0 0 40px rgba(255, 215, 0, 0.18),
            inset 0 0 0 1px rgba(255, 215, 0, 0.35);
    }
    50% {
        box-shadow:
            0 0 36px rgba(255, 0, 128, 0.48),
            0 0 56px rgba(255, 215, 0, 0.32),
            inset 0 0 0 1px rgba(0, 255, 255, 0.42);
    }
}

@keyframes missionTierSsShimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 220% 50%;
    }
}

@keyframes missionTierSsBadge {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.18);
    }
}

.missions-adventure-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
    text-align: center;
}

.missions-adventure-head > div {
    flex: 1 1 100%;
}

.missions-dispatch-daily {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(160, 220, 255, 0.92);
    letter-spacing: 0.04em;
}

.missions-dispatch-daily strong {
    color: #7dffb8;
    font-size: 1.05em;
}

.missions-dispatch-daily.is-limit {
    color: #ff9a9a;
}

.missions-dispatch-daily.is-limit strong {
    color: #ff6688;
}

.mission-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid rgba(100, 180, 255, 0.45);
    background: linear-gradient(135deg, rgba(20, 40, 80, 0.9), rgba(40, 20, 60, 0.85));
    color: #a8d4ff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.mission-refresh-btn:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 16px rgba(127, 0, 255, 0.35);
}

.adventure-time-save {
    margin: 0 0 10px;
    font-size: 11px;
    color: rgba(125, 255, 184, 0.9);
}

.adventure-picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(4, 2, 12, 0.75);
    backdrop-filter: blur(4px);
    overscroll-behavior: none;
    touch-action: none;
}

.adventure-picker-backdrop.hidden {
    display: none !important;
    pointer-events: none;
}

.adventure-picker.adventure-picker-modal {
    margin-top: 0;
    padding: 22px 24px 0;
}

.adventure-picker-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1010;
    width: min(920px, 96vw);
    max-height: min(calc(100dvh - 24px), 920px);
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: 20px;
    border: 1px solid rgba(192, 132, 252, 0.45);
    box-shadow: 0 0 60px rgba(127, 0, 255, 0.35);
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.adventure-picker-modal .picker-header {
    position: relative;
    flex: 0 0 auto;
    padding: 12px 44px 14px;
    text-align: center;
}

.adventure-picker-modal .picker-header h4 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: #fff8ec;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
    line-height: 1.45;
}

.adventure-picker-modal .picker-req {
    font-size: 13px;
    margin: 0 auto 8px;
    color: #e2dff8;
    line-height: 1.55;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    max-width: 100%;
}

.adventure-picker-modal .picker-eta {
    font-size: 13px;
    color: #c8f5e0;
    margin: 0 auto;
    text-align: center;
    line-height: 1.45;
}

.adventure-picker-x {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.picker-eta {
    margin: 8px 0 0;
    font-size: 12px;
    color: #7dffb8;
    line-height: 1.45;
}

.picker-eta strong {
    color: #ffe566;
}

.adventure-picker-modal .squad-compose {
    flex: 0 0 auto;
    padding: 10px 12px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.adventure-picker-modal .squad-compose-label {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
    color: rgba(200, 220, 255, 0.9);
    text-align: center;
}

.adventure-picker-modal .squad-slots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}

.adventure-picker-modal .squad-slot {
    width: min(148px, 32vw);
    max-width: 148px;
    flex: 0 0 auto;
    min-height: 0;
}

.adventure-picker-modal .squad-slot.empty {
    min-height: 132px;
    padding: 12px 10px;
}

.adventure-picker-modal .squad-slot-name {
    font-size: 13px;
    font-weight: 800;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.adventure-picker-modal .squad-slot-series,
.adventure-picker-modal .squad-slot-stats {
    font-size: 11px;
    font-weight: 700;
}

.adventure-picker-modal .squad-slot-art {
    position: relative;
    max-height: none;
    aspect-ratio: 3 / 4;
    min-height: 120px;
    overflow: hidden;
}

.adventure-picker-modal .squad-slot-img,
.adventure-picker-modal .squad-slot-art .card-picker-art-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.adventure-picker-modal .squad-slot-rarity {
    font-size: 11px;
    padding: 4px 8px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.adventure-picker-modal .squad-slot-info {
    background: rgba(4, 2, 14, 0.98);
    padding: 10px 8px 12px;
}

.adventure-picker-cards-area {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    padding: 12px 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-sizing: border-box;
    overscroll-behavior: contain;
}

.adventure-picker-grid-hint {
    flex-shrink: 0;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: #e8eeff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.adventure-picker-search-wrap {
    flex-shrink: 0;
    margin: 0 0 10px;
}

.adventure-picker-search {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.45);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    font-family: 'Noto Sans TC', 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

.adventure-picker-search::placeholder {
    color: rgba(180, 200, 255, 0.55);
}

.adventure-picker-search:focus {
    outline: none;
    border-color: rgba(251, 191, 36, 0.75);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}

.adventure-picker-no-result {
    flex-shrink: 0;
    margin: 0 0 10px;
    padding: 12px 10px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 13px;
    color: rgba(200, 210, 255, 0.75);
}

.adventure-picker-no-result.hidden {
    display: none;
}

.adventure-picker-modal .adventure-card-grid {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: max-content;
    align-items: start;
    justify-content: center;
    align-content: start;
    gap: 14px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 6px 8px 16px;
    margin-bottom: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    scrollbar-gutter: stable;
}

.adventure-picker-modal .adventure-pick-card {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.22);
    background: rgba(6, 4, 18, 0.98);
    cursor: pointer;
    padding: 0;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-font-smoothing: antialiased;
}

.adventure-picker-modal .adventure-pick-card:hover {
    transform: translateY(-2px);
}

.adventure-picker-modal .adventure-pick-card:focus-visible {
    outline: 2px solid #00ffcc;
    outline-offset: 2px;
}

.adventure-picker-modal .adventure-pick-frame {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    border-radius: 12px 12px 0 0;
    border: none;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--pick-bg, #1a1030);
    display: block;
}

.adventure-picker-modal .adventure-pick-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 2, 14, 0.72) 0%, transparent 38%);
    pointer-events: none;
    z-index: 1;
}

.adventure-picker-modal .adventure-pick-card.selected {
    border-color: #00ffcc;
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.35);
}

.adventure-picker-modal .adventure-pick-card.selected .adventure-pick-frame {
    box-shadow: none;
}

.adventure-picker-modal .adventure-pick-meta {
    flex-shrink: 0;
    padding: 10px 10px 12px;
    background: rgba(4, 2, 14, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.adventure-picker-modal .adventure-pick-img,
.adventure-picker-modal .adventure-pick-frame .card-picker-art-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.adventure-picker-modal .adventure-pick-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.adventure-picker-modal .adventure-pick-rarity {
    z-index: 2;
    font-size: 11px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.adventure-picker-modal .adventure-pick-name {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

.adventure-picker-modal .adventure-pick-series {
    font-size: 12px;
    font-weight: 700;
    color: #c8dcff;
}

.adventure-picker-modal .adventure-pick-power {
    font-size: 12px;
    font-weight: 800;
    color: #8dffc8;
    margin-top: 5px;
}

.adventure-picker-modal .picker-actions {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    padding: 12px 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(12, 8, 28, 0.97), rgba(8, 4, 20, 1));
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
}

.adventure-picker-modal .adventure-launch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    font-size: 15px;
    width: min(100%, 420px);
    margin: 0 auto;
}

body.adventure-picker-open {
    overflow: hidden;
    height: 100dvh;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

body.adventure-picker-open #screen-app > .app-header,
body.adventure-picker-open #screen-app > .side-nav,
body.adventure-picker-open .void-chat-panel,
body.adventure-picker-open #void-scroll-top,
body.adventure-picker-open .void-global-footer {
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

body.adventure-picker-open #screen-app {
    overflow: hidden;
    max-height: 100dvh;
    touch-action: none;
}

body.adventure-picker-open .adventure-picker-backdrop {
    z-index: 3000;
}

body.adventure-picker-open .adventure-picker-modal {
    z-index: 3010;
}

body.adventure-picker-open .adventure-picker-modal,
body.adventure-picker-open .adventure-picker-modal .adventure-card-grid {
    touch-action: pan-y;
}

#void-adventure-picker-portal {
    position: relative;
    z-index: 3000;
}

.adventure-pick-power {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #7dffb8;
    margin-top: 4px;
}

.ar-bonus {
    margin: 8px 0;
    font-size: 12px;
    color: #7dffb8;
}

.zone-top-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
    width: 100%;
}

.zone-diff-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.45);
    color: #ffe566;
    letter-spacing: 0.04em;
}

.zone-card.diff-easy .zone-diff-badge { color: #8fd4ff; }
.zone-card.diff-hard .zone-diff-badge { color: #ffb080; }
.zone-card.diff-extreme .zone-diff-badge { color: #ff6688; }

.zone-tagline {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 220, 150, 0.9);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.zone-req {
    margin: 0 0 14px;
    font-size: 14px;
    color: #d4c8ff;
    line-height: 1.5;
    max-width: 520px;
}

.zone-head--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    width: 100%;
}

.zone-icon {
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.zone-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
}

.zone-desc {
    margin: 0;
    font-size: 14px;
    color: rgba(200, 210, 255, 0.85);
    line-height: 1.45;
    max-width: 480px;
}

.zone-meta {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.zone-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
    color: #c8e4ff;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(160, 120, 255, 0.25);
}

.zone-meta-chip--reward {
    gap: 8px;
    border-color: rgba(255, 215, 0, 0.35);
    background: rgba(40, 24, 8, 0.45);
}

.zone-reward-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.zone-reward-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.zone-reward-item .void-coin-icon {
    flex-shrink: 0;
}

.zone-reward-range {
    font-weight: 700;
    color: #ffe9a8;
}

.task-reward-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 10px;
}

/* 出擊按鈕 · 簡潔置中（雙欄卡內） */
.zone-action-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    padding: 11px 22px;
    border: 1px solid rgba(255, 200, 120, 0.55);
    border-radius: 10px;
    background: linear-gradient(180deg, #e85a18 0%, #a82810 55%, #6b1808 100%);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.1em;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 4px 14px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(255, 100, 40, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.zone-action-btn::before {
    content: '⚔ ';
    opacity: 0.95;
}

.zone-action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 8px 22px rgba(255, 90, 30, 0.4),
        0 0 28px rgba(255, 140, 60, 0.35);
}

.zone-action-btn:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.zone-action-btn--busy,
.zone-action-btn--locked {
    cursor: default;
    pointer-events: none;
    background: linear-gradient(180deg, #3a3a50 0%, #252538 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    color: rgba(220, 225, 255, 0.85);
    letter-spacing: 0.06em;
}

.zone-action-btn--busy::before,
.zone-action-btn--locked::before {
    content: none;
}

/* .zone-action-btn--claim 見 css/void-claim-reward.css */

/* 舊版全寬按鈕（保留相容） */
.zone-select-btn {
    width: auto;
    min-width: 200px;
    padding: 12px 28px;
    border: 1px solid rgba(255, 200, 100, 0.35);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 80, 0, 0.45), rgba(127, 0, 255, 0.4));
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.zone-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 100, 50, 0.4);
}

.adventure-active.battle-hud {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: none;
    width: 100%;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    border-radius: 16px;
    border: 1px solid rgba(255, 120, 50, 0.45);
    background:
        linear-gradient(145deg, rgba(40, 10, 60, 0.85), rgba(10, 30, 60, 0.9)),
        repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(255, 255, 255, 0.02) 8px, rgba(255, 255, 255, 0.02) 16px);
    box-shadow: 0 0 30px rgba(255, 80, 0, 0.15);
}

.adventure-active-sticky-shell {
    position: sticky;
    top: calc(var(--void-app-header-offset, 96px) + 6px);
    z-index: 45;
    width: 100%;
    max-width: 980px;
    margin: 0 auto 14px;
    padding: 6px 0 10px;
    box-sizing: border-box;
    background:
        linear-gradient(180deg, rgba(8, 10, 24, 0.98) 0%, rgba(8, 10, 24, 0.94) 78%, rgba(8, 10, 24, 0.72) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.adventure-active-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    margin: 0 auto;
    max-width: 980px;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.missions-dispatch-concurrent {
    margin: 4px 0 0;
    font-size: 13px;
    color: #b8a0ff;
}

.missions-dispatch-concurrent.is-limit {
    color: #ff9090;
}

.hud-pulse {
    animation: hudPulse 1.5s ease-in-out infinite;
}

@keyframes hudPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

.adventure-zone-tag {
    margin: 0 0 8px;
    font-size: 12px;
    color: #ffb080;
}

.active-squad-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.squad-tag {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.squad-tag.r-UR, .squad-tag.r-SEC { border-color: rgba(255, 215, 0, 0.5); color: #ffe566; }
.squad-tag.r-SR, .squad-tag.r-SSR { border-color: rgba(200, 120, 255, 0.5); color: #e0b0ff; }

.adventure-active.complete {
    border-color: rgba(80, 255, 140, 0.55);
    box-shadow: 0 0 28px rgba(60, 220, 120, 0.25);
}

.adventure-active-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.adventure-card-name {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--muted);
}

.adventure-progress-track {
    height: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(0, 200, 255, 0.3);
}

.adventure-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0066ff, #00ffcc, #7fff00);
    background-size: 200% 100%;
    animation: adventureBarShine 2s linear infinite;
    transition: width 0.4s ease;
}

.adventure-active.complete .adventure-progress-fill {
    background: linear-gradient(90deg, #2ecc71, #a8ff60);
    animation: none;
    width: 100% !important;
}

@keyframes adventureBarShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.adventure-timer {
    text-align: center;
    margin: 10px 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.adventure-queue-hint {
    margin: 0 0 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: rgba(160, 220, 255, 0.88);
    letter-spacing: 0.03em;
}

/* .adventure-claim-btn 見 css/void-claim-reward.css */

.adventure-cancel-btn {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid rgba(255, 100, 100, 0.35);
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 180, 180, 0.9);
    font-size: 12px;
    cursor: pointer;
}

.adventure-picker {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    border: 2px solid rgba(0, 212, 255, 0.35);
    background: linear-gradient(160deg, rgba(8, 12, 32, 0.98), rgba(20, 8, 40, 0.95));
    box-shadow: 0 0 40px rgba(127, 0, 255, 0.2);
}

.picker-header h4 {
    margin: 0 0 6px;
    font-size: 15px;
}

.picker-req {
    margin: 0 0 14px;
    font-size: 12px;
    color: #a8d4ff;
}

.squad-compose {
    margin-bottom: 14px;
}

.squad-compose-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 8px;
    letter-spacing: 0.08em;
}

.squad-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.squad-slot {
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    box-sizing: border-box;
}

.squad-slot.empty {
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 168px;
    padding: 14px 10px;
    color: rgba(255, 255, 255, 0.4);
}

.squad-slot-empty-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(168, 212, 255, 0.75);
}

.squad-slot-plus {
    font-size: 28px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.35);
}

.squad-slot-empty-hint {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.28);
    margin-top: 4px;
}

.squad-slot.filled {
    border-style: solid;
    border-color: rgba(0, 255, 180, 0.55);
    background: linear-gradient(160deg, rgba(8, 24, 40, 0.95), rgba(20, 10, 45, 0.9));
    box-shadow: 0 4px 20px rgba(0, 255, 160, 0.12);
}

.squad-slot-art {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 100px;
    background: var(--pick-bg, #1a1030);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.squad-slot-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 2, 14, 0.55) 0%, transparent 42%);
    pointer-events: none;
}

.squad-slot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.squad-slot-emoji {
    font-size: 40px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.squad-slot-rarity {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffe566;
    letter-spacing: 0.04em;
}

.squad-slot-rarity.UR,
.squad-slot-rarity.SEC {
    color: #ffe566;
}

.squad-slot-rarity.SR,
.squad-slot-rarity.SSR {
    color: #e0b0ff;
}

.squad-slot-info {
    padding: 10px 10px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.squad-slot-name {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.squad-slot-series {
    font-size: 11px;
    color: rgba(168, 212, 255, 0.88);
}

.squad-slot-stats {
    font-size: 12px;
    font-weight: 700;
    color: #7dffb8;
    letter-spacing: 0.02em;
}

.slot-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 120, 120, 0.6);
    border-radius: 50%;
    background: rgba(180, 30, 30, 0.85);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    transition: transform 0.12s ease, background 0.12s ease;
}

.slot-remove:hover {
    transform: scale(1.08);
    background: rgba(220, 50, 50, 0.95);
}

.adventure-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 12px;
    max-height: 340px;
    overflow-y: auto;
    padding: 4px;
    margin-bottom: 14px;
}

.adventure-pick-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: center;
    box-sizing: border-box;
    font: inherit;
    color: inherit;
}

.adventure-pick-card:hover {
    transform: translateY(-3px);
}

.adventure-pick-card.selected .adventure-pick-frame {
    box-shadow: inset 0 0 0 2px rgba(0, 255, 200, 0.65);
}

.adventure-pick-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 120px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    border: none;
    background: var(--pick-bg, #1a1030);
}

.adventure-pick-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 2, 14, 0.5) 0%, transparent 40%);
    pointer-events: none;
}

.adventure-pick-meta {
    width: 100%;
    padding: 8px 8px 10px;
    text-align: center;
    background: rgba(6, 4, 18, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.adventure-pick-img,
.adventure-pick-frame .card-picker-art-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.adventure-pick-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.adventure-pick-rarity {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.65);
}

.adventure-pick-rarity.UR, .adventure-pick-rarity.SEC { color: #ffe566; }
.adventure-pick-rarity.SR, .adventure-pick-rarity.SSR { color: #e0b0ff; }

.adventure-pick-name {
    font-size: 12px;
    font-weight: 800;
    margin-top: 0;
    color: #fff8f0;
    line-height: 1.35;
    padding: 0;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.adventure-pick-series {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #b8d4ff;
    margin-top: 4px;
}

.picker-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adventure-launch-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff5500, #cc2200, #7f00ff);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(255, 80, 0, 0.35);
}

.adventure-launch-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.adventure-launch-btn:not(:disabled):hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.adventure-picker-close {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.ar-squad-size {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--muted);
}

/* 冒險結算彈窗 */
#adventure-reward-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

#adventure-reward-modal.hidden {
    display: none;
}

.adventure-reward-inner {
    text-align: center;
    padding: 32px 28px;
    border-radius: 20px;
    border: 2px solid rgba(80, 255, 140, 0.5);
    background: linear-gradient(160deg, rgba(10, 30, 20, 0.98), rgba(5, 15, 40, 0.98));
    box-shadow: 0 0 60px rgba(46, 204, 113, 0.35);
    max-width: 90vw;
    animation: rewardPop 0.45s ease-out;
}

@keyframes rewardPop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.adventure-reward-inner h2 {
    margin: 0 0 12px;
    font-size: 1.4rem;
    color: #6dffb0;
}

.ar-zone {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 4px;
}

.ar-card {
    margin: 0 0 16px;
    font-weight: 700;
}

.ar-loot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.ar-loot span,
.ar-loot-line {
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.ar-loot-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#btn-adventure-reward-close {
    padding: 10px 28px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #7f00ff, #00aaff);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

/* Header 貨幣跳動 */
.hdr-coin-bump strong {
    animation: coinBump 0.55s ease-out;
}

@keyframes coinBump {
    0% { transform: scale(1); }
    35% { transform: scale(1.2); color: #fff; }
    100% { transform: scale(1); }
}

.hdr-coin-gold.hdr-coin-flash {
    animation: goldNeonPulse 1.2s ease-out;
}

.hdr-coin-silver.hdr-coin-flash {
    animation: silverNeonPulse 1.2s ease-out;
}

@keyframes goldNeonPulse {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 24px rgba(255, 200, 80, 0.7); }
}

@keyframes silverNeonPulse {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 24px rgba(120, 200, 255, 0.65); }
}

@media (max-width: 640px) {
    .zone-list.battle-zone-list {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .zone-card-inner {
        min-height: 0;
    }
}

@media (max-width: 520px) {
    .missions-economy-banner {
        grid-template-columns: 1fr;
    }
    .task-card {
        grid-template-columns: auto 1fr;
    }
    .task-card .task-btn {
        grid-column: 1 / -1;
        text-align: center;
        width: 100%;
    }
}

/* 手機：任務頁容器對齊、收斂裝飾溢出 */
@media (max-width: 720px) {
    .missions-view {
        padding-bottom: 20px;
    }

    .missions-economy-banner {
        gap: 10px;
        margin-bottom: 18px;
    }

    .missions-coin {
        overflow: hidden;
        border-radius: 12px;
    }

    .missions-coin::before {
        opacity: 0.22;
    }

    .missions-section {
        width: 100%;
        padding: 12px 10px 14px;
        box-sizing: border-box;
        border-radius: 14px;
        border: 1px solid rgba(160, 120, 255, 0.22);
        background: rgba(8, 10, 24, 0.94);
        overflow: hidden;
        text-align: center;
    }

    .missions-section h3,
    .missions-hint {
        text-align: center;
    }

    .missions-section--monthly {
        padding: 12px 10px 14px;
        border-radius: 14px;
        border: 1px solid rgba(160, 120, 255, 0.28);
        border-top: 1px solid rgba(160, 120, 255, 0.28);
        background: rgba(8, 10, 24, 0.92);
        overflow: hidden;
    }

    .task-list {
        gap: 10px;
    }

    .task-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
        padding: 12px;
        border-radius: 12px;
        text-align: center;
        align-items: stretch;
    }

    .task-icon {
        margin: 0 auto;
        width: auto;
        font-size: 30px;
        line-height: 1;
    }

    .task-body {
        width: 100%;
        min-width: 0;
    }

    .task-body h4 {
        font-size: 15px;
        line-height: 1.35;
        color: #f0e8ff;
    }

    .task-body p {
        font-size: 13px;
        line-height: 1.5;
        color: rgba(200, 210, 255, 0.88);
    }

    .task-progress-track {
        height: 6px;
        margin-bottom: 8px;
    }

    .task-reward {
        font-size: 12px;
    }

    .task-card .task-btn {
        grid-column: 1;
        justify-self: center;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 10px 14px;
        font-size: 12px;
    }

    .monthly-task-list {
        gap: 10px;
    }

    .monthly-task-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
        padding: 12px;
        border-radius: 12px;
        text-align: center;
        align-items: stretch;
    }

    .monthly-task-card__body {
        width: 100%;
        min-width: 0;
    }

    .monthly-task-card__title {
        font-size: 0.95rem;
    }

    .monthly-task-card__desc {
        font-size: 0.84rem;
        line-height: 1.5;
    }

    .monthly-task-card__reward {
        font-size: 0.8rem;
    }

    .monthly-task__btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        min-width: 0;
    }

    .missions-eng {
        overflow: hidden;
        margin-bottom: 16px;
        padding: 12px;
        border-radius: 14px;
    }

    .missions-eng::before {
        opacity: 0.35;
    }

    .missions-adventure-section {
        overflow: visible;
        padding: 12px 8px 14px;
        border-radius: 14px;
        border: 1px solid rgba(140, 100, 255, 0.22);
        background: rgba(8, 10, 24, 0.92);
        box-sizing: border-box;
    }

    .adventure-active-sticky-shell {
        top: 54px;
        margin-left: -4px;
        margin-right: -4px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .missions-adventure-section::before {
        display: none;
    }

    .missions-adventure-head {
        gap: 10px;
        margin-bottom: 12px;
    }

    .mission-refresh-btn {
        width: 100%;
        max-width: 100%;
    }

    .zone-list.battle-zone-list {
        gap: 12px;
        padding: 0;
    }

    .zone-card.battle-zone {
        border-radius: 14px;
    }

    .zone-card-inner {
        min-height: 0;
        padding: 14px 12px 16px;
    }

    .task-card {
        border-radius: 12px;
        padding: 12px;
    }

    .adventure-picker-modal {
        top: max(8px, env(safe-area-inset-top, 0px));
        left: max(8px, env(safe-area-inset-left, 0px));
        right: max(8px, env(safe-area-inset-right, 0px));
        bottom: max(8px, env(safe-area-inset-bottom, 0px));
        transform: none;
        width: auto;
        max-height: none;
        height: auto;
        padding: 14px 12px 0;
        border-radius: 16px;
    }

    body.adventure-picker-open .adventure-picker-modal {
        top: max(8px, env(safe-area-inset-top, 0px));
        left: max(8px, env(safe-area-inset-left, 0px));
        right: max(8px, env(safe-area-inset-right, 0px));
        bottom: max(8px, env(safe-area-inset-bottom, 0px));
        width: auto;
        max-height: none;
    }

    .adventure-picker-modal .picker-actions {
        padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
        flex-shrink: 0;
    }

    .adventure-picker-modal .adventure-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding-bottom: 12px;
    }

    .adventure-picker-modal .adventure-pick-name {
        font-size: 13px;
    }

    .adventure-picker-modal .squad-slot {
        width: min(128px, 30vw);
        max-width: 128px;
    }
}
