/* css/hunter/player.css */

/* =========================
   Hunter Player Card
========================= */

.hunter-player-card {
    display: flex;
    align-items: center;
    gap: 16px;

    margin: 18px 0;
    padding: 16px;

    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, .22), transparent 34%),
        linear-gradient(180deg, #fff7df, #ffffff);

    border: 2px solid #f3d58b;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 3px 0 #d6a94f,
        0 8px 18px rgba(15, 23, 42, .08);
}

.hunter-player-avatar-wrap {
    flex: 0 0 auto;

    width: 92px;
    height: 92px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;
    background:
        radial-gradient(circle at center, #ffffff, #fff3c4);

    border: 2px solid #f3d58b;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .95),
        0 2px 0 #d6a94f;
}

.hunter-player-avatar {
    width: 82px;
    height: 82px;
    object-fit: contain;
    image-rendering: pixelated;
}

.hunter-player-info {
    min-width: 0;
    flex: 1;
}

.hunter-player-label {
    margin-bottom: 4px;

    color: #92400e;
    font-size: 12px;
    font-weight: 900;
}

.hunter-player-title {
    margin-bottom: 6px;

    color: #111827;
    font-size: 17px;
    font-weight: 900;
}

.hunter-player-desc {
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.hunter-player-actions {
    flex: 0 0 auto;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.hunter-coin-box {
    padding: 7px 11px;
    border-radius: 999px;

    background: #fffbeb;
    border: 1px solid #fde68a;

    color: #92400e;
    font-size: 13px;
    font-weight: 900;
}

.hunter-coin-box strong {
    margin-left: 4px;
    color: #111827;
}

.hunter-checkin-btn {
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;

    background: #111827;
    color: #ffffff;

    font-size: 14px;
    font-weight: 900;

    cursor: pointer;
    box-shadow: 0 5px 14px rgba(17, 24, 39, .16);
}

.hunter-checkin-btn:hover {
    opacity: .92;
}

.hunter-checkin-btn:disabled {
    cursor: not-allowed;
    background: #9ca3af;
    box-shadow: none;
}

/* =========================
   Hunter EXP Bar
========================= */

.hunter-exp-block {
    margin-top: 10px;
}

.hunter-exp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 5px;

    color: #92400e;
    font-size: 12px;
    font-weight: 900;
}

.hunter-exp-track {
    overflow: hidden;

    height: 11px;
    border-radius: 999px;

    background: #78350f;
    border: 1px solid #92400e;

    box-shadow:
        inset 0 2px 2px rgba(0, 0, 0, .22),
        0 1px 0 rgba(255, 255, 255, .65);
}

.hunter-exp-bar {
    width: 0%;
    height: 100%;

    border-radius: 999px;
    background:
        linear-gradient(180deg,
            #fde68a 0%,
            #facc15 48%,
            #f59e0b 100%);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .72),
        0 0 8px rgba(250, 204, 21, .45);

    transition: width .28s ease;
}

.hunter-player-title-row {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 6px;
}

.hunter-player-title-row .hunter-player-title {
    margin-bottom: 0;
}

/* =========================
   Current Glove Icon
========================= */

.hunter-glove-icon {
    width: 30px;
    height: 30px;
    padding: 2px;

    border-radius: 8px;
    background: rgba(255, 247, 237, .78);
    border: 1px solid rgba(251, 191, 36, .45);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .8),
        0 1px 0 rgba(217, 119, 6, .18);

    object-fit: contain;
    image-rendering: pixelated;
}

.hunter-player-title-row {
    gap: 10px;
}


/* =========================
   Hunter Dialogue
========================= */

.hunter-dialogue-box {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 14px 0;
    padding: 12px 14px;

    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, .18), transparent 34%),
        #ffffff;

    border: 2px solid #f3d58b;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 3px 0 #d6a94f,
        0 8px 18px rgba(15, 23, 42, .08);
}

