.hidb-page {
    --hidb-space-1: 6px;
    --hidb-space-2: 10px;
    --hidb-space-3: 14px;
    --hidb-space-4: 18px;
    --hidb-space-5: 26px;
    --hidb-radius-sm: 12px;
    --hidb-radius-md: 16px;
    --hidb-radius-lg: 22px;
    --hidb-border: rgba(148, 163, 184, 0.28);
    --hidb-bg-panel: rgba(9, 18, 39, 0.84);
    --hidb-bg-panel-strong: rgba(5, 12, 29, 0.9);
    --hidb-text: #e6eefc;
    --hidb-text-soft: #bfd0e9;
    --hidb-focus: #f3cf89;
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.3rem 1rem 2.8rem;
}

.hidb-page :is(a, button, input, select) {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.hidb-page :is(a, button, input, select):focus-visible {
    outline: 2px solid var(--hidb-focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(243, 207, 137, 0.22), 0 0 0 6px rgba(56, 189, 248, 0.12);
}

.hidb-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: var(--hidb-radius-lg);
    background:
        radial-gradient(circle at 88% 14%, rgba(45, 212, 191, 0.14), transparent 34%),
        radial-gradient(circle at 12% 88%, rgba(251, 191, 36, 0.11), transparent 46%),
        linear-gradient(134deg, rgba(7, 14, 32, 0.97), rgba(14, 27, 49, 0.92) 52%, rgba(30, 41, 59, 0.82));
    padding: 1.1rem 1.1rem 1.2rem;
    box-shadow: 0 14px 36px rgba(2, 6, 23, 0.34);
}

.hidb-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.07), transparent 36%),
        repeating-linear-gradient(-26deg, rgba(255, 255, 255, 0.024) 0 2px, transparent 2px 12px);
    opacity: 0.2;
}

.hidb-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 999px;
    padding: 0.32rem 0.72rem;
    font-size: 0.71rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    background: rgba(2, 6, 23, 0.42);
    color: #dbeafe;
}

.hidb-hero h1 {
    margin: 0.58rem 0 0;
    position: relative;
    z-index: 1;
    color: #f8e7be;
    font-size: clamp(1.54rem, 2.06vw, 2.16rem);
    letter-spacing: 0.01em;
}

.hidb-hero p {
    margin: 0.72rem 0 0;
    max-width: 840px;
    position: relative;
    z-index: 1;
    color: rgba(237, 245, 255, 0.94);
    line-height: 1.72;
    font-size: 0.95rem;
}

.hidb-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.84rem;
}

.hidb-link-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.84rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: rgba(15, 23, 42, 0.68);
    color: #dbeafe;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
    font-weight: 700;
}

.hidb-link-btn:hover {
    border-color: rgba(45, 212, 191, 0.68);
    background: rgba(30, 41, 59, 0.92);
    color: #f8feff;
    transform: translateY(-1px);
}

.hidb-panel {
    margin-top: var(--hidb-space-4);
    border: 1px solid var(--hidb-border);
    border-radius: var(--hidb-radius-md);
    background:
        linear-gradient(160deg, rgba(8, 16, 36, 0.89), rgba(13, 24, 46, 0.79)),
        radial-gradient(circle at 86% 4%, rgba(45, 212, 191, 0.09), transparent 38%);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.3);
    overflow: hidden;
}

.hidb-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.13));
    padding: 0.92rem 1.02rem;
}

.hidb-panel-head h2 {
    margin: 0;
    font-size: 1.06rem;
    color: #edf3ff;
}

.hidb-panel-head p {
    margin: 0;
    font-size: 0.81rem;
    color: #c9dcf3;
}

.hidb-controls {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.hidb-field {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
}

.hidb-field--search {
    grid-column: span 2;
}

.hidb-field span {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #d4e2f3;
}

.hidb-field input,
.hidb-field select {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(148, 163, 184, 0.46);
    border-radius: 11px;
    background: rgba(2, 6, 23, 0.76);
    color: #f8fafc;
    padding: 0.55rem 0.6rem;
    font-size: 0.9rem;
}

.hidb-field input::placeholder {
    color: rgba(203, 213, 225, 0.76);
}

.hidb-field input:focus,
.hidb-field select:focus {
    border-color: rgba(45, 212, 191, 0.66);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16);
}

