.drop-page {
    --drop-gold: #f3c969;
    --drop-gold-strong: #ffd976;
    --drop-teal: #54c9bb;
    --drop-green: #79d38a;
    --drop-red: #ef7d82;
    --drop-surface: rgba(18, 19, 23, 0.94);
    --drop-surface-soft: rgba(30, 31, 37, 0.92);
    --drop-border: rgba(255, 255, 255, 0.12);
    --drop-muted: #aeb2bd;
    margin: 22px 0 56px;
    color: #f6f3ed;
}

.drop-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 2px 20px;
    border-bottom: 1px solid rgba(243, 201, 105, 0.34);
}

.drop-kicker {
    margin-bottom: 5px;
    color: var(--drop-gold);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.drop-heading h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0;
}

.drop-live-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--drop-muted);
    font-size: 13px;
    white-space: nowrap;
}

.drop-live-state__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--drop-green);
    box-shadow: 0 0 0 4px rgba(121, 211, 138, 0.12);
}

.drop-source-tabs {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    width: min(100%, 340px);
    margin-top: 18px;
    padding: 3px;
    border: 1px solid var(--drop-border);
    border-radius: 8px;
    background: rgba(18, 19, 23, 0.74);
}

.drop-source-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 6px;
    color: #afb3bd;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.drop-source-tab:hover,
.drop-source-tab:focus {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.drop-source-tab.is-active {
    background: var(--drop-gold);
    color: #17140e;
}

.drop-search-panel {
    position: relative;
    margin-top: 14px;
    padding: 18px;
    border: 1px solid var(--drop-border);
    border-radius: 8px;
    background: var(--drop-surface);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    z-index: 20;
}

.drop-search-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.drop-field {
    min-width: 0;
}

.drop-field label {
    display: block;
    margin: 0 0 7px;
    color: #e1ddd5;
    font-size: 13px;
    font-weight: 600;
}

.drop-input-wrap {
    position: relative;
}

.drop-input-wrap > .fa {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    color: #777d89;
    transform: translateY(-50%);
    pointer-events: none;
}

.drop-input {
    width: 100%;
    height: 46px;
    padding: 0 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    outline: none;
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
    font-size: 14px;
    letter-spacing: 0;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.drop-input::placeholder {
    color: #777d89;
}

.drop-input:focus {
    border-color: rgba(243, 201, 105, 0.72);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 0 0 3px rgba(243, 201, 105, 0.1);
}

.drop-input::-webkit-search-cancel-button {
    filter: invert(1);
    opacity: 0.55;
}

.drop-suggestions {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    max-height: 286px;
    overflow-y: auto;
    border: 1px solid rgba(243, 201, 105, 0.28);
    border-radius: 6px;
    background: #17191e;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.48);
    z-index: 40;
}

.drop-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: transparent;
    color: #f3f1ed;
    text-align: left;
    cursor: pointer;
}

.drop-suggestion:last-child {
    border-bottom: 0;
}

.drop-suggestion:hover,
.drop-suggestion.is-active {
    background: rgba(243, 201, 105, 0.1);
}

.drop-suggestion__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drop-search-actions {
    display: grid;
    grid-template-columns: 116px 46px;
    gap: 8px;
}

.drop-search-button,
.drop-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border-radius: 6px;
    transition: filter 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.drop-search-button {
    gap: 8px;
    border: 1px solid #d2aa4f;
    background: #e8bd5c;
    color: #16140f;
    font-weight: 700;
}

.drop-search-button:hover,
.drop-search-button:focus {
    filter: brightness(1.1);
}

.drop-search-button:disabled {
    cursor: wait;
    opacity: 0.78;
}

.drop-search-button.is-loading .fa {
    animation: drop-spin 0.85s linear infinite;
}

.drop-reset-button {
    border: 1px solid var(--drop-border);
    background: rgba(255, 255, 255, 0.055);
    color: #c9ccd2;
    text-decoration: none;
}

.drop-reset-button:hover,
.drop-reset-button:focus {
    border-color: rgba(239, 125, 130, 0.5);
    background: rgba(239, 125, 130, 0.1);
    color: #fff;
}

@keyframes drop-spin {
    to { transform: rotate(360deg); }
}

.drop-chest-catalog {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.drop-chest-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto 12px;
    align-items: center;
    gap: 11px;
    min-width: 0;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--drop-border);
    border-radius: 8px;
    background: var(--drop-surface-soft);
    color: #f4f1eb;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.drop-chest-card:hover,
.drop-chest-card:focus {
    border-color: rgba(84, 201, 187, 0.48);
    background: rgba(35, 36, 42, 0.98);
    color: #fff;
    transform: translateY(-2px);
}

.drop-chest-card__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border: 1px solid rgba(84, 201, 187, 0.3);
    border-radius: 6px;
    background: #111216;
}

