.hunter-minigame-shell {
    display: grid;
    gap: 14px;
}

.hunter-memory-game-card,
.hunter-achievement-card {
    border: 1px solid rgba(245, 158, 11, .22);
    border-radius: 20px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(17, 24, 39, .96), rgba(15, 23, 42, .92));
    box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
}

.hunter-memory-header,
.hunter-achievement-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.hunter-memory-kicker,
.hunter-achievement-kicker {
    color: #fbbf24;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.hunter-memory-header h3,
.hunter-achievement-header h3 {
    margin: 4px 0 4px;
    color: #f9fafb;
    font-size: 18px;
}

.hunter-memory-desc,
.hunter-achievement-desc {
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.6;
}

.hunter-memory-timer-box {
    min-width: 70px;
    border: 1px solid rgba(251, 191, 36, .35);
    border-radius: 14px;
    padding: 8px 10px;
    text-align: center;
    background: rgba(15, 23, 42, .72);
}

.hunter-memory-timer-label {
    display: block;
    color: #94a3b8;
    font-size: 11px;
}

.hunter-memory-timer-value {
    display: block;
    margin-top: 2px;
    color: #fef3c7;
    font-size: 18px;
    font-weight: 900;
}

.hunter-memory-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin: 10px 0 12px;
    color: #cbd5e1;
    font-size: 12px;
}

.hunter-memory-start-btn {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
    color: #111827;
    font-weight: 900;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 8px 18px rgba(245, 158, 11, .25);
}

.hunter-memory-status {
    margin-bottom: 12px;
    min-height: 20px;
    color: #fde68a;
    font-size: 13px;
    line-height: 1.5;
}

.hunter-memory-board {
    --memory-cols: 4;
    display: grid;
    grid-template-columns: repeat(var(--memory-cols), minmax(0, 1fr));
    gap: 8px;
}

.hunter-memory-empty,
.hunter-achievement-empty {
    grid-column: 1 / -1;
    padding: 16px;
    border: 1px dashed rgba(148, 163, 184, .32);
    border-radius: 14px;
    color: #94a3b8;
    text-align: center;
    font-size: 13px;
}

.hunter-memory-card-tile {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(251, 191, 36, .2);
    border-radius: 14px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    background: rgba(15, 23, 42, .95);
    perspective: 800px;
    transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease, transform .18s ease;
}

.hunter-memory-card-tile:disabled {
    cursor: default;
}

.hunter-memory-card-tile.is-flipped,
.hunter-memory-card-tile.is-matched {
    border-color: rgba(251, 191, 36, .55);
    box-shadow: 0 0 18px rgba(251, 191, 36, .14);
}

.hunter-memory-card-tile.is-matched {
    opacity: .86;
    animation: hunterMemoryMatchPulse .28s ease;
}

.hunter-memory-card-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform .22s ease, opacity .16s ease;
}

.hunter-memory-card-back {
    color: #fbbf24;
    font-size: 24px;
    font-weight: 900;
    opacity: 1;
    transform: rotateY(0deg);
    background: radial-gradient(circle at top, rgba(251, 191, 36, .18), rgba(15, 23, 42, .95));
}

.hunter-memory-card-front {
    color: #f8fafc;
    opacity: 0;
    transform: rotateY(-180deg);
    background: linear-gradient(180deg, rgba(30, 41, 59, .96), rgba(15, 23, 42, .96));
}

.hunter-memory-card-tile.is-flipped .hunter-memory-card-back,
.hunter-memory-card-tile.is-matched .hunter-memory-card-back {
    opacity: 0;
    transform: rotateY(180deg);
}

.hunter-memory-card-tile.is-flipped .hunter-memory-card-front,
.hunter-memory-card-tile.is-matched .hunter-memory-card-front {
    opacity: 1;
    transform: rotateY(0deg);
}

@keyframes hunterMemoryMatchPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

.hunter-memory-card-icon {
    font-size: 26px;
    line-height: 1;
}

.hunter-memory-card-label {
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 700;
}

.hunter-achievement-list {
    display: grid;
    gap: 10px;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
}

.hunter-achievement-count {
    color: #fde68a;
    font-size: 12px;
    white-space: nowrap;
}

.hunter-achievement-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 14px;
    padding: 10px;
    background: rgba(15, 23, 42, .66);
}

.hunter-achievement-item.is-unlocked {
    border-color: rgba(251, 191, 36, .42);
    background: rgba(120, 53, 15, .18);
}

.hunter-achievement-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 22px;
    background: rgba(15, 23, 42, .9);
}

.hunter-achievement-title-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #f8fafc;
    font-size: 13px;
}

.hunter-achievement-title-row span {
    color: #fde68a;
    font-size: 11px;
    white-space: nowrap;
}

.hunter-achievement-desc {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 12px;
}

.hunter-achievement-progress-track {
    margin-top: 7px;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(51, 65, 85, .9);
}

.hunter-achievement-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f59e0b, #fde68a);
}

@media (max-width: 640px) {
    .hunter-memory-header,
    .hunter-achievement-header,
    .hunter-memory-meta-row {
        align-items: stretch;
        flex-direction: column;
    }

    .hunter-memory-timer-box {
        width: 100%;
    }

    .hunter-memory-board {
        gap: 6px;
    }

    .hunter-memory-card-label {
        display: none;
    }
}

/* =========================
   Mobile compact minigame/archive cards
========================= */

@media (max-width: 768px) {
    .hunter-minigame-shell,
    .hunter-archive-shell,
    .hunter-subtab-panel {
        gap: 10px;
    }

    .hunter-memory-game-card,
    .hunter-achievement-card {
        padding: 12px;
        border-radius: 16px;
    }

    .hunter-memory-header,
    .hunter-achievement-header {
        gap: 8px;
        margin-bottom: 8px;
    }

    .hunter-memory-header h3,
    .hunter-achievement-header h3 {
        margin: 2px 0 2px;
        font-size: 15px;
        line-height: 1.25;
    }

    .hunter-memory-kicker,
    .hunter-achievement-kicker {
        font-size: 9px;
        letter-spacing: .13em;
    }

    .hunter-memory-desc,
    .hunter-achievement-desc {
        font-size: 11px;
        line-height: 1.35;
    }

    .hunter-memory-timer-box {
        min-width: 56px;
        padding: 6px 7px;
        border-radius: 12px;
    }

    .hunter-memory-timer-label {
        font-size: 10px;
    }

    .hunter-memory-timer-value {
        font-size: 15px;
    }

    .hunter-memory-meta-row {
        margin: 8px 0 9px;
        font-size: 11px;
    }

    .hunter-memory-start-btn {
        padding: 8px 11px;
        font-size: 12px;
    }

    .hunter-memory-status {
        margin-bottom: 9px;
        min-height: 17px;
        font-size: 11px;
        line-height: 1.35;
    }

    .hunter-memory-card-icon {
        font-size: 23px;
    }

    .hunter-achievement-list {
        gap: 8px;
        max-height: none;
    }

    .hunter-achievement-item {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 8px;
        padding: 8px;
        border-radius: 12px;
    }

    .hunter-achievement-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 19px;
    }
}

@media (max-width: 640px) {
    .hunter-memory-header,
    .hunter-achievement-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .hunter-memory-meta-row {
        flex-direction: row;
        align-items: center;
    }

    .hunter-memory-timer-box {
        width: auto;
    }
}

/* =========================
   Achievement rewards / records
========================= */

.hunter-achievement-summary {
    margin-bottom: 10px;
    border: 1px solid rgba(251, 191, 36, .26);
    border-radius: 14px;
    padding: 10px;
    background: rgba(120, 53, 15, .16);
}

.hunter-achievement-summary-main {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #fef3c7;
    font-size: 12px;
}

.hunter-achievement-summary-main span {
    color: #fde68a;
    font-weight: 900;
    white-space: nowrap;
}

.hunter-achievement-summary-note,
.hunter-achievement-summary-warn {
    margin-top: 6px;
    color: #cbd5e1;
    font-size: 11px;
    line-height: 1.45;
}

.hunter-achievement-summary-warn {
    color: #fde68a;
}

.hunter-achievement-recent {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 14px;
    padding: 10px;
    background: rgba(15, 23, 42, .52);
}

.hunter-achievement-recent-title {
    color: #fbbf24;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.hunter-achievement-recent-item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #e5e7eb;
    font-size: 12px;
}

.hunter-achievement-recent-item em {
    color: #94a3b8;
    font-style: normal;
    white-space: nowrap;
}

.hunter-achievement-items {
    display: grid;
    gap: 10px;
}

.hunter-achievement-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.hunter-achievement-category,
.hunter-achievement-reward,
.hunter-achievement-record {
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 999px;
    padding: 3px 7px;
    color: #cbd5e1;
    font-size: 11px;
    line-height: 1.2;
    background: rgba(15, 23, 42, .72);
}

.hunter-achievement-reward {
    border-color: rgba(251, 191, 36, .28);
    color: #fde68a;
    background: rgba(120, 53, 15, .22);
}

.hunter-achievement-record {
    color: #93c5fd;
}

@media (max-width: 768px) {
    .hunter-achievement-summary,
    .hunter-achievement-recent {
        padding: 8px;
        border-radius: 12px;
    }

    .hunter-achievement-summary-main,
    .hunter-achievement-recent-item {
        font-size: 11px;
    }

    .hunter-achievement-summary-main {
        flex-direction: column;
        gap: 3px;
    }

    .hunter-achievement-summary-main span {
        white-space: normal;
    }

    .hunter-achievement-meta-row {
        gap: 5px;
        margin-top: 6px;
    }

    .hunter-achievement-category,
    .hunter-achievement-reward,
    .hunter-achievement-record {
        font-size: 10px;
        padding: 3px 6px;
    }
}

.hunter-memory-stage-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0 12px;
}

.hunter-memory-stage-pill {
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 14px;
    padding: 8px 9px;
    background: rgba(15, 23, 42, .58);
    color: #94a3b8;
    min-width: 0;
}

.hunter-memory-stage-pill strong,
.hunter-memory-stage-pill span,
.hunter-memory-stage-pill em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hunter-memory-stage-pill strong {
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 900;
}

.hunter-memory-stage-pill span {
    margin-top: 3px;
    color: #cbd5e1;
    font-size: 11px;
}

.hunter-memory-stage-pill em {
    margin-top: 2px;
    color: #fef3c7;
    font-size: 10px;
    font-style: normal;
}

.hunter-memory-stage-pill.is-current {
    border-color: rgba(251, 191, 36, .55);
    background: linear-gradient(180deg, rgba(120, 53, 15, .42), rgba(15, 23, 42, .72));
    box-shadow: 0 0 16px rgba(251, 191, 36, .10);
}

.hunter-memory-stage-pill.is-cleared {
    border-color: rgba(34, 197, 94, .38);
    background: rgba(20, 83, 45, .22);
}

.hunter-memory-card-tile.is-bonus .hunter-memory-card-front {
    background: radial-gradient(circle at top, rgba(253, 230, 138, .35), rgba(30, 41, 59, .96));
}

.hunter-memory-card-tile.is-bonus.is-matched {
    border-color: rgba(253, 230, 138, .72);
    box-shadow: 0 0 22px rgba(253, 230, 138, .22);
}

@media (max-width: 640px) {
    .hunter-memory-stage-list {
        gap: 6px;
        margin: 6px 0 10px;
    }

    .hunter-memory-stage-pill {
        padding: 6px 7px;
        border-radius: 12px;
    }

    .hunter-memory-stage-pill strong {
        font-size: 11px;
    }

    .hunter-memory-stage-pill span,
    .hunter-memory-stage-pill em {
        font-size: 9px;
    }

    .hunter-memory-meta-row {
        align-items: stretch;
    }

    .hunter-memory-start-btn {
        padding: 8px 11px;
        font-size: 12px;
        white-space: nowrap;
    }
}

/* =========================
   Achievement grouped series
========================= */

.hunter-achievement-groups {
    display: grid;
    gap: 8px;
}

.hunter-achievement-group {
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(15, 23, 42, .52);
}

.hunter-achievement-group[open] {
    border-color: rgba(251, 191, 36, .30);
    background: rgba(15, 23, 42, .72);
}

.hunter-achievement-group-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    color: #f8fafc;
    list-style: none;
    user-select: none;
}

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

.hunter-achievement-group-summary::before {
    content: "▶";
    flex: 0 0 auto;
    color: #fbbf24;
    font-size: 10px;
    transition: transform .18s ease;
}

.hunter-achievement-group[open] .hunter-achievement-group-summary::before {
    transform: rotate(90deg);
}

.hunter-achievement-group-title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 900;
}

.hunter-achievement-group-count {
    flex: 0 0 auto;
    color: #fde68a;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.hunter-achievement-group-items {
    display: grid;
    gap: 8px;
    padding: 0 10px 10px;
}

.hunter-memory-card-tile.is-auto-revealed .hunter-memory-card-front::after {
    content: "AUTO";
    position: absolute;
    right: 6px;
    bottom: 5px;
    color: rgba(254, 243, 199, .78);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .06em;
}

@media (max-width: 768px) {
    .hunter-achievement-groups {
        gap: 7px;
    }

    .hunter-achievement-group-summary {
        padding: 8px 10px;
    }

    .hunter-achievement-group-title {
        font-size: 12px;
    }

    .hunter-achievement-group-count {
        font-size: 11px;
    }

    .hunter-achievement-group-items {
        gap: 7px;
        padding: 0 8px 8px;
    }
}