.hidb-toggles {
    grid-column: span 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
}

.hidb-toggles label {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: var(--hidb-text-soft);
    font-size: 0.84rem;
}

.hidb-toggles input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #f59e0b;
}

.hidb-actions {
    grid-column: span 2;
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    align-items: center;
}

.hidb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.5rem 0.86rem;
    border: 1px solid rgba(148, 163, 184, 0.46);
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.64);
    color: #e5edf8;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
}

.hidb-btn:hover {
    border-color: rgba(45, 212, 191, 0.62);
    background: rgba(30, 41, 59, 0.82);
}

.hidb-btn--primary {
    border-color: rgba(245, 158, 11, 0.55);
    background: linear-gradient(160deg, rgba(120, 53, 15, 0.55), rgba(59, 25, 5, 0.68));
    color: #fff3dd;
}

.hidb-btn--primary:hover {
    border-color: rgba(251, 191, 36, 0.7);
    background: linear-gradient(160deg, rgba(180, 83, 9, 0.62), rgba(120, 53, 15, 0.72));
}

.hidb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(198px, 1fr));
    gap: 0.84rem;
    padding: 1rem;
}

.hidb-card {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    background:
        radial-gradient(circle at 85% 8%, rgba(56, 189, 248, 0.12), transparent 36%),
        linear-gradient(160deg, rgba(8, 16, 36, 0.92), rgba(11, 24, 49, 0.76));
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.34);
    overflow: hidden;
}

.hidb-card-link {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: stretch;
    padding: 0.72rem;
    text-decoration: none;
    color: var(--hidb-text);
    min-height: 196px;
}

.hidb-card:hover {
    border-color: rgba(94, 234, 212, 0.65);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.46);
}

.hidb-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.55rem;
}

.hidb-card-icon {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.62));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hidb-card-icon img {
    width: 60px;
    height: 60px;
    image-rendering: pixelated;
}

.hidb-card-icon-placeholder {
    font-weight: 700;
    color: #94a3b8;
}

.hidb-card-title {
    display: block;
    font-size: 1rem;
    color: #f5f9ff;
    line-height: 1.3;
    min-height: 2.6em;
    font-weight: 800;
}

.hidb-card-body {
    display: flex;
    flex-direction: column;
    min-height: 110px;
}

.hidb-meta {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.8rem;
    color: #bfd4ee;
    min-height: 1.2em;
}

.hidb-badges {
    margin-top: 0.42rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.34rem;
}

.hidb-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.62);
    white-space: nowrap;
}

.hidb-badge--rarity {
    border-color: rgba(245, 158, 11, 0.45);
    color: #fde68a;
    background: rgba(120, 53, 15, 0.26);
    margin-left: auto;
}

.hidb-state {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 999px;
    padding: 0.2rem 0.52rem;
    font-size: 0.69rem;
    letter-spacing: 0.01em;
    background: rgba(2, 6, 23, 0.75);
    color: #dbeafe;
    white-space: nowrap;
}

.hidb-state--craft {
    border-color: rgba(45, 212, 191, 0.52);
    color: #99f6e4;
}

.hidb-state--salvage {
    border-color: rgba(96, 165, 250, 0.5);
    color: #bfdbfe;
}

.hidb-state--drop {
    border-color: rgba(251, 146, 60, 0.58);
    color: #fed7aa;
}

.rarity-common {
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14), 0 8px 20px rgba(2, 6, 23, 0.24);
}

.rarity-uncommon {
    box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.2), 0 10px 22px rgba(2, 6, 23, 0.26);
}

.rarity-rare {
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.24), 0 10px 24px rgba(2, 6, 23, 0.28);
}

.rarity-epic {
    box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.3), 0 10px 26px rgba(2, 6, 23, 0.3);
}

.rarity-legendary {
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.34), 0 12px 30px rgba(2, 6, 23, 0.34);
}

