.hidden-throne-page,
.hidden-throne-page button,
.hidden-throne-page input,
.ht-modal {
    font-family: Cinzel, "Times New Roman", serif;
}

.ht-profile-nickname,
.ht-modal .modal-title {
    font-family: Cinzel, serif;
    letter-spacing: 0.5px;
}

.hidden-throne-page {
    position: relative;
    min-height: 100vh;
    padding: 0;
    color: #351516;
    animation: 0.7s both htPageFadeIn;
}

.hidden-throne-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
            circle at 20% 10%,
            rgba(255, 215, 90, 0.16),
            transparent 20%
        ),
        radial-gradient(
            circle at 85% 22%,
            rgba(138, 28, 32, 0.12),
            transparent 26%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(255, 215, 90, 0.12),
            transparent 28%
        );
    animation: 5s ease-in-out infinite alternate htAmbientGlow;
}
main.container {
    margin: 0 !important;
    padding: 0 !important;
}
/* HERO */
.ht-hero {
    position: relative;
    margin: 0;
    padding: 14px 14px 18px;
    min-height: 100vh;
    /* overflow: hidden; */
    background-size: cover;
    background-position: center top;
    box-shadow: 0 18px 36px rgba(96, 10, 15, 0.25);
    animation: 0.8s cubic-bezier(0.2, 0.85, 0.25, 1) both htHeroReveal;
    transform-origin: top center;
}

.hidden-throne-page {
    overflow-x: clip; /* clip = potong luberan horizontal TANPA memotong arah vertikal */
}
.ht-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(32, 5, 7, 0.3) 0,
        rgba(76, 8, 12, 0.1) 38%,
        rgba(43, 4, 7, 0.86) 100%
    );
}

.ht-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    animation: 0.65s 0.15s both htDropIn;
}

.ht-logo-small {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 6px 7px rgba(0, 0, 0, 0.45));
    animation: 3.8s ease-in-out infinite htLogoFloat;
}

.ht-user-stats {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.ht-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: #fff1c2;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.ht-hero-stats {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 6px;
    animation: 0.7s 0.35s both htSlideUp;
}

.ht-hero-stat {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    backdrop-filter: blur(3px);
    color: #fff1c2;
    font-size: 12px;
    font-weight: 900;
}

.ht-hero-stat .ic {
    font-size: 14px;
}

.ht-hero-stat .lbl {
    color: rgba(255, 241, 194, 0.72);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* PROFIL */
.ht-profile-wrap {
    position: relative;
    z-index: 11;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -34px;
    animation: 0.75s 0.2s both htSlideUp;
}

.ht-profile-wrap:hover,
.ht-profile-wrap:focus-within {
    z-index: 1000;
}

.ht-avatar-ring {
    position: relative;
    box-sizing: border-box;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    padding: 3px;
    background: linear-gradient(180deg, #ffe88a, #f3b93e, #a83918);
    box-shadow: 0 0 0 4px rgba(255, 215, 90, 0.18),
        0 12px 24px rgba(0, 0, 0, 0.38);
    animation: 3.8s ease-in-out infinite htCrownFloat;
}

.ht-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #2b0407;
    border-radius: 999px;
}

.ht-profile-nickname {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: inline-block;
    background-image: url("/assets/images/hidden_throne/ht_frame_name_color.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    padding: 8px 28px;
    margin: -5px 0 2px;
    color: #fff3c8;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.55);
    text-align: center;
    z-index: 5;
}

.ht-profile-character {
    background-image: url("/assets/images/hidden_throne/ht_frame_name_color.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    padding: 8px 16px;
    margin-top: -15px;
    color: #ffe9a8;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    z-index: 9;
}

/* LIVECHAT */
.ht-livechat {
    position: relative;
    z-index: 2;
    margin-top: 14px;
    border-radius: 18px;
    background: rgba(39, 5, 8, 0.45);
    border: 1px solid rgba(255, 215, 90, 0.32);
    backdrop-filter: blur(3px);
    overflow: hidden;
    animation: 0.7s 0.3s both htSlideUp;
}

.ht-livechat-body {
    height: 120px;
    overflow-y: auto;
    padding: 10px 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ht-chat-placeholder {
    margin: auto;
    color: rgba(255, 243, 200, 0.6);
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
    line-height: 1.5;
}

/* KINGDOM */
.ht-kingdom-inline {
    padding: 8px;
    position: relative;
    z-index: 18;
    margin-top: 14px;
    /* background: rgb(76 54 56 / 45%); */
    backdrop-filter: blur(3px);
    animation: 0.7s 0.4s both htSlideUp;
}

.ht-kingdom-top {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.ht-throne-medallion {
    position: relative;
    width: 66px;
    height: 66px;
    flex-shrink: 0;
    border-radius: 16px;
    padding: 3px;
    background: linear-gradient(180deg, #ffe88a, #f3b93e, #a83918);
    box-shadow: 0 0 0 4px rgba(255, 215, 90, 0.22),
        0 0 18px rgba(255, 215, 90, 0.5);
    animation: 2.6s ease-in-out infinite htThronePulse;
}

.ht-throne-medallion img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #2b0407;
    border-radius: 13px;
}

.ht-throne-medallion .ht-throne-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-size: 26px;
    background: linear-gradient(180deg, #7b171b, #2b0407);
}

.ht-troop-side {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.ht-troop-stack {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 6px;
    padding-left: 17px;
    max-width: 60px;
    flex-shrink: 1;
}

.ht-troop-stack .unit {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-left: -17px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    animation: 0.35s both htUnitPop;
}

.ht-troop-empty-mini {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
    border: 1.5px dashed rgba(255, 215, 90, 0.5);
    background: linear-gradient(180deg, #7b171b, #2b0407);
}

.ht-troop-meta {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 4px;
}

.ht-troop-count {
    color: #fff3c8;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.1;
}

.ht-troop-count small {
    color: rgba(255, 243, 200, 0.7);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ht-kingdom-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.ht-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 215, 90, 0.3);
    color: #ffe9a8;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.ht-stat-chip b {
    color: #fff3c8;
    font-weight: 950;
}

.ht-stat-chip .bi {
    color: #f3b93e;
}

.ht-asset-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.ht-asset-chip {
    position: relative;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    /* border: 18px solid transparent; */
    border-image: url("/assets/images/hidden_throne/ht-panel-frame.svg") 26 fill /
        18px / 0 stretch;
    text-align: center;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
}

.ht-asset-chip:hover {
    transform: translateY(-2px);
}

.ht-asset-chip-pic {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ht-asset-chip-pic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.ht-asset-chip-pic .emoji {
    font-size: 28px;
}

.ht-asset-chip-namerow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 4px;
}

.ht-asset-chip-name {
    flex: 1;
    min-width: 0;
    text-align: center;
    color: #fff3c8;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ht-asset-chip-add {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 1.5px solid #fff;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe88a, #f3b93e);
    color: #7b171b;
    font-size: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    transition: transform 0.12s;
}

.ht-asset-chip-add:hover {
    transform: scale(1.12);
}

.ht-asset-chip-add:active {
    transform: scale(0.95);
}

.ht-asset-chip-cost {
    margin-top: 1px;
    color: #ffe9a8;
    font-size: 9.5px;
    font-weight: 900;
}

.ht-asset-chip {
    position: relative;
}

.ht-asset-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    z-index: 20;

    width: max-content;
    max-width: 220px;
    padding: 8px 10px;

    background: rgba(20, 20, 24, 0.95);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    border-radius: 8px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.ht-asset-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    border-width: 6px;
    border-style: solid;
    border-color: rgba(20, 20, 24, 0.95) transparent transparent transparent;
}

.ht-asset-chip:hover .ht-asset-tooltip,
.ht-asset-chip:focus .ht-asset-tooltip,
.ht-asset-chip:focus-within .ht-asset-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ht-asset-tooltip-title {
    font-size: 13px;
    font-weight: 700;
    color: #f3c24b;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    border-bottom: 1px solid #f3c24b;
}

.ht-asset-tooltip-desc {
    font-size: 12px;
    line-height: 1.35;
    color: #f5efe2;
    text-align: justify;
    /* border-bottom: 1px solid #fff; */
}

.ht-asset-tooltip-additional {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #d8b463;
    font-size: 11px;
    line-height: 1.3;
    color: #d8b463;
    font-style: italic;
    text-align: justify;
}

img.ht-gem {
    width: 16px;
}

.ht-empty-assets {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 215, 90, 0.4);
    color: #ffe9a8;
    font-size: 12.5px;
    font-weight: 800;
    text-align: center;
}
.ht-process-list {
    margin-bottom: 50px;
}
/* PROCESS / BUILD */
.ht-process-list .ht-process {
    margin-top: 10px;
}

.ht-process {
    position: relative;
    z-index: 1;
    display: none;
    margin: 12px 0 0;
    padding: 12px 14px;
    backdrop-filter: blur(3px);
    box-shadow: 0 12px 24px rgba(108, 12, 18, 0.24);
}

.ht-process.show {
    display: block;
    animation: 0.4s both htSlideUp;
}

.ht-process-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ht-process-img {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    /* border-radius: 12px; */
    object-fit: contain;
    /* padding: 5px;
                                                                                                                                                                                                                                                                                                    background: linear-gradient(180deg, #7b171b, #2b0407);
                                                                                                                                                                                                                                                                                                    border: 1px solid rgba(255, 215, 90, .5); */
    animation: 0.4s both htUnitPop;
}

.ht-process-text {
    flex: 1;
    min-width: 0;
}

.ht-process-label {
    color: #fff3c8;
    font-size: 14px;
    font-weight: 600;
}

.ht-process-sub {
    color: rgba(255, 243, 200, 0.72);
    font-size: 11px;
    font-weight: 500;
    margin-top: 1px;
}

.ht-process-bar {
    margin-top: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
    border: 1px solid rgba(255, 215, 90, 0.4);
}

.ht-process-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffe88a, #f3b93e, #a83918);
}

.ht-process-bar i.js-bar {
    transition: width 0.9s linear;
}

/* TOMBOL */
.ht-btn {
    position: relative;
    flex: 1;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    padding: 0 12px;
    border: 0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.ht-btn:hover {
    text-decoration: none;
    opacity: 0.94;
}

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

/* ISI MODAL (di dalam komponen x-ht-modal) */
.ht-modal .ht-async-form {
    display: flex;
    flex-direction: column;
}

.ht-modal .modal-header {
    display: block;
    text-align: center;
    padding: 0;
    border: 0;
    background: transparent;
    margin-bottom: 14px;
}

.ht-modal .modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #fff3c8;
}

.ht-modal .modal-body {
    padding: 0;
    max-height: 62vh;
    overflow-y: auto;
}

.ht-modal .modal-footer {
    padding: 0;
    border: 0;
    background: transparent;
    margin-top: 16px;
}

.ht-setup-subtitle {
    margin: 6px 0 0;
    font-size: 12px;
    color: rgba(255, 243, 200, 0.78);
    font-weight: 700;
}

.ht-choice-help {
    margin: 0 0 12px;
    color: #ffe88a;
    font-size: 11px;
    font-weight: 700;
}

.ht-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 0 4px;
}

.ht-steps-indicator .dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 243, 200, 0.35);
}