.hunter-dialogue-avatar {
    width: 54px;
    height: 54px;
    object-fit: contain;
    image-rendering: pixelated;

    flex: 0 0 auto;

    padding: 5px;
    border-radius: 14px;

    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.hunter-dialogue-content {
    min-width: 0;
}

.hunter-dialogue-name {
    margin-bottom: 3px;

    color: #92400e;
    font-size: 13px;
    font-weight: 900;
}

.hunter-dialogue-text {
    color: #374151;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
}

/* =========================
   Hunter Feed
========================= */

.hunter-preview-feed {
    display: grid;
    gap: 8px;

    margin-top: 12px;
}

.hunter-feed-item {
    padding: 11px 13px;
    border-radius: 14px;

    background: rgba(17, 24, 39, .04);
    border: 1px solid rgba(17, 24, 39, .06);

    color: #374151;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

/* =========================
   Hunter Compact Details
========================= */

.hunter-compact-details {
    margin: 12px 0;
    padding: 0;

    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
    border: 2px solid #f3d58b;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 2px 0 rgba(217, 119, 6, .24),
        0 6px 14px rgba(15, 23, 42, .06);
}

.hunter-compact-details summary {
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 12px 14px;

    color: #92400e;
    font-size: 13px;
    font-weight: 900;

    list-style: none;
}

.hunter-compact-details summary::-webkit-details-marker {
    display: none;
}

.hunter-compact-details summary::after {
    content: "展開";

    flex: 0 0 auto;

    padding: 2px 8px;
    border-radius: 999px;

    background: #fef3c7;
    color: #92400e;

    font-size: 11px;
    font-weight: 900;
}

.hunter-compact-details[open] summary::after {
    content: "收合";
}

.hunter-compact-details .hunter-character-section {
    margin: 0 12px 12px;
}

/* =========================
   Player Title Stack
========================= */

.hunter-player-title-row {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 6px;
}

.hunter-title-stack {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hunter-player-title {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 0;

    color: #111827;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.2;
}

.hunter-level-badge {
    flex: 0 0 auto;

    padding: 2px 7px;
    border-radius: 999px;

    background: #111827;
    color: #facc15;

    font-size: 12px;
    font-weight: 950;
    letter-spacing: .02em;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        0 2px 0 rgba(0, 0, 0, .18);
}

.hunter-glove-name {
    min-width: 0;

    color: #111827;
    font-weight: 950;
}

.hunter-rank-line {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #92400e;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.hunter-rank-label {
    padding: 2px 6px;
    border-radius: 999px;

    background: #fef3c7;
    color: #92400e;

    font-size: 10px;
    font-weight: 950;
}

.hunter-rank-name {
    color: #b45309;
    font-weight: 950;
}

/* =========================
   Check-in streak rewards
========================= */

.hunter-checkin-streak-card {
    margin: 12px 0 14px;
    padding: 14px;
    border-radius: 18px;
    border: 2px solid rgba(245, 211, 139, .95);
    background:
        radial-gradient(circle at 14% 12%, rgba(253, 230, 138, .38), transparent 28%),
        linear-gradient(180deg, rgba(255, 251, 235, .96), rgba(255, 247, 237, .9));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 2px 0 rgba(217, 119, 6, .22),
        0 8px 18px rgba(15, 23, 42, .06);
}

.hunter-checkin-streak-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hunter-checkin-streak-label {
    color: #92400e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.hunter-checkin-streak-days {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: #111827;
}

.hunter-checkin-streak-days strong {
    font-size: 28px;
    line-height: 1;
}

.hunter-checkin-streak-days span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 900;
}

.hunter-checkin-status-tag {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #111827;
    color: #fff7ed;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 5px 12px rgba(15, 23, 42, .12);
}

.hunter-checkin-status-tag.is-done {
    background: #16a34a;
}

.hunter-checkin-status-tag.is-locked {
    background: #6b7280;
}

.hunter-checkin-reward-text {
    margin-top: 10px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
}

.hunter-checkin-next-milestone {
    margin-top: 8px;
    padding: 9px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .68);
    color: #b45309;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.5;
}

.hunter-checkin-streak-card.is-locked {
    filter: grayscale(.35);
    opacity: .82;
}

/* =========================
   Check-in 7-day dopamine grid
========================= */

.hunter-checkin-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
    margin-top: 12px;
}

.hunter-checkin-day {
    min-width: 0;
    padding: 8px 4px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(245, 158, 11, .24);
    color: #92400e;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.hunter-checkin-day-icon {
    height: 20px;
    font-size: 15px;
    line-height: 20px;
}

.hunter-checkin-day-label {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 950;
    line-height: 1.1;
}

.hunter-checkin-day-reward {
    margin-top: 3px;
    color: #b45309;
    font-size: 10px;
    font-weight: 950;
    line-height: 1.1;
}

.hunter-checkin-day.is-done {
    background: linear-gradient(180deg, #ecfdf5, #dcfce7);
    border-color: rgba(22, 163, 74, .42);
    color: #166534;
}

.hunter-checkin-day.is-today {
    background: linear-gradient(180deg, #fffbeb, #fef3c7);
    border-color: rgba(245, 158, 11, .72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .85),
        0 0 0 2px rgba(245, 158, 11, .1),
        0 6px 14px rgba(245, 158, 11, .12);
}

.hunter-checkin-day.is-chest {
    background:
        radial-gradient(circle at 50% 0%, rgba(250, 204, 21, .32), transparent 58%),
        rgba(255, 255, 255, .78);
}

.hunter-checkin-day.is-locked {
    filter: grayscale(.45);
    opacity: .68;
}

.hunter-checkin-streak-card.chest-open {
    animation: hunterChestPop .72s ease;
}

.hunter-feed-title {
    color: #92400e;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .04em;
}

/* =========================
   Offline reward manual claim modal
========================= */

.hunter-offline-modal-open {
    overflow: hidden;
}

.hunter-offline-claim-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;

    display: grid;
    place-items: center;
    padding: 18px;
}

.hunter-offline-claim-modal[hidden] {
    display: none !important;
}

.hunter-offline-claim-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 18%, rgba(96, 165, 250, .2), transparent 38%),
        rgba(15, 23, 42, .54);
    backdrop-filter: blur(6px);
}

