/* css/hunter/base.css */


/* =========================
   Hunter Header
========================= */

.hunter-top-bar {
    margin-bottom: 18px;
}

.hunter-title {
    margin-bottom: 4px;
}

.hunter-subtitle {
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.line-login-btn {
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;

    background: #06c755;
    color: #ffffff;

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

    cursor: pointer;
    box-shadow: 0 4px 12px rgba(6, 199, 85, .22);
}

.line-login-btn:hover {
    opacity: .92;
}

/* =========================
   Hunter Preview Card
========================= */

.hunter-preview-card {
    position: relative;
    overflow: hidden;

    padding: 22px;
    border-radius: 24px;

    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, .24), transparent 34%),
        radial-gradient(circle at bottom left, rgba(249, 115, 22, .08), transparent 32%),
        linear-gradient(180deg, #fffaf0, #ffffff);

    border: 2px solid #f6c453;
    box-shadow:
        0 3px 0 #d97706,
        0 14px 30px rgba(15, 23, 42, .12);
}

.hunter-preview-badge {
    display: inline-flex;
    align-items: center;

    margin-bottom: 12px;
    padding: 5px 10px;

    border-radius: 999px;

    background: #111827;
    color: #facc15;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.hunter-preview-card h1 {
    margin: 0 0 8px;

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

.hunter-preview-card p {
    max-width: 680px;
    margin: 0 0 18px;

    color: #6b7280;

    line-height: 1.75;
    font-size: 15px;
    font-weight: 700;
}

/* =========================
   Shared Section Panel
========================= */

.hunter-character-section,
.glove-preview-section {
    margin: 18px 0;
    padding: 14px;

    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(253, 230, 138, .85);
}

.hunter-section-title,
.glove-preview-title {
    margin-bottom: 12px;

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

/* =========================
   Hunter Game Shell
========================= */

.hunter-game-shell {
    display: flex;
    flex-direction: column;

    height: min(720px, calc(100svh - 170px));
    min-height: 560px;

    overflow: hidden;

    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, .12), transparent 36%),
        rgba(255, 255, 255, .58);

    border: 2px solid rgba(243, 213, 139, .9);

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

.hunter-game-views {
    flex: 1 1 auto;

    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 14px;
}

.hunter-bottom-nav {
    flex: 0 0 auto;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;

    padding: 8px;

    background:
        linear-gradient(180deg, rgba(255, 251, 235, .92), rgba(255, 247, 237, .98));

    border-top: 2px solid #f3d58b;

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

.hunter-bottom-nav-btn {
    appearance: none;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;

    min-width: 0;
    min-height: 54px;

    padding: 7px 4px;
    border-radius: 14px;

    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(253, 230, 138, .9);

    color: #92400e;
    font-family: inherit;

    cursor: pointer;

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

    transition:
        transform .14s ease,
        background .14s ease,
        border-color .14s ease,
        box-shadow .14s ease;
}

.hunter-bottom-nav-btn span {
    font-size: 18px;
    line-height: 1;
}

.hunter-bottom-nav-btn strong {
    display: block;

    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.hunter-bottom-nav-btn:hover {
    transform: translateY(-1px);
    border-color: #f59e0b;
}

.hunter-bottom-nav-btn.active {
    background:
        radial-gradient(circle at top, rgba(251, 191, 36, .22), transparent 42%),
        #111827;

    border-color: #f59e0b;
    color: #facc15;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        0 3px 0 rgba(0, 0, 0, .28),
        0 8px 16px rgba(15, 23, 42, .12);
}

.hunter-bottom-nav-btn:active {
    transform: translateY(1px);
}

.hunter-game-views {
    min-height: 0;
}

.hunter-game-view {
    min-height: 0;
    animation: hunterGameViewIn .18s ease;
}

.hunter-game-view[hidden] {
    display: none !important;
}

.hunter-game-view[data-hunter-view="archive"] {
    display: block;
}

.hunter-game-view[data-hunter-view="archive"] .hunter-lore-content {
    overflow: visible;
}

/* =========================
   Hunter boot loading gate
========================= */

.hunter-boot-loader {
    display: none;
}

.hunter-page.hunter-boot-loading .hunter-game-shell,
.hunter-page.hunter-is-booting .hunter-game-shell,
.hunter-page.hunter-boot-failed .hunter-game-shell {
    display: none;
}

.hunter-page.hunter-boot-loading .hunter-tutorial-task-card,
.hunter-page.hunter-boot-loading .hunter-tutorial-overlay,
.hunter-page.hunter-boot-loading .hunter-tutorial-unlock-burst,
.hunter-page.hunter-is-booting .hunter-tutorial-task-card,
.hunter-page.hunter-is-booting .hunter-tutorial-overlay,
.hunter-page.hunter-is-booting .hunter-tutorial-unlock-burst,
.hunter-page.hunter-boot-failed .hunter-tutorial-task-card,
.hunter-page.hunter-boot-failed .hunter-tutorial-overlay,
.hunter-page.hunter-boot-failed .hunter-tutorial-unlock-burst {
    display: none !important;
}

.hunter-page.hunter-boot-loading .hunter-boot-loader,
.hunter-page.hunter-is-booting .hunter-boot-loader,
.hunter-page.hunter-boot-failed .hunter-boot-loader {
    display: grid;
    place-items: center;
    height: min(720px, calc(100svh - 170px));
    min-height: 560px;
    padding: 18px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 236, 169, .32), transparent 34%),
        radial-gradient(circle at 70% 72%, rgba(251, 146, 60, .16), transparent 34%),
        linear-gradient(180deg, rgba(255, 251, 235, .92), rgba(255, 255, 255, .82));
    border: 2px solid rgba(243, 213, 139, .9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 3px 0 #d6a94f,
        0 10px 24px rgba(15, 23, 42, .08);
}

.hunter-boot-loader-card {
    width: min(360px, calc(100vw - 56px));
    padding: 22px 20px 20px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top, rgba(255, 213, 116, .24), transparent 44%),
        linear-gradient(180deg, rgba(39, 27, 20, .98), rgba(15, 23, 42, .96));
    border: 2px solid rgba(255, 222, 139, .84);
    color: #fff7db;
    text-align: center;
    box-shadow:
        0 18px 48px rgba(0, 0, 0, .26),
        0 0 22px rgba(255, 193, 72, .16),
        inset 0 1px 0 rgba(255,255,255,.16);
    animation: hunterBootCardIn .36s ease-out both;
}

.hunter-boot-loader-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 10px;
    border-radius: 20px;
    background: rgba(255, 221, 135, .15);
    font-size: 34px;
    animation: hunterBootDog 1.05s ease-in-out infinite;
}