.hidb-empty,
.hidb-noscript {
    margin: 0.3rem 1rem 1rem;
    border: 1px solid rgba(251, 191, 36, 0.32);
    border-radius: var(--hidb-radius-sm);
    background: rgba(120, 53, 15, 0.18);
    color: #fde68a;
    padding: 0.66rem 0.74rem;
}

.hidb-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1rem 1rem;
}

.hidb-pagination a,
.hidb-pagination strong,
.hidb-pagination span {
    min-width: 36px;
    min-height: 34px;
    padding: 0.34rem 0.54rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
}

.hidb-pagination a {
    color: #e2ebf9;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.65);
}

.hidb-pagination a:hover {
    border-color: rgba(45, 212, 191, 0.65);
    background: rgba(30, 41, 59, 0.84);
}

.hidb-pagination strong {
    border: 1px solid rgba(251, 191, 36, 0.62);
    background: rgba(146, 64, 14, 0.32);
    color: #fde68a;
}

.hidb-panel--detail {
    padding: 1rem;
}

.hidb-hero--item .hidb-item-hero-meta {
    margin-top: 0.72rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.hidb-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.9rem;
}

.hidb-detail-ident {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.hidb-detail-ident img {
    width: 72px;
    height: 72px;
    image-rendering: pixelated;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(2, 6, 23, 0.7);
}

.hidb-detail-icon-fallback {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.7);
    color: #94a3b8;
    font-weight: 800;
    font-size: 1.1rem;
}

.hidb-detail-ident h2,
.hidb-detail-ident h3 {
    margin: 0;
    color: #f8e7be;
    font-size: 1.08rem;
}

.hidb-detail-ident p {
    margin: 0.24rem 0 0;
    color: #d6e5f8;
    font-size: 0.84rem;
}

.hidb-item-id {
    margin: 0.16rem 0 0;
    font-size: 0.76rem;
    color: #9fc2ea;
    letter-spacing: 0.01em;
}

.hidb-panel--obtain {
    margin-top: 0.86rem;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    background:
        radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.12), transparent 38%),
        linear-gradient(160deg, rgba(7, 15, 35, 0.92), rgba(10, 22, 44, 0.84));
    padding: 0.88rem;
}

.hidb-obtain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.64rem;
}

.hidb-obtain-block {
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.42);
    padding: 0.62rem;
}

.hidb-obtain-block h3,
.hidb-obtain-block h4 {
    margin: 0;
}

.hidb-obtain-block h3 {
    color: #f0f6ff;
    font-size: 0.92rem;
}

.hidb-obtain-block h4 {
    margin-top: 0.52rem;
    color: #c9dcf6;
    font-size: 0.79rem;
}

.hidb-obtain-list {
    margin: 0.52rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.32rem;
}

.hidb-obtain-list li {
    display: grid;
    gap: 0.16rem;
}

.hidb-obtain-list a,
.hidb-obtain-list span {
    color: #e5eefc;
    text-decoration: none;
    font-size: 0.84rem;
}

.hidb-obtain-list a:hover {
    color: #93c5fd;
}

.hidb-obtain-meta {
    font-size: 0.75rem;
    color: #9fc2ea;
}

.hidb-drop-mob-grid {
    margin-top: 0.62rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 0.48rem;
}

.hidb-drop-mob-accordion {
    margin-top: 0.62rem;
    display: grid;
    gap: 0.62rem;
    position: relative;
}

.hidb-drop-mob-accordion .hidb-drop-mob-grid {
    margin-top: 0;
}

.hidb-drop-mob-switch {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.hidb-drop-mob-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.44rem 0.7rem;
    display: none;
}

.hidb-drop-mob-accordion.is-collapsible .hidb-drop-mob-actions {
    display: flex;
}

.hidb-drop-mob-toggle {
    display: inline-flex;
    min-height: 36px;
    padding: 0.4rem 0.78rem;
    font-size: 0.78rem;
    cursor: pointer;
}

.hidb-drop-mob-count {
    margin: 0;
    color: #9fc2ea;
    font-size: 0.75rem;
    line-height: 1.25;
}

.hidb-drop-mob-card {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.52);
    padding: 0.44rem;
    display: grid;
    gap: 0.34rem;
}

.hidb-drop-mob-link {
    display: grid;
    justify-items: center;
    gap: 0.28rem;
    text-decoration: none;
}