.hunter-offline-claim-card {
    position: relative;
    z-index: 1;

    width: min(420px, 100%);
    padding: 18px;

    border-radius: 24px;
    border: 2px solid rgba(147, 197, 253, .88);
    background:
        radial-gradient(circle at 12% 10%, rgba(191, 219, 254, .58), transparent 34%),
        radial-gradient(circle at 92% 0%, rgba(254, 240, 138, .38), transparent 28%),
        linear-gradient(180deg, #eff6ff, #ffffff 72%);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .92),
        0 22px 56px rgba(15, 23, 42, .28),
        0 0 0 1px rgba(255, 255, 255, .4);

    animation: hunterOfflineModalPop .22s ease-out;
}

.hunter-offline-claim-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hunter-offline-claim-icon {
    flex: 0 0 auto;

    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;

    border-radius: 18px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(96, 165, 250, .34);
    box-shadow: 0 8px 18px rgba(30, 64, 175, .1);

    font-size: 24px;
}

.hunter-offline-claim-title {
    color: #1e3a8a;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.25;
}

.hunter-offline-claim-text {
    margin-top: 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.65;
}

.hunter-offline-claim-rewards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;

    margin-top: 15px;
}

.hunter-offline-claim-rewards span {
    min-width: 0;
    padding: 10px 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .84);
    border: 1px solid rgba(96, 165, 250, .32);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.2;
    text-align: center;
    word-break: keep-all;
}

.hunter-offline-claim-btn {
    width: 100%;
    margin-top: 16px;

    border: 0;
    border-radius: 999px;
    padding: 13px 16px;

    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    color: #ffffff;

    font-size: 15px;
    font-weight: 950;
    white-space: nowrap;

    cursor: pointer;
    box-shadow: 0 10px 18px rgba(29, 78, 216, .25);
}

.hunter-offline-claim-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 22px rgba(29, 78, 216, .28);
}

.hunter-offline-claim-btn:disabled {
    cursor: not-allowed;
    background: #93a3b8;
    box-shadow: none;
    transform: none;
}

@keyframes hunterOfflineModalPop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Daily tasks / Mine logs */
.hunter-daily-task-board,
.hunter-mine-log-card {
    margin-top: 14px;
    border: 1px solid rgba(255, 214, 128, 0.22);
    border-radius: 22px;
    background: rgba(27, 20, 13, 0.76);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    padding: 16px;
}

.hunter-daily-task-board.is-locked {
    opacity: 0.86;
}

.hunter-daily-task-head,
.hunter-mine-log-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.hunter-daily-task-kicker,
.hunter-mine-log-kicker {
    color: rgba(255, 228, 172, 0.68);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.hunter-daily-task-head h3,
.hunter-mine-log-head h3 {
    margin: 3px 0 0;
    color: #fff3d1;
    font-size: 18px;
}

.hunter-daily-task-progress,
.hunter-mine-log-count {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 214, 128, 0.28);
    border-radius: 999px;
    background: rgba(255, 231, 176, 0.1);
    color: #ffe2a1;
    font-size: 12px;
    font-weight: 900;
    padding: 7px 10px;
}

.hunter-daily-task-list,
.hunter-mine-log-list {
    display: grid;
    gap: 10px;
}

.hunter-task-empty,
.hunter-mine-log-empty {
    border: 1px dashed rgba(255, 214, 128, 0.24);
    border-radius: 16px;
    color: rgba(255, 240, 205, 0.74);
    font-size: 13px;
    line-height: 1.65;
    padding: 14px;
}

.hunter-task-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(255, 214, 128, 0.18);
    border-radius: 18px;
    background: rgba(255, 243, 216, 0.055);
    padding: 12px;
}

.hunter-task-item.is-completed {
    border-color: rgba(255, 214, 128, 0.42);
    background: rgba(255, 206, 92, 0.1);
}

.hunter-task-item.is-claimed {
    opacity: 0.68;
}

.hunter-task-main {
    min-width: 0;
}

.hunter-task-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff3d1;
    font-size: 14px;
}

.hunter-task-check {
    width: 22px;
    text-align: center;
}

.hunter-task-desc {
    margin-top: 4px;
    color: rgba(255, 240, 205, 0.72);
    font-size: 12px;
}

.hunter-task-reward {
    margin-top: 6px;
    color: #ffd47a;
    font-size: 12px;
    font-weight: 800;
}

.hunter-task-progress-track {
    overflow: hidden;
    height: 6px;
    margin-top: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.hunter-task-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f6a742, #ffe08a);
    transition: width 0.22s ease;
}

.hunter-task-claim-btn {
    min-width: 76px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6a742, #ffe08a);
    color: #33200b;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    padding: 9px 12px;
    white-space: nowrap;
}

.hunter-task-claim-btn:disabled {
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 240, 205, 0.55);
}

.hunter-task-claim-btn.is-loading {
    opacity: 0.72;
}

.hunter-task-bonus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    border: 1px solid rgba(255, 214, 128, 0.28);
    border-radius: 18px;
    background: rgba(255, 206, 92, 0.09);
    padding: 12px;
}

.hunter-task-bonus.is-claimable {
    border-color: rgba(255, 224, 138, 0.56);
    box-shadow: 0 0 24px rgba(255, 198, 75, 0.14);
}

.hunter-task-bonus-text {
    display: grid;
    gap: 4px;
    color: #fff3d1;
    font-size: 13px;
}

.hunter-task-bonus-text span {
    color: #ffd47a;
    font-weight: 800;
}

.hunter-mine-log-card {
    margin-top: 14px;
}

.hunter-mine-log-list {
    max-height: 420px;
    overflow: auto;
    padding-right: 2px;
}

.hunter-mine-log-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(255, 214, 128, 0.16);
    border-radius: 16px;
    background: rgba(255, 243, 216, 0.052);
    padding: 11px 12px;
}

.hunter-mine-log-time {
    color: rgba(255, 240, 205, 0.68);
    font-size: 12px;
    font-weight: 900;
}