.hunter-boot-loader-title {
    color: #ffd66f;
    font-size: 20px;
    font-weight: 1000;
}

.hunter-boot-loader-text {
    margin-top: 8px;
    color: rgba(255, 247, 219, .84);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.65;
}


/* Backward-compatible aliases for older boot error markup. */
.hunter-boot-card {
    width: min(360px, calc(100vw - 56px));
    padding: 22px 20px 20px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top, rgba(255, 213, 116, .24), transparent 44%),
        linear-gradient(180deg, rgba(39, 27, 20, .98), rgba(15, 23, 42, .96));
    border: 2px solid rgba(255, 222, 139, .84);
    color: #fff7db;
    text-align: center;
    box-shadow:
        0 18px 48px rgba(0, 0, 0, .26),
        0 0 22px rgba(255, 193, 72, .16),
        inset 0 1px 0 rgba(255,255,255,.16);
}
.hunter-boot-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 10px;
    border-radius: 20px;
    background: rgba(255, 221, 135, .15);
    font-size: 34px;
}
.hunter-boot-title {
    color: #ffd66f;
    font-size: 20px;
    font-weight: 1000;
}
.hunter-boot-text {
    margin-top: 8px;
    color: rgba(255, 247, 219, .84);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.65;
}

.hunter-boot-loader-bar {
    position: relative;
    height: 10px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .28);
}

.hunter-boot-loader-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(90deg, #fde68a, #f59e0b, #facc15);
    box-shadow: 0 0 16px rgba(250, 204, 21, .42);
    animation: hunterBootBar 1.08s ease-in-out infinite;
}

.hunter-page.hunter-boot-ready .hunter-game-shell {
    animation: hunterGameReadyIn .28s ease-out both;
}

@keyframes hunterBootCardIn {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hunterBootDog {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-6px) rotate(4deg); }
}

@keyframes hunterBootBar {
    0% { transform: translateX(-110%); }
    55% { transform: translateX(95%); }
    100% { transform: translateX(240%); }
}

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

@media (max-width: 640px) {
    .hunter-page.hunter-boot-loading .hunter-boot-loader,
.hunter-page.hunter-is-booting .hunter-boot-loader,
.hunter-page.hunter-boot-failed .hunter-boot-loader {
        height: min(690px, calc(100svh - 145px));
        min-height: 500px;
    }
}

/* =========================
   Hunter Internal Tabs
========================= */

.hunter-subtab-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 14px;
    padding: 6px;
    border: 1px solid rgba(245, 158, 11, .24);
    border-radius: 18px;
    background: rgba(255, 251, 235, .72);
}