.ht-steps-indicator .dot.active {
    background: #ffe88a;
}

.ht-step {
    display: none;
}

.ht-step.active {
    display: block;
    animation: 0.35s both htSlideUp;
}

.ht-hero-choice {
    position: relative;
    display: block;
    cursor: pointer;
    margin-bottom: 12px;
}

.ht-hero-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ht-hero-choice-box {
    position: relative;
    /* padding: 8px 8px 10px; */
    border-radius: 18px;
    /* background: #fff; */
    /* border: 2px solid rgba(138, 28, 32, .12); */
    /* box-shadow: 0 6px 14px rgba(112, 18, 20, .08); */
    transition: 0.18s;
    text-align: center;
}

.ht-hero-choice input:checked + .ht-hero-choice-box {
    /* border-color: #f3b93e; */
    /* background: linear-gradient(180deg, #fff8e8 0, #fff 100%); */
    /* box-shadow: 0 0 0 3px rgba(243, 185, 62, .22), 0 10px 20px rgba(112, 18, 20, .14); */
    transform: translateY(-2px);
}

.ht-hero-choice-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 14px;
    background: #2b0407;
    display: block;
}

.ht-hero-choice-name {
    margin-top: 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.2;
}

.ht-hero-choice-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    border: 2px solid #fff;
    background: linear-gradient(180deg, #ffe88a, #f3b93e);
    color: #7b171b;
    font-size: 13px;
}

.ht-hero-choice input:checked + .ht-hero-choice-box .ht-hero-choice-check {
    display: flex;
}

.ht-setup-submit {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, #ffe88a, #f3b93e);
    color: #7b171b;
    box-shadow: 0 10px 20px rgba(112, 18, 20, 0.18);
}

.ht-setup-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ht-setup-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.ht-setup-nav .ht-setup-submit.secondary {
    background: #fff8e8;
    color: #8a1c20;
    border: 1px solid rgba(138, 28, 32, 0.2);
    box-shadow: none;
}

.ht-rule-note {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(138, 28, 32, 0.06);
    border: 1px solid rgba(138, 28, 32, 0.14);
    color: #7b3a3a;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 12px;
}

.ht-rule-note.danger {
    background: rgba(192, 57, 43, 0.08);
    text-align: center;
    color: #fff;
    grid-column: span 2;
}

.ht-cap-limiter {
    display: inline-block;
    margin-left: 6px;
    font-size: 9.5px;
    font-weight: 900;
    color: #b5822d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ht-qty-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
}

.ht-qty-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(138, 28, 32, 0.2);
    background: #fff8e8;
    color: #8a1c20;
    font-size: 22px;
    font-weight: 950;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ht-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ht-qty-input {
    width: 80px;
    height: 44px;
    text-align: center;
    font-size: 20px;
    font-weight: 950;
    color: #351516;
    border: 1px solid rgba(138, 28, 32, 0.2);
    border-radius: 12px;
    background: #fff;
}

.ht-exchange-summary {
    border-radius: 16px;
    margin-top: 12px;
}

.ht-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.ht-summary-row.total {
    color: #fff;
    font-size: 15px;
    font-weight: 950;
}

.ht-summary-row.total.err {
    color: #c0392b;
}

.ht-exchange-warn {
    margin-top: 10px;
    display: none;
    color: #c0392b;
    font-size: 11.5px;
    font-weight: 900;
    text-align: center;
}

.ht-asset-modal-figure {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    max-height: 120px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ht-asset-modal-figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.ht-asset-modal-figure .emoji {
    font-size: 64px;
}

.ht-info-modal-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.ht-meta-token {
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffe9a8;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.ht-meta-token strong {
    color: #fff3c8;
    font-weight: 950;
}

.ht-asset-cost {
    flex: 1;
    justify-content: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff3c8;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.ht-meta-token .bi-gem,
.ht-asset-cost .bi-gem,
.ht-buy-note .bi-gem {
    color: #f3b93e;
}

.ht-info-modal-desc-title {
    color: #ffe9a8;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.ht-info-modal-desc {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 248, 232, 0.92);
    border: 1px solid rgba(138, 28, 32, 0.1);
    color: #5c2a2a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
    white-space: pre-line;
    word-break: break-word;
}

.ht-info-modal-desc.empty {
    color: #9b6060;
    font-style: italic;
    text-align: center;
}

.ht-buy-note {
    margin: 14px 0 0;
    border-radius: 14px;
    color: #fff3c8;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
    text-align: center;
    text-transform: uppercase;
}

.ht-buy-note strong {
    color: #ed4040;
    font-weight: 600;
    text-transform: uppercase;
}

.ht-info-close-btn {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(138, 28, 32, 0.2);
    border-radius: 14px;
    background: #fff8e8;
    color: #8a1c20;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.ht-spinner {
    width: 15px;
    height: 15px;
    border-radius: 999px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    display: inline-block;
    vertical-align: middle;
    animation: 0.7s linear infinite htSpin;
}

/* TOOLTIP */
#htTooltip {
    position: fixed;
    z-index: 999999;
    width: 330px;
    max-width: calc(100vw - 16px);
    padding: 12px 13px;
    border-radius: 14px;
    background: linear-gradient(180deg, #2b0407, #51080d);
    border: 1px solid rgba(255, 215, 90, 0.5);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
    color: #fff3c8;
    text-align: left;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

#htTooltip.show {
    opacity: 1;
}

#htTooltip::after {
    content: "";
    position: absolute;
    left: var(--tip-arrow, 50%);
    transform: translateX(-50%);
    border: 7px solid transparent;
}

#htTooltip:not(.below)::after {
    top: 100%;
    border-top-color: #51080d;
}

#htTooltip.below::after {
    bottom: 100%;
    border-bottom-color: #2b0407;
}

.ht-tip-name {
    font-size: 13px;
    font-weight: 950;
    color: #ffe88a;
    margin-bottom: 5px;
    line-height: 1.2;
}

.ht-tip-desc {
    font-size: 11px;
    line-height: 1.45;
    color: rgba(255, 243, 200, 0.88);
    font-weight: 600;
}

.ht-tip-speeds {
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 215, 90, 0.3);
}

.ht-tip-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 0;
    font-size: 11px;
}

.ht-tip-row i {
    color: #ffd76a;
    font-size: 13px;
    width: 16px;
    text-align: center;
}