.hunter-mine-log-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.hunter-mine-log-main strong {
    overflow: hidden;
    color: #fff3d1;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hunter-mine-log-main span {
    color: rgba(255, 240, 205, 0.62);
    font-size: 12px;
}

.hunter-mine-log-reward {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    max-width: 220px;
}

.hunter-mine-log-reward span {
    border-radius: 999px;
    background: rgba(255, 214, 128, 0.12);
    color: #ffd47a;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 8px;
}

/* =========================
   Rank Advancement
========================= */

.hunter-rank-advancement-card {
    margin: 14px 0 0;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(146, 64, 14, .18);
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, .16), transparent 34%),
        linear-gradient(180deg, #fff7ed, #ffffff);
    box-shadow: 0 12px 26px rgba(120, 53, 15, .08);
}

.hunter-rank-advancement-card.is-ready {
    border-color: rgba(217, 119, 6, .42);
    box-shadow: 0 16px 32px rgba(217, 119, 6, .16);
}

.hunter-rank-advancement-card.is-major-exam {
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, .22), transparent 34%),
        linear-gradient(180deg, #fffbeb, #ffffff);
}

.hunter-advancement-head,
.hunter-advancement-footer,
.hunter-advancement-current,
.hunter-advancement-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hunter-advancement-kicker {
    color: #92400e;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.hunter-advancement-head h3 {
    margin: 2px 0 0;
    color: #431407;
    font-size: 17px;
    font-weight: 900;
}