.drop-chest-card__image img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.drop-chest-card__identity {
    min-width: 0;
}

.drop-chest-card__identity strong {
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.drop-chest-card__identity small,
.drop-chest-card__count small {
    display: block;
    margin-top: 4px;
    color: #858b96;
    font-size: 10px;
}

.drop-chest-card__count {
    color: var(--drop-teal);
    font-size: 16px;
    text-align: right;
}

.drop-chest-card__arrow {
    color: #686e78;
    font-size: 11px;
}

.drop-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    margin-top: 24px;
    padding: 34px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--drop-muted);
    text-align: center;
}

.drop-empty-state > .fa {
    margin-bottom: 16px;
    color: rgba(243, 201, 105, 0.72);
    font-size: 34px;
}

.drop-empty-state strong {
    margin-bottom: 5px;
    color: #f3f1ed;
    font-size: 18px;
}

.drop-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(84, 201, 187, 0.28);
    border-radius: 6px;
    background: rgba(84, 201, 187, 0.08);
    color: #c9e7e3;
}

.drop-notice.is-error {
    border-color: rgba(239, 125, 130, 0.34);
    background: rgba(239, 125, 130, 0.1);
    color: #ffd4d6;
}

.drop-item-source-results {
    margin-top: 28px;
}

.drop-item-source-overview {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(243, 201, 105, 0.3);
    border-radius: 8px;
    background: var(--drop-surface);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.drop-item-source-overview__identity {
    min-width: 0;
}

.drop-item-source-overview__identity h2 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0;
}

.drop-item-source-overview__identity span,
.drop-item-source-overview__count span {
    color: #858b96;
    font-size: 11px;
}

.drop-item-source-overview__count {
    text-align: right;
}

.drop-item-source-overview__count strong {
    display: block;
    color: var(--drop-teal);
    font-size: 20px;
    line-height: 1.2;
}

.drop-quantity-groups {
    margin-top: 24px;
}

.drop-quantity-group + .drop-quantity-group {
    margin-top: 28px;
}

.drop-quantity-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 2px 10px;
    border-bottom: 1px solid rgba(243, 201, 105, 0.28);
}

.drop-quantity-heading > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.drop-quantity-heading span {
    color: #969ba5;
    font-size: 12px;
}

.drop-quantity-heading strong {
    color: var(--drop-gold-strong);
    font-size: 20px;
}

.drop-item-source-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-top: 12px;
}

.drop-item-source-link {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 62px;
    padding: 10px;
    border: 1px solid var(--drop-border);
    border-radius: 6px;
    background: var(--drop-surface-soft);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.drop-item-source-link:hover,
.drop-item-source-link:focus {
    border-color: rgba(84, 201, 187, 0.48);
    background: rgba(35, 36, 42, 0.98);
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
}

.drop-item-source-link:focus-visible {
    outline: 2px solid var(--drop-teal);
    outline-offset: 2px;
}

.drop-item-source-link__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(84, 201, 187, 0.3);
    border-radius: 5px;
    background: rgba(84, 201, 187, 0.08);
    color: var(--drop-teal);
}

.drop-item-source-link__identity {
    min-width: 0;
}

.drop-item-source-link__identity strong {
    display: block;
    overflow: hidden;
    overflow-wrap: anywhere;
    color: #f4f1eb;
    font-size: 14px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drop-item-source-link__arrow {
    color: #6d737d;
    font-size: 11px;
}

.drop-results {
    margin-top: 28px;
}

.drop-monster-group {
    margin-bottom: 34px;
}

.drop-monster-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto 12px;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 9px 0 11px;
    border-bottom: 1px solid rgba(243, 201, 105, 0.28);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.drop-monster-header:hover,
.drop-monster-header:focus {
    border-color: rgba(243, 201, 105, 0.62);
    background: rgba(255, 255, 255, 0.035);
    color: inherit;
}

.drop-monster-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(243, 201, 105, 0.3);
    border-radius: 6px;
    background: rgba(243, 201, 105, 0.08);
    color: var(--drop-gold);
    font-size: 19px;
}