.ht-tip-row .lbl {
    flex: 1;
    color: rgba(255, 243, 200, 0.78);
    font-weight: 700;
}

.ht-tip-row .val {
    color: #fff;
    font-weight: 950;
}

/* GLOBAL */
.navbar,
.footer-fixed,
.app-powered-footer {
    display: none !important;
}

/* KEYFRAMES */
@keyframes htUnitPop {
    from {
        opacity: 0;
        transform: scale(0.6);
    }

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

@keyframes htSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes htPageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes htAmbientGlow {
    from {
        opacity: 0.45;
        transform: scale(1);
    }

    to {
        opacity: 0.9;
        transform: scale(1.04);
    }
}

@keyframes htHeroReveal {
    from {
        opacity: 0;
        transform: translateY(-14px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes htDropIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

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

@keyframes htLogoFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes htThronePulse {
    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(255, 215, 90, 0.22),
            0 0 16px rgba(255, 215, 90, 0.4);
        transform: translateY(0);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(255, 215, 90, 0.32),
            0 0 26px rgba(255, 215, 90, 0.7);
        transform: translateY(-2px);
    }
}

@keyframes htSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

@keyframes htCrownFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-4px) rotate(0.8deg);
    }
}

@keyframes htButtonShine {
    0%,
    45% {
        left: -70%;
    }

    70%,
    100% {
        left: 130%;
    }
}

/* RESPONSIVE & MOTION */
@media (max-width: 360px) {
    .ht-asset-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .ht-troop-stack .unit {
        width: 30px;
        height: 30px;
        margin-left: -8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hidden-throne-page,
    .hidden-throne-page::before,
    .ht-avatar-ring,
    .ht-btn-play::before,
    .ht-hero,
    .ht-hero-stats,
    .ht-kingdom-inline,
    .ht-logo-small,
    .ht-profile-wrap,
    .ht-spinner,
    .ht-throne-medallion {
        animation: none !important;
    }
}

#assetModal .ht-modal-body {
    padding-left: 18px;
    padding-right: 18px;
}

#assetModal .modal-body {
    max-height: 60vh !important;
}

/* ===== Ringkasan aset: gambar 1x1 kiri, info kanan ===== */
#assetModal .ht-asset-summary {
    display: flex;
    align-items: center; /* center vertikal gambar & info */
    justify-content: center; /* blok di tengah modal */
    gap: 18px;
    margin: 4px 0 20px;
}

#assetModal .ht-asset-summary-figure {
    flex: 0 0 auto;
    width: 88px;
    height: 88px; /* 1x1 */
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#assetModal .ht-asset-summary-figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#assetModal .ht-asset-summary-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* semua rata kiri, sejajar */
    gap: 6px;
    min-width: 0;
}

#assetModal .ht-asset-summary-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

#assetModal .ht-asset-summary-info .ht-asset-cost,
#assetModal .ht-asset-summary-info .ht-meta-token {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    margin: 0;
}

#assetModal .ht-gem {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* ===== Baris jumlah: label + stepper dikelompokkan di tengah ===== */
#assetModal .ht-qty-row {
    display: flex;
    align-items: center;
    justify-content: center; /* biar nggak ada gap raksasa */
    gap: 16px;
    margin: 0 0 14px;
}

#assetModal .ht-qty-row .ht-choice-help {
    margin: 0;
    font-weight: 600;
}

/* ===== Note & warning rata tengah ===== */
#assetModal .ht-buy-note,
#assetModal .ht-exchange-warn {
    text-align: center;
    margin: 0 auto 10px;
}
.ht-tip-bars {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}

.ht-tip-bar {
    width: 7px;
    height: 12px;
    border-radius: 2px;
    background: rgba(255, 215, 90, 0.14);
    /* bar kosong */
    border: 1px solid rgba(255, 215, 90, 0.28);
}

.ht-tip-bar.on {
    /* bar terisi */
    background: linear-gradient(180deg, #ffe88a, #f2a52a);
    border-color: rgba(255, 215, 90, 0.7);
    box-shadow: 0 0 5px rgba(255, 215, 90, 0.35);
}

.ht-panel {
    display: flex;
    align-items: stretch;
    width: 480px;
    max-width: 100%;
    box-sizing: border-box;
    border: 14px solid transparent;
    position: relative;
    z-index: 18;
    border-image: url("/assets/images/hidden_throne/ht-panel-frame.svg") 26 fill /
        14px / 0 stretch;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    filter: drop-shadow(0 0 6px rgba(226, 184, 87, 0.3));
}

.ht-panel__item {
    display: flex;
    align-items: center;
    justify-content: center; /* icon + angka di tengah */
    gap: 6px;
    flex: 1;
    padding: 2px 4px;
    min-width: 0;
    position: relative; /* anchor untuk tooltip */
    cursor: default;
}

.ht-panel__icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ht-panel__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ht-panel__value {
    font-size: 16px;
    font-weight: 700;
    color: #f5efe2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

.ht-panel__divider {
    width: 1px;
    align-self: center;
    height: 34px;
    flex-shrink: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(201, 162, 83, 0.55) 50%,
        transparent 100%
    );
}

/* ===== Tooltip ===== */
.ht-panel__item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #f5efe2;
    background: rgba(20, 14, 6, 0.95);
    border: 1px solid rgba(201, 162, 83, 0.6);
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 20;
}

/* panah kecil tooltip */
.ht-panel__item[data-tooltip]::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: rgba(201, 162, 83, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 20;
}