.hunter-advancement-status {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(146, 64, 14, .2);
    color: #92400e;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.hunter-advancement-desc,
.hunter-advancement-footer p {
    margin: 10px 0 0;
    color: #78350f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}

.hunter-advancement-current {
    margin-top: 12px;
    color: #78350f;
    font-size: 13px;
    font-weight: 800;
}

.hunter-advancement-current strong {
    color: #111827;
    font-size: 14px;
}

.hunter-advancement-current span {
    color: #92400e;
    font-weight: 900;
}

.hunter-advancement-next {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(146, 64, 14, .12);
    color: #431407;
    font-size: 13px;
    font-weight: 900;
}


.hunter-advancement-latest {
    margin-top: 10px;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
}

.hunter-advancement-latest strong {
    color: #431407;
    font-weight: 950;
}

.hunter-advancement-requirements {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.hunter-advancement-requirements li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(146, 64, 14, .12);
    color: #78350f;
    font-size: 12px;
    font-weight: 800;
}

.hunter-advancement-requirements li.is-completed {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.hunter-advancement-requirements em {
    font-style: normal;
    color: #6b7280;
    font-weight: 900;
}

.hunter-rank-advance-btn {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(217, 119, 6, .22);
}

.hunter-rank-advance-btn:disabled {
    cursor: not-allowed;
    background: #e5e7eb;
    color: #6b7280;
    box-shadow: none;
}

/* Hunter Alpha patch: mine actions + near-level material preview */
.hunter-mine-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hunter-mine-btn.secondary {
    background: linear-gradient(180deg, #fff7ed, #fed7aa);
    color: #7c2d12;
    border-color: rgba(251, 146, 60, 0.72);
}

.glove-preview-section.is-preview {
    border-style: dashed;
    opacity: 0.94;
}

.glove-preview-item.preview {
    opacity: 0.64;
    filter: grayscale(0.28);
}

.glove-preview-item.preview img {
    opacity: 0.86;
}

/* Hunter Alpha patch: rank advancement action + compact rank card */
.hunter-advancement-rank-current,
.hunter-advancement-rank-next {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
}

.hunter-advancement-rank-current span,
.hunter-advancement-rank-next span {
    color: #92400e;
    font-size: 12px;
    font-weight: 900;
}

.hunter-advancement-rank-current strong,
.hunter-advancement-rank-next strong {
    color: #111827;
    font-size: 15px;
    font-weight: 950;
}

.hunter-rank-advance-btn.is-loading {
    opacity: .82;
    pointer-events: none;
}

.hunter-rank-advance-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(17, 24, 39, .36);
    animation: hunterRankAdvanceFadeIn .18s ease-out both;
}

.hunter-rank-advance-modal.is-leaving {
    animation: hunterRankAdvanceFadeOut .35s ease-in both;
}

.hunter-rank-advance-modal-card {
    width: min(420px, 100%);
    padding: 22px 18px;
    border-radius: 24px;
    border: 1px solid rgba(217, 119, 6, .42);
    background:
        radial-gradient(circle at top, rgba(251, 191, 36, .28), transparent 44%),
        linear-gradient(180deg, #fff7ed, #ffffff);
    box-shadow: 0 24px 60px rgba(67, 20, 7, .26);
    text-align: center;
    animation: hunterRankAdvanceCardPop .38s cubic-bezier(.2, .9, .25, 1.25) both;
}

.hunter-rank-advance-modal-kicker {
    color: #92400e;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .14em;
}

.hunter-rank-advance-modal-title {
    margin-top: 4px;
    color: #431407;
    font-size: 22px;
    font-weight: 950;
}

.hunter-rank-advance-modal-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
    color: #78350f;
    font-size: 14px;
    font-weight: 900;
}

.hunter-rank-advance-modal-flow strong {
    color: #d97706;
    font-size: 18px;
}

.hunter-rank-advance-modal-message {
    margin-top: 12px;
    color: #78350f;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
}

@keyframes hunterRankAdvanceFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hunterRankAdvanceFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes hunterRankAdvanceCardPop {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Beta polish: daily reset countdown */
.hunter-daily-task-head-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.hunter-daily-reset-countdown {
    flex: 0 0 auto;
    border: 1px solid rgba(117, 214, 255, 0.22);
    border-radius: 999px;
    background: rgba(78, 161, 255, 0.1);
    color: rgba(210, 238, 255, 0.92);
    font-size: 12px;
    font-weight: 900;
    padding: 7px 10px;
}

/* =========================
   Beta base UI consolidation
========================= */

.hunter-base-compact-dialogue {
    margin: 10px 0 12px;
}

.hunter-base-action-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin: 12px 0;
    padding: 13px 15px;

    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, .2), transparent 34%),
        linear-gradient(180deg, #fff7ed, #ffffff);
    border: 2px solid #f3d58b;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 2px 0 rgba(217, 119, 6, .2),
        0 8px 18px rgba(15, 23, 42, .06);
}

.hunter-base-action-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.hunter-base-action-kicker {
    color: #b45309;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .12em;
}

.hunter-base-action-copy strong {
    color: #111827;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.2;
}

.hunter-base-action-copy span:last-child {
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.hunter-base-reset-pill {
    color: #1e3a8a;
    background: #eff6ff;
    border-color: rgba(96, 165, 250, .38);
    white-space: nowrap;
}

.hunter-base-section-grid {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.hunter-base-section {
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
    border: 2px solid #f3d58b;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 2px 0 rgba(217, 119, 6, .18),
        0 8px 16px rgba(15, 23, 42, .05);
}

.hunter-base-section summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 12px 14px;
    color: #92400e;
    list-style: none;
    user-select: none;
}

.hunter-base-section summary::-webkit-details-marker {
    display: none;
}

.hunter-base-section summary::after {
    content: "展開";
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 950;
}

.hunter-base-section[open] summary::after {
    content: "收合";
}

.hunter-base-section-title {
    min-width: 0;
    color: #92400e;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.25;
}

.hunter-base-section-hint {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(251, 191, 36, .16);
    color: #b45309;
    font-size: 11px;
    font-weight: 900;
}

.hunter-base-section .hunter-checkin-status-tag,
.hunter-base-section .hunter-daily-task-progress {
    margin-left: auto;
}

.hunter-base-section .hunter-checkin-streak-card,
.hunter-base-section .hunter-daily-task-board,
.hunter-base-section .hunter-rank-advancement-card,
.hunter-base-section .hunter-preview-feed {
    margin: 0 12px 12px;
}

.hunter-base-section .hunter-checkin-streak-card {
    padding: 12px;
    border-width: 1px;
    box-shadow: none;
}

.hunter-base-section .hunter-checkin-streak-head {
    align-items: flex-start;
}

.hunter-base-section .hunter-daily-task-board {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hunter-base-section .hunter-daily-task-list {
    gap: 8px;
}

.hunter-base-section .hunter-task-item,
.hunter-base-section .hunter-task-bonus,
.hunter-base-section .hunter-task-empty {
    background: #fffaf0;
    border-color: rgba(245, 158, 11, .24);
    color: #374151;
}

.hunter-base-section .hunter-task-item.is-completed {
    background: #fffbeb;
    border-color: rgba(245, 158, 11, .48);
}

.hunter-base-section .hunter-task-title-row {
    color: #111827;
}

.hunter-base-section .hunter-task-desc {
    color: #6b7280;
}

.hunter-base-section .hunter-task-reward,
.hunter-base-section .hunter-task-bonus-text span {
    color: #b45309;
}

.hunter-base-section .hunter-task-bonus-text {
    color: #111827;
}

.hunter-base-section .hunter-task-progress-track {
    background: rgba(146, 64, 14, .12);
}

.hunter-base-section .hunter-task-claim-btn:disabled {
    background: #e5e7eb;
    color: #6b7280;
}

.hunter-base-section .hunter-rank-advancement-card {
    box-shadow: none;
}

.hunter-base-section .hunter-preview-feed {
    display: block;
}

.hunter-base-section .hunter-feed-item {
    margin: 0;
    background: #fffbeb;
    border-color: rgba(245, 158, 11, .18);
}

.hunter-free-reward-card .hunter-beta-desc {
    margin: 0 12px 12px;
    padding: 12px;
    border-radius: 14px;
    background: #fffaf0;
    color: #78350f;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.65;
}

/* =========================
   RPG base dashboard layout
   Real DOM buttons over CSS-only guild base mood
========================= */

.hunter-game-view[data-hunter-view="base"] {
    position: relative;
}

.hunter-base-stage {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    margin: 10px 0 0;
    padding: 18px;
    border-radius: 28px;

    background:
        linear-gradient(90deg, rgba(120, 53, 15, .14) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(180deg, rgba(255, 247, 237, .92), rgba(255, 251, 235, .84) 48%, rgba(67, 32, 13, .16)),
        radial-gradient(circle at 12% 18%, rgba(251, 191, 36, .28), transparent 30%),
        radial-gradient(circle at 88% 26%, rgba(59, 130, 246, .12), transparent 28%),
        linear-gradient(135deg, #3f230f, #7c3f16 42%, #24130a);

    border: 2px solid rgba(245, 158, 11, .46);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .75),
        inset 0 -18px 60px rgba(67, 20, 7, .2),
        0 14px 34px rgba(67, 20, 7, .18);
}

.hunter-base-stage::before,
.hunter-base-stage::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.hunter-base-stage::before {
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 10%, rgba(120, 53, 15, .11) 10% 11%, transparent 11% 89%, rgba(120, 53, 15, .11) 89% 90%, transparent 90%),
        radial-gradient(ellipse at 50% 100%, rgba(92, 48, 22, .38), transparent 48%);
    opacity: .92;
}

.hunter-base-stage::after {
    right: -32px;
    bottom: -48px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(253, 186, 116, .32), transparent 58%),
        repeating-radial-gradient(circle, rgba(120, 53, 15, .18) 0 2px, transparent 2px 16px);
    opacity: .78;
}

.hunter-base-stage-glow,
.hunter-base-stage-beams {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.hunter-base-stage-glow {
    background:
        radial-gradient(circle at 18% 68%, rgba(34, 197, 94, .12), transparent 28%),
        radial-gradient(circle at 76% 72%, rgba(250, 204, 21, .18), transparent 26%),
        radial-gradient(circle at 52% 14%, rgba(255, 255, 255, .32), transparent 34%);
}

.hunter-base-stage-beams {
    opacity: .34;
    background:
        linear-gradient(112deg, transparent 0 42%, rgba(255, 255, 255, .34) 43%, transparent 51%),
        linear-gradient(68deg, transparent 0 58%, rgba(251, 191, 36, .16) 59%, transparent 67%);
    mix-blend-mode: screen;
}

.hunter-base-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 14px;
}

.hunter-base-hero-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-height: 240px;
    padding: 24px;
    border-radius: 26px;

    background:
        linear-gradient(180deg, rgba(15, 23, 42, .86), rgba(55, 28, 13, .84)),
        radial-gradient(circle at top left, rgba(251, 191, 36, .32), transparent 34%);
    border: 2px solid rgba(251, 191, 36, .48);
    color: #fff7ed;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        0 12px 24px rgba(67, 20, 7, .24);
}

.hunter-base-hero-copy::after {
    content: "🐾";
    position: absolute;
    right: 22px;
    top: 18px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(251, 191, 36, .14);
    border: 1px solid rgba(251, 191, 36, .38);
    font-size: 28px;
}

.hunter-base-kicker {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(251, 191, 36, .14);
    border: 1px solid rgba(251, 191, 36, .36);
    color: #fde68a;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .16em;
}

.hunter-base-title {
    margin: 0;
    color: #fffbeb;
    font-size: clamp(34px, 6vw, 58px);
    font-weight: 950;
    line-height: 1.02;
    letter-spacing: .02em;
    text-shadow: 0 3px 0 rgba(120, 53, 15, .86), 0 8px 22px rgba(0, 0, 0, .28);
}

.hunter-base-tagline {
    max-width: 420px;
    margin: 0;
    color: rgba(255, 247, 237, .88);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.65;
}

.hunter-base-status-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.hunter-base-status-item {
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border-radius: 16px;
    background: rgba(255, 247, 237, .12);
    border: 1px solid rgba(253, 230, 138, .26);
}

.hunter-base-status-item span {
    color: rgba(255, 247, 237, .72);
    font-size: 11px;
    font-weight: 900;
}

.hunter-base-status-item strong {
    color: #fef3c7;
    font-size: 14px;
    font-weight: 950;
}

.hunter-base-character-card {
    margin: 0;
    min-height: 240px;
    align-items: center;
    background:
        radial-gradient(circle at 18% 24%, rgba(251, 191, 36, .28), transparent 34%),
        radial-gradient(circle at 88% 88%, rgba(59, 130, 246, .1), transparent 28%),
        linear-gradient(180deg, rgba(255, 251, 235, .94), rgba(255, 247, 237, .88));
    backdrop-filter: blur(10px);
}

.hunter-base-character-avatar {
    width: 148px;
    height: 190px;
    align-self: stretch;
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 50% 72%, rgba(251, 191, 36, .28), transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(254, 243, 199, .78));
}

.hunter-base-character-avatar .hunter-player-avatar {
    width: 138px;
    height: 178px;
    object-fit: contain;
    image-rendering: auto;
}

.hunter-base-player-actions {
    align-self: flex-start;
}

.hunter-base-companion-box {
    margin: 0 0 14px;
    background: rgba(255, 251, 235, .88);
    backdrop-filter: blur(8px);
}

.hunter-base-dashboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hunter-base-quick-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "main meta"
        "action action";
    gap: 10px;
    align-items: center;
    min-height: 116px;
    padding: 14px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 251, 235, .94), rgba(255, 247, 237, .9)),
        radial-gradient(circle at top left, rgba(251, 191, 36, .2), transparent 34%);
    border: 2px solid rgba(245, 158, 11, .42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 3px 0 rgba(146, 64, 14, .34),
        0 12px 22px rgba(67, 20, 7, .12);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.hunter-base-quick-card:hover,
.hunter-base-quick-card.is-active {
    transform: translateY(-1px);
    border-color: rgba(217, 119, 6, .72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .94),
        0 4px 0 rgba(146, 64, 14, .46),
        0 16px 28px rgba(67, 20, 7, .16);
}

.hunter-base-quick-card::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .52);
    pointer-events: none;
}