.hunter-subtab-btn {
    appearance: none;
    min-width: 0;
    border: 1px solid rgba(253, 230, 138, .9);
    border-radius: 14px;
    padding: 10px 8px;
    cursor: pointer;
    color: #92400e;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    background: rgba(255, 255, 255, .76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 0 rgba(217, 119, 6, .12);
    transition: transform .14s ease, background .14s ease, border-color .14s ease, color .14s ease;
}

.hunter-subtab-btn.active {
    color: #facc15;
    border-color: #f59e0b;
    background:
        radial-gradient(circle at top, rgba(251, 191, 36, .22), transparent 46%),
        #111827;
}

.hunter-subtab-btn:active {
    transform: translateY(1px);
}

.hunter-subtab-panel {
    display: grid;
    gap: 14px;
}

.hunter-subtab-panel[hidden] {
    display: none !important;
}

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

.line-login-btn.is-bound {
    background: #111827;
    color: #bbf7d0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        0 4px 0 rgba(0, 0, 0, .28),
        0 8px 18px rgba(15, 23, 42, .14);
}

.line-login-btn.is-bound:hover {
    opacity: .96;
}

/* =========================
   Hunter LINE switch modal
========================= */

body.hunter-line-modal-open {
    overflow: hidden;
}

.hunter-line-switch-modal {
    position: fixed;
    inset: 0;
    z-index: 9600;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background:
        radial-gradient(circle at 50% 22%, rgba(6, 199, 85, .24), transparent 28%),
        rgba(6, 9, 16, .68);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease-out;
}

.hunter-line-switch-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.hunter-line-switch-card {
    position: relative;
    width: min(430px, calc(100vw - 32px));
    max-height: min(560px, calc(100svh - 36px));
    overflow-y: auto;
    box-sizing: border-box;
    padding: 20px 18px 18px;
    border: 2px solid rgba(187, 247, 208, .74);
    border-radius: 24px;
    background:
        radial-gradient(circle at top, rgba(34, 197, 94, .2), transparent 42%),
        linear-gradient(180deg, rgba(24, 36, 28, .98), rgba(17, 24, 39, .98));
    color: #f0fdf4;
    text-align: center;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, .52),
        0 0 24px rgba(34, 197, 94, .18),
        inset 0 1px 0 rgba(255, 255, 255, .16);
    transform: translateY(14px) scale(.96);
    transition: transform .2s cubic-bezier(.22,.9,.24,1.08);
}

.hunter-line-switch-modal.is-visible .hunter-line-switch-card {
    transform: translateY(0) scale(1);
}

.hunter-line-switch-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    border-radius: 16px;
    background: rgba(34, 197, 94, .16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
    font-size: 26px;
}

.hunter-line-switch-kicker {
    margin-bottom: 5px;
    color: #86efac;
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: .08em;
}

.hunter-line-switch-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 1000;
    line-height: 1.25;
}

.hunter-line-switch-text {
    margin-top: 10px;
    color: rgba(240, 253, 244, .82);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.65;
}

.hunter-line-switch-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.hunter-line-switch-pill {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px 9px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
}

.hunter-line-switch-pill span {
    color: rgba(240, 253, 244, .72);
    font-size: 11px;
    font-weight: 900;
}

.hunter-line-switch-pill strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 15px;
    font-weight: 1000;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hunter-line-switch-pill.is-line {
    border-color: rgba(134, 239, 172, .42);
    background: rgba(34, 197, 94, .14);
}

.hunter-line-switch-arrow {
    color: #86efac;
    font-size: 18px;
    font-weight: 1000;
}

.hunter-line-switch-warning {
    margin-top: 12px;
    padding: 10px 11px;
    border: 1px solid rgba(253, 230, 138, .34);
    border-radius: 16px;
    background: rgba(253, 230, 138, .08);
    color: #fef3c7;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.55;
    text-align: left;
}

.hunter-line-switch-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 15px;
}

.hunter-line-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 1000;
    cursor: pointer;
}