.hidb-drop-mob-thumb {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(15, 23, 42, 0.72);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hidb-drop-mob-thumb img {
    width: 96px;
    height: 96px;
    object-fit: cover;
}

.hidb-drop-mob-thumb-empty {
    color: #94a3b8;
    font-weight: 700;
}

.hidb-drop-mob-name {
    color: #e5eefc;
    font-size: 0.78rem;
    line-height: 1.26;
    text-align: center;
}

.hidb-drop-mob-link:hover .hidb-drop-mob-name {
    color: #93c5fd;
}

.hidb-drop-mob-stats {
    display: grid;
    gap: 0.14rem;
}

.hidb-drop-mob-stats span {
    color: #9fc2ea;
    font-size: 0.7rem;
    line-height: 1.25;
}

.hidb-drop-mob-toggle--less {
    display: none;
}

.hidb-drop-mob-accordion.is-collapsible .hidb-drop-mob-switch:checked ~ .hidb-drop-mob-actions .hidb-drop-mob-toggle--more {
    display: none;
}

.hidb-drop-mob-accordion.is-collapsible .hidb-drop-mob-switch:checked ~ .hidb-drop-mob-actions .hidb-drop-mob-toggle--less {
    display: inline-flex;
}

@media (min-width: 681px) {
    .hidb-drop-mob-accordion.is-collapsible-mobile:not(.is-collapsible-desktop) .hidb-drop-mob-actions {
        display: none;
    }

    .hidb-drop-mob-accordion.is-collapsible-desktop .hidb-drop-mob-grid .hidb-drop-mob-card:nth-child(n+17) {
        display: none;
    }

    .hidb-drop-mob-accordion.is-collapsible-desktop .hidb-drop-mob-switch:checked ~ .hidb-drop-mob-grid .hidb-drop-mob-card {
        display: grid;
    }
}

.hidb-detail-grid {
    margin-top: 0.88rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.78rem;
}

.hidb-detail-block {
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(6, 13, 29, 0.72), rgba(15, 23, 42, 0.56));
    padding: 0.72rem;
}

.hidb-detail-block h3,
.hidb-detail-block h4 {
    margin: 0;
    color: #f8e7be;
    font-size: 0.95rem;
}

.hidb-detail-block h4 {
    margin-top: 0.58rem;
    font-size: 0.86rem;
    color: #e2edff;
}

.hidb-detail-block p {
    margin: 0.42rem 0 0;
    color: var(--hidb-text-soft);
    line-height: 1.62;
    font-size: 0.88rem;
}

.hidb-note {
    margin-top: 0.55rem;
    color: #c7d8ef;
    line-height: 1.68;
}

.hidb-item-description {
    margin-top: 0.58rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    background: linear-gradient(150deg, rgba(7, 16, 36, 0.75), rgba(9, 23, 48, 0.6));
    padding: 0.52rem 0.62rem;
}

.hidb-item-description p {
    margin: 0;
    color: #d9e6f8;
    font-size: 0.86rem;
    line-height: 1.68;
}

.hidb-item-main {
    margin-top: 0.9rem;
}

.hidb-item-main .hidb-detail-head {
    border-bottom: 1px solid rgba(148, 163, 184, 0.26);
    padding-bottom: 0.8rem;
}

.hidb-item-sections {
    margin-top: 0.92rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.76rem;
}

.hidb-item-main .hidb-detail-block {
    border-radius: 18px;
    min-height: 260px;
    background: linear-gradient(160deg, rgba(2, 11, 28, 0.92), rgba(5, 19, 44, 0.85));
}

.hidb-item-main .hidb-detail-block h3 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #f0f6ff;
}

.hidb-item-main .hidb-detail-block h3 span {
    color: #bfdbfe;
}

.hidb-item-main .hidb-ingredient-grid {
    grid-template-columns: repeat(auto-fill, minmax(102px, 1fr));
}

.hidb-item-tips {
    margin: 0.52rem 0 0;
    padding-left: 1.05rem;
    color: #d9e6f8;
    line-height: 1.62;
}

.hidb-item-tips li + li {
    margin-top: 0.24rem;
}