.ht-panel__item[data-tooltip]:hover::after,
.ht-panel__item[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ht-frame {
    box-sizing: border-box;
    border: 18px solid transparent;
    border-image: url("/assets/images/hidden_throne/ht-panel-frame.svg") 26 fill /
        18px / 0 stretch;
}

.ht-frame-only {
    border-image: url("/assets/images/hidden_throne/ht-panel-frame.svg") 26 fill /
        18px / 0 stretch;
}

.ht-troops {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 18;
}

.ht-troops__summary {
    flex: 1 1 360px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 99;
}

.ht-troops__avatar img {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #c19a45;
    box-shadow: 0 0 10px rgba(226, 184, 87, 0.35);
    display: block;
}

.ht-troops__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ht-troops__right {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.troops__action {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.ht-troops__label {
    font-size: 11px;
    letter-spacing: 1px;
    color: #d8b463;
    text-transform: uppercase;
}

.ht-troops__count {
    font-size: 16px;
    color: #f5efe2;
    line-height: 1.1;
}

.ht-troops__count strong {
    color: #f3c24b;
    font-size: 24px;
}

.ht-troops__hint {
    font-size: 10px;
    color: #b9a98f;
}

.ht-troops__recruit {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    /* padding: 6px 10px; */
    border: 1.5px solid rgba(201, 162, 83, 0.6);
    border-radius: 8px;
    background: rgba(226, 184, 87, 0.06);
}

.ht-troops__recruit-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #d8b463;
}

.ht-mini-add {
    color: #f3e3a8;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.1s ease, background 0.15s ease;
    border: 0;
    outline: 0;
}

.ht-mini-add:hover {
    background: rgba(226, 184, 87, 0.18);
    transform: translateY(-1px);
}

.ht-mini-add:active {
    transform: translateY(0);
}

.ht-speed-mini {
    display: flex;
    gap: 8px;
    min-width: 0;
}

/* tiap baris: icon + nilai sejajar */
.ht-speed-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* angka jumlah pasukan */
.ht-speed-mini-num {
    font-size: 18px;
    font-weight: 700;
    color: #f3c24b;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

/* label kecepatan (Very Slow … Lightning Fast ⚡) */
.ht-speed-mini-label {
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #d8b463;
    text-transform: uppercase;
}
.ht-troops__expedition {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    text-align: left;
    background: linear-gradient(180deg, #b5321f 0%, #7d1d12 100%);
    transition: filter 0.15s ease, transform 0.1s ease;
}

.ht-troops__expedition:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.ht-troops__expedition:active {
    transform: translateY(0);
}

.ht-troops__exp-icon {
    color: #f3e3a8;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.ht-troops__exp-icon img {
    width: 40px;
}

.ht-troops__exp-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ht-troops__exp-title {
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.5px;
    color: #fff4e2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.ht-troops__exp-sub {
    font-size: 12px;
    font-style: italic;
    color: #ffd9a0;
    line-height: 1.2;
}

.ht-nav {
    position: fixed;
    left: 50%;
    bottom: 0px;
    transform: translateX(-50%);
    z-index: 50;
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4px;
    background: rgba(14, 10, 6, 0.55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 184, 87, 0.25);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    font-family: "Cinzel", serif;
}

.ht-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    color: #b9a98f;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.ht-nav__item:hover {
    color: #e8d49a;
}

/* item aktif (BERANDA) */
.ht-nav__item.is-active {
    color: #f6e7ad;
    background: linear-gradient(
        180deg,
        rgba(226, 184, 87, 0.22),
        rgba(226, 184, 87, 0.06)
    );
    box-shadow: inset 0 0 0 1px rgba(246, 231, 173, 0.55),
        0 0 10px rgba(226, 184, 87, 0.25);
}

.ht-nav__icon {
    width: 24px;
    height: 24px;
}

.ht-nav__icon img {
    width: 24px;
}

.ht-nav__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ht-nav__label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* tombol tengah menonjol */
.ht-nav__item--center {
    flex: 0 0 auto;
    margin-top: -26px;
    /* naik di atas bar */
    padding: 0;
    background: none;
    box-shadow: none;
}

.ht-nav__center {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #2a1c0c;
    background: radial-gradient(
        circle at 50% 35%,
        #f6e7ad,
        #c19a45 60%,
        #6b521f 100%
    );
    border: 3px solid rgba(18, 12, 7, 0.65);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(226, 184, 87, 0.5);
}

.ht-nav__center svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.ht-nav__center {
    position: relative;
    overflow: visible;
}

.ht-nav__center .emblem-img {
    width: 75px;
    transition: opacity 0.35s ease, transform 0.6s ease;
}

.ht-nav__center .emblem-default {
    position: relative;
    top: -5px;
}

.ht-nav__center .emblem-hover {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
}

.ht-nav__item--center:hover .emblem-default {
    opacity: 0;
    transform: rotate(360deg);
}
.ht-nav__item--center:hover .emblem-hover {
    opacity: 1;
    transform: translateX(-50%) rotate(360deg);
}

.ht-nav__item--center {
    position: relative;
}

.ht-nav__item--center[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(14, 10, 6, 0.92);
    color: #f6e7ad;
    border: 1px solid rgba(226, 184, 87, 0.4);
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-family: "Cinzel", serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 60;
}
.ht-nav__item--center[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ht-speed-mini-item {
    position: relative;

    display: flex;
    align-items: center;
    gap: 6px;

    outline: none;
}

.ht-speed-mini-icon {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ht-speed-mini-icon img {
    width: 24px;
}

.ht-speed-mini-icon span:first-child {
    font-size: 13px;
    line-height: 1;
}

.ht-speed-mini-bars {
    display: flex;
    align-items: center;
    gap: 3px;
}

.ht-speed-mini-bar {
    width: 5px;
    height: 12px;

    border-radius: 2px;

    background: rgba(20, 12, 10, 0.75);
    border: 1px solid rgba(201, 148, 54, 0.7);

    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.55);
}

.ht-speed-mini-bar.is-filled {
    background: linear-gradient(180deg, #fff2a8 0%, #e8b640 45%, #a95d18 100%);

    border-color: rgba(255, 226, 132, 0.95);

    box-shadow: 0 0 5px rgba(255, 200, 65, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

/* Kotak / track (wadah loading) */
.ht-speed-mini-track {
    position: relative;
    flex: 1;
    height: 12px;
    min-width: 48px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(20, 12, 10, 0.75);
    border: 1px solid rgba(201, 148, 54, 0.7);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.55);
}

/* Isian yang menggambarkan kecepatan */
.ht-speed-mini-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(180deg, #fff2a8 0%, #e8b640 45%, #a95d18 100%);
    box-shadow: 0 0 6px rgba(255, 200, 65, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.45);
    transition: width 0.35s ease;
}

/* Garis-garis bergerak biar terasa "loading" (opsional) */
.ht-speed-mini-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.25) 75%,
        transparent 75%,
        transparent
    );
    background-size: 14px 14px;
    width: var(--speed-width, 0%);
    animation: ht-speed-stripes 0.8s linear infinite;
    pointer-events: none;
}

@keyframes ht-speed-stripes {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 14px 0;
    }
}

.ht-speed-mini-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 7px);
    transform: translateX(-50%) translateY(3px);

    z-index: 50;

    padding: 5px 8px;

    border-radius: 6px;
    background: rgba(10, 8, 9, 0.94);
    border: 1px solid rgba(222, 177, 83, 0.75);

    color: #fff3cb;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: 0.12s ease;
}

.ht-speed-mini-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    border-width: 5px;
    border-style: solid;
    border-color: rgba(10, 8, 9, 0.94) transparent transparent transparent;
}

.ht-speed-mini-item:hover .ht-speed-mini-tooltip,
.ht-speed-mini-item:focus .ht-speed-mini-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ht-barrack-recruit-list {
    margin-top: 20px;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
}

.ht-barrack-recruit-card {
    display: flex;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    filter: drop-shadow(0 0 6px rgba(226, 184, 87, 0.3));
    align-items: center;
    gap: 10px;
    padding: 10px;
    width: 100%;
}

.ht-barrack-recruit-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex: 0 0 auto;
}

.ht-barrack-recruit-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.ht-barrack-recruit-name {
    color: #fff2c7;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.1;
}

.ht-barrack-recruit-cap {
    color: rgba(255, 232, 184, 0.78);
    font-size: 11px;
    line-height: 1.2;
}

.ht-barrack-recruit-card .ht-mini-add:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ht-selected-barrack {
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-bottom: 12px;
}

.ht-selected-barrack img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.ht-selected-barrack span {
    color: #fff2c7;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ht-barrack-train-status {
    width: 100%;
    margin-top: 5px;
}

.ht-barrack-train-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    color: rgba(255, 232, 184, 0.82);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ht-barrack-progress {
    position: relative;
    width: 100%;
    height: 6px;
    margin-top: 5px;

    overflow: hidden;
    border-radius: 999px;

    background: rgba(19, 10, 8, 0.78);
    border: 1px solid rgba(201, 148, 54, 0.55);

    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55),
        0 0 5px rgba(255, 200, 65, 0.12);
}

.ht-barrack-progress span {
    position: relative;
    display: block;
    height: 100%;
    width: 0%;

    border-radius: inherit;

    background: linear-gradient(90deg, #b76b1f 0%, #e7b94a 55%, #fff1a4 100%);

    box-shadow: 0 0 8px rgba(255, 199, 70, 0.45),
        inset 0 1px 1px rgba(255, 255, 255, 0.35);

    transition: width 0.45s linear;
    overflow: hidden;
}

.ht-barrack-progress span::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.5) 45%,
        transparent 100%
    );

    transform: translateX(-100%);
    animation: htBarrackProgressShine 1.15s linear infinite;
}

@keyframes htBarrackProgressShine {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

.ht-barrack-fill-info {
    margin-top: 5px;

    color: rgba(255, 232, 184, 0.78);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.03em;
}

/* Tombol melayang panduan */
.ht-help-fab {
    position: fixed;
    right: 16px;
    bottom: 96px; /* di atas nav bawah */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: linear-gradient(145deg, #e7c558, #b8860b);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.ht-help-fab:hover {
    transform: scale(1.08);
}
.ht-help-fab:active {
    transform: scale(0.95);
}

/* Isi panduan (placeholder) */
.ht-guide {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ht-guide-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.ht-guide-num {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.9);
    color: #2a1d00;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ht-guide-title {
    font-weight: 700;
    margin-bottom: 2px;
    text-align: left;
}
.ht-guide-text {
    margin: 0;
    opacity: 0.85;
    font-size: 13px;
    line-height: 1.5;
    text-align: justify;
}

.ht-mini-add__img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    pointer-events: none; /* biar klik selalu kena tombolnya */
}

/* opsional: tombol yang disabled gambarnya diredupkan */
.ht-mini-add:disabled .ht-mini-add__img {
    opacity: 0.45;
}

.ht-profile-character {
    position: relative;
    display: inline-block;
    cursor: help;
}

/* ===== Tooltip speed ===== */
.ht-speed-tip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 8px);
    width: 260px;
    max-width: 80vw;
    padding: 12px;
    background: rgba(18, 22, 30, 0.97);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    text-transform: none; /* override kalau parent uppercase */
}
.ht-profile-character:hover .ht-speed-tip,
.ht-profile-character:focus .ht-speed-tip,
.ht-profile-character:focus-within .ht-speed-tip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 4px);
}
/* panah kecil di atas tooltip */
.ht-speed-tip::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-bottom-color: rgba(212, 175, 55, 0.5);
}

.ht-speed-tip__title {
    margin-bottom: 8px;
    color: #f4d97b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
}