.hunter-line-switch-btn.is-primary {
    border: 0;
    background: linear-gradient(135deg, #bbf7d0, #22c55e);
    color: #052e16;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.45),
        0 4px 0 rgba(20, 83, 45, .86),
        0 10px 18px rgba(0, 0, 0, .22);
}

.hunter-line-switch-btn.is-secondary {
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: #f0fdf4;
}

.hunter-line-switch-btn:active {
    transform: translateY(2px);
}

.hunter-line-switch-btn:disabled,
.hunter-line-switch-btn.is-loading {
    opacity: .72;
    cursor: wait;
}

@media (max-width: 420px) {
    .hunter-line-switch-card {
        padding: 18px 14px 15px;
        border-radius: 21px;
    }

    .hunter-line-switch-title {
        font-size: 18px;
    }

    .hunter-line-switch-text {
        font-size: 13px;
    }

    .hunter-line-switch-compare {
        grid-template-columns: 1fr;
    }

    .hunter-line-switch-arrow {
        transform: rotate(90deg);
    }
}

body.hunter-line-login-moved {
    overflow: hidden;
}

.hunter-line-login-moved-card .hunter-line-switch-warning {
    text-align: center;
}

/* v78: LINE switch modal mobile safe area / overflow guard */
@media (max-width: 640px) {
    .hunter-line-switch-modal {
        z-index: 9800;
        align-items: center;
        justify-items: center;
        padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
        overflow: auto;
        overscroll-behavior: contain;
    }

    .hunter-line-switch-card {
        width: min(100%, calc(100vw - 24px));
        max-width: 430px;
        max-height: calc(100svh - 24px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hunter-line-switch-actions {
        position: sticky;
        bottom: 0;
        padding-top: 8px;
        background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, .98) 32%);
    }
}

/* v79: hard guard for LINE switch modal on mobile.
   Keep the switch confirmation centered and above tutorial overlays. */
.hunter-line-switch-modal {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 12000 !important;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
}

.hunter-line-switch-card {
    box-sizing: border-box;
    margin: auto;
}

@media (max-width: 640px) {
    .hunter-line-switch-modal {
        padding: max(12px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)) !important;
    }

    .hunter-line-switch-card {
        width: min(430px, calc(100vw - 20px)) !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100dvh - 24px) !important;
        overflow-y: auto !important;
        transform-origin: center center;
    }
}

/* =========================
   Hunter Inventory / Backpack v1.2
   - base storage row instead of floating badge
   - grid-slot backpack modal
========================= */

.hunter-page .hunter-base-stage {
    position: relative;
}

.hunter-base-storage-row {
    position: relative;
    z-index: 7;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 12px;
}

.hunter-base-storage-card {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    min-width: 0;
    min-height: 64px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-radius: 20px;
    border: 1px solid rgba(253, 230, 138, .66);
    background:
        linear-gradient(180deg, rgba(255, 251, 235, .92), rgba(254, 243, 199, .74)),
        radial-gradient(circle at top left, rgba(251, 191, 36, .24), transparent 54%);
    color: #78350f;
    font-family: inherit;
    text-align: left;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .72),
        0 8px 18px rgba(67, 20, 7, .14),
        0 2px 0 rgba(180, 83, 9, .22);
}

button.hunter-base-storage-card:not(:disabled) {
    cursor: pointer;
}

button.hunter-base-storage-card:not(:disabled):hover,
button.hunter-base-storage-card:not(:disabled):focus-visible {
    transform: translateY(-1px);
    border-color: rgba(245, 158, 11, .92);
    filter: brightness(1.02);
    outline: none;
}

.hunter-base-storage-card.is-disabled {
    cursor: not-allowed;
    opacity: 1;
    filter: grayscale(.08) saturate(.88);
}

button.hunter-base-storage-card:disabled {
    opacity: 1;
    -webkit-text-fill-color: currentColor;
}

button.hunter-base-storage-card:disabled * {
    -webkit-text-fill-color: currentColor;
}

.hunter-base-storage-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(180deg, #fef3c7, #fed7aa);
    border: 1px solid rgba(251, 191, 36, .62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62);
    font-size: 22px;
    line-height: 1;
}

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

.hunter-base-storage-copy strong,
.hunter-inventory-open-text {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #451a03;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.2;
}

.hunter-base-storage-copy small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #92400e;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
}

.hunter-base-storage-soon {
    position: static;
    justify-self: end;
    align-self: start;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(120, 53, 15, .1);
    color: rgba(120, 53, 15, .72);
    font-size: 10px;
    font-weight: 950;
    line-height: 1.25;
}

.hunter-inventory-open-btn.has-items {
    border-color: rgba(34, 197, 94, .64);
    background:
        linear-gradient(180deg, rgba(236, 253, 245, .94), rgba(220, 252, 231, .78)),
        radial-gradient(circle at top left, rgba(34, 197, 94, .18), transparent 54%);
}

.hunter-inventory-open-btn.has-items .hunter-base-storage-icon {
    background: linear-gradient(180deg, #dcfce7, #bbf7d0);
    border-color: rgba(34, 197, 94, .56);
}

.hunter-inventory-open-btn.is-loading .hunter-base-storage-icon {
    animation: hunterInventoryPulse 1.1s ease-in-out infinite alternate;
}

.hunter-inventory-badge {
    position: absolute;
    top: -8px;
    right: -7px;
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    place-items: center;
    border-radius: 999px;
    background: #ef4444;
    border: 2px solid #fff7ed;
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 2px 0 rgba(127, 29, 29, .45);
}

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

.hunter-inventory-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 16px;
}