.hunter-base-quick-main {
    grid-area: main;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.hunter-base-quick-icon {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background:
        radial-gradient(circle at 36% 28%, rgba(255, 255, 255, .84), transparent 32%),
        linear-gradient(180deg, #fffbeb, #fef3c7);
    border: 1px solid rgba(245, 158, 11, .34);
    font-size: 32px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 10px rgba(146, 64, 14, .14);
}

.hunter-base-quick-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.hunter-base-quick-copy strong {
    color: #431407;
    font-size: 21px;
    font-weight: 950;
    line-height: 1.15;
}

.hunter-base-quick-copy small {
    color: #92400e;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
}

.hunter-base-quick-card .hunter-checkin-status-tag,
.hunter-base-quick-card .hunter-daily-task-progress,
.hunter-base-card-pill {
    grid-area: meta;
    justify-self: end;
    white-space: nowrap;
}

.hunter-base-card-pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 950;
}

.hunter-base-card-action {
    grid-area: action;
    justify-self: start;
    min-width: 132px;
}

.hunter-base-quick-card-checkin {
    background:
        linear-gradient(180deg, rgba(236, 253, 245, .94), rgba(255, 251, 235, .92)),
        radial-gradient(circle at top left, rgba(34, 197, 94, .18), transparent 34%);
    border-color: rgba(34, 197, 94, .34);
}

.hunter-base-quick-card-route {
    background:
        linear-gradient(180deg, rgba(239, 246, 255, .92), rgba(255, 251, 235, .9)),
        radial-gradient(circle at top left, rgba(59, 130, 246, .18), transparent 34%);
}

.hunter-base-quick-card-free {
    grid-column: span 2;
    min-height: 94px;
}

.hunter-base-panel-stack {
    margin-top: 14px;
}

.hunter-base-panel {
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 251, 235, .92);
    border: 2px solid rgba(245, 158, 11, .36);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .92),
        0 10px 22px rgba(67, 20, 7, .1);
}