.drop-monster-group.is-chest .drop-monster-mark {
    border-color: rgba(84, 201, 187, 0.36);
    background: rgba(84, 201, 187, 0.09);
    color: var(--drop-teal);
}

.drop-monster-title {
    min-width: 0;
}

.drop-monster-title h2 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.drop-monster-title span,
.drop-monster-count span {
    color: #8f95a0;
    font-size: 12px;
}

.drop-monster-count {
    color: var(--drop-teal);
    font-size: 20px;
    font-weight: 700;
    text-align: right;
}

.drop-monster-count span {
    display: block;
    font-weight: 400;
}

.drop-source-open {
    color: #777d89;
    font-size: 11px;
}

.drop-item-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 14px;
}

.drop-item-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 132px;
    padding: 14px;
    border: 1px solid var(--drop-border);
    border-radius: 8px;
    background: var(--drop-surface-soft);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.drop-item-card:hover,
.drop-item-card:focus {
    border-color: rgba(243, 201, 105, 0.36);
    background: rgba(35, 36, 42, 0.98);
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
}

.drop-item-card:focus-visible {
    outline: 2px solid var(--drop-gold);
    outline-offset: 2px;
}

.drop-item-topline {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 12px;
    gap: 12px;
    align-items: center;
}

.drop-item-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 1px solid rgba(243, 201, 105, 0.24);
    border-radius: 6px;
    background: #111216;
}

.drop-item-image img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.drop-item-image__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #6f7580;
    font-size: 22px;
}

.drop-item-identity {
    min-width: 0;
}

.drop-item-identity h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    color: #f4f1eb;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.drop-item-identity > span {
    color: #858b96;
    font-size: 11px;
}

.drop-item-open {
    color: #777d89;
    font-size: 11px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.drop-item-card:hover .drop-item-open,
.drop-item-card:focus .drop-item-open {
    color: var(--drop-gold-strong);
    transform: translateX(2px);
}

.drop-item-stats {
    margin-top: 14px;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.drop-item-stats > div {
    min-width: 0;
}

.drop-item-stats span {
    display: block;
    margin-bottom: 3px;
    overflow: hidden;
    color: #858b96;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drop-item-stats strong {
    display: block;
    overflow-wrap: anywhere;
    color: #f3f1ed;
    font-size: 13px;
}

.drop-pagination {
    display: grid;
    grid-template-columns: 42px minmax(140px, auto) 42px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px auto 4px;
}

.drop-pagination.is-top {
    margin: 20px auto 2px;
}

.drop-pagination a,
.drop-pagination__spacer {
    width: 42px;
    height: 42px;
}

.drop-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(243, 201, 105, 0.34);
    border-radius: 6px;
    background: rgba(18, 19, 23, 0.82);
    color: var(--drop-gold);
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.drop-pagination a:hover,
.drop-pagination a:focus {
    border-color: var(--drop-gold);
    background: rgba(243, 201, 105, 0.1);
    color: var(--drop-gold-strong);
}

.drop-pagination strong {
    color: #d5d1c9;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 1199px) {
    .drop-chest-catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .drop-item-source-list,
    .drop-item-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .drop-page {
        margin-top: 8px;
    }

    .drop-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .drop-heading h1 {
        font-size: 27px;
    }

    .drop-source-tabs {
        width: 100%;
    }

    .drop-search-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .drop-search-actions {
        grid-template-columns: minmax(0, 1fr) 46px;
    }

    .drop-chest-catalog {
        grid-template-columns: minmax(0, 1fr);
    }

    .drop-item-source-list,
    .drop-item-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .drop-item-source-overview {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .drop-item-source-overview__count {
        grid-column: 2;
        text-align: left;
    }

    .drop-item-source-overview__count strong,
    .drop-item-source-overview__count span {
        display: inline;
    }

    .drop-item-source-overview__count span {
        margin-left: 4px;
    }
}

@media (max-width: 400px) {
    .drop-search-panel {
        padding: 14px;
    }

    .drop-monster-header {
        grid-template-columns: 40px minmax(0, 1fr) 12px;
    }

    .drop-monster-mark {
        grid-row: 1 / span 2;
        width: 40px;
        height: 40px;
    }

    .drop-monster-count {
        grid-column: 2;
        text-align: left;
    }

    .drop-source-open {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .drop-monster-count span {
        display: inline;
    }
}

@media (prefers-reduced-motion: reduce) {
    .drop-item-card,
    .drop-item-source-link,
    .drop-input,
    .drop-search-button,
    .drop-reset-button {
        transition: none;
    }
}