.hidb-item-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.52rem;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 12px;
    overflow: hidden;
}

.hidb-item-table th,
.hidb-item-table td {
    padding: 0.48rem 0.56rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    text-align: left;
    font-size: 0.85rem;
}

.hidb-item-table tr:last-child th,
.hidb-item-table tr:last-child td {
    border-bottom: 0;
}

.hidb-item-table th {
    width: 46%;
    color: #dce8fa;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.52);
}

.hidb-item-table td {
    color: #f2f7ff;
    background: rgba(2, 6, 23, 0.35);
}

.hidb-item-guide {
    margin-top: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 15px;
    padding: 0.84rem 0.9rem;
    background:
        linear-gradient(150deg, rgba(8, 16, 36, 0.8), rgba(15, 23, 42, 0.65)),
        radial-gradient(circle at 10% 10%, rgba(94, 234, 212, 0.08), transparent 35%);
}

.hidb-item-guide h2 {
    margin: 0;
    color: #f8e7be;
    font-size: 1.02rem;
}

.hidb-item-guide p {
    margin: 0.52rem 0 0;
    color: #d3e2f5;
    line-height: 1.72;
    font-size: 0.92rem;
}

.hidb-chip-list {
    margin: 0.52rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.hidb-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.74);
    color: #e3ecfa;
    text-decoration: none;
    padding: 0.2rem 0.56rem;
    font-size: 0.78rem;
    line-height: 1.35;
}

a.hidb-chip:hover {
    border-color: rgba(45, 212, 191, 0.66);
    background: rgba(15, 23, 42, 0.84);
}

.hidb-modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.hidb-modal[hidden] {
    display: none;
}

.hidb-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(3px);
}

.hidb-modal-panel {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 8%, rgba(56, 189, 248, 0.12), transparent 36%),
        linear-gradient(160deg, rgba(7, 15, 36, 0.98), rgba(10, 22, 44, 0.95));
    box-shadow: 0 24px 52px rgba(2, 6, 23, 0.56);
    padding: 1.02rem;
}

.hidb-modal-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.84);
    color: #dbeafe;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.hidb-modal-close:hover {
    border-color: rgba(125, 211, 252, 0.7);
    background: rgba(30, 41, 59, 0.95);
    color: #f8fbff;
}

.hidb-modal-content {
    padding-right: 0;
}

.hidb-modal-layout {
    display: grid;
    gap: 0.84rem;
}

.hidb-modal-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.15rem 2.7rem 0.7rem 0.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.26);
}

.hidb-modal-item-head {
    display: flex;
    align-items: center;
    gap: 0.84rem;
    min-width: 0;
}

.hidb-modal-icon {
    width: 86px;
    height: 86px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.66));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hidb-modal-icon img {
    width: 74px;
    height: 74px;
    image-rendering: pixelated;
}

.hidb-modal-intro h2 {
    margin: 0;
    color: #fff2c6;
    font-size: clamp(1.34rem, 2.3vw, 2.56rem);
    line-height: 1.12;
    text-transform: uppercase;
}

.hidb-modal-grade {
    margin: 0 0 0.36rem;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-weight: 800;
    color: #60a5fa;
}

.hidb-modal-item-meta {
    margin: 0.4rem 0 0;
    color: #d4e4f8;
    font-size: 0.89rem;
}

.hidb-btn--ghost {
    background: rgba(2, 6, 23, 0.66);
    border-color: rgba(148, 163, 184, 0.52);
}

.hidb-modal-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.hidb-modal-section {
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(2, 11, 28, 0.92), rgba(5, 19, 44, 0.85));
    padding: 0.86rem 0.9rem;
    min-height: 260px;
}

.hidb-modal-section-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #f0f6ff;
    font-size: 0.94rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hidb-modal-line {
    margin: 0.5rem 0 0;
    color: #d7e7fa;
    font-size: 0.9rem;
    line-height: 1.6;
}

.hidb-modal-subtitle {
    margin: 0.6rem 0 0.35rem;
    color: #dbe9fb;
    font-size: 0.79rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.hidb-ingredient-grid {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(102px, 1fr));
    gap: 0.5rem;
}