.hunter-base-panel:not([hidden]) {
    animation: hunterBasePanelIn .16s ease-out;
}

@keyframes hunterBasePanelIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hunter-base-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.hunter-base-panel-head h3 {
    margin: 0;
    color: #431407;
    font-size: 18px;
    font-weight: 950;
}

.hunter-base-panel-close {
    border: 0;
    border-radius: 999px;
    padding: 7px 12px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.hunter-base-panel .hunter-checkin-streak-card,
.hunter-base-panel .hunter-daily-task-board,
.hunter-base-panel .hunter-rank-advancement-card,
.hunter-base-panel .hunter-preview-feed {
    margin: 0;
}

.hunter-base-panel .hunter-daily-task-board {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hunter-base-panel .hunter-feed-item,
.hunter-base-panel .hunter-beta-desc {
    margin: 0;
    border-radius: 16px;
    background: #fffaf0;
    border: 1px solid rgba(245, 158, 11, .24);
    color: #78350f;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.65;
}

.hunter-base-panel .hunter-beta-desc {
    padding: 14px;
}

/* =========================
   Beta base UI final pass
   - keep free feedback visible but secondary
   - improve task text contrast on light base panels
========================= */

.hunter-base-quick-card-free {
    min-height: 74px;
    background:
        linear-gradient(180deg, rgba(255, 251, 235, .86), rgba(255, 247, 237, .78));
    border-color: rgba(245, 158, 11, .26);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .82),
        0 2px 0 rgba(146, 64, 14, .16),
        0 8px 16px rgba(67, 20, 7, .08);
}

.hunter-base-quick-card-free .hunter-base-quick-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
    opacity: .86;
}

.hunter-base-quick-card-free .hunter-base-quick-copy strong {
    font-size: 17px;
}

.hunter-base-quick-card-free .hunter-base-quick-copy small,
.hunter-base-quick-card-free .hunter-base-card-pill {
    color: rgba(120, 53, 15, .72);
}

.hunter-base-panel .hunter-task-reward,
.hunter-base-panel .hunter-task-bonus-text span,
.hunter-base-panel .hunter-task-check,
.hunter-base-panel .hunter-task-title-row strong {
    color: #7c2d12;
    text-shadow: none;
}

.hunter-base-panel .hunter-task-desc,
.hunter-base-panel .hunter-task-empty,
.hunter-base-panel .hunter-task-bonus-text {
    color: #5b3721;
    text-shadow: none;
}

.hunter-base-panel .hunter-task-progress-track {
    background: rgba(124, 45, 18, .14);
}

.hunter-base-panel .hunter-task-progress-bar {
    background: linear-gradient(90deg, #b45309, #f59e0b);
}

.hunter-base-stage,
.hunter-base-hero-copy,
.hunter-base-character-card,
.hunter-base-dashboard,
.hunter-base-quick-card,
.hunter-base-panel-stack,
.hunter-base-panel {
    box-sizing: border-box;
}


/* =========================
   Mine log details polish
   - desktop/tablet also needs the collapsed log summary styles
========================= */
.hunter-mine-log-details {
    padding: 0;
    overflow: hidden;
}

.hunter-mine-log-details > summary.hunter-mine-log-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    padding: 16px 18px;
    list-style: none;
    cursor: pointer;
}

.hunter-mine-log-details > summary.hunter-mine-log-head::-webkit-details-marker {
    display: none;
}