.hunter-inventory-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.hunter-inventory-panel {
    position: relative;
    z-index: 1;
    width: min(440px, calc(100vw - 28px));
    max-height: min(82svh, 640px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, .22), transparent 36%),
        linear-gradient(180deg, #fffaf0, #ffffff);
    border: 2px solid rgba(245, 158, 11, .58);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .28), 0 3px 0 rgba(180, 83, 9, .65);
}

.hunter-inventory-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 10px;
    border-bottom: 1px solid rgba(251, 191, 36, .26);
}

.hunter-inventory-kicker {
    margin-bottom: 4px;
    color: #92400e;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .14em;
}

.hunter-inventory-head h3 {
    margin: 0 0 5px;
    color: #111827;
    font-size: 20px;
    font-weight: 950;
}

.hunter-inventory-head p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
}

.hunter-inventory-close-btn {
    appearance: none;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(251, 191, 36, .5);
    border-radius: 12px;
    background: rgba(255, 255, 255, .74);
    color: #92400e;
    font-family: inherit;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.hunter-inventory-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    overflow-y: auto;
    padding: 14px 18px;
    -webkit-overflow-scrolling: touch;
}

.hunter-inventory-slot {
    appearance: none;
    position: relative;
    min-width: 0;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: 16px;
    border: 1px solid rgba(217, 119, 6, .36);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 247, 237, .78)),
        radial-gradient(circle at 50% 10%, rgba(251, 191, 36, .28), transparent 54%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 2px 0 rgba(217, 119, 6, .12);
    color: #111827;
    font-family: inherit;
    text-align: center;
    overflow: hidden;
}

button.hunter-inventory-slot {
    cursor: pointer;
}

button.hunter-inventory-slot:hover,
button.hunter-inventory-slot:focus-visible {
    border-color: rgba(245, 158, 11, .76);
    outline: none;
    transform: translateY(-1px);
}

.hunter-inventory-slot-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(180deg, #fef3c7, #fed7aa);
    border: 1px solid rgba(251, 191, 36, .58);
    font-size: 21px;
    line-height: 1;
}

.hunter-inventory-slot.has-item-image {
    justify-content: flex-end;
    padding-top: 18px;
    background:
        radial-gradient(circle at 50% 22%, rgba(124, 58, 237, .2), transparent 42%),
        linear-gradient(180deg, rgba(255, 251, 235, .94), rgba(255, 247, 237, .8));
}

.hunter-inventory-slot-image-wrap {
    display: grid;
    width: min(72px, 76%);
    height: 46px;
    place-items: center;
    margin-top: 2px;
    filter: drop-shadow(0 5px 8px rgba(92, 42, 10, .28));
}

.hunter-inventory-slot-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hunter-inventory-slot strong {
    display: -webkit-box;
    width: 100%;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #111827;
    font-size: 11px;
    font-weight: 950;
    line-height: 1.15;
}

.hunter-inventory-slot em {
    position: absolute;
    right: 6px;
    bottom: 5px;
    min-width: 24px;
    padding: 2px 5px;
    border-radius: 999px;
    background: #92400e;
    color: #fff7ed;
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
    line-height: 1.25;
}

.hunter-inventory-slot-type {
    position: absolute;
    top: 5px;
    left: 5px;
    max-width: calc(100% - 10px);
    padding: 2px 5px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .86);
    color: #fde68a;
    font-size: 9px;
    font-weight: 950;
    line-height: 1.2;
    transform: scale(.92);
    transform-origin: top left;
}

.hunter-inventory-slot.is-empty {
    border-style: dashed;
    border-color: rgba(180, 83, 9, .2);
    background: rgba(255, 255, 255, .38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .46);
    color: rgba(146, 64, 14, .28);
}

.hunter-inventory-slot-empty-mark {
    font-size: 20px;
    font-weight: 950;
}

.hunter-inventory-slot.is-loading {
    pointer-events: none;
    opacity: .72;
    animation: hunterInventoryPulse 1.1s ease-in-out infinite alternate;
}

@keyframes hunterInventoryPulse {
    from { opacity: .52; }
    to { opacity: .9; }
}

.hunter-inventory-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px 16px;
    border-top: 1px solid rgba(251, 191, 36, .22);
}

.hunter-inventory-refresh-btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    background: #111827;
    color: #fef3c7;
    font-family: inherit;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.hunter-inventory-refresh-btn:disabled {
    cursor: wait;
    opacity: .68;
}

.hunter-inventory-actions small {
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
    text-align: right;
}

.hunter-inventory-detail-open {
    overflow: hidden;
}

.hunter-inventory-detail-modal[hidden] {
    display: none !important;
}

.hunter-inventory-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 18px;
}