/* =========================
   Memory practice stage select
========================= */

button.hunter-memory-stage-pill {
    width: 100%;
    text-align: left;
    cursor: pointer;
    appearance: none;
    font-family: inherit;
}

.hunter-memory-stage-pill.is-selectable {
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.hunter-memory-stage-pill.is-selectable:hover {
    transform: translateY(-1px);
    border-color: rgba(251, 191, 36, .52);
    box-shadow: 0 0 16px rgba(251, 191, 36, .12);
}

.hunter-memory-stage-pill.is-selected {
    border-color: rgba(251, 191, 36, .72);
    background: linear-gradient(180deg, rgba(120, 53, 15, .45), rgba(20, 83, 45, .26));
    box-shadow: 0 0 18px rgba(251, 191, 36, .16);
}

.hunter-memory-stage-pill.is-selected strong {
    color: #fef3c7;
}

/* 迷霧交易所 */
.hunter-black-market-card {
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 24px;
    padding: 18px;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, .2), transparent 34%),
        linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .92));
    color: #f8fafc;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .28);
}

.hunter-black-market-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.hunter-black-market-kicker {
    font-size: 11px;
    letter-spacing: .16em;
    color: #facc15;
    font-weight: 900;
}

.hunter-black-market-header h3 {
    margin: 4px 0 6px;
    font-size: 22px;
}

.hunter-black-market-desc {
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.65;
}

.hunter-black-market-badge {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(250, 204, 21, .14);
    color: #fde68a;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(250, 204, 21, .28);
}

.hunter-black-market-panel.is-loading {
    opacity: .72;
    pointer-events: none;
}

.hunter-black-market-empty {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
    padding: 26px 14px;
    border-radius: 20px;
    border: 1px dashed rgba(226, 232, 240, .22);
    background: rgba(15, 23, 42, .46);
    color: #cbd5e1;
}

.hunter-black-market-empty-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(250, 204, 21, .15);
    font-size: 30px;
}

.hunter-black-market-empty strong {
    color: #fff7ed;
    font-size: 18px;
}

.hunter-black-market-start-btn,
.hunter-black-market-next-btn {
    width: 100%;
    margin-top: 14px;
    border: 0;
    border-radius: 18px;
    padding: 14px 16px;
    font-weight: 900;
    color: #111827;
    background: linear-gradient(135deg, #facc15, #fb923c);
    box-shadow: 0 6px 0 rgba(120, 53, 15, .38), 0 14px 24px rgba(251, 146, 60, .2);
    cursor: pointer;
}

.hunter-black-market-next-btn.danger {
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.hunter-black-market-dashboard {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.hunter-black-market-dashboard > div {
    border-radius: 16px;
    padding: 10px;
    background: rgba(15, 23, 42, .58);
    border: 1px solid rgba(226, 232, 240, .12);
}

.hunter-black-market-dashboard span,
.hunter-black-market-limit {
    display: block;
    font-size: 12px;
    color: #cbd5e1;
}

.hunter-black-market-dashboard strong {
    display: block;
    margin-top: 4px;
    color: #f8fafc;
    font-size: 16px;
}

.hunter-black-market-dashboard .positive strong,
.hunter-black-market-result.positive strong,
.hunter-black-market-price.up span {
    color: #86efac;
}

.hunter-black-market-dashboard .negative strong,
.hunter-black-market-result.negative strong,
.hunter-black-market-price.down span {
    color: #fca5a5;
}

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

.hunter-black-market-item-card {
    border-radius: 20px;
    padding: 14px;
    background: rgba(255, 247, 237, .96);
    color: #1f2937;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 10px 24px rgba(15, 23, 42, .18);
}

.hunter-black-market-item-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.hunter-black-market-item-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hunter-black-market-item-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(245, 158, 11, .14);
    font-size: 24px;
}

.hunter-black-market-item-title strong,
.hunter-black-market-price strong {
    display: block;
    font-size: 16px;
}

.hunter-black-market-item-title span,
.hunter-black-market-price span,
.hunter-black-market-holding span {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.hunter-black-market-price {
    text-align: right;
    white-space: nowrap;
}

.hunter-black-market-price strong {
    color: #111827;
}

.hunter-black-market-hint {
    min-height: 48px;
    margin: 12px 0;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 237, 213, .78);
    color: #78350f;
    font-size: 13px;
    line-height: 1.45;
}

.hunter-black-market-holding {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.hunter-black-market-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.hunter-black-market-actions button {
    border: 0;
    border-radius: 12px;
    padding: 9px 6px;
    font-size: 12px;
    font-weight: 900;
    color: #fff7ed;
    background: #92400e;
    cursor: pointer;
}

.hunter-black-market-actions button:disabled {
    cursor: not-allowed;
    opacity: .42;
}

.hunter-black-market-footer {
    margin-top: 14px;
}

.hunter-black-market-limit {
    text-align: center;
    margin-bottom: 8px;
}

.hunter-black-market-result {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, .16);
    background: rgba(15, 23, 42, .68);
}

.hunter-black-market-result-title {
    font-weight: 900;
    margin-bottom: 10px;
}

.hunter-black-market-result-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.hunter-black-market-result-grid span {
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: #cbd5e1;
    font-size: 12px;
}

.hunter-black-market-result-grid strong {
    display: block;
    margin-top: 3px;
    color: #f8fafc;
}

.hunter-black-market-result p {
    margin: 10px 0 0;
    color: #cbd5e1;
    font-size: 12px;
}

@media (max-width: 760px) {
    .hunter-black-market-card {
        padding: 14px;
        border-radius: 20px;
    }

    .hunter-black-market-header {
        display: block;
    }

    .hunter-black-market-badge {
        display: inline-block;
        margin-top: 10px;
    }

    .hunter-black-market-dashboard,
    .hunter-black-market-items,
    .hunter-black-market-result-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hunter-black-market-item-card {
        padding: 12px;
    }

    .hunter-black-market-actions {
        grid-template-columns: 1fr 1fr;
    }
}

/* 探索列表轉場：先選遊戲，再進入單一遊戲畫面 */
.hunter-explore-select-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin: 12px 0 10px;
    color: #fef3c7;
}

.hunter-explore-select-title strong {
    font-size: 16px;
    font-weight: 900;
}

.hunter-explore-select-title span {
    color: rgba(254, 243, 199, .72);
    font-size: 12px;
}

.hunter-explore-game-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.hunter-explore-game-list.is-game-open {
    display: none;
}

.hunter-explore-game-entry {
    width: 100%;
    min-height: 74px;
    justify-content: flex-start;
    text-align: left;
    border-radius: 18px;
    padding: 14px 16px;
}

.hunter-explore-game-entry span,
.hunter-explore-game-entry small {
    display: block;
}

.hunter-explore-game-entry span {
    font-size: 17px;
    font-weight: 900;
}

.hunter-explore-game-entry small {
    margin-top: 4px;
    opacity: .76;
    font-size: 12px;
    line-height: 1.35;
}

.hunter-explore-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 10px;
    border: 1px solid rgba(251, 191, 36, .32);
    border-radius: 999px;
    padding: 8px 12px;
    color: #78350f;
    background: rgba(255, 251, 235, .92);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(120, 53, 15, .12);
}

@media (max-width: 768px) {
    .hunter-explore-select-title {
        display: block;
        margin: 10px 0 8px;
    }

    .hunter-explore-select-title strong,
    .hunter-explore-select-title span {
        display: block;
    }

    .hunter-explore-select-title span {
        margin-top: 3px;
    }

    .hunter-explore-game-entry {
        min-height: 68px;
        padding: 12px 14px;
    }

    .hunter-black-market-card {
        min-height: auto;
    }
}

/* =========================
   Explore map list / play mode polish
   Desktop and mobile share the same explicit styles so the page does not fall back to the pale internal-tab theme.
========================= */
.hunter-page .hunter-explore-room {
    color: #fef3c7;
}

.hunter-page .hunter-explore-room .hunter-explore-select-title {
    margin: 14px 0 12px;
    padding: 0 2px;
    color: #fef3c7;
}

.hunter-page .hunter-explore-room .hunter-explore-select-title span {
    color: rgba(254, 243, 199, .72);
}

.hunter-page .hunter-explore-room.is-playing-explore-game .hunter-explore-select-title,
.hunter-page .hunter-explore-room.is-playing-explore-game .hunter-explore-game-list {
    display: none !important;
}