.hidb-ingredient-grid > li {
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
}

.hidb-ingredient-card {
    display: grid;
    justify-items: center;
    gap: 0.24rem;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(30, 58, 95, 0.28), rgba(2, 6, 23, 0.88));
    padding: 0.44rem 0.38rem 0.46rem;
    color: #e2edf9;
    text-decoration: none;
    min-height: 108px;
}

a.hidb-ingredient-card:hover {
    border-color: rgba(96, 165, 250, 0.7);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.22), rgba(2, 6, 23, 0.9));
}

.hidb-ingredient-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.36);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.8);
    overflow: hidden;
}

.hidb-ingredient-icon img {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
}

.hidb-ingredient-icon--empty {
    color: #94a3b8;
    font-weight: 700;
}

.hidb-ingredient-qty {
    font-size: 0.8rem;
    color: #93c5fd;
    font-weight: 800;
    line-height: 1;
}

.hidb-ingredient-name {
    font-size: 0.69rem;
    color: #d6e5f8;
    text-align: center;
    line-height: 1.24;
}

.hidb-ingredient-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: 999px;
    padding: 0.1rem 0.38rem;
    font-size: 0.62rem;
    text-align: center;
    line-height: 1.2;
    color: #dbeafe;
}

.hidb-ingredient-state--drop {
    border-color: rgba(251, 146, 60, 0.62);
    color: #fed7aa;
}

.hidb-ingredient-state--harvest {
    border-color: rgba(52, 211, 153, 0.58);
    color: #a7f3d0;
}

.hidb-ingredient-missing-icon {
    font-size: 0.58rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.24;
}

.hidb-ingredient-obtain-link {
    font-size: 0.68rem;
    color: #93c5fd;
    text-decoration: none;
    text-align: center;
}

.hidb-ingredient-obtain-link:hover {
    color: #bfdbfe;
}

.hidb-seo {
    margin-top: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 16px;
    background:
        linear-gradient(150deg, rgba(8, 16, 36, 0.84), rgba(15, 23, 42, 0.68)),
        radial-gradient(circle at 10% 10%, rgba(94, 234, 212, 0.07), transparent 36%);
    padding: 0.95rem 1rem;
    content-visibility: auto;
    contain-intrinsic-size: 1px 380px;
}

.hidb-seo h2,
.hidb-seo h3 {
    margin: 0;
    color: #f8e7be;
}

.hidb-seo h2 {
    font-size: 1.06rem;
}

.hidb-seo h3 {
    margin-top: 0.94rem;
    font-size: 0.96rem;
}

.hidb-seo p {
    margin: 0.62rem 0 0;
    color: #dbe7f7;
    line-height: 1.72;
    font-size: 0.9rem;
}

.hidb-seo ul {
    margin: 0.5rem 0 0.4rem;
    padding-left: 1.06rem;
    color: #dbe7f7;
}

.hidb-seo li {
    margin: 0.24rem 0;
    line-height: 1.62;
    font-size: 0.89rem;
}

.hidb-seo a {
    color: #93c5fd;
}

.hidb-faq {
    margin-top: 0.72rem;
    display: grid;
    gap: 0.5rem;
}

.hidb-faq-item {
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.48);
    overflow: hidden;
}

.hidb-faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.66rem 0.74rem;
    color: #f8ecce;
    font-weight: 700;
    font-size: 0.88rem;
}

.hidb-faq-item summary::-webkit-details-marker {
    display: none;
}

.hidb-faq-item summary::after {
    content: "+";
    color: #93c5fd;
    font-size: 1.1rem;
    line-height: 1;
}

.hidb-faq-item[open] summary::after {
    content: "−";
}

.hidb-faq-answer {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.2rem 0.74rem 0.62rem;
}

.hidb-faq-answer p {
    margin: 0.46rem 0 0;
}

.hidb-seo-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.72rem;
    border: 1px solid rgba(148, 163, 184, 0.34);
    overflow: hidden;
    border-radius: 12px;
}

.hidb-seo-table th,
.hidb-seo-table td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    padding: 0.54rem 0.56rem;
    text-align: left;
    vertical-align: top;
}