.hunter-inventory-detail-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, .64);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.hunter-inventory-detail-panel {
    position: relative;
    z-index: 1;
    width: min(420px, calc(100vw - 28px));
    max-height: min(84svh, 660px);
    overflow-y: auto;
    padding: 22px 20px 18px;
    border-radius: 26px;
    border: 2px solid rgba(245, 158, 11, .64);
    background:
        radial-gradient(circle at 50% 0%, rgba(124, 58, 237, .16), transparent 36%),
        linear-gradient(180deg, #fff7ed, #ffffff);
    box-shadow: 0 24px 52px rgba(15, 23, 42, .34), 0 3px 0 rgba(180, 83, 9, .7);
    color: #111827;
    text-align: center;
}

.hunter-inventory-detail-close {
    appearance: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(251, 191, 36, .5);
    border-radius: 12px;
    background: rgba(255, 255, 255, .76);
    color: #92400e;
    font-family: inherit;
    font-size: 22px;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
}

.hunter-inventory-detail-visual {
    display: grid;
    width: min(230px, 72vw);
    min-height: 150px;
    place-items: center;
    margin: 0 auto 8px;
}

.hunter-inventory-detail-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 190px;
    object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(92, 42, 10, .32));
}

.hunter-inventory-detail-fallback-icon {
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    border-radius: 28px;
    border: 1px solid rgba(251, 191, 36, .58);
    background: linear-gradient(180deg, #fef3c7, #fed7aa);
    font-size: 48px;
}

.hunter-inventory-detail-kicker {
    display: inline-grid;
    margin: 0 auto 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .88);
    color: #fde68a;
    font-size: 11px;
    font-weight: 950;
    line-height: 1.2;
}

.hunter-inventory-detail-panel h3 {
    margin: 0;
    color: #451a03;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.2;
}

.hunter-inventory-detail-summary {
    margin: 9px 0 14px;
    color: #92400e;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.55;
}

.hunter-inventory-detail-meta {
    display: grid;
    gap: 8px;
    margin: 0;
    text-align: left;
}

.hunter-inventory-detail-meta div {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(251, 191, 36, .28);
    background: rgba(255, 251, 235, .72);
}

.hunter-inventory-detail-meta dt {
    color: #92400e;
    font-size: 12px;
    font-weight: 950;
}

.hunter-inventory-detail-meta dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #111827;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.45;
}

.hunter-inventory-detail-primary {
    appearance: none;
    width: 100%;
    margin-top: 14px;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #111827, #020617);
    color: #fef3c7;
    font-family: inherit;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 3px 0 rgba(2, 6, 23, .36);
}

.hunter-inventory-detail-primary:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 rgba(2, 6, 23, .36);
}

@media (max-width: 768px) {
    .hunter-page .hunter-base-storage-row {
        position: absolute;
        top: 312px;
        left: 12px;
        right: 12px;
        z-index: 7;
        margin: 0;
        gap: 8px;
        pointer-events: auto;
    }

    .hunter-page .hunter-base-storage-card {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        min-height: 64px;
        padding: 9px 10px;
        border-radius: 18px;
        background:
            linear-gradient(180deg, rgba(255, 251, 235, .9), rgba(254, 243, 199, .74)),
            radial-gradient(circle at top left, rgba(251, 191, 36, .2), transparent 54%);
        backdrop-filter: blur(7px);
    }

    .hunter-page .hunter-base-storage-icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        font-size: 20px;
    }

    .hunter-page .hunter-base-storage-copy strong,
    .hunter-page .hunter-inventory-open-text {
        font-size: 13px;
    }

    .hunter-page .hunter-base-storage-copy small {
        font-size: 10px;
    }

    .hunter-page .hunter-base-storage-soon {
        align-self: start;
        font-size: 9px;
        line-height: 1.15;
        padding: 3px 6px;
    }

    .hunter-inventory-modal {
        align-items: end;
        padding: 10px;
    }

    .hunter-inventory-panel {
        width: 100%;
        max-height: 78svh;
        border-radius: 22px 22px 18px 18px;
    }

    .hunter-inventory-head {
        padding: 16px 14px 9px;
    }

    .hunter-inventory-list {
        gap: 8px;
        padding: 12px 14px;
    }

    .hunter-inventory-slot {
        border-radius: 14px;
        padding: 7px 5px;
    }

    .hunter-inventory-slot-icon {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        font-size: 19px;
    }

    .hunter-inventory-slot-image-wrap {
        width: min(62px, 78%);
        height: 38px;
    }

    .hunter-inventory-slot strong {
        font-size: 10px;
    }

    .hunter-inventory-actions {
        align-items: stretch;
        flex-direction: column;
        padding: 10px 14px 14px;
    }

    .hunter-inventory-actions small {
        text-align: left;
    }

    .hunter-inventory-detail-panel {
        padding: 18px 15px 15px;
        border-radius: 22px;
    }

    .hunter-inventory-detail-visual {
        min-height: 124px;
        margin-bottom: 6px;
    }

    .hunter-inventory-detail-image {
        max-height: 150px;
    }

    .hunter-inventory-detail-panel h3 {
        font-size: 20px;
    }

    .hunter-inventory-detail-meta div {
        grid-template-columns: 74px minmax(0, 1fr);
        padding: 9px 10px;
    }
}