.hunter-mine-log-details > summary.hunter-mine-log-head > span:first-child {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.hunter-mine-log-title {
    color: #fff3d1;
    font-size: 18px;
    font-weight: 950;
}

.hunter-mine-log-meta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.hunter-mine-log-toggle {
    color: #fff3d1;
    font-size: 13px;
    font-weight: 950;
}

.hunter-mine-log-details[open] .hunter-mine-log-toggle {
    font-size: 0;
}

.hunter-mine-log-details[open] .hunter-mine-log-toggle::after {
    content: "收合";
    font-size: 13px;
}

.hunter-mine-log-details > .hunter-mine-log-list {
    padding: 0 18px 18px;
}

.hunter-mine-log-details:not([open]) > .hunter-mine-log-list {
    display: none;
}

@media (max-width: 768px) {
    .hunter-page .hunter-mine-log-details > summary.hunter-mine-log-head {
        padding: 13px 14px;
    }

    .hunter-page .hunter-mine-log-title {
        font-size: 15px;
    }

    .hunter-page .hunter-mine-log-details > summary.hunter-mine-log-head > span:first-child {
        align-items: center;
    }

    .hunter-page .hunter-mine-log-meta {
        gap: 7px;
    }

    .hunter-page .hunter-mine-log-toggle,
    .hunter-page .hunter-mine-log-details[open] .hunter-mine-log-toggle::after {
        font-size: 12px;
    }

    .hunter-page .hunter-mine-log-details > .hunter-mine-log-list {
        padding: 0 14px 14px;
    }
}


/* =========================
   Base dashboard final row polish v14
   - put hunter log on the same row as free feedback on desktop
   - give daily task card the same base shortcut styling weight
========================= */
.hunter-base-dashboard.is-rank-removed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.hunter-base-dashboard.is-rank-removed [data-hunter-base-card="log"],
.hunter-base-dashboard.is-rank-removed .hunter-base-quick-card-free {
    grid-column: auto;
}

.hunter-base-dashboard.is-rank-removed .hunter-base-quick-card-free {
    min-height: 116px;
}

.hunter-base-dashboard.is-rank-removed [data-hunter-base-card="daily"] {
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, .18), transparent 34%),
        linear-gradient(180deg, rgba(255, 251, 235, .94), rgba(255, 247, 237, .86));
    border-color: rgba(245, 158, 11, .46);
}

.hunter-base-dashboard.is-rank-removed [data-hunter-base-card="daily"] .hunter-daily-task-progress {
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 243, 196, .94);
    border: 1px solid rgba(245, 158, 11, .22);
    color: #b45309;
    font-size: 12px;
    font-weight: 950;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.hunter-base-dashboard.is-rank-removed [data-hunter-base-card="daily"] .hunter-base-quick-copy strong {
    color: #431407;
}

.hunter-base-dashboard.is-rank-removed [data-hunter-base-card="daily"] .hunter-base-quick-copy small {
    color: #92400e;
}

.hunter-base-dashboard.is-rank-removed [data-hunter-base-card="log"] {
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, .14), transparent 36%),
        linear-gradient(180deg, rgba(255, 251, 235, .90), rgba(255, 247, 237, .76));
    border-color: rgba(245, 158, 11, .34);
}

/* =========================
   Check-in visual reward summary
========================= */

.hunter-checkin-visual-note {
    display: grid;
    gap: 10px;
}

.hunter-checkin-visual-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #92400e;
    font-size: 13px;
    line-height: 1.35;
}

.hunter-checkin-visual-title span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 11px;
    background: linear-gradient(180deg, #fffbeb, #fef3c7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 4px 10px rgba(146, 64, 14, .12);
}

.hunter-checkin-reward-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.hunter-checkin-reward-tile {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 9px;
    border-radius: 15px;
    border: 1px solid rgba(245, 158, 11, .28);
    background: rgba(255, 251, 235, .86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.hunter-checkin-reward-tile-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(254, 243, 199, .78));
    font-size: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 5px 12px rgba(146, 64, 14, .1);
}

.hunter-checkin-reward-tile-title {
    color: #92400e;
    font-size: 11px;
    font-weight: 950;
    line-height: 1.2;
}

.hunter-checkin-reward-tile-main {
    margin-top: 2px;
    color: #111827;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.2;
}

.hunter-checkin-reward-tile-sub {
    margin-top: 2px;
    color: #6b7280;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.hunter-checkin-reward-tile.is-weekly {
    background: linear-gradient(180deg, rgba(255, 251, 235, .92), rgba(254, 243, 199, .86));
}

.hunter-checkin-reward-tile.is-monthly {
    border-color: rgba(147, 51, 234, .22);
    background: linear-gradient(180deg, rgba(250, 245, 255, .9), rgba(255, 251, 235, .84));
}

.hunter-checkin-reward-tile.is-rule {
    background: rgba(255, 255, 255, .72);
}

@media (max-width: 768px) {
    .hunter-page .hunter-checkin-next-milestone {
        padding: 10px;
    }

    .hunter-page .hunter-checkin-reward-strip {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .hunter-page .hunter-checkin-reward-tile {
        grid-template-columns: 32px minmax(0, 1fr);
        padding: 8px;
    }

    .hunter-page .hunter-checkin-reward-tile-icon {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .hunter-page .hunter-checkin-reward-tile-main {
        font-size: 12px;
    }
}