.hidb-seo-table th {
    background: rgba(15, 23, 42, 0.76);
    color: #e2edf9;
    font-size: 0.82rem;
}

.hidb-seo-table td {
    color: #dbe7f7;
    font-size: 0.84rem;
}

@media (prefers-reduced-motion: reduce) {
    .hidb-page * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 1080px) {
    .hidb-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hidb-field--search {
        grid-column: span 2;
    }

    .hidb-toggles,
    .hidb-actions {
        grid-column: span 2;
    }
}

@media (max-width: 820px) {
    .hidb-detail-grid {
        grid-template-columns: 1fr;
    }

    .hidb-item-sections {
        grid-template-columns: 1fr;
    }

    .hidb-item-main .hidb-detail-block {
        min-height: 0;
    }

    .hidb-grid {
        grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    }

    .hidb-card-link {
        min-height: 186px;
    }

    .hidb-modal-sections {
        grid-template-columns: 1fr;
    }

    .hidb-modal-section {
        min-height: 0;
    }
}

@media (max-width: 680px) {
    .hidb-page {
        padding: 0.84rem 0.6rem 1.8rem;
    }

    .hidb-hero,
    .hidb-panel--detail {
        padding: 0.84rem;
    }

    .hidb-controls {
        padding: 0.82rem;
        gap: 0.56rem;
    }

    .hidb-field,
    .hidb-field--search,
    .hidb-toggles,
    .hidb-actions {
        grid-column: span 2;
    }

    .hidb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0.82rem;
    }

    .hidb-detail-head {
        flex-direction: column;
        align-items: stretch;
    }

    .hidb-modal {
        padding: 0.6rem;
    }

    .hidb-modal-panel {
        padding: 0.86rem;
        max-height: calc(100vh - 1.2rem);
    }

    .hidb-modal-top {
        flex-direction: column;
        padding-right: 2.4rem;
    }

    .hidb-modal-icon {
        width: 74px;
        height: 74px;
        flex: 0 0 74px;
    }

    .hidb-modal-icon img {
        width: 62px;
        height: 62px;
    }

    .hidb-modal-intro h2 {
        font-size: clamp(1.2rem, 7vw, 1.9rem);
    }

    .hidb-ingredient-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hidb-modal-content {
        padding-right: 0;
    }

    .hidb-seo {
        padding: 0.82rem 0.78rem;
    }

    .hidb-seo h2 {
        font-size: 0.98rem;
    }

    .hidb-seo p,
    .hidb-seo li {
        font-size: 0.87rem;
    }

    .hidb-seo-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .hidb-item-table th,
    .hidb-item-table td {
        font-size: 0.8rem;
    }

    .hidb-drop-mob-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hidb-drop-mob-accordion.is-collapsible-mobile .hidb-drop-mob-grid .hidb-drop-mob-card:nth-child(n+9) {
        display: none;
    }

    .hidb-drop-mob-accordion.is-collapsible-mobile .hidb-drop-mob-switch:checked ~ .hidb-drop-mob-grid .hidb-drop-mob-card {
        display: grid;
    }

    .hidb-drop-mob-actions {
        justify-content: center;
    }

    .hidb-drop-mob-toggle {
        width: 100%;
        justify-content: center;
    }

    .hidb-drop-mob-count {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .hidb-grid {
        grid-template-columns: 1fr;
    }

    .hidb-ingredient-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hidb-panel--wiki-nav .hidb-panel-head h2 {
    color: #f6e4b8;
}

.hidb-wiki-nav {
    padding: 0.94rem 1rem 1rem;
}

.hidb-wiki-path {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    align-items: center;
    color: #d7e3f5;
    font-size: 0.86rem;
}

.hidb-wiki-path a {
    color: #9ad7ff;
    text-decoration: none;
}

.hidb-wiki-path span {
    color: rgba(203, 213, 225, 0.74);
}

.hidb-wiki-nav-links {
    margin-top: 0.74rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.54rem;
}

.hidb-wiki-similar {
    margin-top: 0.82rem;
}

.hidb-wiki-similar h3 {
    margin: 0 0 0.45rem;
    color: #f3e4bf;
    font-size: 0.96rem;
}