.hunter-page .hunter-explore-room .hunter-explore-game-list {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(245, 158, 11, .34);
    border-radius: 24px;
    background:
        radial-gradient(circle at 80% 0%, rgba(251, 191, 36, .18), transparent 28%),
        linear-gradient(180deg, rgba(25, 16, 10, .92), rgba(41, 22, 13, .96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 16px 30px rgba(67, 32, 13, .22);
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-height: 76px;
    border: 1px solid rgba(251, 191, 36, .34) !important;
    border-radius: 20px;
    padding: 14px 16px;
    color: #fef3c7 !important;
    text-align: left;
    background:
        radial-gradient(circle at 94% 18%, rgba(251, 191, 36, .16), transparent 34%),
        linear-gradient(180deg, rgba(255, 251, 235, .08), rgba(255, 251, 235, .03)),
        rgba(17, 24, 39, .84) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry:hover,
.hunter-page .hunter-explore-room .hunter-explore-game-entry:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(251, 191, 36, .72) !important;
    box-shadow: 0 12px 24px rgba(245, 158, 11, .18), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.active {
    color: #431407 !important;
    background: linear-gradient(180deg, #fef3c7, #f59e0b) !important;
    border-color: rgba(251, 191, 36, .92) !important;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry span {
    font-size: 18px;
    font-weight: 950;
    color: inherit;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry small {
    margin-top: 5px;
    color: rgba(254, 243, 199, .72);
    font-size: 13px;
    line-height: 1.35;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.active small {
    color: rgba(67, 20, 7, .76);
}

.hunter-page .hunter-explore-room .hunter-subtab-panel.active {
    animation: hunterExplorePanelIn .18s ease both;
}

@keyframes hunterExplorePanelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Explore menu hotfix v19
   - menu state must be compact and readable
   - black market API only loads after the user enters the game
========================= */
.hunter-page .hunter-game-shell:has(.hunter-explore-room.active:not(.is-playing-explore-game)) {
    height: auto;
    min-height: 0;
}

.hunter-page .hunter-game-shell:has(.hunter-explore-room.active:not(.is-playing-explore-game)) .hunter-game-views {
    flex: 0 0 auto;
    overflow: visible;
}

.hunter-page .hunter-explore-room:not(.is-playing-explore-game) {
    min-height: 0;
}

.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-tab-scene-title {
    display: none;
}

.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-select-title {
    display: none;
}

.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry {
    min-height: 78px;
    border: 1px solid rgba(251, 191, 36, .54) !important;
    border-radius: 18px;
    padding: 14px 16px;
    color: #7c2d12 !important;
    background:
        radial-gradient(circle at 96% 10%, rgba(251, 191, 36, .18), transparent 30%),
        linear-gradient(180deg, rgba(255, 251, 235, .98), rgba(255, 247, 237, .94)) !important;
    box-shadow: 0 6px 14px rgba(120, 53, 15, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry:hover,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(245, 158, 11, .9) !important;
    box-shadow: 0 10px 20px rgba(245, 158, 11, .16), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry span {
    color: #7c2d12;
}

.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry small {
    color: rgba(124, 45, 18, .72);
}

.hunter-page .hunter-explore-room.is-playing-explore-game .hunter-tab-scene-title {
    display: none;
}

.hunter-page .hunter-explore-room.is-playing-explore-game .hunter-subtab-panel.active {
    display: grid;
    gap: 12px;
}

@media (max-width: 768px) {
    .hunter-page .hunter-game-shell:has(.hunter-explore-room.active:not(.is-playing-explore-game)) {
        height: auto;
        min-height: 0;
    }

    .hunter-page .hunter-game-views:has(.hunter-explore-room.active:not(.is-playing-explore-game)) {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .hunter-page .hunter-explore-room:not(.is-playing-explore-game) {
        padding: 8px;
        background: transparent;
    }

    .hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry {
        min-height: 72px;
        padding: 12px 14px;
    }
}

/* =========================
   Explore entry v20 hard fix
   - do not rely on :has(), because the production browser/cache path may miss it
   - root classes are toggled by hunter.js
========================= */
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-game-shell {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-game-views {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    padding: 10px !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room.active {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-tab-scene-title,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-select-title,
.hunter-page .hunter-game-card.hunter-explore-playing-mode .hunter-explore-room .hunter-tab-scene-title,
.hunter-page .hunter-game-card.hunter-explore-playing-mode .hunter-explore-room .hunter-explore-select-title,
.hunter-page .hunter-game-card.hunter-explore-playing-mode .hunter-explore-room .hunter-explore-game-list {
    display: none !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 74px !important;
    border: 1px solid rgba(251, 191, 36, .58) !important;
    border-radius: 18px !important;
    padding: 14px 16px !important;
    color: #7c2d12 !important;
    text-align: left !important;
    background:
        radial-gradient(circle at 96% 10%, rgba(251, 191, 36, .18), transparent 30%),
        linear-gradient(180deg, rgba(255, 251, 235, .98), rgba(255, 247, 237, .94)) !important;
    box-shadow: 0 6px 14px rgba(120, 53, 15, .08), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
    cursor: pointer !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry span {
    color: #7c2d12 !important;
    font-size: 18px !important;
    font-weight: 950 !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry small {
    margin-top: 5px !important;
    color: rgba(124, 45, 18, .72) !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.hunter-page .hunter-game-card.hunter-explore-playing-mode .hunter-explore-room .hunter-subtab-panel.active {
    display: block !important;
}

@media (max-width: 768px) {
    .hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-game-views {
        padding: 10px !important;
    }

    .hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry {
        min-height: 70px !important;
        padding: 12px 14px !important;
    }
}

/* =========================
   Explore list mobile layout fix v21
   - keep the Hunter card as the full mobile app shell
   - previous fix collapsed the card and moved the blank area to the page body
   - list mode should keep the bottom nav at the bottom of the card
========================= */
@media (max-width: 768px) {
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-list-mode {
        flex: 1 1 auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;

        display: flex !important;
        flex-direction: column !important;
    }

    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-list-mode > .hunter-game-shell {
        flex: 1 1 auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;

        display: flex !important;
        flex-direction: column !important;
    }

    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-list-mode .hunter-game-views {
        flex: 1 1 auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        padding: 10px !important;
    }

    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-list-mode .hunter-game-view,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-list-mode .hunter-explore-room.active {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-list-mode .hunter-explore-room.active {
        padding: 0 !important;
        background: transparent !important;
    }

    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-list-mode .hunter-explore-game-list {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-list-mode .hunter-bottom-nav {
        flex: 0 0 auto !important;
    }
}

/* =========================
   Black market mobile compact fix v22
   - playing mode should fit actions/products better on mobile
   - keep the app shell, only shrink the black market screen itself
========================= */
@media (max-width: 768px) {
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-game-views,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-game-views,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-game-views {
        padding: 4px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-explore-room.active,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-explore-room.active,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-explore-room.active {
        padding: 0 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-explore-room .hunter-subtab-panel.active,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-explore-room .hunter-subtab-panel.active,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-explore-room .hunter-subtab-panel.active {
        gap: 6px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-explore-back-btn,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-explore-back-btn,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-explore-back-btn {
        margin: 0 0 6px !important;
        padding: 6px 12px !important;
        min-height: 32px !important;
        border-radius: 999px !important;
        font-size: 13px !important;
        line-height: 1 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-card,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-card,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-card {
        padding: 10px !important;
        border-radius: 18px !important;
        box-shadow: 0 10px 22px rgba(15, 23, 42, .24) !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-header,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-header,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-header {
        display: block !important;
        margin-bottom: 8px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-kicker,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-kicker,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-kicker {
        font-size: 9px !important;
        line-height: 1.1 !important;
        letter-spacing: .14em !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-header h3,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-header h3,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-header h3 {
        margin: 2px 0 3px !important;
        font-size: 20px !important;
        line-height: 1.12 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-desc,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-desc,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-desc {
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-badge,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-badge,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-badge {
        margin-top: 6px !important;
        padding: 5px 8px !important;
        font-size: 10px !important;
        line-height: 1.15 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-dashboard,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-dashboard,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-dashboard {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 5px !important;
        margin-bottom: 8px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-dashboard > div,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-dashboard > div,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-dashboard > div {
        min-width: 0 !important;
        border-radius: 12px !important;
        padding: 6px 5px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-dashboard span,
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-limit,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-dashboard span,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-limit,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-dashboard span,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-limit {
        font-size: 10px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-dashboard strong,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-dashboard strong,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-dashboard strong {
        margin-top: 2px !important;
        font-size: 13px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-items,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-items,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-items {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-item-card,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-item-card,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-item-card {
        min-width: 0 !important;
        border-radius: 15px !important;
        padding: 8px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-item-head,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-item-head,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-item-head {
        gap: 6px !important;
        align-items: flex-start !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-item-title,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-item-title,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-item-title {
        min-width: 0 !important;
        gap: 6px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-item-icon,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-item-icon,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-item-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 11px !important;
        font-size: 18px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-item-title strong,
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-price strong,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-item-title strong,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-price strong,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-item-title strong,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-price strong {
        font-size: 14px !important;
        line-height: 1.15 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-item-title span,
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-price span,
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-holding span,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-item-title span,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-price span,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-holding span,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-item-title span,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-price span,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-holding span {
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-price,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-price,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-price {
        flex: 0 0 auto !important;
        text-align: right !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-hint,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-hint,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-hint {
        min-height: 0 !important;
        margin: 7px 0 !important;
        padding: 7px 8px !important;
        border-radius: 12px !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-holding,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-holding,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-holding {
        gap: 4px !important;
        align-items: center !important;
        margin-bottom: 7px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-holding > *,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-holding > *,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-holding > * {
        white-space: nowrap !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-actions,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-actions,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 4px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-actions button,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-actions button,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-actions button {
        min-height: 32px !important;
        border-radius: 10px !important;
        padding: 6px 2px !important;
        font-size: 10px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-footer,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-footer,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-footer {
        margin-top: 8px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-next-btn,
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-start-btn,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-next-btn,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-start-btn,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-next-btn,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-start-btn {
        margin-top: 8px !important;
        border-radius: 14px !important;
        padding: 10px 12px !important;
        font-size: 13px !important;
        line-height: 1.15 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-bottom-nav,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-bottom-nav,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-bottom-nav {
        padding: 5px !important;
        gap: 4px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-bottom-nav-btn,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-bottom-nav-btn,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-bottom-nav-btn {
        min-height: 44px !important;
        padding: 5px 3px !important;
        border-radius: 12px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-bottom-nav-btn span,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-bottom-nav-btn span,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-bottom-nav-btn span {
        font-size: 16px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-bottom-nav-btn strong,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-bottom-nav-btn strong,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-bottom-nav-btn strong {
        font-size: 10px !important;
    }
}

/* 迷霧交易所 v23：傳聞 / 委託 / 上方回合控制 */
.hunter-black-market-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 12px;
}

.hunter-black-market-rumor,
.hunter-black-market-commission {
    min-width: 0;
    border-radius: 16px;
    padding: 10px;
    border: 1px solid rgba(226, 232, 240, .14);
    background: rgba(15, 23, 42, .58);
    color: #e5e7eb;
}

.hunter-black-market-rumor.up {
    border-color: rgba(134, 239, 172, .28);
    background: linear-gradient(135deg, rgba(20, 83, 45, .48), rgba(15, 23, 42, .58));
}

.hunter-black-market-rumor.down {
    border-color: rgba(252, 165, 165, .26);
    background: linear-gradient(135deg, rgba(127, 29, 29, .38), rgba(15, 23, 42, .58));
}

.hunter-black-market-commission.is-complete {
    border-color: rgba(250, 204, 21, .32);
    background: linear-gradient(135deg, rgba(113, 63, 18, .46), rgba(15, 23, 42, .58));
}

.hunter-black-market-info-label {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 5px;
    color: #facc15;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
}

.hunter-black-market-info-label span {
    color: rgba(226, 232, 240, .78);
    font-size: 10px;
    letter-spacing: 0;
}

.hunter-black-market-rumor strong,
.hunter-black-market-commission strong {
    display: block;
    color: #f8fafc;
    font-size: 14px;
    line-height: 1.25;
}

.hunter-black-market-rumor p,
.hunter-black-market-commission p,
.hunter-black-market-commission small {
    display: block;
    margin: 5px 0 0;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.4;
}

.hunter-black-market-commission small {
    color: #fde68a;
    font-weight: 800;
}

.hunter-black-market-round-control {
    display: grid;
    gap: 6px;
    margin: 0 0 12px;
}

.hunter-black-market-round-control .hunter-black-market-next-btn {
    margin-top: 0;
}

.hunter-black-market-round-control span {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 760px) {
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-game-views,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-game-views,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-game-views {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-info-grid,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-info-grid,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin-bottom: 7px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-rumor,
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-commission,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-rumor,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-commission,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-rumor,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-commission {
        border-radius: 12px !important;
        padding: 7px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-info-label,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-info-label,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-info-label {
        margin-bottom: 3px !important;
        font-size: 9px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-info-label span,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-info-label span,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-info-label span {
        font-size: 9px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-rumor strong,
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-commission strong,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-rumor strong,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-commission strong,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-rumor strong,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-commission strong {
        font-size: 11px !important;
        line-height: 1.18 !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-rumor p,
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-commission p,
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-commission small,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-rumor p,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-commission p,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-commission small,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-rumor p,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-commission p,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-commission small {
        margin-top: 3px !important;
        font-size: 9px !important;
        line-height: 1.25 !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-round-control,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-round-control,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-round-control {
        gap: 4px !important;
        margin-bottom: 7px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-round-control span,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-round-control span,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-round-control span {
        font-size: 9px !important;
        line-height: 1.15 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-hint,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-hint,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-hint {
        display: none !important;
    }
}

/* =========================
   Explore playing fill fix v24
   - keep bottom nav at shell bottom
   - fill the empty white area after entering mine / mist exchange
   - CSS only, no API or game logic changes
========================= */
.hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode > .hunter-game-shell {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-game-views {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background:
        radial-gradient(circle at 80% 4%, rgba(245, 158, 11, .24), transparent 30%),
        linear-gradient(180deg, rgba(71, 39, 22, .96), rgba(36, 20, 14, .98)) !important;
}

.hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-game-view[data-hunter-view="explore"].active,
.hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-explore-room.active.is-playing-explore-game {
    flex: 1 1 auto !important;
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    background: transparent !important;
}

.hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-explore-room .hunter-subtab-panel.active {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-minigame-shell {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-card {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-panel {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-panel > .hunter-black-market-empty {
    flex: 1 1 auto !important;
    min-height: 240px !important;
}

.hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-subtab-panel[data-hunter-subtab-panel="mine"].active {
    padding-bottom: 10px !important;
}

.hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-system-card.hunter-mine-card,
.hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-mine-pool-card,
.hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-mine-log-card {
    flex: 0 0 auto !important;
}

@media (max-width: 768px) {
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-game-views {
        padding: 8px !important;
    }

    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-explore-room .hunter-subtab-panel.active {
        gap: 8px !important;
    }

    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-card {
        min-height: calc(100svh - 245px) !important;
    }

    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-system-card.hunter-mine-card {
        margin-bottom: 0 !important;
    }
}

/* =========================
   Mine result wrap fix v29
   - prevent ten-cut result text from overflowing horizontally
   - CSS only; no LINE / API / JS changes
========================= */
.hunter-page #hunterGameRoot.hunter-game-card .hunter-explore-room #hunterMineResult.hunter-mine-result,
.hunter-page #hunterGameRoot.hunter-game-card .hunter-explore-room .hunter-mine-result {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    line-break: anywhere !important;
    overflow-x: hidden !important;
    text-overflow: clip !important;
}

@media (max-width: 768px) {
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-system-card.hunter-mine-card,
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-system-card.hunter-mine-card {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode #hunterMineResult.hunter-mine-result,
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card #hunterMineResult.hunter-mine-result {
        display: block !important;
        margin-top: 10px !important;
        padding: 10px 12px !important;
        max-height: none !important;
        overflow-y: visible !important;
        font-size: 11px !important;
        line-height: 1.55 !important;
    }
}

/* Mist Exchange item image rendering: prefer real item art, no emoji overlay. */
.hunter-black-market-item-media {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(245, 158, 11, .14);
}

.hunter-black-market-item-media.has-image {
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(146, 64, 14, .18);
}

.hunter-black-market-item-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.hunter-black-market-item-media.has-image.image-failed {
    background: transparent;
    border-color: transparent;
}

.hunter-black-market-item-media.has-image.image-failed .hunter-black-market-item-image {
    display: none;
}

@media (max-width: 768px) {
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-item-media,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-item-media,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-item-media {
        flex: 0 0 32px !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 11px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-item-image,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-item-image,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-item-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
}

/* Mist Exchange v38: compact item controls. Keep item data readable without crowding cards. */
.hunter-black-market-trade-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
    margin: 4px 0 7px;
    font-size: 11px;
    line-height: 1.1;
    color: #64748b;
}

.hunter-black-market-trade-meta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 251, 235, .9);
    border: 1px solid rgba(180, 83, 9, .16);
    white-space: nowrap;
}

.hunter-black-market-quantity-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 5px;
    margin: 6px 0 8px;
}

.hunter-black-market-quantity-row input {
    min-width: 0;
    flex: 1 1 72px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid rgba(100, 116, 139, .36);
    padding: 0 9px;
    font-size: 14px;
    font-weight: 900;
    color: #111827;
    background: rgba(255, 255, 255, .92);
}

.hunter-black-market-quantity-row button {
    height: 34px;
    border-radius: 9px;
    border: 1px solid rgba(100, 116, 139, .28);
    padding: 0 8px;
    font-size: 12px;
    font-weight: 900;
    color: #111827;
    background: rgba(255, 255, 255, .92);
    cursor: pointer;
    white-space: nowrap;
}

.hunter-black-market-quantity-row button[data-black-market-quantity-control="decrease"],
.hunter-black-market-quantity-row button[data-black-market-quantity-control="increase"] {
    flex: 0 0 34px;
    padding: 0;
    font-size: 16px;
}

.hunter-black-market-quantity-row button[data-black-market-quantity-control="max-buy"],
.hunter-black-market-quantity-row button[data-black-market-quantity-control="max-sell"] {
    flex: 1 1 calc(50% - 4px);
    color: #78350f;
    background: rgba(254, 243, 199, .92);
    border-color: rgba(180, 83, 9, .22);
}

.hunter-black-market-quantity-row button:disabled,
.hunter-black-market-actions button:disabled {
    cursor: not-allowed;
    opacity: .42;
}

.hunter-black-market-actions button {
    min-height: 34px;
    font-size: 12px;
    letter-spacing: .01em;
}

@media (max-width: 768px) {
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-item-card,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-item-card,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-item-card {
        padding: 9px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-holding,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-holding,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-holding {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 3px 7px !important;
        margin: 5px 0 3px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-holding > *,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-holding > *,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-holding > * {
        white-space: nowrap !important;
        font-size: 10px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-trade-meta,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-trade-meta,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-trade-meta {
        justify-content: flex-start !important;
        margin: 4px 0 5px !important;
        gap: 4px !important;
        font-size: 10px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-trade-meta span,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-trade-meta span,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-trade-meta span {
        min-height: 18px !important;
        padding: 2px 6px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-quantity-row,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-quantity-row,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-quantity-row {
        gap: 4px !important;
        margin: 5px 0 6px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-quantity-row input,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-quantity-row input,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-quantity-row input {
        height: 30px !important;
        flex: 1 1 calc(100% - 68px) !important;
        font-size: 12px !important;
        padding: 0 7px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-quantity-row button,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-quantity-row button,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-quantity-row button {
        height: 30px !important;
        border-radius: 8px !important;
        padding: 0 6px !important;
        font-size: 11px !important;
        line-height: 1 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-quantity-row button[data-black-market-quantity-control="decrease"],
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-quantity-row button[data-black-market-quantity-control="increase"],
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-quantity-row button[data-black-market-quantity-control="decrease"],
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-quantity-row button[data-black-market-quantity-control="increase"],
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-quantity-row button[data-black-market-quantity-control="decrease"],
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-quantity-row button[data-black-market-quantity-control="increase"] {
        flex: 0 0 30px !important;
        padding: 0 !important;
        font-size: 14px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-quantity-row button[data-black-market-quantity-control="max-buy"],
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-quantity-row button[data-black-market-quantity-control="max-sell"],
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-quantity-row button[data-black-market-quantity-control="max-buy"],
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-quantity-row button[data-black-market-quantity-control="max-sell"],
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-quantity-row button[data-black-market-quantity-control="max-buy"],
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-quantity-row button[data-black-market-quantity-control="max-sell"] {
        flex: 1 1 calc(50% - 3px) !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-actions,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-actions,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-actions {
        gap: 4px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-actions button,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-actions button,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-actions button {
        min-height: 30px !important;
        padding: 5px 2px !important;
        font-size: 10px !important;
    }
}

/* Mist Exchange v39: floating rumor/commission + compact product grid. */
.hunter-black-market-card {
    position: relative;
}

.hunter-black-market-info-float {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 10px;
}

.hunter-black-market-info-mini {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 800;
}

.hunter-black-market-info-mini span {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hunter-black-market-info-buttons {
    display: inline-flex;
    gap: 6px;
    flex: 0 0 auto;
}

.hunter-black-market-info-toggle {
    border: 1px solid rgba(250, 204, 21, .32);
    border-radius: 999px;
    padding: 5px 10px;
    color: #fde68a;
    background: rgba(15, 23, 42, .74);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.hunter-black-market-info-toggle.active {
    color: #111827;
    background: linear-gradient(135deg, #facc15, #fb923c);
    border-color: rgba(251, 191, 36, .72);
}

.hunter-black-market-info-popover {
    position: absolute;
    z-index: 20;
    top: 52px;
    left: 14px;
    right: 14px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(15, 23, 42, .96);
    border: 1px solid rgba(250, 204, 21, .22);
    box-shadow: 0 16px 32px rgba(15, 23, 42, .42);
}

.hunter-black-market-info-popover .hunter-black-market-rumor,
.hunter-black-market-info-popover .hunter-black-market-commission {
    margin: 0;
}

.hunter-black-market-holding.compact {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin: 6px 0;
}

.hunter-black-market-holding.compact span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hunter-black-market-quantity-row.compact {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px 58px;
    gap: 5px;
    margin: 6px 0;
}

.hunter-black-market-quantity-row.compact input,
.hunter-black-market-quantity-row.compact button {
    width: 100%;
}

.hunter-black-market-actions.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 768px) {
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-card,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-card,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-card {
        padding: 8px !important;
        border-radius: 16px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-header,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-header,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-header {
        padding-right: 92px !important;
        margin-bottom: 6px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-header h3,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-header h3,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-header h3 {
        font-size: 18px !important;
        line-height: 1.05 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-desc,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-desc,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-desc {
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-badge,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-badge,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-badge {
        padding: 5px 8px !important;
        font-size: 10px !important;
        margin-bottom: 6px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-dashboard,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-dashboard,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-dashboard {
        gap: 5px !important;
        margin-bottom: 7px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-dashboard > div,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-dashboard > div,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-dashboard > div {
        padding: 5px 6px !important;
        border-radius: 12px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-info-float,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-info-float,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-info-float {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        z-index: 12 !important;
        margin: 0 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-info-mini,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-info-mini,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-info-mini {
        display: none !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-info-toggle,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-info-toggle,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-info-toggle {
        padding: 4px 7px !important;
        font-size: 10px !important;
        line-height: 1 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-info-popover,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-info-popover,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-info-popover {
        top: 38px !important;
        left: 8px !important;
        right: 8px !important;
        padding: 6px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-round-control,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-round-control,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-round-control {
        margin-bottom: 6px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-next-btn,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-next-btn,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-next-btn {
        margin-top: 6px !important;
        padding: 9px 10px !important;
        border-radius: 14px !important;
        font-size: 14px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-items,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-items,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-items {
        gap: 7px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-item-card,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-item-card,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-item-card {
        padding: 7px !important;
        border-radius: 15px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-item-head,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-item-head,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-item-head {
        gap: 5px !important;
        align-items: flex-start !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-item-title,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-item-title,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-item-title {
        gap: 5px !important;
        min-width: 0 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-item-title > div,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-item-title > div,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-item-title > div {
        min-width: 0 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-item-title strong,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-item-title strong,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-item-title strong {
        font-size: 12px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-item-title span,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-item-title span,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-item-title span {
        display: none !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-price strong,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-price strong,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-price strong {
        font-size: 12px !important;
        line-height: 1 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-price span,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-price span,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-price span {
        font-size: 9px !important;
        line-height: 1 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-item-media,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-item-media,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-item-media {
        flex-basis: 28px !important;
        width: 28px !important;
        height: 28px !important;
        border-radius: 9px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-holding.compact,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-holding.compact,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-holding.compact {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 2px !important;
        margin: 4px 0 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-holding.compact span,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-holding.compact span,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-holding.compact span {
        font-size: 9px !important;
        line-height: 1.05 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-quantity-row.compact,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-quantity-row.compact,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-quantity-row.compact {
        display: grid !important;
        grid-template-columns: 24px minmax(0, 1fr) 24px 38px !important;
        gap: 3px !important;
        margin: 4px 0 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-quantity-row.compact input,
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-quantity-row.compact button,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-quantity-row.compact input,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-quantity-row.compact button,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-quantity-row.compact input,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-quantity-row.compact button {
        height: 24px !important;
        min-height: 24px !important;
        border-radius: 7px !important;
        font-size: 10px !important;
        padding: 0 3px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-quantity-row.compact button[data-black-market-quantity-control="decrease"],
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-quantity-row.compact button[data-black-market-quantity-control="increase"],
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-quantity-row.compact button[data-black-market-quantity-control="decrease"],
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-quantity-row.compact button[data-black-market-quantity-control="increase"],
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-quantity-row.compact button[data-black-market-quantity-control="decrease"],
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-quantity-row.compact button[data-black-market-quantity-control="increase"] {
        flex-basis: auto !important;
        font-size: 13px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-actions.compact,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-actions.compact,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-actions.compact {
        gap: 3px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-actions.compact button,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-actions.compact button,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-actions.compact button {
        min-height: 24px !important;
        padding: 3px 1px !important;
        border-radius: 8px !important;
        font-size: 9px !important;
        line-height: 1 !important;
    }
}

/* v41: keep compact item risk tags visible without restoring long hints. */
.hunter-black-market-item-risk {
    display: inline-flex !important;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-top: 3px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(245, 158, 11, .13);
    color: #92400e !important;
    border: 1px solid rgba(245, 158, 11, .22);
    font-size: 11px !important;
    font-weight: 800;
    line-height: 1.1 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-black-market-item-title .hunter-black-market-item-risk,
.hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-black-market-item-title .hunter-black-market-item-risk,
.hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-black-market-item-title .hunter-black-market-item-risk {
    display: inline-flex !important;
    margin-top: 2px !important;
    padding: 1px 5px !important;
    font-size: 9px !important;
    line-height: 1.05 !important;
}


/* v42: exploration test entry placeholder. */
.hunter-explore-test-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    margin-right: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(59, 130, 246, .16);
    color: #1d4ed8;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    letter-spacing: .08em;
    vertical-align: 2px;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--test,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--test {
    border-color: rgba(59, 130, 246, .62) !important;
    color: #1e3a8a !important;
    background:
        radial-gradient(circle at 96% 8%, rgba(96, 165, 250, .28), transparent 32%),
        linear-gradient(180deg, rgba(239, 246, 255, .98), rgba(224, 242, 254, .94)) !important;
    box-shadow: 0 6px 14px rgba(30, 64, 175, .10), inset 0 1px 0 rgba(255, 255, 255, .92) !important;
    cursor: default !important;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--test:hover,
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--test:focus-visible,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--test:hover,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--test:focus-visible {
    transform: none !important;
    border-color: rgba(59, 130, 246, .72) !important;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--test span,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--test span {
    color: #1e3a8a !important;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--test small,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--test small {
    color: rgba(30, 58, 138, .72) !important;
}

/* v43: lottery test prototype - front-end fake draw only. */
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--test,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--test {
    cursor: pointer !important;
}

.hunter-lottery-test-card {
    display: grid;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(96, 165, 250, .35);
    border-radius: 22px;
    padding: 16px;
    color: #172554;
    background:
        radial-gradient(circle at 98% 0%, rgba(96, 165, 250, .32), transparent 35%),
        linear-gradient(180deg, rgba(239, 246, 255, .98), rgba(219, 234, 254, .94));
    box-shadow: 0 14px 28px rgba(30, 64, 175, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
    overflow: hidden;
}

.hunter-lottery-test-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hunter-lottery-test-kicker {
    color: rgba(30, 64, 175, .72);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .14em;
}

.hunter-lottery-test-header h3 {
    margin: 4px 0 6px;
    color: #1e3a8a;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.2;
}

.hunter-lottery-test-header p {
    margin: 0;
    color: rgba(30, 58, 138, .72);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}

.hunter-lottery-test-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    font-size: 12px;
    font-weight: 950;
    box-shadow: 0 8px 16px rgba(37, 99, 235, .20);
}

.hunter-lottery-test-pool {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.hunter-lottery-test-pool > div {
    min-width: 0;
    border: 1px solid rgba(59, 130, 246, .24);
    border-radius: 16px;
    padding: 10px;
    background: rgba(255, 255, 255, .72);
}

.hunter-lottery-test-pool span,
.hunter-lottery-test-pool strong {
    display: block;
}

.hunter-lottery-test-pool span {
    color: rgba(30, 58, 138, .60);
    font-size: 11px;
    font-weight: 850;
}

.hunter-lottery-test-pool strong {
    margin-top: 4px;
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hunter-lottery-test-draw-btn {
    width: 100%;
    border: 0;
    border-radius: 18px;
    padding: 14px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    font-size: 17px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(37, 99, 235, .26), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.hunter-lottery-test-draw-btn:active {
    transform: translateY(1px);
}

.hunter-lottery-test-result {
    display: grid;
    gap: 6px;
    border: 1px dashed rgba(59, 130, 246, .40);
    border-radius: 18px;
    padding: 14px;
    color: rgba(30, 58, 138, .72);
    background: rgba(255, 255, 255, .60);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.hunter-lottery-test-result.is-win {
    border-style: solid;
    border-color: rgba(22, 163, 74, .35);
    color: #14532d;
    background: linear-gradient(180deg, rgba(240, 253, 244, .96), rgba(220, 252, 231, .88));
}

.hunter-lottery-test-result.is-lose {
    border-style: solid;
    border-color: rgba(100, 116, 139, .26);
    color: #475569;
    background: rgba(248, 250, 252, .80);
}

.hunter-lottery-test-result-label {
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
}

.hunter-lottery-test-result strong {
    color: inherit;
    font-size: 18px;
    font-weight: 950;
}

.hunter-lottery-test-result code {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    padding: 9px 10px;
    color: #064e3b;
    background: rgba(255, 255, 255, .78);
    font-size: 14px;
    font-weight: 950;
    letter-spacing: .04em;
    white-space: normal;
    overflow-wrap: anywhere;
}

.hunter-lottery-test-result small {
    color: rgba(20, 83, 45, .70);
    font-size: 12px;
    font-weight: 750;
}

.hunter-lottery-test-history-card {
    border-radius: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(59, 130, 246, .18);
}

.hunter-lottery-test-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.hunter-lottery-test-history-head strong {
    color: #1e3a8a;
    font-size: 15px;
    font-weight: 950;
}

.hunter-lottery-test-reset-btn {
    flex: 0 0 auto;
    border: 1px solid rgba(37, 99, 235, .22);
    border-radius: 999px;
    padding: 6px 10px;
    color: #1d4ed8;
    background: rgba(239, 246, 255, .86);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.hunter-lottery-test-history-list {
    display: grid;
    gap: 8px;
}

.hunter-lottery-test-history-empty {
    color: rgba(30, 58, 138, .62);
    font-size: 13px;
    font-weight: 750;
}

.hunter-lottery-test-prize-item {
    display: grid;
    gap: 4px;
    border-radius: 14px;
    padding: 10px;
    background: rgba(240, 253, 244, .72);
    border: 1px solid rgba(22, 163, 74, .22);
}

.hunter-lottery-test-prize-item span {
    color: #14532d;
    font-size: 13px;
    font-weight: 900;
}

.hunter-lottery-test-prize-item strong {
    color: #064e3b;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: .04em;
    overflow-wrap: anywhere;
}

.hunter-lottery-test-prize-item small {
    color: rgba(20, 83, 45, .64);
    font-size: 12px;
    font-weight: 750;
}

@media (max-width: 768px) {
    .hunter-lottery-test-card {
        gap: 12px;
        padding: 12px;
        border-radius: 18px;
    }

    .hunter-lottery-test-header {
        display: block;
    }

    .hunter-lottery-test-badge {
        display: inline-flex;
        margin-top: 10px;
    }

    .hunter-lottery-test-pool {
        grid-template-columns: 1fr;
    }

    .hunter-lottery-test-draw-btn {
        padding: 13px 14px;
        font-size: 16px;
    }
}

/* v45: lottery test compact public layout - smaller text and scroll safety. */
.hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-explore-room .hunter-subtab-panel[data-hunter-subtab-panel="lotteryTest"].active {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.hunter-lottery-test-card {
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 18px !important;
}

.hunter-lottery-test-header {
    gap: 8px !important;
}

.hunter-lottery-test-kicker {
    font-size: 10px !important;
}

.hunter-lottery-test-header h3 {
    margin: 3px 0 4px !important;
    font-size: 17px !important;
    line-height: 1.15 !important;
}

.hunter-lottery-test-header p {
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.hunter-lottery-test-badge {
    padding: 5px 8px !important;
    font-size: 11px !important;
}

.hunter-lottery-test-pool {
    gap: 6px !important;
}

.hunter-lottery-test-pool > div {
    border-radius: 12px !important;
    padding: 7px !important;
}

.hunter-lottery-test-pool span {
    font-size: 10px !important;
}

.hunter-lottery-test-pool strong {
    margin-top: 2px !important;
    font-size: 12px !important;
}

.hunter-lottery-test-draw-btn {
    border-radius: 14px !important;
    padding: 11px 14px !important;
    font-size: 15px !important;
}

.hunter-lottery-test-result {
    gap: 4px !important;
    border-radius: 14px !important;
    padding: 10px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.hunter-lottery-test-result-label {
    font-size: 10px !important;
}

.hunter-lottery-test-result strong {
    font-size: 15px !important;
}

.hunter-lottery-test-result code {
    border-radius: 10px !important;
    padding: 7px 8px !important;
    font-size: 12px !important;
}

.hunter-lottery-test-result small {
    font-size: 11px !important;
}

.hunter-lottery-test-history-card {
    border-radius: 14px !important;
    padding: 9px !important;
}

.hunter-lottery-test-history-head {
    gap: 8px !important;
    margin-bottom: 7px !important;
}

.hunter-lottery-test-history-head strong {
    font-size: 13px !important;
}

.hunter-lottery-test-reset-btn {
    padding: 5px 8px !important;
    font-size: 11px !important;
}

.hunter-lottery-test-history-list {
    gap: 6px !important;
    max-height: 128px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.hunter-lottery-test-history-empty {
    font-size: 12px !important;
}

.hunter-lottery-test-prize-item {
    border-radius: 11px !important;
    padding: 7px !important;
}

.hunter-lottery-test-prize-item span {
    font-size: 12px !important;
}

.hunter-lottery-test-prize-item strong {
    font-size: 12px !important;
}

.hunter-lottery-test-prize-item small {
    font-size: 10px !important;
}

@media (max-width: 768px) {
    .hunter-lottery-test-card {
        gap: 8px !important;
        padding: 10px !important;
        border-radius: 16px !important;
    }

    .hunter-lottery-test-header {
        display: flex !important;
        align-items: flex-start !important;
    }

    .hunter-lottery-test-badge {
        margin-top: 0 !important;
        white-space: nowrap !important;
    }

    .hunter-lottery-test-header h3 {
        font-size: 16px !important;
    }

    .hunter-lottery-test-header p {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }

    .hunter-lottery-test-pool {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }

    .hunter-lottery-test-pool > div {
        padding: 6px !important;
    }

    .hunter-lottery-test-pool span {
        font-size: 9px !important;
    }

    .hunter-lottery-test-pool strong {
        font-size: 10px !important;
    }

    .hunter-lottery-test-draw-btn {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }

    .hunter-lottery-test-result {
        padding: 8px !important;
        font-size: 11px !important;
    }

    .hunter-lottery-test-result strong {
        font-size: 14px !important;
    }

    .hunter-lottery-test-result code {
        padding: 6px 7px !important;
        font-size: 11px !important;
    }

    .hunter-lottery-test-history-card {
        padding: 8px !important;
    }

    .hunter-lottery-test-history-list {
        max-height: 96px !important;
    }
}

/* v46: lightweight lottery draw animation - CSS only, scoped to test lottery. */
.hunter-lottery-test-card {
    position: relative;
}

.hunter-lottery-test-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .78), transparent 10%),
        radial-gradient(circle at 76% 22%, rgba(255, 255, 255, .62), transparent 12%),
        radial-gradient(circle at 46% 8%, rgba(253, 224, 71, .42), transparent 12%);
}

.hunter-lottery-test-card.is-drawing::after {
    animation: hunterLotteryGlowSweep .9s ease-in-out both;
}

.hunter-lottery-test-gift {
    display: inline-block;
    transform-origin: 50% 75%;
}

.hunter-lottery-test-card.is-drawing .hunter-lottery-test-gift {
    animation: hunterLotteryGiftShake .78s ease-in-out both;
}

.hunter-lottery-test-draw-btn {
    position: relative;
    overflow: hidden;
    transition: transform .16s ease, filter .16s ease, opacity .16s ease;
}

.hunter-lottery-test-draw-btn::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -42%;
    width: 36%;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
    opacity: 0;
}

.hunter-lottery-test-draw-btn:disabled {
    cursor: wait;
    opacity: .92;
    filter: saturate(1.14) brightness(1.04);
}

.hunter-lottery-test-draw-btn:disabled::after {
    opacity: 1;
    animation: hunterLotteryButtonSweep .9s ease-in-out infinite;
}

.hunter-lottery-test-result.is-drawing {
    position: relative;
    border-style: solid;
    border-color: rgba(37, 99, 235, .30);
    color: #1e3a8a;
    background: linear-gradient(180deg, rgba(239, 246, 255, .94), rgba(219, 234, 254, .78));
    animation: hunterLotteryResultPulse .9s ease-in-out infinite;
}

.hunter-lottery-test-result.is-revealed {
    animation: hunterLotteryResultReveal .24s ease-out both;
}

.hunter-lottery-test-result.is-win.is-revealed {
    animation: hunterLotteryWinReveal .34s ease-out both;
}

.hunter-lottery-test-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 12px;
}

.hunter-lottery-test-dots i {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    opacity: .38;
    animation: hunterLotteryDotBounce .72s ease-in-out infinite;
}

.hunter-lottery-test-dots i:nth-child(2) {
    animation-delay: .12s;
}

.hunter-lottery-test-dots i:nth-child(3) {
    animation-delay: .24s;
}

@keyframes hunterLotteryGiftShake {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    18% { transform: translateY(-1px) rotate(-8deg) scale(1.04); }
    38% { transform: translateY(0) rotate(7deg) scale(1.06); }
    58% { transform: translateY(-1px) rotate(-5deg) scale(1.04); }
    78% { transform: translateY(0) rotate(3deg) scale(1.02); }
}

@keyframes hunterLotteryGlowSweep {
    0% { opacity: 0; transform: scale(.98); }
    42% { opacity: .95; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.02); }
}

@keyframes hunterLotteryButtonSweep {
    0% { left: -46%; }
    100% { left: 112%; }
}

@keyframes hunterLotteryResultPulse {
    0%, 100% { box-shadow: inset 0 0 0 rgba(37, 99, 235, 0); }
    50% { box-shadow: inset 0 0 22px rgba(37, 99, 235, .13); }
}

@keyframes hunterLotteryResultReveal {
    0% { opacity: .55; transform: translateY(4px) scale(.99); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hunterLotteryWinReveal {
    0% { opacity: .6; transform: translateY(5px) scale(.985); box-shadow: 0 0 0 rgba(22, 163, 74, 0); }
    72% { opacity: 1; transform: translateY(0) scale(1.012); box-shadow: 0 0 24px rgba(22, 163, 74, .18); }
    100% { opacity: 1; transform: translateY(0) scale(1); box-shadow: 0 0 0 rgba(22, 163, 74, 0); }
}

@keyframes hunterLotteryDotBounce {
    0%, 100% { opacity: .32; transform: translateY(0); }
    50% { opacity: .92; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
    .hunter-lottery-test-card.is-drawing::after,
    .hunter-lottery-test-card.is-drawing .hunter-lottery-test-gift,
    .hunter-lottery-test-draw-btn:disabled::after,
    .hunter-lottery-test-result.is-drawing,
    .hunter-lottery-test-result.is-revealed,
    .hunter-lottery-test-result.is-win.is-revealed,
    .hunter-lottery-test-dots i {
        animation: none !important;
    }
}

/* v48: formal lottery entry - visible but not started. */
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal {
    border-color: rgba(245, 158, 11, .48) !important;
    color: #78350f !important;
    background:
        radial-gradient(circle at 96% 8%, rgba(251, 191, 36, .22), transparent 34%),
        linear-gradient(180deg, rgba(255, 251, 235, .98), rgba(254, 243, 199, .88)) !important;
    box-shadow: 0 6px 14px rgba(146, 64, 14, .08), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
    cursor: not-allowed !important;
    opacity: .92 !important;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal:hover,
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal:focus-visible,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal:hover,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal:focus-visible {
    transform: none !important;
    border-color: rgba(245, 158, 11, .58) !important;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal span,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal span {
    color: #78350f !important;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal small,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal small {
    color: rgba(120, 53, 15, .70) !important;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal em,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal em {
    background: rgba(245, 158, 11, .18) !important;
    color: #92400e !important;
}

/* v49: formal lottery not-started entry red background button. */
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal {
    border-color: rgba(248, 113, 113, .72) !important;
    color: #ffffff !important;
    background:
        radial-gradient(circle at 94% 8%, rgba(254, 202, 202, .30), transparent 34%),
        linear-gradient(135deg, #ef4444 0%, #dc2626 48%, #991b1b 100%) !important;
    box-shadow: 0 8px 18px rgba(153, 27, 27, .24), inset 0 1px 0 rgba(255, 255, 255, .28) !important;
    cursor: not-allowed !important;
    opacity: .96 !important;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal:hover,
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal:focus-visible,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal:hover,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal:focus-visible {
    transform: none !important;
    border-color: rgba(254, 202, 202, .86) !important;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal span,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal span {
    color: #ffffff !important;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal small,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal small {
    color: rgba(255, 255, 255, .82) !important;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal em,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal em {
    background: rgba(255, 255, 255, .18) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, .24) !important;
}

/* v63: formal lottery entry is public; API still controls ticket and draw availability. */
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open,
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open {
    cursor: pointer !important;
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto !important;
    box-shadow: 0 14px 28px rgba(185, 28, 28, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open:hover,
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open:hover,
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open:focus-visible,
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open:focus-visible,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open:hover,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open:hover,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open:focus-visible,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open:focus-visible {
    transform: translateY(-1px) !important;
    box-shadow: 0 18px 34px rgba(185, 28, 28, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

.hunter-lottery-formal-preview-card .hunter-lottery-test-result {
    text-align: center;
}


.hunter-lottery-formal-rules-title {
    margin-bottom: 8px;
    color: #7f1d1d;
    font-size: 13px;
    font-weight: 950;
}

.hunter-lottery-formal-rules-list {
    margin: 0;
    padding-left: 18px;
    text-align: left;
    color: rgba(127, 29, 29, .86);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
}

.hunter-lottery-formal-rules-list li + li {
    margin-top: 3px;
}

/* v52: formal lottery funding proof screenshots. */
.hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-explore-room .hunter-subtab-panel[data-hunter-subtab-panel="lotteryFormal"].active {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.hunter-lottery-proof-card {
    margin-top: 10px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
    overflow: hidden;
}

.hunter-lottery-proof-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    list-style: none;
}

.hunter-lottery-proof-card summary::-webkit-details-marker {
    display: none;
}

.hunter-lottery-proof-card summary::after {
    content: '展開';
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 4px 9px;
    background: rgba(37, 99, 235, .10);
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
}

.hunter-lottery-proof-card[open] summary::after {
    content: '收合';
}

.hunter-lottery-proof-card summary span {
    min-width: 0;
}

.hunter-lottery-proof-card summary small {
    margin-left: auto;
    color: rgba(30, 58, 138, .62);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.hunter-lottery-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 10px 10px;
}

.hunter-lottery-proof-grid figure {
    margin: 0;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 14px;
    background: rgba(248, 250, 252, .92);
    overflow: hidden;
}

.hunter-lottery-proof-grid a {
    display: block;
    background: #ffffff;
}

.hunter-lottery-proof-grid img {
    display: block;
    width: 100%;
    height: 118px;
    object-fit: contain;
    background: #ffffff;
}

.hunter-lottery-proof-grid figcaption {
    padding: 6px 8px;
    color: #334155;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.3;
}

@media (max-width: 520px) {
    .hunter-lottery-proof-card summary {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 9px 10px;
    }

    .hunter-lottery-proof-card summary small {
        order: 3;
        width: 100%;
        margin-left: 0;
        white-space: normal;
    }

    .hunter-lottery-proof-grid {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 0 8px 8px;
    }

    .hunter-lottery-proof-grid img {
        height: 126px;
    }
}

/* v53: formal lottery preview draw button + compact funding proofs. */
.hunter-lottery-formal-demo-card {
    display: grid;
    gap: 8px;
    margin-top: 9px;
}

.hunter-lottery-formal-demo-draw-btn {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 15px;
}

.hunter-lottery-formal-demo-result {
    border: 1px solid rgba(148, 163, 184, .32);
    border-radius: 14px;
    background: rgba(248, 250, 252, .86);
    color: #334155;
    padding: 9px 11px;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.45;
    min-height: 42px;
}

.hunter-lottery-formal-demo-result.is-drawing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #1d4ed8;
    background: linear-gradient(135deg, rgba(239, 246, 255, .96), rgba(219, 234, 254, .86));
}

.hunter-lottery-formal-demo-result.is-win {
    border-color: rgba(74, 222, 128, .46);
    background: linear-gradient(135deg, rgba(236, 253, 245, .96), rgba(220, 252, 231, .88));
    color: #065f46;
}

.hunter-lottery-formal-demo-result.is-lose {
    border-color: rgba(148, 163, 184, .38);
    background: linear-gradient(135deg, rgba(248, 250, 252, .98), rgba(226, 232, 240, .82));
    color: #475569;
}

.hunter-lottery-formal-demo-result span,
.hunter-lottery-formal-demo-result strong,
.hunter-lottery-formal-demo-result small {
    display: block;
}

.hunter-lottery-formal-demo-result strong {
    margin-top: 2px;
    font-size: 15px;
    font-weight: 950;
}

.hunter-lottery-formal-demo-result small {
    margin-top: 3px;
    color: rgba(51, 65, 85, .68);
    font-size: 11px;
    font-weight: 800;
}

.hunter-lottery-proof-card {
    margin-top: 8px;
    border-radius: 15px;
}

.hunter-lottery-proof-card summary {
    padding: 8px 10px;
    font-size: 12px;
}

.hunter-lottery-proof-card summary::after {
    padding: 3px 8px;
    font-size: 10px;
}

.hunter-lottery-proof-card summary small {
    font-size: 10px;
}

.hunter-lottery-proof-grid {
    display: flex;
    gap: 7px;
    padding: 0 8px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.hunter-lottery-proof-grid figure {
    flex: 0 0 118px;
    border-radius: 12px;
}

.hunter-lottery-proof-grid img {
    height: 58px;
}

.hunter-lottery-proof-grid figcaption {
    padding: 5px 6px;
    font-size: 10px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 520px) {
    .hunter-lottery-formal-demo-card {
        margin-top: 8px;
    }

    .hunter-lottery-formal-demo-draw-btn {
        min-height: 40px;
        font-size: 14px;
    }

    .hunter-lottery-proof-card summary {
        align-items: center;
        flex-wrap: nowrap;
        padding: 7px 9px;
    }

    .hunter-lottery-proof-card summary small {
        display: none;
    }

    .hunter-lottery-proof-grid {
        display: flex;
        grid-template-columns: none;
        gap: 6px;
        padding: 0 7px 7px;
    }

    .hunter-lottery-proof-grid figure {
        flex-basis: 104px;
    }

    .hunter-lottery-proof-grid img {
        height: 48px;
    }
}

/* v55: formal lottery API status + mobile scroll fix. */
.hunter-lottery-formal-api-card {
    display: grid;
    gap: 8px;
    margin-top: 9px;
    padding: 10px;
    border: 1px solid rgba(37, 99, 235, .22);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(239, 246, 255, .96), rgba(255, 255, 255, .86));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

.hunter-lottery-formal-api-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 950;
}

.hunter-lottery-formal-api-head strong {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 4px 9px;
    background: rgba(37, 99, 235, .12);
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 950;
}

.hunter-lottery-formal-api-message {
    color: #334155;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.45;
}

.hunter-lottery-formal-real-draw-btn {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
}

.hunter-lottery-formal-real-draw-btn.is-ready {
    background: linear-gradient(135deg, #dc2626, #f97316) !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(220, 38, 38, .22);
}

.hunter-lottery-formal-api-result {
    border: 1px solid rgba(148, 163, 184, .30);
    border-radius: 13px;
    background: rgba(248, 250, 252, .92);
    color: #334155;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.45;
    min-height: 38px;
}

.hunter-lottery-formal-api-result span,
.hunter-lottery-formal-api-result strong,
.hunter-lottery-formal-api-result small,
.hunter-lottery-formal-voucher span,
.hunter-lottery-formal-voucher strong,
.hunter-lottery-formal-voucher small {
    display: block;
}

.hunter-lottery-formal-api-result strong {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 950;
}

.hunter-lottery-formal-api-result small {
    margin-top: 3px;
    color: rgba(51, 65, 85, .68);
    font-size: 11px;
    font-weight: 800;
}

.hunter-lottery-formal-api-result.is-drawing {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    background: linear-gradient(135deg, rgba(239, 246, 255, .96), rgba(219, 234, 254, .86));
}

.hunter-lottery-formal-api-result.is-win {
    border-color: rgba(234, 179, 8, .48);
    background: linear-gradient(135deg, rgba(255, 251, 235, .98), rgba(254, 243, 199, .88));
    color: #92400e;
}

.hunter-lottery-formal-api-result.is-lose {
    border-color: rgba(148, 163, 184, .40);
    background: linear-gradient(135deg, rgba(248, 250, 252, .98), rgba(226, 232, 240, .82));
    color: #475569;
}

.hunter-lottery-formal-voucher code {
    display: block;
    margin-top: 5px;
    padding: 7px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .92);
    color: #7c2d12;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .04em;
    overflow-wrap: anywhere;
}

.hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-explore-room .hunter-subtab-panel[data-hunter-subtab-panel="lotteryFormal"].active {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain;
    padding-bottom: 92px !important;
}

.hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-explore-room .hunter-subtab-panel[data-hunter-subtab-panel="lotteryFormal"].active .hunter-minigame-shell {
    flex: 0 0 auto !important;
    min-height: auto !important;
    display: block !important;
}

.hunter-lottery-formal-preview-card {
    flex: 0 0 auto !important;
}

@media (max-width: 768px) {
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-explore-room .hunter-subtab-panel[data-hunter-subtab-panel="lotteryFormal"].active {
        max-height: calc(100svh - 132px) !important;
        padding-bottom: 110px !important;
    }

    .hunter-lottery-formal-api-card {
        gap: 7px;
        margin-top: 8px;
        padding: 8px;
        border-radius: 13px;
    }

    .hunter-lottery-formal-api-message,
    .hunter-lottery-formal-api-result {
        font-size: 11px;
    }

    .hunter-lottery-formal-api-head {
        font-size: 11px;
    }

    .hunter-lottery-formal-real-draw-btn {
        min-height: 38px;
        font-size: 13px;
    }

    .hunter-lottery-proof-card {
        margin-top: 7px;
    }

    .hunter-lottery-proof-grid {
        max-height: 96px;
    }
}

/* v56: 7-ELEVEN voucher redemption guide at formal lottery bottom. */
.hunter-lottery-voucher-guide-card {
    margin-top: 8px;
    border: 1px solid rgba(248, 113, 113, .26);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 247, 237, .95), rgba(255, 255, 255, .86));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
    overflow: hidden;
}

.hunter-lottery-voucher-guide-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    color: #9f1239;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
    list-style: none;
}

.hunter-lottery-voucher-guide-card summary::-webkit-details-marker {
    display: none;
}

.hunter-lottery-voucher-guide-card summary::after {
    content: '展開';
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 3px 8px;
    background: rgba(244, 63, 94, .10);
    color: #e11d48;
    font-size: 10px;
    font-weight: 900;
}

.hunter-lottery-voucher-guide-card[open] summary::after {
    content: '收合';
}

.hunter-lottery-voucher-guide-card summary small {
    margin-left: auto;
    color: rgba(159, 18, 57, .62);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.hunter-lottery-voucher-guide-body {
    display: grid;
    gap: 8px;
    padding: 0 10px 10px;
}

.hunter-lottery-voucher-guide-image {
    display: block;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.hunter-lottery-voucher-guide-image img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    background: #ffffff;
}

.hunter-lottery-voucher-guide-note {
    border: 1px solid rgba(251, 146, 60, .30);
    border-radius: 12px;
    background: rgba(255, 247, 237, .86);
    padding: 8px 9px;
    color: #7c2d12;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.5;
}

.hunter-lottery-voucher-guide-note strong,
.hunter-lottery-voucher-guide-note a,
.hunter-lottery-voucher-guide-note p {
    display: block;
}

.hunter-lottery-voucher-guide-note a {
    margin-top: 3px;
    color: #2563eb;
    overflow-wrap: anywhere;
    text-decoration: underline;
}

.hunter-lottery-voucher-guide-note p {
    margin: 4px 0 0;
}

.hunter-lottery-voucher-guide-list {
    margin: 0;
    padding-left: 18px;
    color: rgba(68, 64, 60, .88);
    font-size: 11px;
    font-weight: 760;
    line-height: 1.58;
}

.hunter-lottery-voucher-guide-list li + li {
    margin-top: 5px;
}

.hunter-lottery-voucher-guide-list a {
    color: #2563eb;
    overflow-wrap: anywhere;
    text-decoration: underline;
}

@media (max-width: 520px) {
    .hunter-lottery-voucher-guide-card summary {
        padding: 7px 9px;
        font-size: 11px;
    }

    .hunter-lottery-voucher-guide-card summary small {
        display: none;
    }

    .hunter-lottery-voucher-guide-body {
        padding: 0 8px 8px;
    }

    .hunter-lottery-voucher-guide-image img {
        max-height: 220px;
    }

    .hunter-lottery-voucher-guide-note,
    .hunter-lottery-voucher-guide-list {
        font-size: 10px;
    }
}

/* v57: voucher guide image opens in a closable modal instead of leaving the page. */
.hunter-lottery-voucher-guide-image {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    cursor: zoom-in;
    appearance: none;
    -webkit-appearance: none;
}

.hunter-lottery-voucher-guide-image-caption {
    position: absolute;
    right: 8px;
    bottom: 8px;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(15, 23, 42, .72);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .24);
}

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

.hunter-lottery-voucher-guide-modal[hidden] {
    display: none !important;
}

.hunter-lottery-voucher-guide-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
}

.hunter-lottery-voucher-guide-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, .72);
    cursor: zoom-out;
}

.hunter-lottery-voucher-guide-modal-panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 520px);
    max-height: 88vh;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(15, 23, 42, .45);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.hunter-lottery-voucher-guide-modal-panel img {
    display: block;
    width: 100%;
    height: auto;
    background: #ffffff;
}

.hunter-lottery-voucher-guide-modal-close {
    position: sticky;
    top: 8px;
    float: right;
    z-index: 2;
    width: 34px;
    height: 34px;
    margin: 8px 8px -42px 0;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, .84);
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    line-height: 34px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .24);
}

@media (max-width: 520px) {
    .hunter-lottery-voucher-guide-modal {
        padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
        align-items: flex-start;
    }

    .hunter-lottery-voucher-guide-modal-panel {
        width: 100%;
        max-height: calc(100vh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        border-radius: 15px;
    }

    .hunter-lottery-voucher-guide-modal-close {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 22px;
    }
}

/* v59: funding proof image modal. */
.hunter-lottery-proof-image-btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #ffffff;
    cursor: zoom-in;
    appearance: none;
    -webkit-appearance: none;
}

.hunter-lottery-proof-image-btn span {
    position: absolute;
    right: 6px;
    bottom: 6px;
    border-radius: 999px;
    padding: 3px 6px;
    background: rgba(15, 23, 42, .72);
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .22);
}

.hunter-lottery-proof-image-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .42);
    outline-offset: -3px;
}

.hunter-lottery-proof-image-modal[hidden] {
    display: none !important;
}

.hunter-lottery-proof-image-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
}

.hunter-lottery-proof-image-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, .74);
    cursor: zoom-out;
}

.hunter-lottery-proof-image-modal-panel {
    position: relative;
    z-index: 1;
    width: min(94vw, 760px);
    max-height: 88vh;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(15, 23, 42, .46);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.hunter-lottery-proof-image-modal-panel img {
    display: block;
    width: 100%;
    height: auto;
    background: #ffffff;
}

.hunter-lottery-proof-image-modal-close {
    position: sticky;
    top: 8px;
    float: right;
    z-index: 2;
    width: 34px;
    height: 34px;
    margin: 8px 8px -42px 0;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, .84);
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    line-height: 34px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .24);
}

.hunter-lottery-proof-image-modal-caption {
    padding: 9px 12px 11px;
    border-top: 1px solid rgba(148, 163, 184, .22);
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

@media (max-width: 520px) {
    .hunter-lottery-proof-image-modal {
        align-items: flex-start;
        padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
    }

    .hunter-lottery-proof-image-modal-panel {
        width: 100%;
        max-height: calc(100vh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        border-radius: 15px;
    }

    .hunter-lottery-proof-image-modal-close {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 22px;
    }
}

/* v61: formal lottery cleanup, voucher copy button, and readable proof modals. */
.hunter-lottery-formal-voucher-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 8px;
    margin-top: 5px;
}

.hunter-lottery-formal-voucher-code-row code {
    margin-top: 0;
}

.hunter-lottery-formal-copy-btn {
    border: 0;
    border-radius: 10px;
    padding: 7px 10px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
    white-space: nowrap;
}

.hunter-lottery-formal-copy-btn:active {
    transform: translateY(1px);
}

.hunter-lottery-proof-image-modal {
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
}

.hunter-lottery-proof-image-modal-panel {
    width: min(98vw, 1380px);
    max-height: 92vh;
    overflow: auto;
    overscroll-behavior: contain;
}

.hunter-lottery-proof-image-modal-panel img {
    width: auto;
    min-width: min(1200px, calc(100vw - 20px));
    max-width: none;
    height: auto;
}

@media (max-width: 520px) {
    .hunter-lottery-formal-voucher-code-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .hunter-lottery-formal-copy-btn {
        width: 100%;
        min-height: 34px;
    }

    .hunter-lottery-proof-image-modal-panel {
        width: 100%;
        max-height: calc(100vh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }

    .hunter-lottery-proof-image-modal-panel img {
        min-width: 1180px;
    }
}

/* v69: formal lottery pool summary for preassigned results, kept on top of v63 public entry styles. */
.hunter-lottery-formal-pool-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 1px solid rgba(59, 130, 246, .20);
    border-radius: 13px;
    background: rgba(255, 255, 255, .72);
    padding: 8px;
    color: #1e3a8a;
    font-size: 11px;
    font-weight: 850;
}

.hunter-lottery-formal-pool-summary div {
    min-width: 0;
    border-radius: 11px;
    background: rgba(239, 246, 255, .88);
    padding: 7px 8px;
}

.hunter-lottery-formal-pool-summary span,
.hunter-lottery-formal-pool-summary strong,
.hunter-lottery-formal-pool-summary small {
    display: block;
}

.hunter-lottery-formal-pool-summary span {
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
}

.hunter-lottery-formal-pool-summary strong {
    margin-top: 2px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 950;
}

.hunter-lottery-formal-pool-summary small {
    grid-column: 1 / -1;
    color: #64748b;
    line-height: 1.35;
}

@media (max-width: 520px) {
    .hunter-lottery-formal-pool-summary {
        gap: 6px;
        padding: 7px;
    }

    .hunter-lottery-formal-pool-summary strong {
        font-size: 11px;
    }
}


/* v74: compact formal lottery mobile header and remove duplicated status card. */
.hunter-lottery-formal-period-copy span {
    display: block;
}

.hunter-lottery-test-pool.hunter-lottery-formal-meta-grid {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr) !important;
}

.hunter-lottery-test-pool.hunter-lottery-formal-meta-grid strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .hunter-lottery-formal-preview-card .hunter-lottery-test-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 6px !important;
    }

    .hunter-lottery-formal-preview-card .hunter-lottery-test-header h3 {
        margin: 2px 0 3px !important;
        font-size: 15px !important;
        line-height: 1.15 !important;
    }

    .hunter-lottery-formal-preview-card .hunter-lottery-test-header p {
        font-size: 10px !important;
        line-height: 1.38 !important;
    }

    .hunter-lottery-formal-preview-card .hunter-lottery-test-badge {
        margin-top: 0 !important;
        padding: 4px 7px !important;
        font-size: 10px !important;
        white-space: nowrap;
    }

    .hunter-lottery-test-pool.hunter-lottery-formal-meta-grid {
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) !important;
        gap: 5px !important;
    }

    .hunter-lottery-test-pool.hunter-lottery-formal-meta-grid > div {
        padding: 6px !important;
        border-radius: 10px !important;
    }

    .hunter-lottery-test-pool.hunter-lottery-formal-meta-grid span {
        font-size: 9px !important;
    }

    .hunter-lottery-test-pool.hunter-lottery-formal-meta-grid strong {
        font-size: 10px !important;
        letter-spacing: -.03em;
    }
}


/* v76: formal lottery electronic voucher display with encrypted DB image support. */
.hunter-lottery-formal-voucher-image-wrap {
    display: block;
    margin: 10px 0 12px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(180, 83, 9, 0.18);
    background: rgba(255, 255, 255, 0.72);
}

.hunter-lottery-formal-voucher-image {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
}

.hunter-lottery-formal-voucher-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 10px 0 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.hunter-lottery-formal-voucher-code-row span {
    color: #64748b;
    font-weight: 900;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .hunter-lottery-formal-voucher-image {
        max-height: 220px;
    }
}

/* v58: formal lottery 7-ELEVEN virtual gift card guide copy update. */
.hunter-lottery-voucher-guide-section {
    border-top: 1px dashed rgba(148, 163, 184, .35);
    padding-top: 8px;
}

.hunter-lottery-voucher-guide-section > strong {
    display: block;
    margin-bottom: 5px;
    color: #9f1239;
    font-size: 11px;
    font-weight: 950;
}

.hunter-lottery-voucher-issuer-section > strong {
    color: #1d4ed8;
}

.hunter-lottery-voucher-guide-ordered-list {
    padding-left: 20px;
}

.hunter-lottery-voucher-guide-list strong {
    color: #c2410c;
    font-weight: 950;
}

/* v86 override: enlarge formal lottery voucher image only. */
.hunter-lottery-formal-voucher-image-wrap {
    padding: 10px;
    text-align: center;
}

.hunter-lottery-formal-voucher-image {
    width: auto;
    max-width: 100%;
    max-height: 560px;
    margin: 0 auto;
}

.hunter-lottery-voucher-download-hint {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(120, 53, 15, 0.86);
    text-align: center;
}

@media (max-width: 640px) {
    .hunter-lottery-formal-voucher-image {
        max-height: 620px;
    }

    .hunter-lottery-voucher-download-hint {
        font-size: 11px;
    }
}


/* v87: quick quiz card below formal lottery, appended only. */
.hunter-explore-game-entry--quiz {
    border-color: rgba(146, 64, 14, 0.22);
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.94), rgba(254, 243, 199, 0.84));
}

.hunter-quiz-card {
    border: 1px solid rgba(146, 64, 14, 0.18);
    border-radius: 22px;
    padding: 18px;
    background: linear-gradient(145deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.9));
    box-shadow: 0 18px 45px rgba(120, 53, 15, 0.16);
    color: #78350f;
}

.hunter-quiz-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.hunter-quiz-kicker {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: rgba(146, 64, 14, 0.68);
}

.hunter-quiz-header h3 {
    margin: 4px 0 6px;
    font-size: 22px;
    color: #7c2d12;
}

.hunter-quiz-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(120, 53, 15, 0.78);
}

.hunter-quiz-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.2);
    color: #92400e;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.hunter-quiz-badge[data-state="available"] {
    background: rgba(34, 197, 94, 0.16);
    color: #166534;
}

.hunter-quiz-badge[data-state="answered"] {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.hunter-quiz-badge[data-state="locked"],
.hunter-quiz-badge[data-state="error"] {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.hunter-quiz-status,
.hunter-quiz-result,
.hunter-quiz-question-box {
    border-radius: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(146, 64, 14, 0.12);
}

.hunter-quiz-status {
    display: grid;
    gap: 3px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.hunter-quiz-status strong {
    color: #7c2d12;
}

.hunter-quiz-status span {
    color: rgba(120, 53, 15, 0.76);
}

.hunter-quiz-question-box {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.hunter-quiz-question-label {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: rgba(146, 64, 14, 0.6);
}

.hunter-quiz-question-box strong {
    font-size: 18px;
    color: #7c2d12;
}

.hunter-quiz-question-box span,
.hunter-quiz-form small {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(120, 53, 15, 0.72);
}

.hunter-quiz-form {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.hunter-quiz-form label {
    font-size: 13px;
    font-weight: 900;
    color: #7c2d12;
}

.hunter-quiz-answer-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.hunter-quiz-answer-row input {
    width: 100%;
    border: 1px solid rgba(146, 64, 14, 0.2);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.86);
    color: #7c2d12;
    font-size: 15px;
    outline: none;
}

.hunter-quiz-answer-row input:focus {
    border-color: rgba(245, 158, 11, 0.72);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.hunter-quiz-answer-row button {
    border: 0;
    border-radius: 14px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff7ed;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.22);
}

.hunter-quiz-answer-row button:disabled,
.hunter-quiz-answer-row input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.hunter-quiz-result {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(120, 53, 15, 0.82);
}

.hunter-quiz-result.is-correct {
    border-color: rgba(34, 197, 94, 0.22);
    background: rgba(240, 253, 244, 0.82);
    color: #166534;
}

.hunter-quiz-result.is-winner {
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(255, 251, 235, 0.92);
    color: #92400e;
    font-weight: 900;
}

@media (max-width: 640px) {
    .hunter-quiz-card {
        padding: 14px;
        border-radius: 18px;
    }

    .hunter-quiz-header {
        display: grid;
        gap: 8px;
    }

    .hunter-quiz-header h3 {
        font-size: 19px;
    }

    .hunter-quiz-badge {
        justify-self: start;
    }

    .hunter-quiz-answer-row {
        grid-template-columns: 1fr;
    }

    .hunter-quiz-answer-row button {
        width: 100%;
    }
}


/* v94: make open formal lottery entry feel more special and clearly drawable. */
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open,
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open {
    position: relative !important;
    border: 2px solid rgba(255, 244, 180, 0.98) !important;
    outline: 3px solid rgba(251, 191, 36, 0.38) !important;
    outline-offset: 0 !important;
    box-shadow:
        0 0 0 2px rgba(153, 27, 27, 0.28),
        0 0 0 6px rgba(251, 191, 36, 0.18),
        0 18px 34px rgba(185, 28, 28, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open::after,
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open::after,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open::after,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open::after {
    content: '可抽獎';
    position: absolute;
    top: 10px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 248, 220, 0.62);
    background: rgba(124, 45, 18, 0.24);
    color: #fff7d6;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    pointer-events: none;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open:hover,
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open:hover,
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open:focus-visible,
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open:focus-visible,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open:hover,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open:hover,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open:focus-visible,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open:focus-visible {
    box-shadow:
        0 0 0 2px rgba(153, 27, 27, 0.32),
        0 0 0 7px rgba(251, 191, 36, 0.22),
        0 22px 40px rgba(185, 28, 28, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

@media (max-width: 640px) {
    .hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open::after,
    .hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open::after,
    .hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open::after,
    .hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open::after {
        top: 8px;
        right: 10px;
        padding: 3px 8px;
        font-size: 10px;
    }
}


/* v95: quiz question pre-open mask, input overflow fix, and submitted answer display. */
.hunter-quiz-question-box strong {
    display: block;
    min-width: 0;
    transition: filter 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}

.hunter-quiz-question-box.is-masked {
    position: relative;
    overflow: hidden;
}

.hunter-quiz-question-box.is-masked strong {
    color: rgba(124, 45, 18, 0.45);
    filter: blur(6px);
    text-shadow: 0 0 10px rgba(124, 45, 18, 0.35);
    user-select: none;
}

.hunter-quiz-question-box.is-masked::after {
    content: '開放後顯示題目';
    position: absolute;
    right: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(120, 53, 15, 0.08);
    color: rgba(120, 53, 15, 0.78);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hunter-quiz-form,
.hunter-quiz-answer-row,
.hunter-quiz-answer-row > *,
.hunter-quiz-answer-row input,
.hunter-quiz-answer-row button {
    box-sizing: border-box !important;
}

.hunter-quiz-form {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.hunter-quiz-answer-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    align-items: stretch !important;
}

.hunter-quiz-answer-row input {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.hunter-quiz-submitted-answer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(34, 197, 94, 0.18);
    color: rgba(22, 101, 52, 0.92);
}

.hunter-quiz-submitted-answer strong {
    color: #166534;
    font-weight: 900;
}

@media (max-width: 768px) {
    .hunter-quiz-answer-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    .hunter-quiz-answer-row button {
        width: 100% !important;
        min-width: 0 !important;
    }
}


/* v97: formal quick quiz entry */
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz {
    position: relative !important;
    min-height: 84px !important;
    overflow: hidden !important;
    border-color: rgba(180, 83, 9, .68) !important;
    background:
        radial-gradient(circle at 96% 12%, rgba(251, 191, 36, .32), transparent 30%),
        linear-gradient(135deg, rgba(255, 251, 235, .98), rgba(254, 243, 199, .94) 48%, rgba(255, 237, 213, .96)) !important;
    box-shadow:
        0 10px 22px rgba(120, 53, 15, .14),
        inset 0 1px 0 rgba(255, 255, 255, .94) !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz::before,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz::before {
    content: "QUICK QUIZ";
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 0;
    border: 1px solid rgba(180, 83, 9, .22);
    border-radius: 999px;
    padding: 4px 8px;
    color: rgba(124, 45, 18, .62);
    background: rgba(255, 251, 235, .72);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .1em;
    line-height: 1;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz::after,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz::after {
    content: "";
    position: absolute;
    inset: auto 12px 10px auto;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 38% 34%, rgba(255, 255, 255, .78), transparent 23%),
        radial-gradient(circle, rgba(251, 191, 36, .26), transparent 68%);
    pointer-events: none;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz > span,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz > small,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz > span,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz > small {
    position: relative;
    z-index: 1;
    padding-right: 96px;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz > span,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz > span {
    color: #7c2d12 !important;
    letter-spacing: .01em;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz > small,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz > small {
    color: rgba(124, 45, 18, .78) !important;
    font-weight: 800 !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz[data-quiz-status="available"],
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz[data-quiz-status="available"] {
    border-color: rgba(34, 197, 94, .66) !important;
    background:
        radial-gradient(circle at 96% 12%, rgba(34, 197, 94, .22), transparent 30%),
        linear-gradient(135deg, rgba(240, 253, 244, .98), rgba(220, 252, 231, .94) 46%, rgba(255, 251, 235, .96)) !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz[data-quiz-status="available"]::before,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz[data-quiz-status="available"]::before {
    content: "OPEN";
    border-color: rgba(22, 101, 52, .24);
    color: #166534;
    background: rgba(240, 253, 244, .84);
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz[data-quiz-status="answered"],
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz[data-quiz-status="ended"],
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz[data-quiz-status="answered"],
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz[data-quiz-status="ended"] {
    border-color: rgba(148, 163, 184, .5) !important;
    background:
        radial-gradient(circle at 96% 12%, rgba(148, 163, 184, .18), transparent 30%),
        linear-gradient(135deg, rgba(248, 250, 252, .98), rgba(241, 245, 249, .94)) !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz[data-quiz-status="answered"]::before,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz[data-quiz-status="ended"]::before,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz[data-quiz-status="answered"]::before,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz[data-quiz-status="ended"]::before {
    content: "ENDED";
    border-color: rgba(71, 85, 105, .22);
    color: #475569;
    background: rgba(248, 250, 252, .82);
}

@media (max-width: 768px) {
    .hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz,
    .hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz {
        min-height: 78px !important;
        padding: 13px 14px !important;
    }

    .hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz::before,
    .hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz::before {
        top: 9px;
        right: 10px;
        padding: 4px 7px;
        font-size: 9px;
    }

    .hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz > span,
    .hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz > small,
    .hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz > span,
    .hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz > small {
        padding-right: 74px;
    }
}


/* v98: reward activity entries should look more distinct from regular minigames */
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal,
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--quiz,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--quiz {
    outline: 3px solid rgba(251, 191, 36, .22);
    outline-offset: 4px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .38),
        0 14px 28px rgba(120, 53, 15, .14),
        inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal small,
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--quiz small,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal small,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--quiz small {
    font-weight: 900 !important;
    letter-spacing: .01em;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal {
    border-width: 2px !important;
    box-shadow:
        0 0 0 1px rgba(255, 245, 212, .40),
        0 14px 28px rgba(153, 27, 27, .18),
        inset 0 1px 0 rgba(255, 255, 255, .28) !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz {
    border-width: 2px !important;
    background:
        radial-gradient(circle at 92% 14%, rgba(251, 191, 36, .42), transparent 26%),
        linear-gradient(135deg, rgba(255, 250, 240, .99), rgba(255, 243, 214, .97) 52%, rgba(255, 236, 210, .96)) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .42),
        0 14px 30px rgba(120, 53, 15, .14),
        inset 0 1px 0 rgba(255, 255, 255, .94) !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz::before,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz::before {
    content: "獎勵活動";
    border-color: rgba(180, 83, 9, .20);
    color: rgba(124, 45, 18, .72);
    background: rgba(255, 251, 235, .82);
    box-shadow: 0 4px 10px rgba(120, 53, 15, .08);
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz::after,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz::after {
    inset: auto 16px 12px auto;
    width: 54px;
    height: 54px;
    background:
        radial-gradient(circle at 38% 34%, rgba(255, 255, 255, .82), transparent 22%),
        radial-gradient(circle at 50% 50%, rgba(251, 191, 36, .34), transparent 68%);
    opacity: .9;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz > span,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz > span {
    font-size: 18px !important;
    font-weight: 950 !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz > small,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz > small {
    color: rgba(124, 45, 18, .82) !important;
    line-height: 1.35;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz[data-quiz-status="available"],
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz[data-quiz-status="available"] {
    outline-color: rgba(34, 197, 94, .24);
    border-color: rgba(22, 163, 74, .62) !important;
    background:
        radial-gradient(circle at 92% 14%, rgba(34, 197, 94, .22), transparent 28%),
        linear-gradient(135deg, rgba(240, 253, 244, .99), rgba(220, 252, 231, .95) 48%, rgba(255, 251, 235, .96)) !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz[data-quiz-status="available"]::before,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz[data-quiz-status="available"]::before {
    content: "開放中";
    border-color: rgba(22, 101, 52, .22);
    color: #166534;
    background: rgba(240, 253, 244, .88);
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz[data-quiz-status="answered"],
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz[data-quiz-status="ended"],
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz[data-quiz-status="answered"],
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz[data-quiz-status="ended"] {
    outline-color: rgba(148, 163, 184, .22);
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz[data-quiz-status="answered"]::before,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz[data-quiz-status="ended"]::before,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz[data-quiz-status="answered"]::before,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz[data-quiz-status="ended"]::before {
    content: "已結束";
    border-color: rgba(71, 85, 105, .18);
    color: #475569;
    background: rgba(248, 250, 252, .88);
}

@media (max-width: 768px) {
    .hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal,
    .hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--quiz,
    .hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal,
    .hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--quiz {
        outline-offset: 3px;
    }

    .hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz > span,
    .hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz > span {
        font-size: 17px !important;
    }

    .hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz::after,
    .hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz::after {
        width: 48px;
        height: 48px;
        inset: auto 12px 12px auto;
    }
}


/* v99: clearer separator between normal minigames and reward activities */
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal {
    position: relative !important;
    margin-top: 42px !important;
    overflow: visible !important;
    isolation: isolate;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal::before,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: -18px;
    height: 1px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0), rgba(245, 158, 11, .48) 12%, rgba(217, 119, 6, .85) 50%, rgba(245, 158, 11, .48) 88%, rgba(245, 158, 11, 0));
    pointer-events: none;
    z-index: 0;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal::after,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal::after {
    content: "獎勵活動專區";
    position: absolute;
    top: -33px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(217, 119, 6, .24);
    background: linear-gradient(180deg, rgba(255, 251, 235, .98), rgba(254, 243, 199, .96));
    color: rgba(146, 64, 14, .86);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(120, 53, 15, .08);
    pointer-events: none;
    z-index: 1;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal + .hunter-explore-game-entry--quiz,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal + .hunter-explore-game-entry--quiz {
    margin-top: 22px !important;
}

@media (max-width: 768px) {
    .hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal,
    .hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal {
        margin-top: 38px !important;
    }

    .hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal::before,
    .hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal::before {
        left: 6px;
        right: 6px;
        top: -16px;
    }

    .hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal::after,
    .hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal::after {
        top: -30px;
        font-size: 10px;
        padding: 5px 10px;
        letter-spacing: .10em;
    }
}


/* v100: cleaner reward section divider + teal quick quiz entry */
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal {
    margin-top: 34px !important;
    outline: none !important;
    overflow: visible !important;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal::before,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal::before {
    content: "" !important;
    position: absolute !important;
    left: 18px !important;
    right: 18px !important;
    top: -18px !important;
    height: 1px !important;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0), rgba(245, 158, 11, .50) 18%, rgba(180, 83, 9, .72) 50%, rgba(245, 158, 11, .50) 82%, rgba(245, 158, 11, 0)) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Remove the previous centered reward-zone label. It conflicted with the lottery badge. */
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal::after,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal::after {
    content: none !important;
    display: none !important;
}

/* Restore the public lottery badge to the top-right corner. */
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open::after,
.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open::after,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open::after,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open::after {
    content: "可抽獎" !important;
    position: absolute !important;
    top: 12px !important;
    right: 14px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 248, 220, .62) !important;
    background: rgba(124, 45, 18, .24) !important;
    color: #fff7d6 !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    letter-spacing: .04em !important;
    line-height: 1.1 !important;
    box-shadow: none !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal + .hunter-explore-game-entry--quiz,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal + .hunter-explore-game-entry--quiz {
    margin-top: 18px !important;
}

/* Quick quiz uses a teal reward-card theme so it does not look like the red lottery card or the normal minigames. */
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz {
    outline: none !important;
    border: 2px solid rgba(13, 148, 136, .58) !important;
    background:
        radial-gradient(circle at 92% 14%, rgba(45, 212, 191, .28), transparent 28%),
        radial-gradient(circle at 18% 100%, rgba(167, 243, 208, .26), transparent 30%),
        linear-gradient(135deg, rgba(240, 253, 250, .99), rgba(204, 251, 241, .95) 48%, rgba(255, 251, 235, .96)) !important;
    box-shadow:
        0 10px 22px rgba(15, 118, 110, .12),
        inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz::before,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz::before {
    content: "快問快答" !important;
    border-color: rgba(15, 118, 110, .22) !important;
    color: #0f766e !important;
    background: rgba(240, 253, 250, .88) !important;
    box-shadow: 0 4px 10px rgba(15, 118, 110, .08) !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz::after,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz::after {
    width: 50px !important;
    height: 50px !important;
    background:
        radial-gradient(circle at 38% 34%, rgba(255, 255, 255, .84), transparent 22%),
        radial-gradient(circle at 50% 50%, rgba(20, 184, 166, .24), transparent 68%) !important;
    opacity: .82 !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz > span,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz > span {
    color: #134e4a !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz > small,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz > small {
    color: rgba(15, 118, 110, .82) !important;
    font-weight: 900 !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz[data-quiz-status="available"],
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz[data-quiz-status="available"] {
    border-color: rgba(22, 163, 74, .66) !important;
    background:
        radial-gradient(circle at 92% 14%, rgba(34, 197, 94, .26), transparent 28%),
        linear-gradient(135deg, rgba(240, 253, 244, .99), rgba(220, 252, 231, .95) 48%, rgba(236, 253, 245, .96)) !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz[data-quiz-status="available"]::before,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz[data-quiz-status="available"]::before {
    content: "開放中" !important;
    border-color: rgba(22, 101, 52, .22) !important;
    color: #166534 !important;
    background: rgba(240, 253, 244, .90) !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz[data-quiz-status="answered"],
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz[data-quiz-status="ended"],
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz[data-quiz-status="answered"],
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz[data-quiz-status="ended"] {
    border-color: rgba(148, 163, 184, .46) !important;
    background:
        radial-gradient(circle at 92% 14%, rgba(148, 163, 184, .18), transparent 28%),
        linear-gradient(135deg, rgba(248, 250, 252, .99), rgba(241, 245, 249, .95)) !important;
}

.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz[data-quiz-status="answered"]::before,
.hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry--quiz[data-quiz-status="ended"]::before,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz[data-quiz-status="answered"]::before,
.hunter-page .hunter-explore-room:not(.is-playing-explore-game) .hunter-explore-game-entry--quiz[data-quiz-status="ended"]::before {
    content: "已結束" !important;
    border-color: rgba(71, 85, 105, .18) !important;
    color: #475569 !important;
    background: rgba(248, 250, 252, .88) !important;
}

@media (max-width: 768px) {
    .hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal,
    .hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal {
        margin-top: 30px !important;
    }

    .hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal::before,
    .hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal::before {
        left: 12px !important;
        right: 12px !important;
        top: -15px !important;
    }

    .hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open::after,
    .hunter-page .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open::after,
    .hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-internal-open::after,
    .hunter-page .hunter-game-card.hunter-explore-list-mode .hunter-explore-room .hunter-explore-game-entry.hunter-explore-game-entry--lottery-formal.is-public-open::after {
        top: 10px !important;
        right: 12px !important;
        padding: 3px 9px !important;
        font-size: 10px !important;
    }
}


/* v101: Snack Memory mobile scroll recovery
   - the previous compact/explore fixes made the memory panel participate in a flex fill layout,
     which could clip the lower part of the board on mobile.
   - keep the game inside the app scroller, but let the memory card grow naturally. */
@media (max-width: 768px) {
    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-game-views,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-game-views,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-game-views {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-subtab-panel[data-hunter-subtab-panel="memory"].active,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-subtab-panel[data-hunter-subtab-panel="memory"].active,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-subtab-panel[data-hunter-subtab-panel="memory"].active {
        display: block !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding-bottom: 22px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-subtab-panel[data-hunter-subtab-panel="memory"].active .hunter-minigame-shell,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-subtab-panel[data-hunter-subtab-panel="memory"].active .hunter-minigame-shell,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-subtab-panel[data-hunter-subtab-panel="memory"].active .hunter-minigame-shell {
        display: block !important;
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-memory-game-card,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-memory-game-card,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-memory-game-card {
        display: block !important;
        flex: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        margin-bottom: 24px !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-memory-board,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-memory-board,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-memory-board {
        min-height: 0 !important;
        align-content: start !important;
        padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)) !important;
    }

    body.hunter-page.hunter-explore-playing-mode #hunterGameRoot.hunter-game-card .hunter-memory-game-card.is-playing .hunter-memory-board,
    .hunter-page #hunterGameRoot.hunter-game-card.hunter-explore-playing-mode .hunter-memory-game-card.is-playing .hunter-memory-board,
    .hunter-page #hunterGameRoot.hunter-game-card:has(.hunter-explore-room.active.is-playing-explore-game) .hunter-memory-game-card.is-playing .hunter-memory-board {
        min-height: 0 !important;
    }
}