.ht-speed-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ht-speed-row:last-child {
    margin-bottom: 0;
}
.ht-speed-row__icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.ht-speed-row__main {
    flex: 1 1 auto;
    min-width: 0;
}
.ht-speed-row__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 3px;
}
.ht-speed-row__label {
    color: #e9e3d1;
    font-size: 12px;
}
.ht-speed-row__value {
    color: #ffd34d;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.ht-speed-bars {
    display: flex;
    gap: 3px;
}
.ht-speed-bar {
    flex: 1 1 0;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
}
.ht-speed-bar.is-on {
    background: linear-gradient(90deg, #f6c451, #d4af37);
    box-shadow: 0 0 4px rgba(255, 211, 77, 0.5);
}

.ht-popfull-text {
    margin: 0 0 6px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #f3e7c5;
    text-align: center;
}
.ht-popfull-hint {
    margin: 0 0 16px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 243, 200, 0.7);
    text-align: center;
}

.ht-popfull-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ht-popfull-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    background: linear-gradient(
        180deg,
        rgba(35, 24, 14, 0.9),
        rgba(22, 15, 9, 0.92)
    );
    border: 1px solid rgba(255, 210, 120, 0.28);
    transition: transform 0.12s ease, filter 0.12s ease, border-color 0.12s ease;
}
.ht-popfull-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}
.ht-popfull-btn:active {
    transform: scale(0.98);
}
.ht-popfull-btn img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
}
.ht-popfull-btn span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ht-popfull-btn b {
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #f3e7c5;
}
.ht-popfull-btn small {
    font-size: 0.72rem;
    color: rgba(255, 243, 200, 0.6);
}

.ht-popfull-btn.is-primary {
    border-color: rgba(255, 205, 90, 0.6);
    background: linear-gradient(
        180deg,
        rgba(243, 185, 62, 0.22),
        rgba(120, 80, 20, 0.28)
    );
    box-shadow: 0 0 16px rgba(255, 190, 70, 0.18);
}
.ht-popfull-btn.is-primary b {
    color: #ffe39a;
}

.ht-popfull-btn.is-ghost {
    justify-content: center;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
}
.ht-popfull-btn.is-ghost b {
    color: rgba(255, 243, 200, 0.7);
    font-weight: 500;
}

/* sorotan toko saat asset tidak ketemu */
.ht-flash {
    animation: htFlash 1.6s ease;
}
@keyframes htFlash {
    0%,
    100% {
        box-shadow: none;
    }
    30%,
    60% {
        box-shadow: 0 0 0 2px rgba(255, 205, 90, 0.7),
            0 0 18px rgba(255, 190, 70, 0.5);
        border-radius: 12px;
    }
}

.ht-popfull {
    text-align: center;
}

.ht-popfull-text {
    font-family: "Marcellus", serif;
    color: var(--ht-cream);
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 10px;
}
.ht-popfull-text strong {
    color: var(--ht-gold-light);
}

.ht-popfull-hint {
    font-family: "Marcellus", serif;
    color: rgba(255, 243, 200, 0.72);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 18px;
}
.ht-popfull-hint strong {
    color: var(--ht-gold);
}

.ht-popfull-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== Tombol dasar ===== */
.ht-popfull-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    text-align: left;
    cursor: pointer;
    border-radius: 16px;
    border: 1px solid rgba(243, 185, 62, 0.45);
    background: linear-gradient(
        180deg,
        rgba(60, 20, 12, 0.55),
        rgba(26, 8, 6, 0.65)
    );
    box-shadow: inset 0 1px 0 rgba(255, 226, 128, 0.15),
        0 6px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.14s ease, filter 0.14s ease, border-color 0.14s ease;
}
.ht-popfull-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    border-color: rgba(243, 185, 62, 0.85);
}
.ht-popfull-btn:active {
    transform: translateY(1px);
}