/* =========================
   Archive tabs / embedded inventory
========================= */
.hunter-archive-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hunter-archive-panel {
    min-width: 0;
}

.hunter-inventory-archive {
    position: static;
    inset: auto;
    z-index: auto;
    display: block;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
}

.hunter-inventory-archive .hunter-inventory-panel {
    width: 100%;
    max-width: none;
    max-height: none;
    overflow: visible;
    margin: 0;
}

.hunter-archive-placeholder {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px;
    border: 1px solid rgba(245, 158, 11, .34);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 251, 235, .94), rgba(255, 247, 237, .84));
    box-shadow: 0 10px 22px rgba(120, 53, 15, .1);
}

.hunter-archive-placeholder-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(180deg, #fef3c7, #fed7aa);
    font-size: 26px;
}

.hunter-archive-placeholder h3 {
    margin: 3px 0 6px;
    color: #451a03;
}

.hunter-archive-placeholder p {
    margin: 0;
    color: #92400e;
    font-size: 13px;
    line-height: 1.65;
}

.hunter-mailbox-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(245, 158, 11, .34);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, .12), transparent 34%),
        linear-gradient(180deg, rgba(255, 251, 235, .94), rgba(255, 247, 237, .84));
    box-shadow: 0 10px 22px rgba(120, 53, 15, .1);
}

.hunter-mailbox-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hunter-mailbox-head h3 {
    margin: 0 0 6px;
    color: #451a03;
}

.hunter-mailbox-head p {
    margin: 0;
    color: #92400e;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
}

.hunter-mailbox-list {
    display: grid;
    gap: 10px;
}

.hunter-mailbox-empty {
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 28px 18px;
    border: 1px dashed rgba(180, 83, 9, .28);
    border-radius: 18px;
    background: rgba(255, 255, 255, .46);
    color: #92400e;
    text-align: center;
}

.hunter-mailbox-empty-icon {
    font-size: 34px;
    line-height: 1;
}

.hunter-mailbox-empty strong {
    color: #451a03;
    font-size: 15px;
    font-weight: 950;
}

.hunter-mailbox-empty span {
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
}

.hunter-mailbox-message {
    appearance: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(128px, auto);
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(245, 158, 11, .42);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, .14), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 247, 237, .76));
    color: #111827;
    font-family: inherit;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 2px 0 rgba(217, 119, 6, .12);
    cursor: pointer;
}

.hunter-mailbox-message:hover,
.hunter-mailbox-message:focus-visible {
    border-color: rgba(245, 158, 11, .82);
    outline: none;
    transform: translateY(-1px);
}

.hunter-mailbox-message-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(180deg, #fef3c7, #fed7aa);
    border: 1px solid rgba(251, 191, 36, .56);
    font-size: 22px;
}

.hunter-mailbox-message-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.hunter-mailbox-message-copy strong {
    overflow: hidden;
    color: #451a03;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hunter-mailbox-message-copy small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.hunter-mailbox-message em {
    color: #6b7280;
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
    line-height: 1.3;
    text-align: right;
    white-space: nowrap;
}

.hunter-mailbox-detail-open {
    overflow: hidden;
}

.hunter-mailbox-detail-modal[hidden] {
    display: none !important;
}

.hunter-mailbox-detail-modal {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    z-index: 125;
    display: grid;
    place-items: center;
    padding: 18px;
}

.hunter-mailbox-detail-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, .66);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.hunter-mailbox-detail-panel {
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    width: min(520px, calc(100vw - 28px));
    max-height: min(86svh, 700px);
    overflow-y: auto;
    padding: 22px 20px 18px;
    border-radius: 26px;
    border: 2px solid rgba(245, 158, 11, .64);
    background:
        radial-gradient(circle at 50% 0%, rgba(124, 58, 237, .16), transparent 36%),
        linear-gradient(180deg, #fff7ed, #ffffff);
    box-shadow: 0 24px 52px rgba(15, 23, 42, .34), 0 3px 0 rgba(180, 83, 9, .7);
    color: #111827;
}

.hunter-mailbox-detail-panel * {
    box-sizing: border-box;
}

.hunter-mailbox-detail-close {
    appearance: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(251, 191, 36, .5);
    border-radius: 12px;
    background: rgba(255, 255, 255, .76);
    color: #92400e;
    font-family: inherit;
    font-size: 22px;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
}

.hunter-mailbox-detail-panel h3 {
    margin: 0 38px 8px 0;
    color: #451a03;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.25;
}

.hunter-mailbox-detail-summary,
.hunter-mailbox-detail-body p {
    color: #92400e;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
}

.hunter-mailbox-prize-card,
.hunter-mailbox-source-card,
.hunter-mailbox-reason-card {
    display: grid;
    gap: 5px;
    margin: 14px 0 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(251, 191, 36, .38);
    background: linear-gradient(180deg, rgba(255, 251, 235, .92), rgba(255, 247, 237, .72));
    text-align: center;
}

.hunter-mailbox-source-card {
    text-align: left;
}

.hunter-mailbox-prize-card span,
.hunter-mailbox-source-card span,
.hunter-mailbox-reason-card span {
    color: #92400e;
    font-size: 11px;
    font-weight: 950;
}

.hunter-mailbox-prize-card strong,
.hunter-mailbox-source-card strong {
    color: #451a03;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.hunter-mailbox-prize-card small {
    color: #6b7280;
    font-size: 12px;
    font-weight: 850;
}

.hunter-mailbox-reason-card {
    text-align: left;
}

.hunter-mailbox-reason-card p {
    margin: 0;
    color: #451a03;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.55;
}

.hunter-mailbox-voucher {
    display: grid;
    gap: 10px;
}

.hunter-mailbox-voucher-image-wrap {
    display: grid;
    gap: 7px;
    justify-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .68);
    border: 1px solid rgba(251, 191, 36, .28);
}

.hunter-mailbox-voucher-image {
    display: block;
    width: 100%;
    max-height: 430px;
    object-fit: contain;
    border-radius: 12px;
}

.hunter-mailbox-voucher-image-wrap small {
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}

.hunter-mailbox-code-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(251, 191, 36, .28);
    background: rgba(255, 251, 235, .72);
}

.hunter-mailbox-code-row span {
    color: #92400e;
    font-size: 12px;
    font-weight: 950;
}

.hunter-mailbox-code-row code {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #111827;
    font-size: 12px;
    font-weight: 850;
}

.hunter-mailbox-code-row button,
.hunter-mailbox-voucher-link {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 8px 10px;
    background: #111827;
    color: #fef3c7;
    font-family: inherit;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
    cursor: pointer;
}

.hunter-mailbox-voucher-link {
    display: inline-grid;
    justify-self: stretch;
    place-items: center;
    padding: 11px 14px;
}

@media (max-width: 640px) {
    .hunter-page .hunter-archive-book {
        min-height: 0;
        height: auto;
        overflow: visible;
    }

    .hunter-page .hunter-archive-tabs {
        position: sticky;
        top: 0;
        z-index: 4;
        margin-bottom: 10px;
    }

    .hunter-page .hunter-inventory-archive .hunter-inventory-panel {
        padding: 14px;
        border-radius: 20px;
    }

    .hunter-page .hunter-inventory-archive .hunter-inventory-list {
        max-height: none;
        overflow: visible;
    }

    .hunter-page .hunter-archive-placeholder {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .hunter-page .hunter-mailbox-panel {
        padding: 14px;
        border-radius: 20px;
    }

    .hunter-page .hunter-mailbox-head {
        display: grid;
    }

    .hunter-page .hunter-mailbox-message {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .hunter-page .hunter-mailbox-message em {
        grid-column: 2;
        text-align: left;
        white-space: normal;
    }

    .hunter-mailbox-detail-modal {
        place-items: stretch;
        padding: 0;
    }

    .hunter-page .hunter-mailbox-detail-panel {
        width: 100vw;
        max-width: 100vw;
        height: 100svh;
        max-height: 100svh;
        padding: calc(18px + env(safe-area-inset-top)) 15px calc(18px + env(safe-area-inset-bottom));
        border: 0;
        border-radius: 0;
    }

    .hunter-page .hunter-mailbox-detail-panel h3 {
        font-size: 20px;
        overflow-wrap: anywhere;
    }

    .hunter-page .hunter-mailbox-prize-card strong,
    .hunter-page .hunter-mailbox-source-card strong {
        font-size: 17px;
    }

    .hunter-page .hunter-mailbox-voucher-image-wrap {
        padding: 8px;
        overflow: hidden;
    }

    .hunter-page .hunter-mailbox-voucher-image {
        width: 100%;
        max-width: 100%;
        max-height: 360px;
    }

    .hunter-page .hunter-mailbox-code-row {
        grid-template-columns: 1fr;
        min-width: 0;
        overflow: hidden;
    }

    .hunter-page .hunter-mailbox-code-row code {
        max-width: 100%;
        white-space: normal;
        word-break: break-all;
    }
}

@media (min-width: 769px) {
    .hunter-page .hunter-bottom-nav {
        padding-bottom: 0;
    }
}