.ht-popfull-btn > img {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.ht-popfull-btn__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.ht-popfull-btn__title {
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.4px;
    line-height: 1.1;
    color: var(--ht-gold-light); /* ← ini yang tadinya hilang */
}
.ht-popfull-btn__sub {
    font-family: "Marcellus", serif;
    font-size: 13px;
    line-height: 1.35;
    color: rgba(255, 243, 200, 0.78); /* ← ini juga */
}

/* ===== Tombol utama: emas menyala ===== */
.ht-popfull-btn.is-primary {
    border-color: rgba(255, 226, 128, 0.85);
    background: linear-gradient(
        180deg,
        rgba(243, 185, 62, 0.3),
        rgba(138, 28, 32, 0.45)
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 20px rgba(243, 185, 62, 0.3), 0 8px 18px rgba(0, 0, 0, 0.4);
}
.ht-popfull-btn.is-primary .ht-popfull-btn__title {
    color: #fff6d8;
}

/* ===== Tombol ghost (Nanti Saja): teks tengah, tanpa ikon ===== */
.ht-popfull-btn.is-ghost {
    justify-content: center;
    padding: 13px 18px;
    background: rgba(20, 10, 8, 0.4);
    border-color: rgba(243, 185, 62, 0.3);
    font-family: "Cinzel", serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 15px;
    color: var(--ht-cream);
}
.ht-popfull-btn.is-ghost:hover {
    color: var(--ht-gold-light);
}

/* ===== Sorot strip aset (fallback htQuickBuild) ===== */
.ht-flash {
    animation: htFlash 1.6s ease;
}
@keyframes htFlash {
    0%,
    100% {
        box-shadow: none;
    }
    30%,
    60% {
        box-shadow: 0 0 0 3px rgba(243, 185, 62, 0.7);
    }
}

.ht-tour {
    position: fixed;
    inset: 0;
    z-index: 9990; /* di bawah modal (9995), di atas konten */
    pointer-events: none; /* klik tembus ke target */
}
.ht-tour__hole {
    position: fixed;
    border-radius: 14px;
    border: 2px solid var(--ht-gold, #f3b93e);
    box-shadow: 0 0 0 9999px rgba(4, 1, 2, 0.78); /* trik "lubang" spotlight */
    transition: left 0.3s ease, top 0.3s ease, width 0.3s ease, height 0.3s ease;
    animation: htTourPulse 1.8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes htTourPulse {
    0%,
    100% {
        box-shadow: 0 0 0 9999px rgba(4, 1, 2, 0.78),
            0 0 0 0 rgba(243, 185, 62, 0.55);
    }
    50% {
        box-shadow: 0 0 0 9999px rgba(4, 1, 2, 0.78),
            0 0 0 12px rgba(243, 185, 62, 0);
    }
}
.ht-tour__bubble {
    position: fixed;
    width: min(300px, 86vw);
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #3a1f0c, #1c0c06);
    border: 1px solid rgba(243, 185, 62, 0.6);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    pointer-events: auto; /* tombol Lewati bisa diklik */
}
.ht-tour__title {
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--ht-gold-light, #ffe88a);
    margin-bottom: 6px;
}
.ht-tour__body {
    font-family: "Cinzel", serif;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 243, 200, 0.85);
}
.ht-tour__foot {
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    gap: 4px;
    margin-top: 12px;
}
.ht-tour__skip {
    background: transparent;
    border: 1px solid rgba(243, 185, 62, 0.4);
    color: var(--ht-cream, #fff3c8);
    font-family: "Cinzel", serif;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
}
.ht-tour__hint {
    font-size: 11px;
    color: rgba(255, 243, 200, 0.6);
    font-style: italic;
}
.ht-tour__action {
    background: linear-gradient(180deg, #f3b93e, #c8871a);
    border: 1px solid rgba(243, 185, 62, 0.9);
    color: #2a1606;
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.ht-tour__action:hover {
    filter: brightness(1.06);
}
.ht-mission-fab {
    position: fixed;
    right: 16px;
    bottom: 152px; /* tepat di atas tombol ? */
    min-width: 48px;
    height: 48px;
    padding: 0 6px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: linear-gradient(145deg, #e7c558, #b8860b);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.ht-mission-fab:hover {
    transform: scale(1.08);
}
.ht-mission-fab:active {
    transform: scale(0.95);
}

/* ===== Booster Store (frameless, scrollable) ===== */
.ht-booster-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.ht-booster-modal.is-active {
    display: flex;
}
@media (min-width: 600px) {
    .ht-booster-modal {
        align-items: center;
    }
}
.ht-booster-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 4, 2, 0.72);
    backdrop-filter: blur(3px);
}
.ht-booster-modal__panel {
    position: relative;
    width: min(600px, 100%);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #241009, #140a06);
    border: 1px solid rgba(243, 185, 62, 0.5);
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    box-shadow: 0 -10px 44px rgba(0, 0, 0, 0.65);
}
@media (min-width: 600px) {
    .ht-booster-modal__panel {
        border-radius: 18px;
    }
}

.ht-booster-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    color: #2a1606;
    background: linear-gradient(120deg, #f3b93e, #c8871a);
}
.ht-booster-header__titles {
    display: flex;
    flex-direction: column;
}
.ht-booster-title {
    font-family: "Cinzel", serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.1;
}
.ht-booster-subtitle {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.85;
}
.ht-booster-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.12);
    color: #2a1606;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.ht-booster-info {
    margin: 12px 14px 0;
    padding: 10px 12px;
    background: rgba(243, 185, 62, 0.1);
    border: 1px solid rgba(243, 185, 62, 0.28);
    border-radius: 12px;
    font-size: 12px;
    color: rgba(255, 243, 200, 0.85);
}

.ht-booster-body {
    padding: 12px 14px 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.ht-booster-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ht-booster-empty {
    font-size: 12px;
    color: rgba(255, 243, 200, 0.55);
    font-style: italic;
    padding: 8px 0;
}

.ht-booster-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(
        180deg,
        rgba(58, 31, 12, 0.92),
        rgba(24, 11, 6, 0.92)
    );
    border: 1px solid rgba(243, 185, 62, 0.32);
}
.ht-booster-card__media {
    position: relative;
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(243, 185, 62, 0.3);
    background: rgba(0, 0, 0, 0.35);
}
.ht-booster-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ht-booster-card__ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Cinzel", serif;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: rgba(255, 243, 200, 0.5);
    background: repeating-linear-gradient(
        45deg,
        rgba(243, 185, 62, 0.08) 0 10px,
        rgba(243, 185, 62, 0.02) 10px 20px
    );
}

.ht-booster-card__main {
    flex: 1 1 auto;
    min-width: 0;
}
.ht-booster-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.ht-booster-card__name {
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 14px;
    color: #ffe88a;
    line-height: 1.25;
}
.ht-booster-card__price {
    text-align: right;
    white-space: nowrap;
}
.ht-booster-card__price .now {
    display: block;
    font-weight: 800;
    font-size: 15px;
    color: #ffd76a;
}
.ht-booster-card__price .was {
    display: block;
    font-size: 11px;
    color: rgba(255, 243, 200, 0.5);
    text-decoration: line-through;
}
.ht-booster-card__desc {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 243, 200, 0.75);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ht-booster-card.is-expanded .ht-booster-card__desc {
    -webkit-line-clamp: unset;
    overflow: visible;
}
.ht-booster-more {
    background: none;
    border: none;
    padding: 2px 0;
    cursor: pointer;
    color: #f3b93e;
    font-weight: 700;
    font-size: 12px;
}
.ht-booster-included {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(243, 185, 62, 0.08);
    border: 1px solid rgba(243, 185, 62, 0.22);
    font-size: 12px;
    text-align: center;
}
.ht-booster-included .lbl {
    display: block;
    color: rgba(255, 243, 200, 0.7);
    font-size: 11px;
}
.ht-booster-included .val {
    display: block;
    color: #ffd76a;
    font-weight: 700;
}
.ht-booster-features {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ht-booster-features li {
    position: relative;
    padding-left: 20px;
    font-size: 12px;
    color: rgba(255, 243, 200, 0.85);
}
.ht-booster-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: #2a1606;
    font-size: 10px;
    font-weight: 900;
    line-height: 15px;
    text-align: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffd76a, #e0a52a);
}
.ht-booster-note {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 215, 106, 0.08);
    border: 1px solid rgba(255, 215, 106, 0.2);
    font-size: 11px;
    color: rgba(255, 243, 200, 0.7);
}
.ht-booster-card__actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}
.ht-booster-buy-btn {
    border: 1px solid rgba(243, 185, 62, 0.9);
    background: linear-gradient(180deg, #f3b93e, #c8871a);
    color: #2a1606;
    font-family: "Cinzel", serif;
    font-weight: 800;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.ht-booster-buy-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Modal konfirmasi */
.ht-booster-confirm {
    z-index: 1300;
}
.ht-booster-confirm__panel {
    width: min(400px, 100%);
}
.ht-booster-confirm__body {
    padding: 16px 18px;
}
.ht-booster-confirm__lead {
    font-size: 12px;
    color: rgba(255, 243, 200, 0.7);
}
.ht-booster-confirm__name {
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 16px;
    color: #ffe88a;
    margin-top: 2px;
}
.ht-booster-confirm__qtyrow,
.ht-booster-confirm__totalrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    color: #fff3c8;
    font-size: 13px;
}
.ht-booster-confirm__total {
    font-weight: 800;
    font-size: 18px;
    color: #ffd76a;
}
.ht-booster-confirm__footer {
    display: flex;
    gap: 10px;
    padding: 0 18px 18px;
}
.ht-booster-confirm__footer > * {
    flex: 1 1 0;
}
.ht-booster-cancel {
    border: 1px solid rgba(243, 185, 62, 0.4);
    background: transparent;
    color: #fff3c8;
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 14px;
    border-radius: 12px;
    cursor: pointer;
}

/* FAB Booster (di atas tombol Misi) */
.ht-booster-fab {
    position: fixed;
    right: 16px;
    bottom: 268px;
    min-width: 48px;
    height: 48px;
    padding: 0 6px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: linear-gradient(145deg, #6db3ff, #1e5fb0);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.ht-booster-fab:hover {
    transform: scale(1.08);
}
.ht-booster-fab:active {
    transform: scale(0.95);
}

/* Tombol "Percepat" pada kartu proses build */
.ht-process-boost {
    margin-top: 8px;
    width: 100%;
    border: 1px solid rgba(243, 185, 62, 0.7);
    background: linear-gradient(
        180deg,
        rgba(243, 185, 62, 0.18),
        rgba(243, 185, 62, 0.06)
    );
    color: #ffe88a;
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
}
.ht-process-boost:hover {
    filter: brightness(1.1);
}

.ht-reward-fab {
    position: fixed;
    right: 16px;
    bottom: 208px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: linear-gradient(145deg, #e7c558, #b8860b);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.ht-reward-fab img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.ht-reward-fab:hover {
    transform: scale(1.08);
}

.ht-reward-fab:active {
    transform: scale(0.95);
}

/* Jadikan FAB full gambar */
.ht-help-fab,
.ht-mission-fab,
.ht-booster-fab,
.ht-reward-fab {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0; /* biar ikut bentuk gambar */
    overflow: visible;
}
.ht-help-fab img,
.ht-mission-fab img,
.ht-booster-fab img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
    pointer-events: none; /* klik tetap kena tombol, bukan gambar */
}

@media (max-width: 430px) {
    .ht-troops__avatar img {
        width: 66px;
        height: 66px;
    }
    .ht-user-stats,
    .ht-hero-stats {
        flex-direction: column;
    }
    .ht-hero-stat {
        justify-content: flex-end;
    }
    .ht-speed-mini-label {
        display: none;
    }
}

/* =====================================================================
   Bubble aktivitas Hidden Throne (kirim pasukan / rebut throne / cawan)
   ===================================================================== */
/* host: mengambang di TENGAH frame game (bukan pojok viewport) */
.ht-activity-host {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 108px; /* ganti dari bottom: 96px */
    bottom: auto;
    z-index: 1080;
    width: min(92vw, 460px);
    display: flex;
    flex-direction: column-reverse; /* biar pesan baru muncul paling atas */
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
/* pill transparan glassy ala QuizHero */
.ht-activity-msg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(15, 10, 12, 0.34);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    backdrop-filter: blur(6px) saturate(120%);
    color: #fff;
    font-size: 0.82rem;
    line-height: 1.25;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.14);
    animation: htActIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.ht-activity-msg.is-leaving {
    animation: htActOut 0.5s ease forwards;
}
.ht-activity-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.72rem;
    background: linear-gradient(135deg, #6d5efc, #a17bff);
}
.ht-activity-text {
    font-weight: 500;
}
/* aksen warna per jenis aktivitas */
.ht-activity-throneClaimed .ht-activity-icon {
    background: linear-gradient(135deg, #f7b733, #fc4a1a);
}
.ht-activity-cawanFound .ht-activity-icon {
    background: linear-gradient(135deg, #ffd200, #f7971e);
}
.ht-activity-troopSent .ht-activity-icon {
    background: linear-gradient(135deg, #43cea2, #185a9d);
}
.ht-activity-playerJoined .ht-activity-icon {
    background: linear-gradient(135deg, #56ccf2, #7f5efc);
}
@keyframes htActIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes htActOut {
    to {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
}
@media (max-width: 576px) {
    .ht-activity-host {
        top: 96px;
        width: min(94vw, 420px);
    }
    .ht-activity-msg {
        font-size: 0.78rem;
    }
}
.ht-reward {
    padding: 4px;
}

.ht-reward-intro {
    text-align: center;
    color: #e8d7aa;
    line-height: 1.5;
    margin-bottom: 14px;
    font-size: 12.5px;
}

.ht-reward-card {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 6px 10px;
    margin-bottom: 10px;

    border-radius: 12px;
    border: 1px solid rgba(221, 178, 67, 0.7);

    background: linear-gradient(
        135deg,
        rgba(92, 45, 10, 0.92),
        rgba(45, 18, 6, 0.95)
    );

    position: relative;
    overflow: hidden;
}

.ht-reward-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: #d8b14a;
}

.ht-reward-card__icon {
    width: 60px;
    min-width: 60px;
    height: 60px;

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

    border-radius: 50%;
    border: 2px solid #cfa448;
    background: rgba(0, 0, 0, 0.25);
}

.ht-reward-card__icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.ht-reward-card__content {
    flex: 1;
}

.ht-reward-card__title {
    color: #f5d67a;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.ht-reward-card__subtitle {
    color: #f3e2af;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.ht-reward-card__description {
    color: #ddcfab;
    line-height: 1.4;
    font-size: 11px;
}

.ht-reward-card__amount {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    margin-top: 6px;
    padding: 3px 7px;

    border-radius: 999px;
    border: 1px solid #b98a22;

    background: rgba(0, 0, 0, 0.25);
}

.ht-reward-card__amount img {
    width: 14px;
    height: 14px;
}

.ht-reward-card__amount .value {
    color: #fff0b5;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.ht-reward-card__amount .unit {
    color: #cdb37a;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 1px;
}

.ht-modal-frame--normal .ht-modal-body {
    padding: 60px 18px 50px;
}

/* CAMPAIGN TITLE */
.ht-campaign-title {
    position: relative;
    z-index: 3;
    margin-top: 8px;
    max-width: 70%;
    color: #fff3c8;
    font-family: Cinzel, serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    overflow-wrap: break-word;
    word-break: break-word;
    display: flex;
    align-items: center;
    min-height: 30px; /* biar sejajar center dengan tinggi logo/stat row */
    animation: 0.65s 0.2s both htDropIn;
}

/* TIMER — sekarang menempel di atas panel, rata kanan */
.ht-timer-row {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    margin: 14px 0 8px;
    animation: 0.65s 0.25s both htSlideUp;
}

.ht-campaign-timer {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(20, 8, 6, 0.55);
    border: 1px solid rgba(255, 215, 90, 0.4);
    backdrop-filter: blur(3px);
    color: #ffe9a8;
    font-size: 11.5px;
    font-weight: 800;
    white-space: nowrap;
}

.ht-campaign-timer__icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    flex-shrink: 0;
}

.ht-campaign-timer__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ht-campaign-timer.is-ending {
    border-color: rgba(237, 64, 64, 0.7);
    color: #ff8d8d;
    animation: htTimerPulse 1s ease-in-out infinite;
}

.ht-campaign-timer.is-ended {
    color: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.2);
}

@keyframes htTimerPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(237, 64, 64, 0.35);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(237, 64, 64, 0);
    }
}

@media (max-width: 360px) {
    .ht-campaign-title {
        font-size: 12.5px;
        max-width: 62%;
    }
    .ht-campaign-timer {
        font-size: 10.5px;
        padding: 0 9px;
    }
}
@media (max-width: 480px) {
    .ht-setup-nav {
        flex-direction: column;
    }

    .ht-hero-stat .lbl {
        display: none;
    }
}

.ht-campaign-timer[data-tooltip] {
    position: relative;
    cursor: help;
}

.ht-campaign-timer[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(20, 14, 6, 0.95);
    border: 1px solid rgba(201, 162, 83, 0.6);
    color: #f5efe2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 25;
}

.ht-campaign-timer[data-tooltip]::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 3px);
    right: 10px;
    border: 5px solid transparent;
    border-top-color: rgba(201, 162, 83, 0.6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 25;
}

.ht-campaign-timer[data-tooltip]:hover::after,
.ht-campaign-timer[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* =========================================================
   HASIL EKSPEDISI
   Fantasy / Royal Hidden Throne Style
   ========================================================= */

.ht-exp-result-list {
    max-height: 46vh;
    overflow-y: auto;
    padding: 4px 8px 12px 4px;
    margin: 4px 0 16px;

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

/* =========================================================
   ITEM
   ========================================================= */

.ht-exp-result {
    position: relative;

    padding: 12px 14px 12px 20px;

    background: linear-gradient(
        90deg,
        rgba(80, 43, 20, 0.55) 0%,
        rgba(45, 25, 14, 0.32) 55%,
        rgba(20, 12, 8, 0.12) 100%
    );

    border-top: 1px solid rgba(255, 215, 120, 0.16);
    border-bottom: 1px solid rgba(255, 215, 120, 0.1);

    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.28),
        0 4px 12px rgba(0, 0, 0, 0.2);

    border-radius: 3px;
}

/* =========================================================
   ORNAMEN AKSEN KIRI
   ========================================================= */

.ht-exp-result::before {
    content: "";

    position: absolute;
    left: 0;
    top: 7px;
    bottom: 7px;

    width: 3px;

    border-radius: 3px;

    background: #c99b45;

    box-shadow: 0 0 5px rgba(220, 170, 70, 0.35);
}

/* ujung kecil seperti ornamen */
.ht-exp-result::after {
    content: "";

    position: absolute;
    left: -2px;
    top: 50%;

    width: 7px;
    height: 7px;

    transform: translateY(-50%) rotate(45deg);

    background: #b88732;

    border: 1px solid #f0ce72;

    box-shadow: 0 0 6px rgba(240, 190, 80, 0.35);
}

/* =========================================================
   HEADER
   ========================================================= */

.ht-exp-result__head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
    margin-bottom: 6px;
}

/* =========================================================
   LABEL
   ========================================================= */

.ht-exp-result__label {
    color: #f3d27a;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.8px;
    text-transform: uppercase;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* =========================================================
   COUNT / BADGE
   ========================================================= */

.ht-exp-result__count {
    flex-shrink: 0;

    min-width: 42px;
    padding: 3px 9px;

    text-align: center;

    border-radius: 10px;

    background: linear-gradient(
        180deg,
        rgba(133, 92, 37, 0.48),
        rgba(55, 31, 15, 0.65)
    );

    border: 1px solid rgba(224, 177, 77, 0.32);

    color: #f6d77e;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.4px;

    box-shadow: inset 0 1px rgba(255, 225, 150, 0.08),
        0 2px 5px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   MESSAGE
   ========================================================= */

.ht-exp-msg {
    margin: 0;

    color: rgba(244, 227, 190, 0.78);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 12px;
    line-height: 1.5;

    word-break: break-word;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

/* =========================================================
   THRONE
   ========================================================= */

.ht-exp--throne::before {
    background: linear-gradient(180deg, #fff0a6, #d29a35);

    box-shadow: 0 0 7px rgba(255, 220, 110, 0.45);
}

.ht-exp--throne::after {
    background: #c29135;
    border-color: #ffe59a;
}

.ht-exp--throne .ht-exp-result__label {
    color: #ffe59a;

    text-shadow: 0 0 7px rgba(255, 210, 90, 0.18);
}

.ht-exp--throne .ht-exp-result__count {
    color: #ffe59a;

    border-color: rgba(255, 220, 120, 0.38);

    background: linear-gradient(
        180deg,
        rgba(151, 105, 34, 0.55),
        rgba(58, 34, 15, 0.7)
    );
}

/* =========================================================
   HOLDING
   ========================================================= */

.ht-exp--holding::before {
    background: linear-gradient(180deg, #ffd36a, #d87822);

    box-shadow: 0 0 7px rgba(239, 157, 55, 0.4);
}

.ht-exp--holding::after {
    background: #b8661f;
    border-color: #ffd47a;
}

.ht-exp--holding .ht-exp-result__label {
    color: #ffc766;

    text-shadow: 0 0 6px rgba(238, 148, 45, 0.15);
}

.ht-exp--holding .ht-exp-result__count {
    color: #ffd078;

    border-color: rgba(238, 157, 55, 0.32);

    background: linear-gradient(
        180deg,
        rgba(137, 72, 23, 0.5),
        rgba(55, 29, 14, 0.68)
    );
}

/* =========================================================
   FALLEN
   ========================================================= */

.ht-exp--fallen::before {
    background: linear-gradient(180deg, #ff8b72, #b92f2f);

    box-shadow: 0 0 7px rgba(237, 64, 64, 0.35);
}

.ht-exp--fallen::after {
    background: #a52e2e;
    border-color: #ff9b88;
}

.ht-exp--fallen .ht-exp-result__label {
    color: #ff9a8b;

    text-shadow: 0 0 7px rgba(237, 64, 64, 0.16);
}

.ht-exp--fallen .ht-exp-result__count {
    color: #ff9b8e;

    border-color: rgba(237, 64, 64, 0.3);

    background: linear-gradient(
        180deg,
        rgba(126, 35, 30, 0.48),
        rgba(53, 20, 15, 0.68)
    );
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

.ht-exp-result-list::-webkit-scrollbar {
    width: 4px;
}

.ht-exp-result-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
}

.ht-exp-result-list::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(230, 185, 90, 0.55),
        rgba(145, 94, 30, 0.45)
    );

    border-radius: 999px;
}

.ht-exp-result-list::-webkit-scrollbar-thumb:hover {
    background: rgba(235, 190, 95, 0.75);
}
/* ===== FLASH ERROR MODAL ===== */
.ht-alert {
    text-align: center;
    padding: 4px 0 0;
}

.ht-alert__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(
        circle at 50% 40%,
        rgba(237, 64, 64, 0.25),
        rgba(43, 4, 7, 0.4)
    );
    border: 2px solid rgba(237, 64, 64, 0.55);
    box-shadow: 0 0 22px rgba(237, 64, 64, 0.35);
    animation: htAlertPulse 1.6s ease-in-out infinite;
}

.ht-alert__icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@keyframes htAlertPulse {
    0%,
    100% {
        box-shadow: 0 0 16px rgba(237, 64, 64, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 28px rgba(237, 64, 64, 0.55);
        transform: scale(1.04);
    }
}

.ht-alert__title {
    margin: 0 0 8px;
    color: #ff8d8d;
    font-family: Cinzel, serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(237, 64, 64, 0.35);
}

.ht-alert__desc {
    margin: 0 0 6px;
    color: #fff3c8;
    font-size: 13.5px;
    line-height: 1.55;
    font-weight: 600;
}

.ht-alert__list {
    margin: 8px 0 0;
    padding: 10px 14px;
    list-style: disc;
    text-align: left;
    border-radius: 12px;
    background: rgba(237, 64, 64, 0.08);
    border: 1px solid rgba(237, 64, 64, 0.22);
    color: rgba(255, 243, 200, 0.82);
    font-size: 12px;
    line-height: 1.5;
}

.ht-alert__btn {
    width: 100%;
    min-height: 46px;
    margin-top: 18px;
    border: 1px solid rgba(237, 64, 64, 0.6);
    border-radius: 14px;
    background: linear-gradient(180deg, #c0392b, #7b171b);
    color: #fff3c8;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(112, 18, 20, 0.3);
    transition: filter 0.12s ease, transform 0.1s ease;
}

.ht-alert__btn:hover {
    filter: brightness(1.08);
}

.ht-alert__btn:active {
    transform: translateY(1px);
}

.ht-asset-summary-desc {
    font-size: 13px;
}

.ht-booster-row {
    display: flex;
    gap: 8px;
    z-index: 999;
    position: relative;
    margin: 10px 0 12px;
}

.ht-booster-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}

.ht-booster-badge img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.ht-booster-badge.is-inactive {
    cursor: pointer;
}

.ht-booster-badge.is-inactive img {
    opacity: 0.4;
    filter: grayscale(0.3);
}

.ht-booster-badge.is-inactive:hover {
    transform: translateY(-2px);
}

.ht-booster-badge.is-inactive:active {
    transform: scale(0.94);
}

.ht-booster-badge__dot {
    position: absolute;

    top: -2px;
    right: -2px;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #6ee89a;
    border: 2px solid rgba(20, 14, 8, 0.9);

    box-shadow: 0 0 6px rgba(110, 232, 154, 0.7);
}
.ht-process-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ht-process-img {
    width: 56px;
    height: 56px;

    flex: 0 0 auto;
    display: block;
    object-fit: contain;

    border: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.ht-process-text {
    flex: 1;
    min-width: 0;
}

.ht-process-boost-icon {
    flex: 0 0 auto;

    width: 40px;
    height: 40px;

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

.ht-process-boost-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ht-timer-row {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 6px;
}

.ht-timer-label {
    font-family: "Cinzel", serif; /* sesuaikan sama font judul yang dipakai */
    font-size: 13px;
    letter-spacing: 1px;
    color: #d8b26a; /* warna emas, sesuaikan sama badge */
    text-transform: uppercase;
}

.ht-booster-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ht-booster-status {
    font-family: "Cinzel", serif; /* sesuaikan font tema kamu */
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

.ht-booster-status.is-on {
    color: #3ddc6a; /* hijau buat ON, sesuaikan */
}

.ht-booster-status.is-off {
    color: #d8b26a; /* emas/redup buat OFF, sesuaikan */
    opacity: 0.7;
}

.ht-event-ended {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 14px;

    background: linear-gradient(
        180deg,
        rgba(58, 40, 18, 0.8),
        rgba(25, 16, 10, 0.85)
    );

    border: 1px solid rgba(221, 174, 69, 0.4);
}

.ht-event-ended i {
    font-size: 1.1rem;
    color: #f3b93e;
    margin-top: 2px;
    flex: 0 0 auto;
}

.ht-event-ended__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ht-event-ended__text strong {
    font-family: "Cinzel", serif;
    font-size: 0.85rem;
    color: #ffe38b;
}

.ht-event-ended__text span {
    font-size: 0.74rem;
    color: rgba(255, 243, 200, 0.7);
    line-height: 1.4;
}

.ht-result-card {
    margin-bottom: 16px;
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: linear-gradient(
        180deg,
        rgba(35, 24, 14, 0.9),
        rgba(22, 15, 9, 0.92)
    );
    border: 1px solid rgba(255, 210, 120, 0.18);
    position: relative;
    z-index: 9999;
}

.ht-result-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #f3e7c5;
}

.ht-result-card__title img,
.ht-result-card__title i {
    width: 20px;
    height: 20px;
    object-fit: contain;
    color: #f3b93e;
}

.ht-result-card__me {
    font-size: 0.78rem;
    color: rgba(255, 243, 200, 0.75);
    margin: 0 0 10px;
}

.ht-result-card__me.is-muted {
    color: rgba(255, 255, 255, 0.4);
}

.ht-result-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ht-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 210, 120, 0.14);
}

.ht-result-item img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}
.ht-result-item__pos {
    width: 20px;
    text-align: center;
    font-weight: 700;
    color: #d9c08a;
}
.ht-result-item__info {
    flex: 1;
    min-width: 0;
}
.ht-result-item__char {
    font-size: 0.82rem;
    font-weight: 600;
    color: #f3e7c5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ht-result-item__user {
    font-size: 0.68rem;
    color: rgba(255, 243, 200, 0.55);
}
.ht-result-item__stat {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffe39a;
    white-space: nowrap;
}

.ht-result-item.is-top1 {
    border-color: rgba(255, 205, 90, 0.6);
}
.ht-result-item.is-top2 {
    border-color: rgba(210, 214, 224, 0.5);
}
.ht-result-item.is-top3 {
    border-color: rgba(205, 130, 70, 0.5);
}

.ht-result-card__reward {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
}

.ht-result-card__reward img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.ht-result-card__reward .value {
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffe39a;
}

.ht-result-card__reward .unit {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.55);
}

.ht-profile-wrap {
    position: relative;
}
.ht-leading-badge {
    position: absolute;
    top: 50px;
    left: 0;
    max-width: 150px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(20, 14, 6, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 215, 106, 0.5);
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 5;
}
.ht-leading-badge__avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ht-leading-badge__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    overflow: hidden;
}

.ht-leading-badge__label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffd76a;
    opacity: 0.9;
}

.ht-leading-badge__name {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ht-timer-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 99;
}

/* ht-timer-row biarkan tetap seperti aslinya (column: label di atas, pill di bawah) */

.ht-lamp-icon {
    cursor: pointer;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.ht-lamp-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}
.ht-lamp-icon:hover img {
    transform: scale(1.1);
}

.ht-lamp-modal .modal-content {
    background: #1a120b;
    border: 1px solid rgba(212, 175, 100, 0.4);
}
.ht-lamp-modal .carousel-item img {
    border-radius: 6px;
}

.ht-lamp-modal .modal-content {
    background: #1a120b;
    border: 1px solid rgba(212, 175, 100, 0.4);
    border-radius: 12px;
}

.ht-lamp-modal .modal-dialog {
    max-width: 640px;
}

.ht-lamp-modal .carousel-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

/* Paksa indicator keluar dari overlay gambar, taruh di bawah sebagai elemen normal */
.ht-lamp-modal .carousel-indicators {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 14px 0 0 !important;
    display: flex !important;
    justify-content: center;
    gap: 8px;
}

.ht-lamp-modal .carousel-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: rgba(243, 185, 62, 0.35);
    border: none;
    opacity: 1;
    margin: 0;
    text-indent: 0;
}

.ht-lamp-modal .carousel-indicators .active {
    background-color: #f3b93e;
    box-shadow: 0 0 6px rgba(243, 185, 62, 0.7);
}

.ht-lamp-modal .carousel-control-prev,
.ht-lamp-modal .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    opacity: 0.85;
}
.ht-lamp-modal .carousel-control-prev {
    left: 10px;
}
.ht-lamp-modal .carousel-control-next {
    right: 10px;
}
