.aa-db-hero {
    position: relative;
    margin-top: 110px;
    padding: 28px 0 20px;
    background:
        linear-gradient(180deg, rgba(4, 10, 20, 0.84), rgba(6, 14, 27, 0.94)),
        radial-gradient(60% 55% at 50% 0%, rgba(94, 170, 255, 0.15), transparent 72%);
}

.aa-db-shell {
    background: linear-gradient(180deg, rgba(9, 20, 35, 0.9), rgba(7, 14, 27, 0.95));
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.28);
    overflow: hidden;
}

.aa-db-head {
    padding: 22px 24px;
    background: linear-gradient(135deg, rgba(19, 57, 101, 0.95), rgba(11, 28, 54, 0.95));
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.aa-db-head h1,
.aa-db-head h2 {
    margin: 0;
    color: #fff0cf;
    font-family: 'Cinzel', serif;
}

.aa-db-head p {
    margin: 8px 0 0;
    color: rgba(235,245,255,0.88);
}

.aa-db-body {
    padding: 24px 24px 30px;
}

.aa-db-home-body {
    display: grid;
    gap: 24px;
}

.aa-db-home-launch {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 20px;
}

.aa-db-home-search-card,
.aa-db-home-browser-card {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(147, 201, 244, 0.14);
    background: linear-gradient(180deg, rgba(7, 18, 34, 0.92), rgba(4, 12, 24, 0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.aa-db-home-search-card-horizontal {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 0;
}

.aa-db-home-nav-card {
    margin-bottom: 0;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(147, 201, 244, 0.14);
    background:
        linear-gradient(180deg, rgba(7, 18, 34, 0.92), rgba(4, 12, 24, 0.98)),
        radial-gradient(120% 120% at 100% 0%, rgba(77, 155, 255, 0.14), transparent 54%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.aa-db-home-panel-head--compact {
    margin-bottom: 12px;
}

.aa-db-home-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 10px;
}

.aa-db-home-type-btn {
    position: relative;
    display: grid;
    gap: 4px;
    min-height: 78px;
    padding: 12px 13px 11px;
    border-radius: 14px;
    border: 1px solid rgba(143, 202, 255, 0.14);
    background: linear-gradient(180deg, rgba(11, 28, 50, 0.92), rgba(7, 17, 31, 0.98));
    text-decoration: none;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.aa-db-home-type-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(110% 100% at 100% 0%, rgba(255,255,255,0.08), transparent 52%);
    pointer-events: none;
}

.aa-db-home-type-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(147, 208, 255, 0.28);
    box-shadow: 0 14px 24px rgba(0,0,0,0.22);
}

.aa-db-home-type-btn-title {
    position: relative;
    color: #fff2d4;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    line-height: 1.08;
}

.aa-db-home-type-btn-sub {
    position: relative;
    color: rgba(214, 228, 243, 0.78);
    font-size: 11px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aa-db-home-type-btn--items {
    background: linear-gradient(180deg, rgba(25, 48, 81, 0.94), rgba(8, 18, 35, 0.98));
}

.aa-db-home-type-btn--npcs {
    background: linear-gradient(180deg, rgba(56, 26, 43, 0.94), rgba(15, 8, 19, 0.98));
}

.aa-db-home-type-btn--worlds {
    background: linear-gradient(180deg, rgba(18, 54, 53, 0.94), rgba(7, 17, 18, 0.98));
}

.aa-db-home-type-btn--quests {
    background: linear-gradient(180deg, rgba(60, 45, 17, 0.94), rgba(18, 14, 7, 0.98));
}

.aa-db-home-type-btn--skills {
    background: linear-gradient(180deg, rgba(41, 30, 72, 0.94), rgba(12, 9, 24, 0.98));
}

.aa-db-home-type-btn--titles {
    background: linear-gradient(180deg, rgba(62, 36, 22, 0.94), rgba(19, 11, 7, 0.98));
}

.aa-db-home-type-btn--mounts {
    background: linear-gradient(180deg, rgba(25, 53, 74, 0.94), rgba(8, 17, 27, 0.98));
}

.aa-db-home-type-btn--pets {
    background: linear-gradient(180deg, rgba(33, 55, 34, 0.94), rgba(10, 18, 10, 0.98));
}

.aa-db-home-type-btn--instances {
    background: linear-gradient(180deg, rgba(55, 31, 55, 0.94), rgba(16, 9, 19, 0.98));
}

.aa-db-section-nav {
    padding: 14px 24px 0;
    display: flex;
    justify-content: center;
}

.aa-db-section-nav-grid {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 1280px;
    padding: 10px 10px;
    border-radius: 16px;
    border: 1px solid rgba(134, 196, 250, 0.14);
    background:
        linear-gradient(180deg, rgba(6, 16, 30, 0.84), rgba(5, 12, 24, 0.92)),
        radial-gradient(120% 140% at 50% 0%, rgba(79, 159, 255, 0.1), transparent 58%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.aa-db-section-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    min-width: 0;
    padding: 0 12px;
    border-radius: 11px;
    border: 1px solid rgba(143, 202, 255, 0.2);
    background: linear-gradient(180deg, rgba(14, 31, 53, 0.94), rgba(8, 19, 34, 0.98));
    color: #e8f1fb;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(0,0,0,0.14);
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.aa-db-section-nav-link:hover {
    transform: translateY(-1px);
    color: #fff;
    border-color: rgba(150, 211, 255, 0.42);
    background: linear-gradient(180deg, rgba(23, 49, 80, 0.98), rgba(11, 26, 46, 0.98));
    box-shadow: 0 12px 22px rgba(0,0,0,0.2);
}

.aa-db-section-nav-link.is-active {
    color: #fffdf6;
    border-color: rgba(199, 229, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 24px rgba(0,0,0,0.22);
}

.aa-db-section-nav-link--items.is-active {
    background: linear-gradient(180deg, rgba(25, 48, 81, 0.94), rgba(8, 18, 35, 0.98));
}

.aa-db-section-nav-link--npcs.is-active {
    background: linear-gradient(180deg, rgba(56, 26, 43, 0.94), rgba(15, 8, 19, 0.98));
}

.aa-db-section-nav-link--worlds.is-active {
    background: linear-gradient(180deg, rgba(18, 54, 53, 0.94), rgba(7, 17, 18, 0.98));
}

.aa-db-section-nav-link--quests.is-active {
    background: linear-gradient(180deg, rgba(60, 45, 17, 0.94), rgba(18, 14, 7, 0.98));
}

.aa-db-section-nav-link--skills.is-active {
    background: linear-gradient(180deg, rgba(41, 30, 72, 0.94), rgba(12, 9, 24, 0.98));
}

.aa-db-section-nav-link--titles.is-active {
    background: linear-gradient(180deg, rgba(62, 36, 22, 0.94), rgba(19, 11, 7, 0.98));
}

.aa-db-section-nav-link--mounts.is-active {
    background: linear-gradient(180deg, rgba(25, 53, 74, 0.94), rgba(8, 17, 27, 0.98));
}

.aa-db-section-nav-link--pets.is-active {
    background: linear-gradient(180deg, rgba(33, 55, 34, 0.94), rgba(10, 18, 10, 0.98));
}

.aa-db-section-nav-link--instances.is-active {
    background: linear-gradient(180deg, rgba(55, 31, 55, 0.94), rgba(16, 9, 19, 0.98));
}

.aa-db-home-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.aa-db-home-panel-head h3 {
    margin: 2px 0 0;
    color: #fff1d3;
    font-family: 'Cinzel', serif;
    font-size: 21px;
}

.aa-db-home-panel-head p {
    margin: 0;
    max-width: 340px;
    color: rgba(210, 225, 241, 0.74);
    font-size: 13px;
    line-height: 1.5;
}

.aa-db-home-kicker {
    color: rgba(131, 196, 255, 0.86);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .95px;
}

.aa-db-searchbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
}

.aa-db-home-searchbar {
    margin-top: 2px;
    align-items: center;
}

.aa-db-searchbar input {
    flex: 1 1 280px;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(149, 198, 243, 0.28);
    background: rgba(3, 11, 22, 0.82);
    color: #f7fbff;
    padding: 0 16px;
}

.aa-db-searchbar select {
    min-width: 124px;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(149, 198, 243, 0.28);
    background: rgba(3, 11, 22, 0.82);
    color: #f7fbff;
    padding: 0 12px;
}

.aa-db-searchbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 150px;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #2ca1ff, #146dd8);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 0 18px;
    line-height: 1;
    white-space: nowrap;
}

.aa-db-home-browser-form {
    display: grid;
    gap: 18px;
}

.aa-db-home-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.aa-db-home-filter-row-selects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aa-db-home-filter-block {
    display: grid;
    gap: 10px;
}

.aa-db-home-chip-grid {
    gap: 9px;
}

.aa-db-home-item-fields {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(133, 195, 244, 0.12);
    background: linear-gradient(180deg, rgba(10, 25, 43, 0.7), rgba(6, 16, 29, 0.78));
}

.aa-db-select-wrap {
    position: relative;
}

.aa-db-select-wrap::after {
    content: "";
    position: absolute;
    right: 16px;
    top: calc(50% - 2px);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(220, 241, 255, 0.88);
    opacity: 0.96;
    pointer-events: none;
}

.aa-db-select-wrap select {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(149, 198, 243, 0.28);
    background: linear-gradient(180deg, rgba(8, 22, 40, 0.96), rgba(3, 11, 22, 0.96));
    color: #f7fbff;
    padding: 0 42px 0 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.aa-db-select-wrap select::-ms-expand {
    display: none;
}

.aa-db-select-wrap select:hover,
.aa-db-select-wrap select:focus {
    border-color: rgba(118, 195, 255, 0.42);
    outline: none;
}

.aa-db-select-wrap select option,
.aa-db-select-wrap select optgroup,
.aa-db-options-item select option,
.aa-db-options-item select optgroup,
.aa-db-searchbar select option,
.aa-db-searchbar select optgroup,
.aa-db-topnav-search select option,
.aa-db-topnav-search select optgroup {
    background: #091424;
    color: #f7fbff;
}

.aa-db-home-browser-actions {
    display: flex;
    justify-content: flex-end;
}

.aa-db-home-browser-submit {
    min-width: 180px;
    margin-bottom: 0;
}

.aa-db-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
    gap: 16px;
    margin-top: 0;
}

.aa-db-stat {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(147, 201, 244, 0.18);
    background: linear-gradient(180deg, rgba(9,25,44,0.92), rgba(5,14,28,0.94));
}

.aa-db-stat .label {
    display: block;
    color: rgba(202,225,248,0.78);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.aa-db-stat .value {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.aa-db-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 20px;
    align-items: start;
}

.aa-db-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.aa-db-grid--single .aa-db-card {
    background:
        linear-gradient(180deg, rgba(7,18,34,0.94), rgba(5,12,23,0.98)),
        radial-gradient(120% 120% at 100% 0%, rgba(77, 155, 255, 0.08), transparent 54%);
}

.aa-db-card {
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(7,18,34,0.94), rgba(5,12,23,0.98));
}

.aa-db-card h3 {
    margin: 0 0 10px;
    color: #fff1d3;
    font-family: 'Cinzel', serif;
    font-size: 20px;
}

.aa-db-item-sidebar {
    align-self: start;
    position: sticky;
    top: 0;
}

.aa-db-item-sidebar-meta {
    grid-template-columns: 1fr;
    margin-top: 0;
}

.aa-db-item-sidebar-section {
    margin-top: 18px;
}

.aa-db-quest-overview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}

.aa-db-quest-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    object-fit: cover;
}

.aa-db-quest-name {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.aa-db-quest-dialogs summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    color: #fff4db;
    font-weight: 700;
    list-style: none;
}

.aa-db-quest-dialogs summary::marker {
    content: "";
}

.aa-db-quest-dialog-list {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.aa-db-quest-dialog-page {
    border: 1px solid rgba(147, 201, 244, 0.14);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
}

.aa-db-quest-dialog-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.aa-db-quest-dialog-page-head h4 {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

.aa-db-quest-dialog-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.aa-db-quest-dialog-content {
    color: rgba(241, 247, 255, 0.92);
    line-height: 1.6;
}

.aa-db-quest-dialog-content p {
    margin: 0 0 12px;
}

.aa-db-quest-dialog-content p:last-child {
    margin-bottom: 0;
}

.aa-db-quest-dialog-spacer {
    min-height: 8px;
}

.aa-db-quest-dialog-steps {
    margin: 0 0 12px 18px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.aa-db-quest-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.aa-db-quest-dialog-action {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(139, 203, 255, 0.24);
    background: rgba(11, 31, 55, 0.78);
    color: #eaf5ff;
    text-decoration: none;
}

.aa-db-quest-dialog-action:hover {
    border-color: rgba(118, 195, 255, 0.5);
    color: #fff;
}

.aa-db-inline-link {
    color: #86c9ff;
    text-decoration: none;
}

.aa-db-inline-link:hover {
    color: #c9e8ff;
    text-decoration: underline;
}

.aa-db-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
    margin-top: 18px;
}

.aa-db-meta .meta {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.aa-db-meta .meta .label {
    display: block;
    color: rgba(207,225,243,0.75);
    font-size: 11px;
    text-transform: uppercase;
}

.aa-db-meta .meta .value {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-weight: 600;
}

.aa-db-results,
.aa-db-list {
    display: grid;
    gap: 12px;
}

.aa-db-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aa-db-result,
.aa-db-list-item {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(147, 201, 244, 0.16);
    background: rgba(255,255,255,0.03);
    color: inherit;
    text-decoration: none;
}

.aa-db-result:hover,
.aa-db-list-item:hover {
    border-color: rgba(118, 195, 255, 0.38);
    transform: translateY(-1px);
}

.aa-db-result-title,
.aa-db-list-title {
    color: #fff;
    font-weight: 700;
}

.aa-db-result-main {
    display: flex;
    align-items: center;
}

.aa-db-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 10px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.03);
}

.aa-db-result-sub,
.aa-db-list-sub,
.aa-db-muted {
    color: rgba(210,225,241,0.74);
    font-size: 13px;
}

.aa-db-meta-inline {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.aa-db-search-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aa-db-search-groups {
    display: grid;
    gap: 18px;
}

.aa-db-section-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.aa-db-section-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(130, 191, 241, 0.2);
    background: rgba(255,255,255,0.04);
    color: #eef7ff;
    text-decoration: none;
    font-size: 13px;
}

.aa-db-section-jump span {
    color: rgba(206, 227, 246, 0.72);
    font-size: 12px;
}

.aa-db-section-jump:hover {
    border-color: rgba(114, 191, 255, 0.4);
    background: rgba(57, 146, 235, 0.16);
    color: #fff;
}

.aa-db-search-group {
    border: 1px solid rgba(136, 196, 245, 0.18);
    border-radius: 14px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(7, 20, 36, 0.9), rgba(5, 14, 26, 0.92));
}

.aa-db-search-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.aa-db-search-group-head h3 {
    margin: 0;
    font-size: 15px;
    color: #f2f8ff;
    font-family: 'Cinzel', serif;
    letter-spacing: .2px;
}

.aa-db-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
}

.aa-db-search-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(136, 196, 245, 0.22);
    background: linear-gradient(180deg, rgba(8, 24, 43, 0.92), rgba(6, 18, 33, 0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

.aa-db-search-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(124, 182, 235, 0.45);
}

.aa-db-search-card:hover {
    border-color: rgba(118, 195, 255, 0.55);
    background: linear-gradient(180deg, rgba(12, 33, 58, 0.95), rgba(8, 24, 44, 0.98));
    box-shadow: 0 10px 24px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.05);
    transform: translateY(-1px);
}

.aa-db-search-card-item::before {
    background: rgba(104, 184, 255, 0.7);
}

.aa-db-search-card-npc::before {
    background: rgba(123, 216, 163, 0.75);
}

.aa-db-search-card-world::before {
    background: rgba(245, 194, 113, 0.78);
}

.aa-db-search-q-rare {
    border-color: rgba(46, 255, 122, 0.35);
}

.aa-db-search-q-legend {
    border-color: rgba(91, 183, 255, 0.4);
}

.aa-db-search-q-unique {
    border-color: rgba(255, 212, 77, 0.42);
}

.aa-db-search-q-epic {
    border-color: rgba(255, 156, 62, 0.45);
}

.aa-db-search-q-mythic {
    border-color: rgba(197, 122, 255, 0.5);
}

.aa-db-search-q-relic,
.aa-db-search-q-finality {
    border-color: rgba(255, 95, 241, 0.52);
}

.aa-db-search-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.aa-db-search-icon-wrap {
    flex: 0 0 auto;
}

.aa-db-search-icon-wrap .aa-db-result-icon {
    width: 44px;
    height: 44px;
    margin-right: 0;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.aa-db-search-content {
    flex: 1 1 auto;
    min-width: 0;
}

.aa-db-search-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.aa-db-search-title {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.24;
    font-size: 15px;
    word-break: break-word;
}

.aa-db-search-sub {
    margin-top: 4px;
    color: rgba(210,225,241,0.76);
    font-size: 12px;
    word-break: break-word;
}

.aa-db-search-meta {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.aa-db-search-id {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(162, 206, 244, 0.28);
    color: rgba(224, 240, 255, 0.92);
    background: rgba(86, 141, 196, 0.18);
    font-size: 11px;
    font-weight: 700;
}

.aa-db-search-open {
    font-size: 12px;
    color: rgba(196, 225, 252, 0.86);
    font-weight: 600;
}

.aa-db-type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    border: 1px solid rgba(162, 206, 244, 0.38);
    color: #e6f5ff;
    background: rgba(70, 139, 209, 0.22);
}

.aa-db-type-pill-item {
    border-color: rgba(130, 202, 255, 0.5);
    background: rgba(68, 152, 226, 0.26);
}

.aa-db-type-pill-npc {
    border-color: rgba(132, 224, 173, 0.5);
    background: rgba(47, 146, 98, 0.26);
}

.aa-db-type-pill-world {
    border-color: rgba(255, 205, 133, 0.5);
    background: rgba(170, 124, 49, 0.28);
}

.aa-db-entity-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    flex: 0 0 auto;
}

.aa-db-entity-icon-npc {
    background: linear-gradient(180deg, rgba(46, 142, 92, 0.42), rgba(28, 87, 57, 0.5));
}

.aa-db-entity-icon-world {
    background: linear-gradient(180deg, rgba(175, 127, 42, 0.44), rgba(104, 73, 24, 0.52));
}

.aa-db-tabs {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    border: 1px solid rgba(147, 201, 244, 0.18);
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(255,255,255,0.03);
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 188, 247, 0.45) transparent;
}

.aa-db-tab {
    flex: 0 0 auto;
    min-width: 112px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    text-decoration: none;
    color: rgba(219,233,247,0.86);
    font-weight: 700;
    border-right: 1px solid rgba(147, 201, 244, 0.16);
    white-space: nowrap;
}

.aa-db-tab:last-child {
    border-right: 0;
}

.aa-db-tab:hover {
    color: #ffffff;
    background: rgba(69, 151, 236, 0.16);
}

.aa-db-tab.active {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(38, 139, 247, 0.42), rgba(17, 83, 160, 0.34));
}

.aa-db-topnav {
    display: grid;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(5, 18, 34, 0.96), rgba(4, 13, 24, 0.98));
    position: sticky;
    top: 10px;
    z-index: 30;
    backdrop-filter: blur(14px);
}

.aa-db-topnav-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.aa-db-topnav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.aa-db-topnav-home {
    flex: 0 0 auto;
}

.aa-db-topnav-brand-copy {
    display: grid;
    gap: 4px;
}

.aa-db-topnav-brand-title {
    color: #fff1cc;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .35px;
}

.aa-db-topnav-brand-subtitle {
    color: rgba(215, 231, 247, 0.74);
    font-size: 13px;
    line-height: 1.4;
    max-width: 420px;
}

.aa-db-topnav-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.aa-db-topnav-links-sections {
    justify-content: center;
}

.aa-db-topnav-search-shell {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(147, 201, 244, 0.12);
}

.aa-db-topnav-search-copy {
    display: grid;
    gap: 4px;
}

.aa-db-topnav-search-title {
    color: #fff3d4;
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .28px;
}

.aa-db-topnav-search-subtitle {
    color: rgba(215, 231, 247, 0.7);
    font-size: 13px;
    line-height: 1.45;
}

.aa-db-topnav-search {
    margin-left: 0;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.aa-db-topnav-search-main {
    display: flex;
    gap: 8px;
    align-items: center;
}

.aa-db-topnav-search select,
.aa-db-topnav-search input,
.aa-db-topnav-search button {
    min-height: 42px;
    border-radius: 11px;
    font-size: 13px;
}

.aa-db-topnav-search select {
    min-width: 112px;
    padding: 0 10px;
}

.aa-db-topnav-search input {
    flex: 1 1 220px;
    padding: 0 14px;
}

.aa-db-topnav-search button {
    min-width: 108px;
    padding: 0 16px;
    letter-spacing: .2px;
}

.aa-db-topnav-search-scopes {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.aa-db-topnav-search-scope-label {
    color: rgba(205, 225, 246, 0.76);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .85px;
    text-transform: uppercase;
}

.aa-db-topnav-search-types {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 188, 247, 0.45) transparent;
}

.aa-db-search-type-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(147, 201, 244, 0.24);
    background: rgba(255,255,255,0.04);
    color: #dceeff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.aa-db-search-type-chip:hover {
    color: #fff;
    border-color: rgba(118, 195, 255, 0.46);
    background: rgba(46, 128, 214, 0.22);
}

.aa-db-search-type-chip.is-active {
    color: #fff;
    border-color: rgba(124, 203, 255, 0.65);
    background: linear-gradient(180deg, rgba(44, 153, 255, 0.4), rgba(18, 97, 198, 0.42));
    box-shadow: 0 8px 20px rgba(7, 41, 78, 0.28);
    transform: translateY(-1px);
}

.aa-db-topnav-search .aa-db-autocomplete-list {
    top: calc(100% + 6px);
}

.aa-db-topnav-link,
.aa-db-topnav-dd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(147, 201, 244, 0.26);
    background: rgba(255,255,255,0.05);
    color: #e8f4ff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.aa-db-topnav-link:hover,
.aa-db-topnav-dd-btn:hover {
    color: #fff;
    border-color: rgba(114, 191, 255, 0.45);
    background: rgba(57, 146, 235, 0.18);
}

.aa-db-topnav-link.is-active {
    color: #ffffff;
    border-color: rgba(114, 191, 255, 0.58);
    background: linear-gradient(180deg, rgba(38, 139, 247, 0.34), rgba(17, 83, 160, 0.28));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.aa-db-topnav-dd {
    position: relative;
}

.aa-db-topnav-dd-btn {
    cursor: pointer;
}

.aa-db-topnav-dd-btn[aria-expanded="true"] {
    color: #fff;
    border-color: rgba(114, 191, 255, 0.55);
    background: rgba(57, 146, 235, 0.24);
}

.aa-db-topnav-dd-btn::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 2px solid rgba(220, 241, 255, 0.85);
    border-bottom: 2px solid rgba(220, 241, 255, 0.85);
    transform: rotate(45deg) translateY(-1px);
}

.aa-db-topnav-dd-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 260px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(147, 201, 244, 0.3);
    background: linear-gradient(180deg, rgba(7, 19, 34, 0.99), rgba(3, 12, 22, 0.99));
    box-shadow: 0 20px 40px rgba(0,0,0,.45);
    z-index: 60;
}

.aa-db-topnav-dd.is-open .aa-db-topnav-dd-menu {
    display: block;
}

.aa-db-topnav-dd.is-open .aa-db-topnav-dd-menu-grid {
    display: grid;
}

.aa-db-topnav-dd-menu a {
    display: block;
    margin-bottom: 6px;
    color: #ecf5ff;
    text-decoration: none;
    border-radius: 9px;
    border: 1px solid rgba(130, 191, 241, 0.14);
    background: rgba(255,255,255,0.02);
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.25;
}

.aa-db-topnav-dd-menu a:hover {
    background: rgba(65, 157, 245, 0.22);
    border-color: rgba(111, 190, 255, 0.42);
}

.aa-db-topnav-dd-wide .aa-db-topnav-dd-menu {
    width: min(96vw, 1080px);
    max-height: min(72vh, 680px);
    overflow-y: auto;
}

.aa-db-topnav-dd-menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.aa-db-topnav-subgroup {
    border: 1px solid rgba(147, 201, 244, 0.18);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    padding: 10px;
}

.aa-db-topnav-subgroup-highlight {
    border-color: rgba(255, 215, 140, 0.28);
    background: linear-gradient(180deg, rgba(255, 221, 157, 0.08), rgba(255,255,255,0.03));
}

.aa-db-topnav-subtitle {
    color: #ffefc8;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 700;
    margin: 1px 0 8px;
    padding: 0 2px;
}

.aa-db-options {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.aa-db-options.js-db-browse-form {
    display: grid;
    gap: 16px;
    align-items: stretch;
}

.aa-db-filter-panel {
    display: grid;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(147, 201, 244, 0.14);
    background: linear-gradient(180deg, rgba(7, 19, 34, 0.82), rgba(4, 12, 24, 0.9));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.aa-db-filter-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.aa-db-filter-header {
    display: grid;
    gap: 4px;
}

.aa-db-filter-section-title {
    color: #fff0cf;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .3px;
}

.aa-db-filter-section-copy {
    color: rgba(208, 226, 244, 0.72);
    font-size: 13px;
    line-height: 1.45;
}

.aa-db-filter-panel-tools {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.aa-db-inline-control {
    display: grid;
    gap: 8px;
}

.aa-db-filter-lines {
    display: grid;
    gap: 16px;
}

.aa-db-filter-inline-group {
    display: grid;
    gap: 10px;
}

.aa-db-filter-inline-group-center {
    justify-items: center;
}

.aa-db-filter-inline-group-center .aa-db-filter-label {
    text-align: center;
}

.aa-db-filter-inline-group-center .aa-db-check-grid {
    justify-content: center;
}

.aa-db-filter-inline-combo {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    align-items: flex-end;
}

.aa-db-filter-inline-combo-center {
    justify-content: center;
}

.aa-db-filter-inline-combo-center .aa-db-filter-inline-row {
    justify-content: center;
}

.aa-db-filter-inline-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    flex: 1 1 420px;
}

.aa-db-filter-inline-group-grade {
    flex: 0 1 300px;
}

.aa-db-options-item {
    margin-right: 12px;
    margin-bottom: 10px;
}

.aa-db-filter-group {
    display: grid;
    gap: 10px;
}

.aa-db-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.aa-db-filter-row .aa-db-options-item {
    margin-right: 0;
    margin-bottom: 0;
}

.aa-db-filter-label {
    display: block;
    color: rgba(205, 225, 246, 0.82);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.aa-db-check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.aa-db-check-grid-compact {
    gap: 8px;
}

.aa-db-check-grid-tight {
    gap: 7px;
}

.aa-db-check-grid-race {
    gap: 12px;
}

.aa-db-check-grid-grade .aa-db-check-label {
    min-width: 0;
    justify-content: center;
}

.aa-db-check-grid-inline {
    gap: 8px;
}

.aa-db-check-grid-categories .aa-db-check-label,
.aa-db-check-grid-grade .aa-db-check-label {
    padding: 0 12px;
}

.aa-db-inline-field {
    display: grid;
    gap: 6px;
    min-width: 128px;
}

.aa-db-inline-field label {
    display: block;
    margin: 0;
    color: rgba(205, 225, 246, 0.82);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.aa-db-inline-field input[type="text"],
.aa-db-inline-field input[type="number"] {
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(149, 198, 243, 0.28);
    background: rgba(3, 11, 22, 0.82);
    color: #f7fbff;
    padding: 0 10px;
}

.aa-db-inline-field-map {
    flex: 1 1 250px;
    min-width: 220px;
}

.aa-db-select-wrap-compact {
    min-width: 96px;
}

.aa-db-select-wrap-compact::after {
    right: 12px;
    border-left-width: 4px;
    border-right-width: 4px;
    border-top-width: 5px;
}

.aa-db-select-wrap-compact select {
    min-height: 40px;
    border-radius: 10px;
    padding-left: 12px;
    padding-right: 34px;
    font-size: 13px;
}

.aa-db-check {
    position: relative;
}

.aa-db-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.aa-db-check-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(149, 198, 243, 0.24);
    background: rgba(7, 19, 34, 0.86);
    color: #eef7ff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease, transform .14s ease, box-shadow .14s ease;
}

.aa-db-check:hover .aa-db-check-label {
    border-color: rgba(118, 195, 255, 0.42);
    background: rgba(57, 146, 235, 0.18);
}

.aa-db-check-input:checked + .aa-db-check-label {
    color: #fff8e8;
    border-color: rgba(120, 203, 255, 0.62);
    background: linear-gradient(180deg, rgba(49, 138, 225, 0.34), rgba(16, 77, 142, 0.34));
    box-shadow: 0 0 0 1px rgba(134, 210, 255, 0.16);
}

.aa-db-check-common .aa-db-check-input:checked + .aa-db-check-label {
    border-color: rgba(255, 255, 255, 0.42);
}

.aa-db-check-common .aa-db-check-label {
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(180deg, rgba(65, 74, 86, 0.42), rgba(25, 30, 37, 0.74));
    color: #eef5fb;
}

.aa-db-check-rare .aa-db-check-input:checked + .aa-db-check-label {
    border-color: rgba(69, 235, 114, 0.6);
    color: #caffd6;
}

.aa-db-check-rare .aa-db-check-label {
    border-color: rgba(69, 235, 114, 0.24);
    background: linear-gradient(180deg, rgba(21, 73, 40, 0.58), rgba(9, 32, 18, 0.8));
    color: #d3ffe0;
}

.aa-db-check-legend .aa-db-check-input:checked + .aa-db-check-label {
    border-color: rgba(91, 183, 255, 0.62);
    color: #d8eeff;
}

.aa-db-check-legend .aa-db-check-label {
    border-color: rgba(91, 183, 255, 0.24);
    background: linear-gradient(180deg, rgba(18, 58, 98, 0.58), rgba(8, 25, 48, 0.82));
    color: #d9efff;
}

.aa-db-check-unique .aa-db-check-input:checked + .aa-db-check-label {
    border-color: rgba(255, 212, 77, 0.68);
    color: #fff4c5;
}

.aa-db-check-unique .aa-db-check-label {
    border-color: rgba(255, 212, 77, 0.24);
    background: linear-gradient(180deg, rgba(111, 84, 17, 0.6), rgba(49, 35, 7, 0.82));
    color: #fff1c4;
}

.aa-db-check-epic .aa-db-check-input:checked + .aa-db-check-label {
    border-color: rgba(255, 156, 62, 0.68);
    color: #ffe1c2;
}

.aa-db-check-epic .aa-db-check-label {
    border-color: rgba(255, 156, 62, 0.26);
    background: linear-gradient(180deg, rgba(115, 55, 18, 0.6), rgba(49, 20, 7, 0.84));
    color: #ffe0be;
}

.aa-db-check-mythic .aa-db-check-input:checked + .aa-db-check-label,
.aa-db-check-relic .aa-db-check-input:checked + .aa-db-check-label,
.aa-db-check-finality .aa-db-check-input:checked + .aa-db-check-label {
    border-color: rgba(210, 132, 255, 0.7);
    color: #f0d8ff;
}

.aa-db-check-mythic .aa-db-check-label,
.aa-db-check-relic .aa-db-check-label,
.aa-db-check-finality .aa-db-check-label {
    border-color: rgba(210, 132, 255, 0.26);
    background: linear-gradient(180deg, rgba(79, 35, 116, 0.6), rgba(32, 15, 53, 0.84));
    color: #f1ddff;
}

.aa-db-check-ancient .aa-db-check-input:checked + .aa-db-check-label {
    border-color: rgba(222, 181, 97, 0.68);
    color: #ffefc4;
}

.aa-db-check-ancient .aa-db-check-label {
    border-color: rgba(222, 181, 97, 0.24);
    background: linear-gradient(180deg, rgba(121, 86, 19, 0.58), rgba(54, 36, 7, 0.82));
    color: #fff0c6;
}

.aa-db-check-elyos .aa-db-check-input:checked + .aa-db-check-label {
    border-color: rgba(101, 204, 255, 0.68);
    background: linear-gradient(180deg, rgba(34, 112, 174, 0.4), rgba(12, 61, 108, 0.42));
}

.aa-db-check-asmodian .aa-db-check-input:checked + .aa-db-check-label {
    border-color: rgba(255, 193, 90, 0.7);
    background: linear-gradient(180deg, rgba(160, 110, 34, 0.42), rgba(97, 62, 15, 0.42));
}

.aa-db-check-elyos .aa-db-check-label {
    border-color: rgba(101, 204, 255, 0.26);
    background: linear-gradient(180deg, rgba(16, 68, 108, 0.58), rgba(8, 30, 52, 0.82));
}

.aa-db-check-asmodian .aa-db-check-label {
    border-color: rgba(255, 193, 90, 0.28);
    background: linear-gradient(180deg, rgba(98, 63, 17, 0.62), rgba(42, 23, 5, 0.84));
}

.aa-db-filter-note {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(126, 188, 239, 0.12);
    background: rgba(255,255,255,0.03);
    color: rgba(212, 228, 244, 0.74);
    font-size: 13px;
    line-height: 1.45;
}

.aa-db-race-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
}

.aa-db-race-icon-sm {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex: 0 0 auto;
}

.aa-db-results-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.aa-db-results-toolbar-search {
    justify-content: space-between;
}

.aa-db-results-refine {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.aa-db-results-refine .aa-db-filter-label {
    margin: 0;
    white-space: nowrap;
}

.aa-db-results-refine input[type="search"] {
    min-width: 240px;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(149, 198, 243, 0.28);
    background: rgba(3, 11, 22, 0.82);
    color: #f7fbff;
    padding: 0 12px;
}

.aa-db-results-refine-compact {
    margin-left: 0;
}

.aa-db-filter-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.aa-db-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(130, 191, 241, 0.18);
    background: rgba(255,255,255,0.04);
    color: #edf7ff;
    font-size: 12px;
    letter-spacing: .2px;
}

.aa-db-relation-chip {
    min-height: 34px;
    padding: 6px 10px;
    border-color: rgba(130, 191, 241, 0.22);
    background: rgba(130, 191, 241, 0.08);
    color: #f5fbff;
    font-size: 12px;
    font-weight: 700;
}

.aa-db-filter-reset {
    color: #7fd0ff;
    font-size: 13px;
    text-decoration: none;
}

.aa-db-filter-reset:hover {
    color: #c1ecff;
    text-decoration: underline;
}

.aa-db-options-item label {
    display: block;
    margin: 0 0 6px;
    color: rgba(205, 225, 246, 0.82);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.aa-db-options-item select,
.aa-db-options-item input[type="text"],
.aa-db-options-item input[type="number"] {
    min-width: 148px;
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(149, 198, 243, 0.28);
    background: rgba(3, 11, 22, 0.82);
    color: #f7fbff;
    padding: 0 10px;
}

.aa-db-options-btn {
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(147, 201, 244, 0.3);
    background: rgba(255,255,255,0.06);
    color: #eef7ff;
    font-weight: 700;
    padding: 0 16px;
    margin-bottom: 10px;
}

.aa-db-options-btn:hover {
    color: #fff;
    background: rgba(64, 160, 255, 0.22);
    border-color: rgba(119, 192, 255, 0.45);
}

#dbItemSubcategory {
    min-width: 180px;
    max-width: 220px;
}

#dbNpcMap,
#dbQuestMap {
    min-width: 190px;
}

.aa-db-auto-apply-note {
    margin-top: -2px;
    margin-bottom: 14px;
}

.aa-db-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px;
}

.aa-db-page-index {
    color: rgba(216,233,249,0.92);
    margin: 0 10px;
    font-weight: 700;
}

.aa-db-page-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.aa-db-page-btn {
    min-width: 92px;
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(147, 201, 244, 0.3);
    background: rgba(255,255,255,0.06);
    color: #eef7ff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 0 12px;
    cursor: pointer;
    font-family: inherit;
}

.aa-db-world-map-filter-btn--npc {
    min-width: 74px;
    min-height: 29px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: .8rem;
}

.aa-db-world-map-filter-btn--gather {
    min-width: 96px;
    min-height: 29px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: .8rem;
    border-color: rgba(127, 213, 199, 0.28);
    background: rgba(61, 144, 126, 0.14);
}

.aa-db-world-map-filter-btn--gather:hover {
    border-color: rgba(149, 236, 220, 0.4);
    background: rgba(45, 125, 108, 0.24);
}

.aa-db-page-btn:hover {
    color: #fff;
    background: rgba(64, 160, 255, 0.22);
    border-color: rgba(119, 192, 255, 0.45);
}

.aa-db-page-btn-primary {
    border-color: rgba(255, 214, 135, 0.28);
    background:
        linear-gradient(180deg, rgba(38, 77, 129, 0.96), rgba(14, 31, 57, 0.98)),
        radial-gradient(120% 140% at 50% 0%, rgba(255, 214, 135, 0.1), transparent 62%);
    color: #fff2d1;
}

.aa-db-page-btn-primary:hover {
    background:
        linear-gradient(180deg, rgba(48, 95, 156, 0.98), rgba(17, 39, 72, 0.98)),
        radial-gradient(120% 140% at 50% 0%, rgba(255, 214, 135, 0.14), transparent 62%);
    border-color: rgba(255, 226, 173, 0.42);
}

.aa-db-page-btn.is-current {
    border-color: rgba(110, 192, 255, 0.55);
    background: linear-gradient(180deg, rgba(52, 156, 255, 0.28), rgba(19, 83, 152, 0.28));
    color: #fff;
}

.aa-db-page-btn.disabled {
    opacity: .46;
    pointer-events: none;
}

.aa-db-page-btn[type="button"] {
    appearance: none;
    -webkit-appearance: none;
}

.aa-db-table-browser-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.aa-db-table-browser-input {
    min-width: min(320px, 100%);
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(149, 198, 243, 0.28);
    background: rgba(3, 11, 22, 0.82);
    color: #f7fbff;
    padding: 0 12px;
}

.aa-db-table-browser-input::placeholder {
    color: rgba(199, 220, 243, 0.46);
}

.aa-db-table-browser-count {
    margin-left: auto;
}

.aa-db-table-browser-empty {
    margin-top: 12px;
}

.aa-db-autocomplete-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    display: none;
    z-index: 15;
    border-radius: 12px;
    border: 1px solid rgba(147, 201, 244, 0.2);
    background: rgba(5, 13, 25, 0.98);
    box-shadow: 0 16px 34px rgba(0,0,0,.34);
    padding: 8px;
    max-height: 340px;
    overflow-y: auto;
}

.aa-db-autocomplete-list.open {
    display: grid;
    gap: 8px;
}

.aa-db-autocomplete-item {
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #ecf5ff;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    min-height: 42px;
    border: 1px solid rgba(143, 202, 255, 0.06);
}

.aa-db-autocomplete-item:hover {
    background: rgba(65, 157, 245, 0.2);
}

.aa-db-autocomplete-item.is-active {
    background: rgba(65, 157, 245, 0.26);
}

.aa-db-autocomplete-item .meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
}

.aa-db-autocomplete-item .icon {
    float: left;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 10px;
    margin-top: 0;
    border: 1px solid rgba(255,255,255,0.14);
}

.aa-db-autocomplete-item .type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    border: 1px solid rgba(127, 191, 247, 0.38);
    background: rgba(54, 144, 233, 0.24);
    color: #d6ecff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.aa-db-autocomplete-item .id {
    color: rgba(195,220,244,0.78);
    font-size: 11px;
}

.aa-db-autocomplete-item .title {
    display: block;
    font-weight: 700;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.94rem;
    line-height: 1.35;
}

.aa-db-autocomplete-item .title.common { color: #ffffff !important; }
.aa-db-autocomplete-item .title.rare { color: #2cff5a !important; }
.aa-db-autocomplete-item .title.legend { color: #5bb7ff !important; }
.aa-db-autocomplete-item .title.unique { color: #ffd44d !important; }
.aa-db-autocomplete-item .title.epic { color: #ff9c3e !important; }
.aa-db-autocomplete-item .title.mythic { color: #c57aff !important; }
.aa-db-autocomplete-item .title.ancient { color: #d9a839 !important; }
.aa-db-autocomplete-item .title.relic { color: #ff5ff1 !important; }
.aa-db-autocomplete-item .title.finality { color: #fe4b4b !important; }

.aa-db-autocomplete-item .subtitle {
    display: block;
    margin-top: 3px;
    color: rgba(204,224,246,0.78);
    font-size: 12px;
}

.aa-db-table {
    width: 100%;
    border-collapse: collapse;
}

.aa-db-table th,
.aa-db-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #f2f8ff;
    font-size: 14px;
    vertical-align: top;
}

.aa-db-table th {
    color: #ffeec8;
    font-weight: 700;
}

.aa-db-quest-link-table .aa-db-result-main {
    align-items: flex-start;
    gap: 10px;
}

.aa-db-quest-link-table .aa-db-result-main > div {
    min-width: 0;
}

.aa-db-quest-link-table .aa-db-result-main a {
    display: inline-block;
    line-height: 1.35;
}

.aa-db-quest-link-icon {
    width: 30px;
    height: 30px;
    margin-right: 0;
    flex: 0 0 auto;
    border-radius: 7px;
}

.aa-db-race-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.aa-db-race-filter-inline {
    display: inline-flex;
}

.aa-db-race-filter-center {
    justify-content: center;
}

.aa-db-race-chip {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 5px;
    border-radius: 999px;
    border: 1px solid rgba(147, 201, 244, 0.22);
    background: rgba(255,255,255,0.04);
    overflow: hidden;
}

.aa-db-race-chip img {
    width: 100% !important;
    height: 100% !important;
    max-width: 20px !important;
    max-height: 20px !important;
    object-fit: contain;
    display: block;
}

.aa-db-quest-link-table td .aa-db-race-filter {
    justify-content: center;
    flex-wrap: nowrap;
    min-width: 72px;
}

.aa-db-quest-link-table td .aa-db-race-chip {
    width: 30px;
    height: 30px;
}

.aa-db-quest-link-table td .aa-db-race-chip img {
    max-width: 18px !important;
    max-height: 18px !important;
}

.aa-db-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(67, 157, 255, 0.16);
    border: 1px solid rgba(103, 182, 255, 0.28);
    color: #dcedff;
    font-size: 12px;
    font-weight: 700;
    margin: 0 6px 6px 0;
}

.aa-db-currency-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid rgba(122, 191, 255, 0.24);
    background: rgba(255,255,255,0.04);
    color: #f2f8ff;
    font-weight: 600;
}

.aa-db-currency-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    image-rendering: pixelated;
}

.aa-db-currency-icon-xs {
    width: 13px;
    height: 13px;
}

.aa-db-quest-reward-chip {
    gap: 6px;
    min-height: 32px;
    max-width: 100%;
    padding: 4px 10px 4px 6px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.aa-db-quest-reward-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
}

.aa-db-quest-reward-list-compact {
    min-width: 260px;
}

.aa-db-quest-group-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aa-db-quest-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.aa-db-quest-group-label {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(90, 160, 255, 0.28);
    background: rgba(90, 160, 255, 0.12);
    color: #b8d7ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.aa-db-quest-group-separator {
    color: rgba(221, 230, 255, 0.72);
    font-weight: 700;
}

.aa-db-quest-reward-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    image-rendering: auto;
    flex: 0 0 auto;
}

.aa-db-quest-reward-text {
    min-width: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.aa-db-quest-reward-item {
    text-decoration: none;
}

.aa-db-quest-reward-item:hover {
    border-color: rgba(118, 195, 255, 0.42);
    background: rgba(68, 152, 226, 0.12);
}

.aa-db-quest-summary-chip {
    min-height: 56px;
    padding: 8px 16px 8px 10px;
    font-size: 17px;
    gap: 12px;
}

.aa-db-quest-summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    flex: 0 0 auto;
}

.aa-db-item-wide-card {
    padding: 20px 22px;
}

.aa-db-item-quest-panel .aa-db-collapse-content {
    overflow-x: auto;
}

.aa-db-item-contained-panel .aa-db-collapse-content {
    overflow-x: auto;
}

.aa-db-item-craft-panel .aa-db-collapse-content {
    overflow-x: auto;
}

.aa-db-item-craft-usage-panel .aa-db-collapse-content {
    overflow-x: auto;
}

.aa-db-item-craft-block {
    display: grid;
    gap: 14px;
}

.aa-db-item-craft-block + .aa-db-item-craft-block {
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.aa-db-item-craft-output {
    display: grid;
    gap: 10px;
}

.aa-db-item-craft-output-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(18, 30, 52, 0.9), rgba(10, 18, 33, 0.96));
}

.aa-db-item-craft-output-card .aa-db-result-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex: 0 0 52px;
}

.aa-db-item-craft-output-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.aa-db-item-craft-output-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.aa-db-item-craft-output-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.aa-db-item-craft-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.aa-db-item-craft-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 12px;
}

.aa-db-item-craft-meta-grid .meta {
    min-height: 72px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.aa-db-item-craft-meta-grid .meta .label {
    display: block;
    color: rgba(207,225,243,0.75);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.aa-db-item-craft-meta-grid .meta .value {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-weight: 600;
    line-height: 1.35;
}

.aa-db-item-craft-meta-grid .meta .value.aa-db-item-craft-race-value {
    display: flex;
    align-items: center;
    min-height: 36px;
}

.aa-db-item-craft-meta-grid .aa-db-race-filter {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
}

.aa-db-item-craft-meta-grid .aa-db-race-chip {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    box-shadow: none;
}

.aa-db-item-craft-meta-grid .aa-db-race-chip img {
    width: 100% !important;
    height: 100% !important;
    max-width: 36px !important;
    max-height: 36px !important;
    object-fit: contain;
}

.aa-db-item-craft-groups {
    display: grid;
    gap: 14px;
}

.aa-db-item-craft-related-quests {
    display: grid;
    gap: 10px;
}

.aa-db-item-craft-related-quest {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

.aa-db-item-craft-related-quest .aa-db-quest-link-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.aa-db-item-craft-inline-quests {
    display: grid;
    gap: 4px;
    margin-top: 6px;
}

.aa-db-item-craft-inline-quest {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.aa-db-item-craft-inline-quest .aa-db-quest-link-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.aa-db-item-craft-inline-quest a {
    min-width: 0;
}

.aa-db-item-craft-section-title {
    margin-top: 8px;
    margin-bottom: 2px;
    color: #f5dec0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.aa-db-item-craft-group {
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    background: rgba(11, 18, 32, 0.5);
}

.aa-db-item-craft-group-title {
    margin-bottom: 10px;
    color: #f8fafc;
    font-weight: 700;
}

.aa-db-item-craft-table {
    min-width: 720px;
}

.aa-db-item-craft-table .aa-db-result-main {
    align-items: center;
    gap: 12px;
}

.aa-db-item-craft-table .aa-db-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.aa-db-item-craft-table td {
    vertical-align: middle;
}

.aa-db-item-craft-usage-table {
    width: 100%;
    min-width: 980px;
}

.aa-db-item-craft-usage-table th:nth-child(1) {
    width: 32%;
}

.aa-db-item-craft-usage-table th:nth-child(2) {
    width: 14%;
}

.aa-db-item-craft-usage-table th:nth-child(3) {
    width: 10%;
}

.aa-db-item-craft-usage-table th:nth-child(4) {
    width: 30%;
}

.aa-db-item-craft-usage-table th:nth-child(5) {
    width: 14%;
}

.aa-db-item-craft-usage-table .aa-db-result-main {
    align-items: flex-start;
    gap: 12px;
}

.aa-db-item-craft-usage-table .aa-db-item-craft-cell-race {
    white-space: nowrap;
}

.aa-db-item-craft-usage-table .aa-db-race-filter {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
}

.aa-db-item-craft-usage-table .aa-db-race-chip {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    box-shadow: none;
}

.aa-db-item-craft-usage-table .aa-db-race-chip img {
    width: 100% !important;
    height: 100% !important;
    max-width: 40px !important;
    max-height: 40px !important;
    object-fit: contain;
}

.aa-db-item-gather-panel .aa-db-collapse-content,
#worldGatherables .aa-db-collapse-content {
    overflow-x: auto;
}

.aa-db-item-gather-table,
.aa-db-world-gather-table {
    width: 100%;
    min-width: 980px;
}

.aa-db-item-gather-table td,
.aa-db-world-gather-table td {
    vertical-align: top;
}

.aa-db-item-gather-source {
    display: grid;
    gap: 6px;
}

.aa-db-item-gather-world-cell {
    display: grid;
    justify-items: start;
    gap: 8px;
}

.aa-db-item-gather-source-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.aa-db-gather-meta-stack {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.aa-db-item-gather-source-title,
.aa-db-item-gather-skill,
.aa-db-item-gather-yield {
    color: #fff;
    font-weight: 600;
}

.aa-db-gather-required {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.aa-db-gather-required-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(186, 214, 255, 0.68);
    white-space: nowrap;
}

.aa-db-gather-required-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(91, 147, 219, 0.12);
    border: 1px solid rgba(120, 191, 255, 0.18);
}

.aa-db-gather-meta-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.aa-db-gather-meta-primary {
    color: #fff;
    font-weight: 600;
}

.aa-db-gather-meta-secondary {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(219, 231, 244, 0.82);
    font-size: 12px;
    line-height: 1;
}

.aa-db-gather-output-group {
    border-color: rgba(142, 219, 255, 0.2);
    background: rgba(77, 143, 184, 0.14);
}

.aa-db-inline-details {
    display: inline-block;
    min-width: 0;
}

.aa-db-inline-details > summary {
    cursor: pointer;
    color: #9dc4ff;
    font-weight: 600;
    list-style: none;
}

.aa-db-inline-details > summary::marker {
    content: "";
}

.aa-db-item-gather-points {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    min-width: 250px;
}

.aa-db-item-gather-point {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    color: #fff;
}

.aa-db-world-gather-output-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    max-width: 280px;
}

.aa-db-world-gather-output-iconwrap {
    display: inline-flex;
}

.aa-db-world-gather-output-iconlink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.aa-db-world-gather-output-iconlink.is-grouped {
    border-color: rgba(126, 211, 255, 0.24);
    background: rgba(80, 144, 201, 0.16);
}

.aa-db-world-gather-output-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.aa-db-world-gather-output-iconlink:hover {
    border-color: rgba(160, 220, 255, 0.36);
    background: rgba(16, 44, 73, 0.92);
}

.aa-db-world-map-shell {
    display: grid;
    gap: 14px;
    margin-bottom: 10px;
}

.aa-db-map-card {
    margin-bottom: 18px;
}

.aa-db-world-map-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.aa-db-world-map-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.aa-db-world-map-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.aa-db-world-map-subtitle,
.aa-db-world-map-hint {
    color: rgba(213, 228, 243, 0.72);
    font-size: 13px;
    line-height: 1.5;
}

.aa-db-world-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aa-db-world-map-viewport {
    position: relative;
    width: 100%;
    height: min(72vh, 880px);
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(129, 193, 247, 0.14);
    background:
        radial-gradient(circle at top, rgba(54, 98, 156, 0.18), transparent 48%),
        linear-gradient(180deg, rgba(5, 12, 20, 0.92), rgba(6, 10, 16, 0.98));
    cursor: grab;
    touch-action: none;
}

.aa-db-world-map-viewport.is-dragging {
    cursor: grabbing;
}

.aa-db-world-map-stage {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
    will-change: transform;
    user-select: none;
}

.aa-db-world-map-tile {
    position: absolute;
    display: block;
    max-width: none;
    image-rendering: auto;
    pointer-events: none;
    transform-origin: center center;
}

.aa-db-world-map-marker-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.aa-db-world-map-filterbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.aa-db-world-map-filter-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.aa-db-world-map-filter-btn.is-active {
    background: rgba(62, 135, 181, 0.32);
    border-color: rgba(136, 210, 250, 0.48);
    color: #eef9ff;
}

.aa-db-world-map-filterchips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aa-db-world-map-filterchip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(129, 193, 247, 0.18);
    background: rgba(14, 29, 50, 0.88);
    color: rgba(233, 242, 252, 0.86);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.aa-db-world-map-filterchip:hover {
    border-color: rgba(165, 218, 255, 0.34);
    background: rgba(18, 39, 67, 0.96);
    color: #fff;
}

.aa-db-world-map-filterchip.is-active {
    border-color: rgba(109, 226, 255, 0.38);
    background: linear-gradient(180deg, rgba(23, 81, 102, 0.92), rgba(10, 48, 67, 0.98));
    color: #eefcff;
    box-shadow: 0 10px 22px rgba(5, 25, 34, 0.28);
}

.aa-db-world-map-count {
    color: rgba(214, 230, 245, 0.7);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
}

.aa-db-world-map-marker {
    position: absolute;
    width: var(--aa-db-world-map-marker-size, 40px);
    height: var(--aa-db-world-map-marker-size, 40px);
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    transition: transform .12s ease, opacity .12s ease, filter .12s ease;
    overflow: visible;
}

.aa-db-world-map-marker--rare-npc {
    width: calc(var(--aa-db-world-map-marker-size, 40px) * 0.82);
    height: calc(var(--aa-db-world-map-marker-size, 40px) * 1.06);
    transform: translate(-50%, -92%);
}

.aa-db-world-map-marker--npc {
    width: calc(var(--aa-db-world-map-marker-size, 40px) * 0.8);
    height: calc(var(--aa-db-world-map-marker-size, 40px) * 1.04);
    transform: translate(-50%, -92%);
}

.aa-db-world-map-marker--utility-npc {
    width: calc(var(--aa-db-world-map-marker-size, 40px) * 0.8);
    height: calc(var(--aa-db-world-map-marker-size, 40px) * 1.04);
    transform: translate(-50%, -92%);
}

.aa-db-world-map-marker-icon {
    width: var(--aa-db-world-map-marker-size, 40px);
    height: var(--aa-db-world-map-marker-size, 40px);
    object-fit: contain;
    display: block;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.72));
}

.aa-db-world-map-marker-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    pointer-events: none;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.38));
}

.aa-db-world-map-marker:hover,
.aa-db-world-map-marker:focus-visible {
    transform: translate(-50%, -50%) scale(1.12);
    filter: brightness(1.08);
}

.aa-db-world-map-marker--rare-npc:hover,
.aa-db-world-map-marker--rare-npc:focus-visible {
    transform: translate(-50%, -92%) scale(1.12);
    filter: brightness(1.08);
}

.aa-db-world-map-marker--npc:hover,
.aa-db-world-map-marker--npc:focus-visible {
    transform: translate(-50%, -92%) scale(1.12);
    filter: brightness(1.08);
}

.aa-db-world-map-marker--utility-npc:hover,
.aa-db-world-map-marker--utility-npc:focus-visible {
    transform: translate(-50%, -92%) scale(1.12);
    filter: brightness(1.08);
}

.aa-db-world-map-marker.is-muted {
    opacity: 0.18;
    filter: saturate(0.3);
}

.aa-db-world-map-marker[hidden] {
    display: none;
}

.aa-db-world-map-tooltip {
    position: absolute;
    z-index: 6;
    min-width: 240px;
    max-width: min(320px, calc(100% - 24px));
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(129, 193, 247, 0.22);
    background:
        linear-gradient(180deg, rgba(13, 24, 39, 0.96), rgba(8, 15, 26, 0.98)),
        rgba(8, 15, 26, 0.98);
    box-shadow: 0 20px 40px rgba(3, 9, 19, 0.5);
    pointer-events: none;
}

.aa-db-world-map-tooltip[hidden] {
    display: none;
}

.aa-db-world-map-tooltip-title {
    color: #fff5db;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    line-height: 1.2;
}

.aa-db-world-map-tooltip-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aa-db-world-map-tooltip-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 auto;
}

.aa-db-world-map-tooltip-meta {
    margin-top: 4px;
    color: rgba(219, 233, 245, 0.74);
    font-size: 12px;
    line-height: 1.45;
}

.aa-db-world-map-tooltip-action {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(129, 193, 247, 0.12);
    color: #fff3c6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.aa-db-world-map-tooltip-block {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(129, 193, 247, 0.12);
    color: #eef7ff;
    font-size: 12px;
    line-height: 1.55;
}

.aa-db-world-map-tooltip-output + .aa-db-world-map-tooltip-output {
    margin-top: 4px;
}

.aa-db-world-map-tooltip-output {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.aa-db-world-map-tooltip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(79, 155, 204, 0.18);
    border: 1px solid rgba(136, 210, 255, 0.22);
    color: #d9f3ff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

[data-world-map-row].is-map-highlight > td {
    background: rgba(33, 96, 133, 0.16);
    box-shadow: inset 0 0 0 1px rgba(120, 213, 255, 0.18);
}

[data-world-map-row].is-map-selected > td {
    background: rgba(44, 126, 178, 0.2);
    box-shadow: inset 0 0 0 1px rgba(142, 219, 255, 0.26);
}

[data-world-map-row].is-map-muted > td {
    opacity: 0.58;
}

.aa-db-world-gather-plot-btn {
    min-width: 0;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: .76rem;
    line-height: 1;
    background: rgba(36, 66, 109, 0.28);
    border-color: rgba(122, 176, 243, 0.22);
}

.aa-db-item-quest-table {
    width: 100%;
    min-width: 1080px;
}

.aa-db-item-quest-table th:nth-child(1) {
    width: 29%;
}

.aa-db-item-quest-table th:nth-child(2) {
    width: 12%;
}

.aa-db-item-quest-table th:nth-child(3) {
    width: 8%;
}

.aa-db-item-quest-table th:nth-child(4) {
    width: 16%;
}

.aa-db-item-quest-table th:nth-child(5) {
    width: 35%;
}

.aa-db-item-quest-table .aa-db-quest-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.aa-db-item-quest-table .aa-db-result-main {
    align-items: flex-start;
    gap: 12px;
}

.aa-db-item-quest-table .aa-db-item-quest-cell-main,
.aa-db-item-quest-table .aa-db-item-quest-cell-region,
.aa-db-item-quest-table .aa-db-item-quest-cell-rewards {
    min-width: 0;
}

.aa-db-item-quest-table .aa-db-item-quest-cell-race {
    white-space: nowrap;
}

.aa-db-item-quest-table .aa-db-race-filter {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
}

.aa-db-item-quest-table .aa-db-race-chip {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    box-shadow: none;
}

.aa-db-item-quest-table .aa-db-race-chip img {
    width: 100% !important;
    height: 100% !important;
    max-width: 52px !important;
    max-height: 52px !important;
    object-fit: contain;
}

.aa-db-item-quest-reward-list {
    gap: 8px;
}

.aa-db-item-quest-reward-chip {
    min-height: 40px;
    padding: 5px 12px 5px 8px;
    border-radius: 14px;
    gap: 8px;
}

.aa-db-item-quest-reward-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: contain;
    image-rendering: auto;
    flex: 0 0 auto;
}

.aa-db-item-quest-reward-chip .aa-db-quest-reward-text {
    line-height: 1.35;
}

.aa-db-npc-subtitle {
    margin-top: 4px;
    color: #ffe0a3;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.aa-db-inline-stack {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.aa-db-inline-icon-stack {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.aa-db-npc-quest-reward {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.aa-db-npc-head {
    gap: 12px;
}

.aa-db-npc-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.aa-db-npc-emblem {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}

.aa-db-npc-inline-emblem {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
    margin-right: 10px;
}

.aa-db-stat-bonus-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.aa-db-stat-bonus-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(128, 194, 248, 0.24);
    background: rgba(255,255,255,0.04);
    color: #eef7ff;
}

.aa-db-stat-bonus-chip strong {
    color: #fff5db;
}

.aa-db-pet-functions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.aa-db-pet-summon-list {
    display: grid;
    gap: 10px;
}

.aa-db-pet-summon-row {
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(147, 201, 244, 0.12);
    background: rgba(255,255,255,0.03);
}

.aa-db-pet-summon-row > div {
    min-width: 0;
}

.aa-db-pet-function-card {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(147, 201, 244, 0.14);
    background: rgba(255,255,255,0.03);
}

.aa-db-pet-function-card h4 {
    margin: 0 0 10px;
    color: #fff0d0;
    font-size: 16px;
}

.aa-db-pet-function-card ul {
    margin: 0;
    padding-left: 18px;
    color: rgba(236, 244, 255, 0.9);
}

.aa-db-pet-function-card li + li {
    margin-top: 6px;
}

.aa-db-empty,
.aa-db-alert {
    padding: 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    color: rgba(226,238,249,0.86);
}

.aa-db-alert {
    border: 1px solid rgba(255, 209, 137, 0.3);
    background: rgba(83, 51, 14, 0.26);
}

.aa-db-item-tt {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, #3b3b3b 0%, #2b2b2b 22%, #252525 100%);
    box-shadow: 0 10px 26px rgba(0,0,0,.45);
}

.aa-db-item-tt-band {
    padding: 6px 10px 0;
    font-size: 12px;
    color: rgba(255,255,255,.75);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.aa-db-item-tt-name {
    padding: 2px 10px 2px;
    font-weight: 800;
    font-size: 19px;
    line-height: 1.15;
}

.aa-db-item-tt-grade {
    padding: 0 10px 8px;
    font-size: 12px;
    color: rgba(255,255,255,.84);
    text-transform: capitalize;
}

.aa-db-item-tt-body {
    padding: 10px;
}

.aa-db-item-tt-top {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: start;
}

.aa-db-item-tt-icon {
    width: 64px;
    height: 64px;
    border-radius: 3px;
    background: linear-gradient(180deg, #151515, #0e0e0e);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.65);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aa-db-item-tt-icon img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.aa-db-item-tt-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.aa-db-item-tt-line {
    font-size: 13px;
    line-height: 1.2;
    color: rgba(255,255,255,.92);
}

.aa-db-item-tt-line.muted {
    color: rgba(255,255,255,.72);
}

.aa-db-item-tt-sep {
    height: 1px;
    margin: 10px 0;
    background: rgba(255,255,255,.14);
    box-shadow: 0 1px 0 rgba(0,0,0,.45);
}

.aa-db-item-tt-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.aa-db-item-tt .common { color: #ffffff !important; }
.aa-db-item-tt .rare { color: #2cff5a !important; }
.aa-db-item-tt .legend { color: #5bb7ff !important; }
.aa-db-item-tt .unique { color: #ffd44d !important; }
.aa-db-item-tt .epic { color: #ff9c3e !important; }
.aa-db-item-tt .mythic { color: #c57aff !important; }
.aa-db-item-tt .ancient { color: #d9a839 !important; }
.aa-db-item-tt .relic { color: #ff5ff1 !important; }
.aa-db-item-tt .finality { color: #fe4b4b !important; }

.aa-db-item-q {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

a.aa-db-item-q:hover {
    text-decoration: underline;
}

.aa-db-item-q.common { color: #ffffff !important; }
.aa-db-item-q.rare { color: #2cff5a !important; }
.aa-db-item-q.legend { color: #5bb7ff !important; }
.aa-db-item-q.unique { color: #ffd44d !important; }
.aa-db-item-q.epic { color: #ff9c3e !important; }
.aa-db-item-q.mythic { color: #c57aff !important; }
.aa-db-item-q.ancient { color: #d9a839 !important; }
.aa-db-item-q.relic { color: #ff5ff1 !important; }
.aa-db-item-q.finality { color: #fe4b4b !important; }

.aa-db-collapsible {
    border: 1px solid rgba(147, 201, 244, 0.14);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
}

.aa-db-collapsible > summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    color: #fff2d5;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.aa-db-collapsible > summary::marker {
    content: "";
}

.aa-db-collapsible > summary::after {
    content: "▾";
    color: rgba(205, 226, 247, 0.86);
    font-size: 14px;
    transform: rotate(-90deg);
    transition: transform .15s ease-in-out;
}

.aa-db-collapsible[open] > summary::after {
    transform: rotate(0deg);
}

.aa-db-collapse-content {
    padding: 0 14px 14px;
}

.aa-db-cost-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.aa-db-cost-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 220px;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.42);
}

.aa-db-cost-icon-link {
    display: inline-flex;
    flex-shrink: 0;
}

.aa-db-cost-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(15, 23, 42, 0.7);
    flex: 0 0 40px;
}

.aa-db-inline-cost-icon {
    width: 16px;
    height: 16px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(15, 23, 42, 0.7);
}

.aa-db-cost-icon-sm {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

.aa-db-cost-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.12rem;
}

.aa-db-cost-title {
    color: #f8fafc;
    font-weight: 600;
}

.aa-db-cost-value {
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.88rem;
}

.aa-db-inline-cost {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}

.aa-db-inline-cost-icon-lg {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 40px;
}

.aa-db-inline-cost-stack,
.aa-db-inline-link-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.aa-db-inline-link-stack a,
.aa-db-inline-link-stack span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
}

.aa-db-route-group + .aa-db-route-group {
    margin-top: 16px;
}

.aa-db-route-label {
    margin-bottom: 8px;
    color: rgba(207, 225, 243, 0.76);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.aa-db-inline-cost-compact {
    gap: 0.35rem;
}

.aa-db-inline-cost-value {
    color: rgba(243, 248, 255, 0.92);
    font-weight: 600;
}

.aa-db-location-hero {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 0;
    margin-bottom: 20px;
}

.aa-db-location-hero--world {
    border: 1px solid rgba(87, 190, 222, 0.18);
    box-shadow: 0 20px 42px rgba(4, 22, 39, 0.22);
}

.aa-db-location-hero--instance {
    border: 1px solid rgba(238, 179, 82, 0.18);
    box-shadow: 0 20px 42px rgba(30, 18, 4, 0.22);
}

.aa-db-location-hero-art {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: saturate(1.05) contrast(1.05);
    transform: scale(1.02);
}

.aa-db-location-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 17, 31, 0.2), rgba(5, 14, 28, 0.9)),
        linear-gradient(90deg, rgba(5, 14, 28, 0.92), rgba(5, 14, 28, 0.28));
}

.aa-db-location-hero--world .aa-db-location-hero-overlay {
    background:
        linear-gradient(180deg, rgba(7, 25, 39, 0.12), rgba(6, 20, 34, 0.92)),
        linear-gradient(90deg, rgba(4, 26, 42, 0.94), rgba(9, 48, 73, 0.3));
}

.aa-db-location-hero--instance .aa-db-location-hero-overlay {
    background:
        linear-gradient(180deg, rgba(26, 16, 6, 0.1), rgba(28, 16, 5, 0.92)),
        linear-gradient(90deg, rgba(38, 20, 6, 0.95), rgba(78, 43, 9, 0.34));
}

.aa-db-location-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px;
    min-height: 220px;
}

.aa-db-location-hero-panel {
    max-width: min(860px, 100%);
}

.aa-db-location-hero-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 18px 36px rgba(0,0,0,0.24);
    object-fit: cover;
    flex: 0 0 auto;
}

.aa-db-location-hero-kicker {
    color: rgba(203, 227, 247, 0.82);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 11px;
    margin-bottom: 8px;
}

.aa-db-location-hero-title {
    color: #fff7e5;
    font-family: 'Cinzel', serif;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
}

.aa-db-location-hero-subtitle {
    margin-top: 8px;
    color: rgba(233, 242, 252, 0.82);
    font-size: 15px;
}

.aa-db-location-hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.aa-db-location-kind,
.aa-db-location-stat,
.aa-db-location-action {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .02em;
}

.aa-db-location-kind {
    font-weight: 700;
    text-transform: uppercase;
}

.aa-db-location-kind--world {
    background: rgba(58, 187, 223, 0.18);
    border: 1px solid rgba(95, 215, 247, 0.28);
    color: #d7f8ff;
}

.aa-db-location-kind--instance {
    background: rgba(225, 160, 63, 0.18);
    border: 1px solid rgba(247, 194, 108, 0.28);
    color: #ffebc4;
}

.aa-db-location-stat {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(240, 248, 255, 0.94);
    font-weight: 600;
}

.aa-db-location-action {
    text-decoration: none;
    background: rgba(37, 114, 204, 0.24);
    border: 1px solid rgba(112, 182, 255, 0.26);
    color: #eef7ff;
    font-weight: 700;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.aa-db-location-action:hover {
    transform: translateY(-1px);
    border-color: rgba(152, 208, 255, 0.4);
    background: rgba(45, 126, 220, 0.32);
    color: #fff;
}

.aa-db-location-hero-admin {
    margin-top: 10px;
    color: rgba(213, 228, 243, 0.72);
    font-size: 13px;
}

.aa-db-page-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.aa-db-page-jump {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(17, 36, 61, 0.92);
    border: 1px solid rgba(129, 193, 247, 0.18);
    color: #eef7ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.aa-db-page-jump:hover {
    color: #fff;
    border-color: rgba(153, 214, 255, 0.34);
    background: rgba(25, 52, 86, 0.98);
}

.aa-db-class-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.aa-db-class-chip-grid-compact {
    gap: 5px;
}

.aa-db-class-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(129, 193, 247, 0.2);
    background: rgba(13, 31, 55, 0.86);
    color: #eef7ff;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.aa-db-class-chip-all {
    background: rgba(38, 111, 189, 0.22);
    border-color: rgba(118, 189, 255, 0.32);
    color: #fff4da;
}

.aa-db-rank-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(192, 152, 82, 0.28);
    background: linear-gradient(180deg, rgba(59, 39, 13, 0.94), rgba(31, 20, 6, 0.98));
    color: #fff0c9;
}

.aa-db-rank-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex: 0 0 auto;
}

.aa-db-race-badge-row {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.aa-db-race-icon-lg {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
}

@media (max-width: 991px) {
    .aa-db-grid,
    .aa-db-stats,
    .aa-db-meta,
    .aa-db-results-grid,
    .aa-db-search-results {
        grid-template-columns: 1fr;
    }

    .aa-db-home-launch,
    .aa-db-home-search-card-horizontal,
    .aa-db-home-filter-row,
    .aa-db-home-filter-row-selects {
        grid-template-columns: 1fr;
    }

    .aa-db-home-nav-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .aa-db-home-panel-head {
        flex-direction: column;
    }

    .aa-db-section-nav {
        padding: 14px 18px 0;
    }

    .aa-db-section-nav-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .aa-db-item-sidebar {
        position: static;
        top: auto;
    }

    .aa-db-hero {
        margin-top: 96px;
    }

    .aa-db-body,
    .aa-db-head {
        padding: 18px;
    }

    .aa-db-topnav {
        gap: 12px;
    }

    .aa-db-topnav-main,
    .aa-db-topnav-brand,
    .aa-db-topnav-links,
    .aa-db-topnav-search-shell,
    .aa-db-topnav-search {
        width: 100%;
    }

    .aa-db-topnav-main,
    .aa-db-topnav-search-shell {
        grid-template-columns: 1fr;
    }

    .aa-db-topnav-brand,
    .aa-db-topnav-links {
        justify-content: flex-start;
    }

    .aa-db-topnav-link,
    .aa-db-topnav-dd,
    .aa-db-topnav-dd-btn {
        width: 100%;
    }

    .aa-db-topnav-search {
        margin-left: 0;
        min-width: 0;
        max-width: none;
    }

    .aa-db-topnav-search-main {
        flex-wrap: wrap;
    }

    .aa-db-topnav-search input {
        min-width: 0;
    }

    .aa-db-topnav-search button {
        min-width: 0;
    }

    .aa-db-topnav-search-scopes {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .aa-db-topnav-search-types {
        flex-wrap: wrap;
    }

    .aa-db-topnav-dd-menu {
        position: static;
        margin-top: 6px;
        width: 100%;
        max-height: 52vh;
    }

    .aa-db-topnav-dd-wide .aa-db-topnav-dd-menu {
        width: 100%;
        max-height: 58vh;
    }

    .aa-db-filter-panel {
        padding: 14px;
    }

    .aa-db-filter-panel-head,
    .aa-db-filter-panel-tools,
    .aa-db-filter-inline-combo,
    .aa-db-filter-inline-row {
        flex-direction: column;
        align-items: stretch;
    }

    .aa-db-inline-control,
    .aa-db-inline-field,
    .aa-db-inline-field-map,
    .aa-db-filter-inline-group-grade {
        width: 100%;
        min-width: 0;
    }

    .aa-db-filter-panel-tools .aa-db-filter-reset {
        align-self: flex-start;
    }

    .aa-db-check-grid,
    .aa-db-check-grid-compact,
    .aa-db-check-grid-tight,
    .aa-db-check-grid-race {
        gap: 8px;
    }

    .aa-db-item-tt-top {
        grid-template-columns: 58px 1fr;
        gap: 10px;
    }

    .aa-db-item-tt-icon {
        width: 58px;
        height: 58px;
    }

    .aa-db-item-tt-icon img {
        width: 48px;
        height: 48px;
    }

    .aa-db-search-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .aa-db-world-map-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .aa-db-world-map-actions {
        justify-content: flex-start;
    }

    .aa-db-location-hero-content {
        min-height: 200px;
    }

    .aa-db-location-hero-icon {
        width: 82px;
        height: 82px;
    }
}

@media (max-width: 767px) {
    .aa-db-home-nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aa-db-home-type-btn {
        min-height: 70px;
        padding: 11px;
    }

    .aa-db-home-type-btn-title {
        font-size: 14px;
    }

    .aa-db-home-type-btn-sub {
        display: none;
    }

    .aa-db-section-nav-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .aa-db-section-nav-link {
        min-height: 36px;
        min-width: 0;
        padding: 0 10px;
        font-size: 12px;
    }

    .aa-db-hero {
        background-position: center top;
    }

    .aa-db-world-map-viewport {
        height: 62vh;
    }

    .aa-db-location-hero-content {
        align-items: flex-start;
        min-height: 220px;
        padding: 22px;
    }

    .aa-db-location-hero-icon {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }
}

/* ===== Standalone polish pass ===== */

.aa-db-hero {
    padding: 34px 0 24px;
    background:
        linear-gradient(180deg, rgba(5, 10, 20, 0.78), rgba(5, 11, 22, 0.96)),
        radial-gradient(75% 60% at 50% 0%, rgba(116, 185, 255, 0.12), transparent 64%);
}

.aa-db-shell {
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(168, 213, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(8, 18, 33, 0.88), rgba(5, 12, 23, 0.96)),
        radial-gradient(120% 180% at 50% 0%, rgba(69, 138, 230, 0.1), transparent 42%);
    box-shadow:
        0 28px 56px rgba(0,0,0,0.34),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.aa-db-shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 214, 135, 0.48), rgba(132, 194, 255, 0.32), transparent);
    pointer-events: none;
}

.aa-db-head {
    position: relative;
    padding: 24px 28px 22px;
    background:
        linear-gradient(135deg, rgba(17, 43, 76, 0.96), rgba(9, 23, 43, 0.96)),
        radial-gradient(120% 140% at 0% 0%, rgba(255, 214, 135, 0.09), transparent 42%);
}

.aa-db-head::after {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 214, 135, 0.16), rgba(137, 198, 255, 0.14), transparent);
}

.aa-db-head h1,
.aa-db-head h2 {
    text-shadow: 0 3px 18px rgba(0,0,0,0.28);
}

.aa-db-head p {
    max-width: 880px;
    line-height: 1.58;
}

.aa-db-head-themed {
    --aa-db-head-primary: rgba(17, 43, 76, 0.96);
    --aa-db-head-secondary: rgba(9, 23, 43, 0.96);
    --aa-db-head-glow: rgba(255, 214, 135, 0.09);
    --aa-db-head-line-a: rgba(255, 214, 135, 0.16);
    --aa-db-head-line-b: rgba(137, 198, 255, 0.14);
    --aa-db-head-title: #fff2d8;
    --aa-db-head-copy: rgba(225, 236, 247, 0.82);
    background:
        linear-gradient(135deg, var(--aa-db-head-primary), var(--aa-db-head-secondary)),
        radial-gradient(120% 140% at 0% 0%, var(--aa-db-head-glow), transparent 42%);
}

.aa-db-head-themed::after {
    background: linear-gradient(90deg, var(--aa-db-head-line-a), var(--aa-db-head-line-b), transparent);
}

.aa-db-head-themed h1,
.aa-db-head-themed h2 {
    color: var(--aa-db-head-title);
}

.aa-db-head-themed p {
    color: var(--aa-db-head-copy);
}

.aa-db-head-item-default,
.aa-db-head-item-common {
    --aa-db-head-primary: rgba(42, 48, 60, 0.96);
    --aa-db-head-secondary: rgba(21, 27, 37, 0.96);
    --aa-db-head-glow: rgba(236, 242, 255, 0.10);
    --aa-db-head-line-a: rgba(236, 242, 255, 0.18);
    --aa-db-head-line-b: rgba(165, 181, 205, 0.14);
    --aa-db-head-title: #f6f8ff;
}

.aa-db-head-item-rare {
    --aa-db-head-primary: rgba(16, 53, 28, 0.96);
    --aa-db-head-secondary: rgba(7, 28, 15, 0.96);
    --aa-db-head-glow: rgba(68, 255, 122, 0.16);
    --aa-db-head-line-a: rgba(76, 255, 129, 0.22);
    --aa-db-head-line-b: rgba(175, 255, 204, 0.15);
    --aa-db-head-title: #eafff0;
}

.aa-db-head-item-legend {
    --aa-db-head-primary: rgba(11, 51, 91, 0.96);
    --aa-db-head-secondary: rgba(7, 23, 46, 0.96);
    --aa-db-head-glow: rgba(91, 183, 255, 0.18);
    --aa-db-head-line-a: rgba(91, 183, 255, 0.24);
    --aa-db-head-line-b: rgba(185, 225, 255, 0.15);
    --aa-db-head-title: #ecf7ff;
}

.aa-db-head-item-unique {
    --aa-db-head-primary: rgba(84, 58, 10, 0.96);
    --aa-db-head-secondary: rgba(37, 24, 5, 0.96);
    --aa-db-head-glow: rgba(255, 212, 77, 0.16);
    --aa-db-head-line-a: rgba(255, 212, 77, 0.24);
    --aa-db-head-line-b: rgba(255, 236, 175, 0.15);
    --aa-db-head-title: #fff8de;
}

.aa-db-head-item-epic {
    --aa-db-head-primary: rgba(88, 39, 10, 0.96);
    --aa-db-head-secondary: rgba(43, 18, 4, 0.96);
    --aa-db-head-glow: rgba(255, 156, 62, 0.16);
    --aa-db-head-line-a: rgba(255, 156, 62, 0.24);
    --aa-db-head-line-b: rgba(255, 216, 181, 0.15);
    --aa-db-head-title: #fff0e0;
}

.aa-db-head-item-mythic {
    --aa-db-head-primary: rgba(65, 29, 88, 0.96);
    --aa-db-head-secondary: rgba(28, 13, 43, 0.96);
    --aa-db-head-glow: rgba(197, 122, 255, 0.17);
    --aa-db-head-line-a: rgba(197, 122, 255, 0.24);
    --aa-db-head-line-b: rgba(229, 198, 255, 0.16);
    --aa-db-head-title: #f8efff;
}

.aa-db-head-item-ancient {
    --aa-db-head-primary: rgba(96, 60, 16, 0.96);
    --aa-db-head-secondary: rgba(45, 27, 8, 0.96);
    --aa-db-head-glow: rgba(217, 168, 57, 0.17);
    --aa-db-head-line-a: rgba(217, 168, 57, 0.24);
    --aa-db-head-line-b: rgba(249, 224, 166, 0.16);
    --aa-db-head-title: #fff5de;
}

.aa-db-head-item-relic {
    --aa-db-head-primary: rgba(88, 17, 76, 0.96);
    --aa-db-head-secondary: rgba(39, 8, 35, 0.96);
    --aa-db-head-glow: rgba(255, 95, 241, 0.16);
    --aa-db-head-line-a: rgba(255, 95, 241, 0.24);
    --aa-db-head-line-b: rgba(255, 207, 251, 0.16);
    --aa-db-head-title: #fff0fe;
}

.aa-db-head-item-finality {
    --aa-db-head-primary: rgba(97, 17, 17, 0.96);
    --aa-db-head-secondary: rgba(43, 7, 7, 0.96);
    --aa-db-head-glow: rgba(254, 75, 75, 0.18);
    --aa-db-head-line-a: rgba(254, 75, 75, 0.24);
    --aa-db-head-line-b: rgba(255, 202, 202, 0.16);
    --aa-db-head-title: #fff0f0;
}

.aa-db-head-quest-normal {
    --aa-db-head-primary: rgba(17, 43, 76, 0.96);
    --aa-db-head-secondary: rgba(9, 23, 43, 0.96);
    --aa-db-head-glow: rgba(91, 183, 255, 0.14);
    --aa-db-head-line-a: rgba(91, 183, 255, 0.2);
    --aa-db-head-line-b: rgba(189, 224, 255, 0.14);
}

.aa-db-head-quest-mission {
    --aa-db-head-primary: rgba(84, 54, 10, 0.96);
    --aa-db-head-secondary: rgba(38, 22, 4, 0.96);
    --aa-db-head-glow: rgba(255, 202, 92, 0.17);
    --aa-db-head-line-a: rgba(255, 202, 92, 0.24);
    --aa-db-head-line-b: rgba(255, 233, 181, 0.15);
    --aa-db-head-title: #fff6df;
}

.aa-db-head-quest-important {
    --aa-db-head-primary: rgba(61, 26, 90, 0.96);
    --aa-db-head-secondary: rgba(27, 11, 45, 0.96);
    --aa-db-head-glow: rgba(214, 140, 255, 0.17);
    --aa-db-head-line-a: rgba(214, 140, 255, 0.24);
    --aa-db-head-line-b: rgba(241, 212, 255, 0.16);
    --aa-db-head-title: #faf0ff;
}

.aa-db-head-quest-event {
    --aa-db-head-primary: rgba(95, 20, 31, 0.96);
    --aa-db-head-secondary: rgba(41, 8, 13, 0.96);
    --aa-db-head-glow: rgba(255, 108, 108, 0.18);
    --aa-db-head-line-a: rgba(255, 108, 108, 0.25);
    --aa-db-head-line-b: rgba(255, 214, 214, 0.16);
    --aa-db-head-title: #fff1f1;
}

.aa-db-home-intel-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 16px 24px 0;
}

.aa-db-home-intel-card {
    display: grid;
    gap: 6px;
    min-height: 114px;
    padding: 16px 16px 14px;
    border-radius: 16px;
    border: 1px solid rgba(140, 202, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(8, 20, 36, 0.9), rgba(5, 12, 24, 0.98)),
        radial-gradient(120% 120% at 100% 0%, rgba(255, 214, 135, 0.08), transparent 42%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.aa-db-home-intel-card strong {
    color: #fff3d2;
    font-size: 1rem;
    line-height: 1.35;
}

.aa-db-home-intel-card span {
    color: rgba(219, 232, 247, 0.76);
    font-size: 0.9rem;
    line-height: 1.48;
}

.aa-db-home-search-card,
.aa-db-home-browser-card,
.aa-db-home-nav-card,
.aa-db-card {
    position: relative;
    overflow: hidden;
    box-shadow:
        0 18px 34px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

.aa-db-home-search-card::before,
.aa-db-home-browser-card::before,
.aa-db-home-nav-card::before,
.aa-db-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(110% 100% at 100% 0%, rgba(255,255,255,0.05), transparent 50%);
    pointer-events: none;
}

.aa-db-card {
    border-color: rgba(151, 205, 245, 0.12);
}

.aa-db-card h3 {
    margin-bottom: 14px;
    letter-spacing: 0.01em;
}

.aa-db-stats {
    gap: 14px;
}

.aa-db-stat {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow:
        0 16px 28px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.aa-db-stat::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 214, 135, 0.76), rgba(131, 196, 255, 0.72));
    opacity: 0.72;
}

.aa-db-stat .value {
    font-size: 30px;
    line-height: 1;
}

.aa-db-searchbar input,
.aa-db-searchbar select,
.aa-db-searchbar button,
.aa-db-topnav-search input,
.aa-db-topnav-search select,
.aa-db-topnav-search button {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 18px rgba(0,0,0,0.12);
}

.aa-db-searchbar input:focus,
.aa-db-searchbar select:focus,
.aa-db-topnav-search input:focus,
.aa-db-topnav-search select:focus {
    outline: none;
    border-color: rgba(166, 220, 255, 0.42);
    box-shadow:
        0 0 0 3px rgba(92, 164, 228, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.aa-db-searchbar button,
.aa-db-topnav-search button {
    background:
        linear-gradient(180deg, rgba(52, 99, 168, 0.96), rgba(20, 44, 79, 0.98)),
        radial-gradient(120% 120% at 50% 0%, rgba(255,255,255,0.14), transparent 48%);
    border-color: rgba(154, 206, 247, 0.24);
}

.aa-db-searchbar button:hover,
.aa-db-topnav-search button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.aa-db-topnav {
    padding: 18px 20px;
    border-bottom-color: rgba(255,255,255,0.06);
    background:
        linear-gradient(180deg, rgba(6, 17, 31, 0.96), rgba(4, 12, 24, 0.98)),
        radial-gradient(140% 120% at 0% 0%, rgba(255, 214, 135, 0.06), transparent 34%);
}

.aa-db-topnav-search-shell {
    padding-top: 14px;
    border-top-color: rgba(147, 201, 244, 0.1);
}

.aa-db-topnav-search-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.aa-db-topnav-search-note {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid rgba(141, 204, 255, 0.16);
    background: rgba(255,255,255,0.03);
    color: rgba(229, 239, 251, 0.84);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aa-db-section-nav {
    padding-top: 16px;
}

.aa-db-section-nav-grid {
    position: relative;
    border-radius: 18px;
    border-color: rgba(133, 196, 250, 0.12);
    box-shadow: 0 16px 28px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.03);
}

.aa-db-section-nav-link {
    min-height: 40px;
    border-radius: 10px;
}

.aa-db-section-nav-link.is-active {
    transform: translateY(-1px);
}

.aa-db-pill,
.aa-db-filter-chip,
.aa-db-section-jump {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 16px rgba(0,0,0,0.12);
}

.aa-db-table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.aa-db-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(18, 38, 64, 0.98), rgba(10, 22, 40, 0.98));
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.05);
}

.aa-db-table tbody tr {
    transition: background .16s ease;
}

.aa-db-table tbody tr:hover {
    background: rgba(122, 184, 239, 0.05);
}

.aa-db-result-main {
    gap: 12px;
}

.aa-db-result-icon {
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.aa-db-item-q {
    text-shadow: 0 1px 10px rgba(0,0,0,0.24);
}

.aa-db-collapsible {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.02)),
        rgba(255,255,255,0.018);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.aa-db-collapsible > summary {
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(13, 31, 53, 0.56), rgba(8, 19, 33, 0.36));
}

.aa-db-collapsible[open] > summary {
    border-bottom: 1px solid rgba(147, 201, 244, 0.1);
}

.aa-db-empty,
.aa-db-alert {
    box-shadow: 0 16px 28px rgba(0,0,0,0.16);
}

@media (max-width: 991.98px) {
    .aa-db-home-intel-strip {
        grid-template-columns: 1fr;
        padding: 14px 20px 0;
    }
}

/* Standalone browse/search/item page intelligence */
.aa-db-page-intel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.aa-db-page-intel-card {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    border: 1px solid rgba(138, 196, 244, 0.12);
    background:
        linear-gradient(180deg, rgba(16, 29, 49, 0.96), rgba(8, 16, 30, 0.98)),
        radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,0.06), transparent 48%);
    box-shadow:
        0 16px 28px rgba(0,0,0,0.16),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.aa-db-page-intel-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(90% 80% at 100% 0%, rgba(255, 214, 135, 0.08), transparent 58%);
    pointer-events: none;
}

.aa-db-page-intel-card-accent {
    border-color: rgba(255, 214, 135, 0.2);
    background:
        linear-gradient(180deg, rgba(24, 34, 54, 0.98), rgba(12, 19, 34, 0.99)),
        radial-gradient(120% 120% at 0% 0%, rgba(255, 214, 135, 0.14), transparent 42%);
}

.aa-db-page-intel-label {
    display: inline-flex;
    margin-bottom: 10px;
    color: rgba(255, 216, 146, 0.84);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.aa-db-page-intel-value {
    color: #f3f7ff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.aa-db-page-intel-copy {
    margin-top: 10px;
    color: rgba(219, 230, 244, 0.76);
    font-size: 13px;
    line-height: 1.55;
}

.aa-db-item-masthead {
    margin-bottom: 24px;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(144, 204, 248, 0.14);
    background:
        linear-gradient(180deg, rgba(14, 26, 44, 0.98), rgba(7, 14, 26, 0.99)),
        radial-gradient(125% 100% at 0% 0%, rgba(255, 214, 135, 0.12), transparent 38%),
        radial-gradient(100% 100% at 100% 0%, rgba(126, 189, 245, 0.1), transparent 42%);
    box-shadow:
        0 20px 36px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.aa-db-item-masthead-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.aa-db-item-masthead-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
        rgba(0,0,0,0.18);
    box-shadow:
        0 16px 28px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.aa-db-item-masthead-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    image-rendering: auto;
}

.aa-db-item-kicker {
    margin-bottom: 8px;
    color: rgba(255, 214, 135, 0.84);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.aa-db-item-masthead-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.aa-db-item-masthead-title {
    margin: 0;
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.aa-db-item-masthead-description {
    max-width: 880px;
    margin: 12px 0 0;
    color: rgba(221, 232, 245, 0.8);
    font-size: 15px;
    line-height: 1.72;
}

.aa-db-item-tag-row,
.aa-db-item-link-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.aa-db-item-tag-row {
    margin-top: 16px;
}

.aa-db-item-tag,
.aa-db-item-link-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(140, 202, 246, 0.16);
    background: rgba(255,255,255,0.04);
    color: rgba(234, 241, 251, 0.9);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.aa-db-item-tag-quality {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
}

.aa-db-item-tag-quality.common { color: #f0f5ff; }
.aa-db-item-tag-quality.rare { color: #4fd38d; }
.aa-db-item-tag-quality.legend { color: #4fc7f0; }
.aa-db-item-tag-quality.unique { color: #ff8d66; }
.aa-db-item-tag-quality.epic { color: #f4ca72; }
.aa-db-item-tag-quality.mythic { color: #c28cff; }

.aa-db-item-facts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.aa-db-item-fact {
    min-height: 90px;
    padding: 14px 14px 12px;
    border-radius: 16px;
    border: 1px solid rgba(134, 194, 243, 0.12);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
        rgba(0,0,0,0.12);
}

.aa-db-item-fact-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(167, 184, 209, 0.82);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.aa-db-item-fact-value {
    color: #f3f7ff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.aa-db-item-inline-races {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.aa-db-item-link-strip {
    margin-top: 16px;
}

.aa-db-item-link-pill {
    gap: 8px;
    background: rgba(255, 214, 135, 0.06);
    border-color: rgba(255, 214, 135, 0.16);
}

.aa-db-item-link-pill strong {
    color: #ffd98e;
    font-weight: 800;
}

.aa-db-item-summary-hero {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(140, 202, 246, 0.12);
}

.aa-db-item-summary-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.aa-db-item-summary-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
        rgba(0,0,0,0.18);
    box-shadow:
        0 12px 24px rgba(0,0,0,0.16),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.aa-db-item-summary-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    image-rendering: auto;
}

.aa-db-item-summary-copy {
    min-width: 0;
}

.aa-db-item-summary-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.aa-db-item-summary-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.aa-db-item-summary-description {
    margin: 10px 0 0;
    color: rgba(221, 232, 245, 0.78);
    font-size: 14px;
    line-height: 1.6;
}

.aa-db-item-tag-row-compact {
    margin-top: 12px;
    gap: 8px;
}

.aa-db-item-facts-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.aa-db-item-facts-summary .aa-db-item-fact {
    min-height: 78px;
}

.aa-db-item-link-strip-summary {
    margin-top: 14px;
    gap: 8px;
}

.aa-db-entity-summary-hero {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(140, 202, 246, 0.12);
}

.aa-db-entity-summary-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.aa-db-entity-summary-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
        rgba(0,0,0,0.18);
    box-shadow:
        0 12px 24px rgba(0,0,0,0.16),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.aa-db-entity-summary-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    image-rendering: auto;
}

.aa-db-entity-summary-copy {
    min-width: 0;
}

.aa-db-entity-summary-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.aa-db-entity-summary-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.aa-db-entity-summary-subtitle {
    margin-top: 8px;
    color: #c9d6e7;
    font-weight: 700;
}

.aa-db-entity-summary-description {
    margin: 10px 0 0;
    color: rgba(221, 232, 245, 0.78);
    font-size: 14px;
    line-height: 1.6;
}

.aa-db-entity-tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.aa-db-entity-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.aa-db-entity-fact {
    min-height: 78px;
    border-radius: 16px;
    border: 1px solid rgba(140, 202, 246, 0.14);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
        rgba(8, 17, 31, 0.82);
    padding: 14px 15px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.aa-db-entity-fact-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8acaf6;
}

.aa-db-entity-fact-value {
    margin-top: 8px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

@media (max-width: 1199.98px) {
    .aa-db-page-intel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aa-db-item-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .aa-db-entity-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .aa-db-page-intel {
        grid-template-columns: 1fr;
    }

    .aa-db-page-intel-card {
        min-height: auto;
    }

    .aa-db-page-intel-value {
        font-size: 22px;
    }

    .aa-db-item-masthead {
        padding: 18px;
    }

    .aa-db-item-masthead-main {
        grid-template-columns: 1fr;
    }

    .aa-db-entity-summary-top {
        grid-template-columns: 1fr;
    }

    .aa-db-entity-facts {
        grid-template-columns: 1fr;
    }

    .aa-db-item-masthead-icon-wrap {
        width: 84px;
        height: 84px;
    }

    .aa-db-item-masthead-icon {
        width: 60px;
        height: 60px;
    }

    .aa-db-item-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.aa-db-topnav-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.aa-db-topnav-search-note-link {
    text-decoration: none;
}

.aa-db-topnav-search-note-link:hover {
    color: #fff;
    border-color: rgba(255, 214, 135, 0.22);
    background: rgba(255,255,255,0.06);
}

.aa-db-section-nav-secondary {
    padding-top: 14px;
}

.aa-db-section-nav-grid-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
}

.aa-db-home-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.aa-db-home-feature-link {
    display: block;
    min-height: 154px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(142, 203, 246, 0.12);
    background:
        linear-gradient(180deg, rgba(18, 33, 54, 0.98), rgba(8, 16, 31, 0.98)),
        radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,0.06), transparent 46%);
    color: #eef5ff;
    text-decoration: none;
    box-shadow: 0 18px 28px rgba(0,0,0,0.16);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.aa-db-home-feature-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 214, 135, 0.18);
    box-shadow: 0 20px 34px rgba(0,0,0,0.2);
    color: #fff;
}

.aa-db-home-feature-title {
    display: block;
    margin-bottom: 8px;
    color: #fff4d3;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.aa-db-home-feature-copy {
    display: block;
    color: rgba(225, 234, 246, 0.8);
    font-size: 14px;
    line-height: 1.62;
}

@media (max-width: 1199.98px) {
    .aa-db-home-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .aa-db-topnav-context {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .aa-db-home-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Navigation cleanup pass */
.aa-db-topnav-context {
    padding: 16px 28px 12px;
    align-items: flex-start;
    justify-content: flex-start;
    background:
        linear-gradient(180deg, rgba(7, 18, 32, 0.98), rgba(4, 10, 19, 0.98)),
        radial-gradient(120% 120% at 0% 0%, rgba(255, 214, 135, 0.05), transparent 34%);
}

.aa-db-topnav-context-copy {
    display: grid;
    gap: 4px;
    max-width: 940px;
}

.aa-db-topnav-context-kicker {
    color: rgba(135, 199, 255, 0.82);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.aa-db-topnav-search-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    color: #fff2d0;
    font-family: 'Cinzel', serif;
    font-size: 1.04rem;
    letter-spacing: 0.01em;
}

.aa-db-topnav-context-divider {
    color: rgba(156, 205, 245, 0.62);
}

.aa-db-topnav-context-focus {
    color: #ffd68b;
}

.aa-db-topnav-search-subtitle {
    color: rgba(221, 232, 245, 0.72);
    font-size: 13px;
    line-height: 1.58;
}

.aa-db-section-nav-secondary {
    padding: 12px 28px 0;
    justify-content: flex-start;
}

.aa-db-section-nav-grid-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: auto;
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.aa-db-section-nav-grid-secondary .aa-db-section-nav-link {
    min-height: 33px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: none;
}

.aa-db-section-nav-link-primary {
    border-color: rgba(255, 214, 135, 0.24);
    background:
        linear-gradient(180deg, rgba(44, 36, 19, 0.82), rgba(18, 15, 8, 0.92)),
        radial-gradient(120% 120% at 50% 0%, rgba(255, 214, 135, 0.08), transparent 56%);
    color: #fff2d0;
}

.aa-db-section-nav-link-secondary {
    border-color: rgba(143, 202, 255, 0.16);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(230, 238, 248, 0.82);
}

.aa-db-section-nav-link-secondary:hover,
.aa-db-section-nav-link-primary:hover {
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    .aa-db-topnav-context,
    .aa-db-section-nav-secondary {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 767.98px) {
    .aa-db-topnav-context {
        padding-top: 14px;
        padding-bottom: 10px;
    }

    .aa-db-topnav-search-title {
        font-size: 0.96rem;
    }

    .aa-db-topnav-search-subtitle {
        font-size: 12px;
    }

    .aa-db-section-nav-grid-secondary {
        gap: 6px;
    }

    .aa-db-section-nav-grid-secondary .aa-db-section-nav-link {
        min-height: 31px;
        padding: 0 10px;
        font-size: 10px;
    }
}


.aa-db-hero-home-clean {
    padding: 44px 0 28px;
    background:
        radial-gradient(58% 48% at 50% 0%, rgba(128, 194, 255, 0.11), transparent 72%),
        radial-gradient(28% 20% at 18% 10%, rgba(255, 214, 135, 0.05), transparent 78%),
        linear-gradient(180deg, rgba(5, 10, 18, 0.42), rgba(4, 9, 17, 0.72));
}

.aa-db-shell-home-clean {
    overflow: visible;
    border-color: rgba(181, 217, 250, 0.12);
    background:
        linear-gradient(180deg, rgba(8, 17, 31, 0.74), rgba(6, 13, 24, 0.86)),
        radial-gradient(120% 140% at 50% 0%, rgba(117, 186, 255, 0.07), transparent 48%);
    box-shadow:
        0 24px 48px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
}

.aa-db-shell-home-clean::before {
    display: none;
}

.aa-db-home-clean {
    display: grid;
    gap: 18px;
    min-height: 60vh;
    align-content: center;
    padding: 56px 24px 60px;
}

.aa-db-home-clean-hero {
    width: min(100%, 860px);
    margin: 0 auto;
    display: grid;
    gap: 16px;
    text-align: center;
}

.aa-db-home-clean-kicker {
    letter-spacing: 0.26em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 220, 156, 0.74);
}

.aa-db-home-clean-hero h1 {
    margin: 0;
    color: #f8fbff;
    font-family: 'Cinzel', serif;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 0.96;
}

.aa-db-home-clean-hero p {
    width: min(100%, 620px);
    margin: 0 auto;
    color: rgba(223, 235, 247, 0.76);
    font-size: 15px;
}

.aa-db-home-clean-search {
    width: min(100%, 760px);
    margin: 10px auto 0;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px;
    border-radius: 24px;
    border: 1px solid rgba(188, 221, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(11, 22, 38, 0.86), rgba(7, 15, 28, 0.92)),
        radial-gradient(120% 140% at 50% 0%, rgba(126, 194, 255, 0.08), transparent 62%);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.aa-db-home-clean-search input {
    min-height: 58px;
    padding: 0 20px;
    font-size: 16px;
}

.aa-db-home-clean-search button {
    min-width: 140px;
    min-height: 58px;
    border-radius: 16px;
}

.aa-db-home-clean-links {
    width: min(100%, 920px);
    margin: 8px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.aa-db-home-clean-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(165, 208, 247, 0.14);
    background: rgba(10, 21, 36, 0.42);
    color: rgba(236, 244, 252, 0.92);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: border-color .16s ease, background .16s ease, transform .16s ease, color .16s ease;
}

.aa-db-home-clean-link:hover {
    transform: translateY(-1px);
    border-color: rgba(202, 230, 255, 0.28);
    background: rgba(17, 33, 54, 0.62);
    color: #fff;
}

.aa-db-home-clean-alert {
    width: min(100%, 760px);
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .aa-db-home-clean {
        min-height: auto;
        padding: 34px 18px 40px;
    }

    .aa-db-home-clean-hero {
        gap: 14px;
    }

    .aa-db-home-clean-search {
        grid-template-columns: 1fr;
        padding: 9px;
    }

    .aa-db-home-clean-search button {
        width: 100%;
        min-width: 0;
    }

    .aa-db-home-clean-links {
        gap: 8px;
    }

    .aa-db-home-clean-link {
        min-height: 36px;
        padding: 0 12px;
        font-size: 11px;
    }
}

.aa-db-hero-search {
    background:
        radial-gradient(64% 48% at 50% 0%, rgba(125, 191, 255, 0.1), transparent 72%),
        linear-gradient(180deg, rgba(5, 10, 20, 0.74), rgba(5, 11, 22, 0.96));
}

.aa-db-body-search {
    display: grid;
    gap: 18px;
}

.aa-db-search-summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 18px;
    border: 1px solid rgba(155, 211, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(9, 20, 35, 0.9), rgba(5, 13, 24, 0.95)),
        radial-gradient(110% 130% at 50% 0%, rgba(112, 186, 255, 0.08), transparent 52%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 18px 34px rgba(0,0,0,0.16);
}

.aa-db-search-summary-main {
    display: grid;
    gap: 8px;
}

.aa-db-search-summary-kicker {
    color: rgba(255, 221, 159, 0.78);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.aa-db-search-summary-main h3 {
    margin: 0;
    color: #f8fbff;
    font-family: 'Cinzel', serif;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.04;
}

.aa-db-search-summary-main p {
    margin: 0;
    color: rgba(220, 233, 247, 0.76);
    font-size: 14px;
}

.aa-db-search-summary-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.aa-db-search-summary-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(155, 211, 255, 0.16);
    background: rgba(10, 24, 42, 0.58);
    color: rgba(238, 245, 255, 0.9);
    font-size: 12px;
    font-weight: 700;
}

.aa-db-results-toolbar-search {
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(149, 206, 255, 0.12);
    background: rgba(7, 16, 28, 0.68);
    justify-content: space-between;
}

.aa-db-section-jumps {
    gap: 8px;
}

.aa-db-section-jump {
    border-radius: 999px;
    border: 1px solid rgba(149, 206, 255, 0.16);
    background: rgba(9, 20, 35, 0.62);
    color: rgba(233, 243, 255, 0.88);
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.aa-db-section-jump:hover {
    transform: translateY(-1px);
    border-color: rgba(202, 231, 255, 0.24);
    background: rgba(15, 31, 52, 0.78);
}

.aa-db-search-group {
    border: 1px solid rgba(143, 202, 255, 0.16);
    border-radius: 20px;
    padding: 16px;
    background:
        linear-gradient(180deg, rgba(7, 19, 33, 0.92), rgba(5, 12, 22, 0.96)),
        radial-gradient(120% 140% at 50% 0%, rgba(112, 186, 255, 0.06), transparent 48%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.aa-db-search-group-head {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(143, 202, 255, 0.1);
}

.aa-db-search-group-head h3 {
    font-size: 16px;
    letter-spacing: 0.04em;
}

.aa-db-search-results {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
}

.aa-db-search-card {
    position: relative;
    overflow: hidden;
    display: block;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(143, 202, 255, 0.16);
    background:
        linear-gradient(135deg, rgba(10, 23, 39, 0.96), rgba(7, 15, 27, 0.98)),
        radial-gradient(130% 130% at 0% 0%, rgba(116, 187, 255, 0.06), transparent 46%);
    box-shadow:
        0 14px 28px rgba(0,0,0,0.16),
        inset 0 1px 0 rgba(255,255,255,0.03);
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.aa-db-search-card::before {
    left: 18px;
    right: 18px;
    top: 0;
    bottom: auto;
    width: auto;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(124, 182, 235, 0.18), rgba(124, 182, 235, 0.78), rgba(124, 182, 235, 0.18));
}

.aa-db-search-card:hover {
    transform: translateY(-2px);
    border-color: rgba(166, 219, 255, 0.3);
    background:
        linear-gradient(135deg, rgba(12, 28, 47, 0.98), rgba(8, 18, 32, 0.99)),
        radial-gradient(130% 130% at 0% 0%, rgba(132, 198, 255, 0.08), transparent 46%);
    box-shadow:
        0 18px 34px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.aa-db-search-card-item::before {
    background: linear-gradient(90deg, rgba(104, 184, 255, 0.18), rgba(104, 184, 255, 0.78), rgba(104, 184, 255, 0.18));
}

.aa-db-search-card-npc::before {
    background: linear-gradient(90deg, rgba(123, 216, 163, 0.18), rgba(123, 216, 163, 0.8), rgba(123, 216, 163, 0.18));
}

.aa-db-search-card-world::before {
    background: linear-gradient(90deg, rgba(245, 194, 113, 0.18), rgba(245, 194, 113, 0.82), rgba(245, 194, 113, 0.18));
}

.aa-db-search-main {
    align-items: flex-start;
    gap: 14px;
}

.aa-db-search-icon-wrap .aa-db-result-icon,
.aa-db-entity-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 10px 18px rgba(0,0,0,0.14);
}

.aa-db-search-top {
    gap: 12px;
}

.aa-db-search-title {
    color: #f8fbff;
    font-size: 16px;
    line-height: 1.34;
}

.aa-db-search-sub {
    margin-top: 6px;
    color: rgba(206, 223, 240, 0.72);
    font-size: 12px;
}

.aa-db-search-meta {
    margin-top: 12px;
    gap: 10px;
}

.aa-db-search-id,
.aa-db-search-open {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.aa-db-search-id {
    border: 1px solid rgba(162, 206, 244, 0.24);
    color: rgba(224, 240, 255, 0.92);
    background: rgba(86, 141, 196, 0.16);
}

.aa-db-search-open {
    color: rgba(255, 225, 173, 0.92);
    background: rgba(83, 60, 20, 0.32);
    border: 1px solid rgba(255, 214, 135, 0.18);
}

.aa-db-type-pill {
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    letter-spacing: 0.08em;
}

.aa-db-search-arrow {
    align-self: center;
    margin-left: auto;
    color: rgba(255, 225, 173, 0.82);
    font-size: 18px;
    line-height: 1;
    opacity: 0.75;
    transition: transform .16s ease, opacity .16s ease, color .16s ease;
}

.aa-db-search-card:hover .aa-db-search-arrow {
    transform: translate(2px, -2px);
    opacity: 1;
    color: #ffefc9;
}

@media (max-width: 991.98px) {
    .aa-db-search-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .aa-db-search-summary-stats {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .aa-db-search-summary {
        padding: 18px;
    }

    .aa-db-search-results {
        grid-template-columns: 1fr;
    }

    .aa-db-search-card {
        padding: 14px 15px;
    }

    .aa-db-search-arrow {
        display: none;
    }
}

.aa-db-head-browse-clean {
    display: grid;
    gap: 10px;
}

.aa-db-browse-head-kicker {
    color: rgba(255, 219, 154, 0.78);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.aa-db-head-browse-clean h2 {
    margin: 0;
}

.aa-db-head-browse-clean p {
    margin: 0;
    max-width: 720px;
    color: rgba(220, 233, 247, 0.78);
}

.aa-db-browse-head-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.aa-db-body-browse-clean {
    display: grid;
    gap: 18px;
}

.aa-db-shell-detail-clean {
    padding-top: 18px;
}

.aa-db-head-detail-clean {
    display: grid;
    gap: 10px;
}

.aa-db-head-detail-clean h2 {
    margin: 0;
}

.aa-db-head-detail-clean p {
    margin: 0;
    max-width: 760px;
    color: rgba(220, 233, 247, 0.78);
}

.aa-db-body-detail-clean {
    display: grid;
    gap: 20px;
}

.aa-db-gathering-body {
    gap: 22px;
}

.aa-db-gathering-controls {
    display: grid;
    gap: 18px;
    padding: 18px 20px;
}

.aa-db-gathering-controls-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}

.aa-db-gathering-controls-head h3 {
    margin: 0;
}

.aa-db-gathering-controls-row {
    display: grid;
    gap: 10px;
}

.aa-db-gathering-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.aa-db-gathering-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(143, 202, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(235, 243, 255, 0.84);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.aa-db-gathering-chip span {
    color: rgba(255, 223, 170, 0.88);
    font-size: 0.82rem;
}

.aa-db-gathering-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(171, 221, 255, 0.26);
    background: rgba(17, 43, 76, 0.55);
    color: #fff;
}

.aa-db-gathering-chip.is-active {
    border-color: rgba(255, 214, 135, 0.26);
    background:
        linear-gradient(180deg, rgba(37, 31, 17, 0.78), rgba(18, 14, 8, 0.88)),
        radial-gradient(120% 140% at 50% 0%, rgba(255, 214, 135, 0.12), transparent 62%);
    color: #fff7e6;
}

.aa-db-gathering-summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.aa-db-gathering-section {
    display: grid;
    gap: 14px;
}

.aa-db-gathering-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}

.aa-db-gathering-section-head h3,
.aa-db-gathering-group-head h4,
.aa-db-gathering-card h5 {
    margin: 0;
}

.aa-db-gathering-group-card {
    display: grid;
    gap: 18px;
    padding: 20px;
}

.aa-db-gathering-group-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}

.aa-db-gathering-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.aa-db-gathering-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(143, 202, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(10, 22, 37, 0.88), rgba(6, 14, 26, 0.94)),
        radial-gradient(120% 140% at 0% 0%, rgba(118, 188, 255, 0.05), transparent 48%);
}

.aa-db-gathering-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.aa-db-gathering-card-link {
    color: #fff4d6;
    text-decoration: none;
}

.aa-db-gathering-card-link:hover {
    color: #ffffff;
}

.aa-db-gathering-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 10px 18px rgba(0,0,0,0.14);
}

.aa-db-gathering-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    color: rgba(219, 232, 246, 0.76);
    font-size: 0.85rem;
}

.aa-db-gathering-card-meta span,
.aa-db-gathering-stat-row .aa-db-pill {
    white-space: nowrap;
}

.aa-db-gathering-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aa-db-gathering-required,
.aa-db-gathering-output-list {
    display: grid;
    gap: 8px;
}

.aa-db-gathering-required-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aa-db-gathering-required-main img {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    object-fit: cover;
}

.aa-db-gathering-required-main a,
.aa-db-gathering-required-main span {
    font-weight: 600;
    text-decoration: none;
}

.aa-db-gathering-output-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aa-db-gathering-output-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(143, 202, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(239, 245, 255, 0.88);
    font-size: 0.86rem;
    text-decoration: none;
}

.aa-db-gathering-output-chip span {
    color: rgba(255, 221, 165, 0.88);
    font-size: 0.8rem;
}

.aa-db-gathering-output-chip:hover {
    border-color: rgba(171, 221, 255, 0.22);
    color: #fff;
}

.aa-db-gathering-resource-summary {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.aa-db-gathering-resource-summary-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.aa-db-gathering-resource-summary-main h3,
.aa-db-gathering-map-head h4 {
    margin: 0;
}

.aa-db-gathering-resource-summary-icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 12px 22px rgba(0,0,0,0.16);
}

.aa-db-gathering-map-card {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.aa-db-gathering-map-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.aa-db-world-map-shell--compact .aa-db-world-map-viewport {
    height: min(48vh, 520px);
}

.aa-db-world-map-viewport--compact {
    height: min(48vh, 520px);
}

.aa-db-gathering-coordinates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aa-db-home-social-modal .modal-content {
    border-radius: 20px;
    border: 1px solid rgba(149, 206, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(10, 20, 35, 0.96), rgba(6, 13, 24, 0.98)),
        radial-gradient(120% 140% at 50% 0%, rgba(118, 188, 255, 0.08), transparent 54%);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.36);
}

.aa-db-home-social-modal .modal-body {
    padding: 26px;
    display: grid;
    gap: 14px;
    text-align: center;
}

.aa-db-home-social-kicker {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 220, 156, 0.74);
}

.aa-db-home-social-modal h2 {
    margin: 0;
    color: #fff2d4;
    font-family: 'Cinzel', serif;
    font-size: clamp(24px, 3vw, 34px);
}

.aa-db-home-social-modal p {
    margin: 0;
    color: rgba(223, 235, 247, 0.8);
    font-size: 0.96rem;
}

.aa-db-home-social-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.aa-db-filter-panel-browse {
    padding: 16px 18px;
    border-radius: 18px;
    border-color: rgba(147, 201, 244, 0.12);
    background:
        linear-gradient(180deg, rgba(7, 18, 31, 0.82), rgba(4, 11, 21, 0.9)),
        radial-gradient(120% 140% at 50% 0%, rgba(118, 188, 255, 0.05), transparent 48%);
}

.aa-db-filter-panel-browse .aa-db-filter-section-copy {
    max-width: 34ch;
}

.aa-db-results-toolbar-browse {
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(149, 206, 255, 0.1);
    background: rgba(7, 16, 28, 0.62);
}

.aa-db-results-grid .aa-db-result {
    position: relative;
    overflow: hidden;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(143, 202, 255, 0.14);
    background:
        linear-gradient(135deg, rgba(10, 23, 39, 0.96), rgba(7, 15, 27, 0.98)),
        radial-gradient(130% 130% at 0% 0%, rgba(116, 187, 255, 0.05), transparent 46%);
    box-shadow:
        0 14px 28px rgba(0,0,0,0.14),
        inset 0 1px 0 rgba(255,255,255,0.03);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.aa-db-results-grid .aa-db-result::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(124, 182, 235, 0.16), rgba(124, 182, 235, 0.76), rgba(124, 182, 235, 0.16));
}

.aa-db-results-grid .aa-db-result::after {
    content: "↗";
    position: absolute;
    top: 16px;
    right: 16px;
    color: rgba(255, 225, 173, 0.74);
    font-size: 18px;
    line-height: 1;
    transition: transform .16s ease, opacity .16s ease, color .16s ease;
}

.aa-db-results-grid .aa-db-result:hover {
    transform: translateY(-2px);
    border-color: rgba(166, 219, 255, 0.3);
    background:
        linear-gradient(135deg, rgba(12, 28, 47, 0.98), rgba(8, 18, 32, 0.99)),
        radial-gradient(130% 130% at 0% 0%, rgba(132, 198, 255, 0.08), transparent 46%);
    box-shadow:
        0 18px 34px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.aa-db-results-grid .aa-db-result:hover::after {
    transform: translate(2px, -2px);
    color: #ffefc9;
}

.aa-db-results-grid .aa-db-result-main {
    align-items: flex-start;
    gap: 12px;
    padding-right: 26px;
}

.aa-db-results-grid .aa-db-result-icon {
    width: 48px;
    height: 48px;
    margin-right: 0;
    border-radius: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 8px 16px rgba(0,0,0,0.12);
}

.aa-db-results-grid .aa-db-result-title {
    font-size: 15px;
    line-height: 1.32;
}

.aa-db-results-grid .aa-db-result-sub {
    margin-top: 6px;
}

.aa-db-results-grid .aa-db-meta-inline {
    margin-top: 12px;
}

@media (max-width: 767.98px) {
    .aa-db-gathering-controls,
    .aa-db-gathering-group-card,
    .aa-db-gathering-card,
    .aa-db-gathering-resource-summary,
    .aa-db-gathering-map-card {
        padding: 14px;
    }

    .aa-db-gathering-section-head,
    .aa-db-gathering-group-head,
    .aa-db-gathering-map-head,
    .aa-db-gathering-resource-summary-main,
    .aa-db-gathering-controls-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .aa-db-home-social-actions {
        flex-direction: column;
    }

    .aa-db-results-grid .aa-db-result {
        padding: 14px 15px;
    }

    .aa-db-results-grid .aa-db-result::after {
        display: none;
    }

    .aa-db-results-toolbar-browse {
        padding: 12px;
    }
}

.aa-db-gathering-toolbar-form {
    display: grid;
    gap: 16px;
}

.aa-db-gathering-toolbar-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(140px, 180px) auto;
    gap: 14px;
    align-items: end;
}

.aa-db-gathering-toolbar-action {
    align-self: end;
}

.aa-db-gathering-toolbar-action .aa-db-page-btn {
    min-width: 124px;
}

.aa-db-gathering-facet-stack {
    display: grid;
    gap: 16px;
}

.aa-db-gathering-facet-row,
.aa-db-gathering-race-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.aa-db-gathering-race-row {
    align-items: center;
}

.aa-db-gathering-race-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 4px 14px 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(143, 202, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(235, 243, 255, 0.86);
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.aa-db-gathering-race-link:hover {
    transform: translateY(-1px);
    border-color: rgba(171, 221, 255, 0.26);
    background: rgba(17, 43, 76, 0.55);
    color: #fff;
}

.aa-db-gathering-race-link.is-active {
    border-color: rgba(255, 214, 135, 0.26);
    background:
        linear-gradient(180deg, rgba(37, 31, 17, 0.78), rgba(18, 14, 8, 0.88)),
        radial-gradient(120% 140% at 50% 0%, rgba(255, 214, 135, 0.12), transparent 62%);
    color: #fff7e6;
}

.aa-db-gathering-race-link .aa-db-race-chip {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    padding: 0;
    border: 0;
    background: transparent;
}

.aa-db-gathering-race-link .aa-db-race-chip img {
    max-width: 38px !important;
    max-height: 38px !important;
}

.aa-db-gathering-race-link-copy {
    display: grid;
    gap: 2px;
}

.aa-db-gathering-race-link-copy span {
    color: inherit;
    font-weight: 700;
    line-height: 1;
}

.aa-db-gathering-race-link-copy small {
    color: rgba(220, 232, 245, 0.72);
    font-size: 0.76rem;
    line-height: 1.15;
}

.aa-db-gathering-results-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.aa-db-gathering-card-compact {
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
}

.aa-db-gathering-card-main {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.aa-db-gathering-card-main h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
}

.aa-db-gathering-card-kickers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(221, 232, 245, 0.72);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aa-db-gathering-card-compact .aa-db-gathering-card-head {
    gap: 12px;
}

.aa-db-gathering-card-compact .aa-db-gathering-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.aa-db-gathering-card-compact .aa-db-gathering-card-meta {
    margin-top: 0;
    gap: 6px;
    font-size: 0.82rem;
}

.aa-db-gathering-card-compact .aa-db-gathering-card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 10px;
    border: 1px solid rgba(143, 202, 255, 0.08);
    background: rgba(255, 255, 255, 0.022);
}

.aa-db-gathering-card-footer {
    display: grid;
    gap: 10px;
}

.aa-db-gathering-compact-required {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aa-db-gathering-compact-required img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
}

.aa-db-gathering-compact-required a,
.aa-db-gathering-compact-required span {
    font-weight: 600;
    text-decoration: none;
}

.aa-db-gathering-compact-required-label {
    color: rgba(221, 232, 245, 0.72);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aa-db-gathering-output-chips-compact {
    gap: 7px;
}

.aa-db-gathering-output-chips-compact .aa-db-gathering-output-chip {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.82rem;
}

.aa-db-gathering-output-chips-compact .aa-db-gathering-output-chip span {
    font-size: 0.76rem;
}

.aa-db-gathering-pagebar {
    margin-top: 4px;
    justify-content: center;
}

.aa-db-gathering-intel {
    margin-bottom: 18px;
}

.aa-db-gathering-intel .aa-db-page-intel-card {
    min-height: 148px;
}

.aa-db-gathering-compact-required-empty {
    color: rgba(227, 237, 248, 0.78);
    font-weight: 600;
}

.aa-db-gathering-card-note-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aa-db-gathering-card-note {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(143, 202, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(227, 237, 248, 0.78);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

@media (max-width: 767.98px) {
    .aa-db-gathering-toolbar-grid {
        grid-template-columns: 1fr;
    }

    .aa-db-gathering-toolbar-action .aa-db-page-btn {
        width: 100%;
    }

    .aa-db-gathering-results-grid {
        grid-template-columns: 1fr;
    }
}

.aa-db-gathering-filter-shell {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(143, 202, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(9, 20, 35, 0.96), rgba(5, 12, 24, 0.98)),
        radial-gradient(120% 160% at 100% 0%, rgba(88, 162, 255, 0.12), transparent 56%);
}

.aa-db-gathering-filter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.aa-db-gathering-filter-copy {
    display: grid;
    gap: 8px;
    max-width: 760px;
}

.aa-db-gathering-filter-copy h3 {
    margin: 0;
}

.aa-db-gathering-filter-copy p,
.aa-db-gathering-filter-block-head p {
    margin: 0;
    color: rgba(214, 228, 243, 0.72);
    font-size: 0.92rem;
    line-height: 1.6;
}

.aa-db-gathering-filter-status {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.aa-db-gathering-filter-stat {
    min-width: 132px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(143, 202, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    gap: 4px;
}

.aa-db-gathering-filter-stat .label {
    color: rgba(214, 228, 243, 0.7);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.aa-db-gathering-filter-stat .value {
    color: #fff2d1;
    font-family: "Cinzel", serif;
    font-size: 1rem;
}

.aa-db-gathering-filter-actions {
    display: flex;
    align-items: stretch;
}

.aa-db-gathering-filter-actions .aa-db-page-btn {
    min-height: 100%;
}

.aa-db-gathering-filter-form {
    display: grid;
    gap: 16px;
}

.aa-db-gathering-filter-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 230px);
    gap: 14px;
    align-items: stretch;
}

.aa-db-gathering-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.aa-db-gathering-filter-block {
    display: grid;
    grid-template-rows: minmax(84px, auto) auto;
    align-content: start;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(143, 202, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(10, 22, 37, 0.84), rgba(6, 14, 26, 0.92)),
        radial-gradient(120% 120% at 100% 0%, rgba(86, 160, 255, 0.08), transparent 56%);
}

.aa-db-gathering-filter-block-head {
    display: grid;
    gap: 6px;
    min-height: 84px;
    align-content: start;
    text-align: center;
}

.aa-db-gathering-filter-block-head .aa-db-browse-head-kicker {
    justify-self: center;
}

.aa-db-gathering-filter-search input,
.aa-db-gathering-filter-results select,
.aa-db-gathering-filter-block select {
    width: 100%;
}

.aa-db-results-refine-gathering {
    display: grid;
    margin-left: 0;
    width: 100%;
    gap: 8px;
    align-items: stretch;
}

.aa-db-results-refine-gathering .aa-db-filter-label,
.aa-db-gathering-filter-results .aa-db-filter-label {
    margin-bottom: 0;
}

.aa-db-results-refine-gathering input[type="search"] {
    min-width: 0;
    min-height: 48px;
}

.aa-db-gathering-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aa-db-gathering-active-filters .aa-db-filter-chip {
    pointer-events: none;
}

.aa-db-gathering-card-meta-race {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.aa-db-gathering-card-meta-race img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 24px;
}

@media (max-width: 1199.98px) {
    .aa-db-gathering-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .aa-db-gathering-filter-head,
    .aa-db-gathering-filter-topline,
    .aa-db-gathering-filter-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .aa-db-results-refine-gathering {
        align-items: stretch;
    }

    .aa-db-results-refine-gathering .aa-db-filter-label {
        width: 100%;
    }

    .aa-db-results-refine-gathering input[type="search"] {
        width: 100%;
    }

    .aa-db-gathering-filter-status {
        justify-content: stretch;
    }

    .aa-db-gathering-filter-stat,
    .aa-db-gathering-filter-actions {
        width: 100%;
    }
}

.aa-db-lore-body {
    display: grid;
    gap: 22px;
}

.aa-db-lore-masthead {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(10, 22, 38, 0.98), rgba(6, 13, 25, 0.98)),
        radial-gradient(120% 120% at 100% 0%, rgba(255, 214, 135, 0.12), transparent 46%),
        radial-gradient(120% 140% at 0% 0%, rgba(89, 160, 255, 0.12), transparent 52%);
}

.aa-db-lore-masthead::after {
    content: "";
    position: absolute;
    inset: auto -12% -42% auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 214, 135, 0.12), transparent 66%);
    pointer-events: none;
}

.aa-db-lore-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: rgba(139, 203, 255, 0.86);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.aa-db-lore-masthead h1,
.aa-db-lore-intro h2,
.aa-db-lore-chapter-head h2,
.aa-db-lore-endnote h2 {
    margin: 0;
    color: #fff3d1;
    font-family: "Cinzel", serif;
}

.aa-db-lore-masthead p,
.aa-db-lore-intro p,
.aa-db-lore-side-card p,
.aa-db-lore-chapter-head p,
.aa-db-lore-panel p,
.aa-db-lore-list,
.aa-db-lore-endnote p {
    margin: 0;
    color: rgba(223, 233, 245, 0.8);
    line-height: 1.7;
}

.aa-db-lore-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 18px;
    padding: 24px;
}

.aa-db-lore-intro-copy,
.aa-db-lore-intro-side {
    display: grid;
    gap: 14px;
}

.aa-db-lore-side-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(143, 202, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(15, 27, 45, 0.9), rgba(8, 16, 29, 0.96)),
        radial-gradient(120% 120% at 100% 0%, rgba(255, 214, 135, 0.06), transparent 52%);
}

.aa-db-lore-nav {
    padding-top: 0;
}

.aa-db-lore-timeline {
    display: grid;
    gap: 18px;
}

.aa-db-lore-chapter-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(143, 202, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(12, 24, 41, 0.96), rgba(6, 14, 26, 0.98)),
        radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0.05), transparent 48%);
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    scroll-margin-top: 112px;
}

.aa-db-lore-chapter-marker {
    display: grid;
    place-items: center;
    align-self: start;
    min-height: 88px;
    border-radius: 22px;
    border: 1px solid rgba(255, 214, 135, 0.18);
    background:
        linear-gradient(180deg, rgba(46, 36, 18, 0.84), rgba(18, 14, 9, 0.94)),
        radial-gradient(120% 120% at 50% 0%, rgba(255, 214, 135, 0.12), transparent 56%);
    color: #fff0ca;
    font-family: "Cinzel", serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.aa-db-lore-chapter-copy {
    display: grid;
    gap: 14px;
}

.aa-db-lore-chapter-head {
    display: grid;
    gap: 10px;
}

.aa-db-lore-chapter-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aa-db-lore-chapter-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(143, 202, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(233, 240, 248, 0.88);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aa-db-lore-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 16px;
}

.aa-db-lore-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(143, 202, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.aa-db-lore-panel h3 {
    margin: 0;
    color: #fff4d6;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.aa-db-lore-list {
    padding-left: 18px;
}

.aa-db-lore-list li + li {
    margin-top: 8px;
}

.aa-db-lore-focus {
    background:
        linear-gradient(180deg, rgba(19, 29, 45, 0.92), rgba(9, 17, 30, 0.96)),
        radial-gradient(120% 120% at 100% 0%, rgba(255, 214, 135, 0.08), transparent 54%);
}

.aa-db-lore-focus .aa-db-item-tag-row {
    margin-top: 2px;
}

.aa-db-lore-endnote {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.aa-db-lore-endnote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 1199.98px) {
    .aa-db-lore-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .aa-db-lore-intro,
    .aa-db-lore-chapter-card {
        grid-template-columns: 1fr;
    }

    .aa-db-lore-chapter-marker {
        min-height: 70px;
    }
}

@media (max-width: 767.98px) {
    .aa-db-lore-masthead,
    .aa-db-lore-intro,
    .aa-db-lore-chapter-card,
    .aa-db-lore-endnote {
        padding: 18px;
    }

    .aa-db-page-intel.aa-db-lore-intel {
        grid-template-columns: 1fr;
    }

    .aa-db-lore-endnote-actions .aa-db-page-btn {
        width: 100%;
    }
}

/* Lore page redesign */
.aa-db-lore-body {
    display: grid;
    gap: 24px;
}

.aa-db-lore-theme-dawn {
    --aa-lore-accent: #d9b062;
    --aa-lore-accent-soft: rgba(217, 176, 98, 0.18);
    --aa-lore-accent-strong: rgba(217, 176, 98, 0.32);
}

.aa-db-lore-theme-azure {
    --aa-lore-accent: #74bcff;
    --aa-lore-accent-soft: rgba(116, 188, 255, 0.16);
    --aa-lore-accent-strong: rgba(116, 188, 255, 0.28);
}

.aa-db-lore-theme-violet {
    --aa-lore-accent: #bb9aff;
    --aa-lore-accent-soft: rgba(187, 154, 255, 0.16);
    --aa-lore-accent-strong: rgba(187, 154, 255, 0.28);
}

.aa-db-lore-theme-ember {
    --aa-lore-accent: #ff9f76;
    --aa-lore-accent-soft: rgba(255, 159, 118, 0.16);
    --aa-lore-accent-strong: rgba(255, 159, 118, 0.28);
}

.aa-db-lore-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: rgba(147, 205, 255, 0.82);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.aa-db-lore-stage,
.aa-db-lore-journey,
.aa-db-lore-finish {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(155, 208, 255, 0.12);
    box-shadow:
        0 22px 44px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.aa-db-lore-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.9fr);
    gap: 22px;
    padding: 30px;
    background:
        linear-gradient(180deg, rgba(5, 11, 21, 0.46), rgba(5, 11, 22, 0.9)),
        radial-gradient(48% 44% at 12% 12%, rgba(255, 214, 135, 0.14), transparent 70%),
        radial-gradient(52% 48% at 88% 16%, rgba(111, 183, 255, 0.14), transparent 74%);
}

.aa-db-lore-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 8, 17, 0.28), rgba(3, 8, 17, 0)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 34%);
    pointer-events: none;
}

.aa-db-lore-stage-copy,
.aa-db-lore-stage-aside,
.aa-db-lore-finish-copy {
    position: relative;
    z-index: 1;
}

.aa-db-lore-stage-copy {
    display: grid;
    align-content: start;
    gap: 18px;
}

.aa-db-lore-stage-copy h1,
.aa-db-lore-journey-head h2,
.aa-db-lore-act-divider h3,
.aa-db-lore-chapter-top h3,
.aa-db-lore-finish-copy h2 {
    margin: 0;
    color: #fff2d0;
    font-family: "Cinzel", serif;
}

.aa-db-lore-stage-copy h1 {
    max-width: 14ch;
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 0.96;
}

.aa-db-lore-stage-summary,
.aa-db-lore-stage-core p,
.aa-db-lore-faction-card p,
.aa-db-lore-act-card p,
.aa-db-lore-journey-head p,
.aa-db-lore-chapter-summary,
.aa-db-lore-panel p,
.aa-db-lore-list,
.aa-db-lore-finish-copy p,
.aa-db-lore-act-divider p {
    margin: 0;
    color: rgba(226, 234, 245, 0.8);
    line-height: 1.7;
}

.aa-db-lore-stage-summary {
    max-width: 60ch;
    font-size: 1rem;
}

.aa-db-lore-stage-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.aa-db-lore-metric {
    min-width: 128px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(157, 212, 255, 0.14);
    background: rgba(5, 12, 24, 0.42);
    backdrop-filter: blur(10px);
    display: grid;
    gap: 4px;
}

.aa-db-lore-metric .value {
    color: #fff2cb;
    font-family: "Cinzel", serif;
    font-size: 1.42rem;
    line-height: 1;
}

.aa-db-lore-metric .label {
    color: rgba(220, 231, 243, 0.76);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.aa-db-lore-stage-tags {
    margin-top: 0;
}

.aa-db-lore-stage-actions,
.aa-db-lore-stage-aside {
    display: grid;
    gap: 16px;
}

.aa-db-lore-stage-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aa-db-lore-stage-cta {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 92px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(155, 208, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(10, 20, 35, 0.92), rgba(6, 13, 25, 0.97)),
        radial-gradient(120% 120% at 100% 0%, rgba(116, 188, 255, 0.08), transparent 52%);
    color: #eef5ff;
    text-decoration: none;
    box-shadow:
        0 16px 28px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.aa-db-lore-stage-cta:hover {
    transform: translateY(-2px);
    color: #fff;
    border-color: rgba(167, 219, 255, 0.28);
    box-shadow:
        0 20px 34px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.aa-db-lore-stage-cta.is-primary {
    border-color: rgba(255, 214, 135, 0.24);
    background:
        linear-gradient(180deg, rgba(36, 40, 56, 0.98), rgba(13, 20, 33, 0.99)),
        radial-gradient(120% 120% at 0% 0%, rgba(255, 214, 135, 0.16), transparent 50%);
}

.aa-db-lore-stage-cta-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.aa-db-lore-stage-cta.is-primary .aa-db-lore-stage-cta-icon {
    border-color: rgba(255, 214, 135, 0.18);
    background: rgba(255, 214, 135, 0.08);
}

.aa-db-lore-stage-cta-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #d4e8fb;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.aa-db-lore-stage-cta.is-primary .aa-db-lore-stage-cta-icon svg {
    stroke: #fff0c5;
}

.aa-db-lore-stage-cta-copy {
    display: grid;
    gap: 4px;
}

.aa-db-lore-stage-cta-copy .eyebrow {
    color: rgba(255, 214, 135, 0.82);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.aa-db-lore-stage-cta-copy strong {
    color: #fff2d5;
    font-family: "Cinzel", serif;
    font-size: 1.08rem;
    line-height: 1.15;
}

.aa-db-lore-stage-cta-copy .meta {
    color: rgba(221, 233, 245, 0.78);
    font-size: 0.88rem;
    line-height: 1.45;
}

.aa-db-lore-stage-core {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 214, 135, 0.16);
    background:
        linear-gradient(180deg, rgba(10, 18, 32, 0.72), rgba(6, 12, 23, 0.92)),
        radial-gradient(120% 120% at 50% 0%, rgba(255, 214, 135, 0.12), transparent 56%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.aa-db-lore-stage-core-label,
.aa-db-lore-focus-label,
.aa-db-lore-act-label,
.aa-db-lore-act-divider-label,
.aa-db-lore-faction-card span,
.aa-db-lore-era-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.aa-db-lore-stage-core-label,
.aa-db-lore-focus-label,
.aa-db-lore-act-divider-label,
.aa-db-lore-era-chip {
    border: 1px solid rgba(255, 214, 135, 0.18);
    background: rgba(255, 214, 135, 0.08);
    color: rgba(255, 234, 188, 0.94);
}

.aa-db-lore-stage-core strong {
    display: block;
    margin: 12px 0 10px;
    color: #fff3d4;
    font-family: "Cinzel", serif;
    font-size: 1.28rem;
    line-height: 1.18;
}

.aa-db-lore-faction-grid {
    display: grid;
    gap: 12px;
}

.aa-db-lore-faction-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(157, 212, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(11, 21, 37, 0.86), rgba(7, 15, 28, 0.92)),
        radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0.04), transparent 50%);
}

.aa-db-lore-faction-card img,
.aa-db-lore-balaur-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    display: grid;
    place-items: center;
    object-fit: contain;
    padding: 10px;
}

.aa-db-lore-balaur-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #ffb18c;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.aa-db-lore-faction-card strong {
    display: block;
    margin-top: 4px;
    color: #f8fbff;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.aa-db-lore-faction-card span {
    padding-left: 0;
    padding-right: 0;
    min-height: auto;
    border: 0;
    background: transparent;
    color: rgba(255, 214, 135, 0.84);
}

.aa-db-lore-faction-card.is-elyos {
    box-shadow: inset 0 0 0 1px rgba(116, 188, 255, 0.08);
}

.aa-db-lore-faction-card.is-asmodian {
    box-shadow: inset 0 0 0 1px rgba(187, 154, 255, 0.08);
}

.aa-db-lore-faction-card.is-balaur {
    box-shadow: inset 0 0 0 1px rgba(255, 159, 118, 0.08);
}

.aa-db-lore-note {
    display: grid;
    gap: 10px;
    padding: 22px 24px;
    border-radius: 22px;
    border: 1px solid rgba(155, 208, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(12, 21, 36, 0.92), rgba(6, 13, 25, 0.98)),
        radial-gradient(120% 140% at 100% 0%, rgba(255, 214, 135, 0.08), transparent 48%);
}

.aa-db-lore-note h2 {
    margin: 0;
    color: #fff1cf;
    font-family: "Cinzel", serif;
    font-size: 1.42rem;
}

.aa-db-lore-note p {
    margin: 0;
    color: rgba(224, 233, 244, 0.82);
    line-height: 1.75;
}

.aa-db-lore-act-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
    padding: 2px 12px;
}

.aa-db-lore-act-card,
.aa-db-lore-chapter-pill {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.aa-db-lore-act-card {
    display: grid;
    gap: 10px;
    min-height: 168px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--aa-lore-accent-soft, rgba(155, 208, 255, 0.14));
    background:
        linear-gradient(180deg, rgba(11, 22, 38, 0.94), rgba(6, 14, 26, 0.98)),
        radial-gradient(120% 120% at 100% 0%, var(--aa-lore-accent-soft, rgba(255, 255, 255, 0.04)), transparent 54%);
    box-shadow:
        0 16px 28px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.aa-db-lore-act-card:hover,
.aa-db-lore-chapter-pill:hover {
    transform: translateY(-2px);
    border-color: var(--aa-lore-accent-strong, rgba(155, 208, 255, 0.24));
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.22);
}

.aa-db-lore-act-label {
    width: max-content;
    border: 1px solid var(--aa-lore-accent-soft, rgba(255, 214, 135, 0.16));
    background: var(--aa-lore-accent-soft, rgba(255, 214, 135, 0.08));
    color: var(--aa-lore-accent, #fff2cb);
}

.aa-db-lore-act-card strong {
    color: #fff2d2;
    font-family: "Cinzel", serif;
    font-size: 1.12rem;
    line-height: 1.2;
}

.aa-db-lore-chapter-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    padding: 2px 12px;
    overflow: hidden;
}

.aa-db-lore-chapter-pill {
    display: grid;
    gap: 6px;
    min-height: 88px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--aa-lore-accent-soft, rgba(155, 208, 255, 0.14));
    background:
        linear-gradient(180deg, rgba(10, 20, 35, 0.92), rgba(6, 13, 24, 0.96)),
        radial-gradient(120% 120% at 100% 0%, var(--aa-lore-accent-soft, rgba(255, 255, 255, 0.04)), transparent 56%);
}

.aa-db-lore-chapter-pill span {
    color: var(--aa-lore-accent, #fff2cb);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.aa-db-lore-chapter-pill strong {
    display: block;
    color: #eef5ff;
    font-size: 0.95rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.aa-db-lore-journey {
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(8, 17, 31, 0.94), rgba(5, 12, 22, 0.98)),
        radial-gradient(100% 120% at 50% 0%, rgba(111, 183, 255, 0.05), transparent 44%);
}

.aa-db-lore-journey-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.aa-db-lore-journey-head p {
    max-width: 52ch;
}

.aa-db-lore-track {
    position: relative;
    display: grid;
    gap: 18px;
}

.aa-db-lore-track::before {
    content: "";
    position: absolute;
    left: 34px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(255, 214, 135, 0.34), rgba(119, 186, 255, 0.18), rgba(255, 159, 118, 0.24));
}

.aa-db-lore-act-divider {
    position: relative;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 18px;
    padding-top: 8px;
}

.aa-db-lore-act-divider::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 17px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--aa-lore-accent, #fff2cb);
    box-shadow:
        0 0 0 6px rgba(7, 16, 29, 0.96),
        0 0 0 7px var(--aa-lore-accent-soft, rgba(255, 214, 135, 0.16));
}

.aa-db-lore-act-divider h3 {
    margin: 0 0 6px;
    font-size: 1.3rem;
}

.aa-db-lore-act-divider-label {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    border-color: var(--aa-lore-accent-soft, rgba(255, 214, 135, 0.16));
    background: var(--aa-lore-accent-soft, rgba(255, 214, 135, 0.08));
    color: var(--aa-lore-accent, #fff2cb);
    position: relative;
    z-index: 1;
}

.aa-db-lore-act-divider > div {
    grid-column: 2;
    grid-row: 2;
}

.aa-db-lore-chapter-card {
    position: relative;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 18px;
    scroll-margin-top: 112px;
}

.aa-db-lore-chapter-node {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 68px;
    border-radius: 22px;
    border: 1px solid var(--aa-lore-accent-strong, rgba(255, 214, 135, 0.24));
    background:
        linear-gradient(180deg, rgba(17, 28, 44, 0.94), rgba(9, 16, 29, 0.98)),
        radial-gradient(120% 120% at 50% 0%, var(--aa-lore-accent-soft, rgba(255, 214, 135, 0.14)), transparent 60%);
    display: grid;
    place-items: center;
    color: #fff2d0;
    font-family: "Cinzel", serif;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
}

.aa-db-lore-chapter-main {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--aa-lore-accent-soft, rgba(155, 208, 255, 0.14));
    background:
        linear-gradient(180deg, rgba(10, 21, 37, 0.96), rgba(6, 13, 24, 0.98)),
        radial-gradient(120% 140% at 100% 0%, var(--aa-lore-accent-soft, rgba(255, 255, 255, 0.04)), transparent 48%);
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.aa-db-lore-chapter-main::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--aa-lore-accent, #fff2cb), transparent);
    opacity: 0.8;
}

.aa-db-lore-chapter-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.aa-db-lore-chapter-top h3 {
    font-size: 1.5rem;
    line-height: 1.08;
}

.aa-db-lore-era-chip {
    flex: 0 0 auto;
    border-color: var(--aa-lore-accent-soft, rgba(255, 214, 135, 0.16));
    background: var(--aa-lore-accent-soft, rgba(255, 214, 135, 0.08));
    color: var(--aa-lore-accent, #fff2cb);
}

.aa-db-lore-chapter-summary {
    color: rgba(241, 246, 252, 0.88);
    font-size: 1rem;
}

.aa-db-lore-chapter-story {
    display: grid;
    gap: 12px;
}

.aa-db-lore-chapter-story p {
    margin: 0;
    color: rgba(224, 233, 244, 0.82);
    line-height: 1.78;
}

.aa-db-lore-chapter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(290px, 0.95fr);
    gap: 16px;
}

.aa-db-lore-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(157, 212, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.aa-db-lore-panel h4 {
    margin: 0;
    color: #fff2d2;
    font-size: 1rem;
    font-weight: 700;
}

.aa-db-lore-panel-focus {
    background:
        linear-gradient(180deg, rgba(19, 28, 45, 0.88), rgba(10, 17, 30, 0.94)),
        radial-gradient(120% 120% at 100% 0%, var(--aa-lore-accent-soft, rgba(255, 214, 135, 0.08)), transparent 54%);
}

.aa-db-lore-list {
    padding-left: 18px;
}

.aa-db-lore-list li + li {
    margin-top: 8px;
}

.aa-db-lore-tag-row {
    margin-top: 2px;
}

.aa-db-lore-finish {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px;
    background:
        linear-gradient(180deg, rgba(15, 25, 40, 0.94), rgba(7, 13, 25, 0.98)),
        radial-gradient(120% 140% at 0% 0%, var(--aa-lore-accent-soft, rgba(255, 159, 118, 0.12)), transparent 44%);
}

.aa-db-lore-player-callout {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid var(--aa-lore-accent-soft, rgba(255, 159, 118, 0.18));
    background:
        linear-gradient(180deg, rgba(18, 28, 43, 0.9), rgba(8, 14, 26, 0.94)),
        radial-gradient(120% 120% at 0% 0%, var(--aa-lore-accent-soft, rgba(255, 159, 118, 0.1)), transparent 50%);
}

.aa-db-lore-player-callout-label {
    color: rgba(255, 214, 135, 0.84);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.aa-db-lore-player-callout strong {
    color: #fff3d7;
    font-family: "Cinzel", serif;
    font-size: 1.08rem;
    line-height: 1.3;
}

.aa-db-lore-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-self: stretch;
}

.aa-db-lore-cta-card {
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 214px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(155, 208, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(13, 24, 40, 0.94), rgba(7, 14, 26, 0.98)),
        radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0.05), transparent 48%);
    color: #eef5ff;
    text-decoration: none;
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.aa-db-lore-cta-card:hover {
    transform: translateY(-2px);
    color: #fff;
    border-color: rgba(255, 214, 135, 0.22);
    box-shadow:
        0 20px 36px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.aa-db-lore-cta-card.is-primary {
    border-color: rgba(255, 214, 135, 0.22);
    background:
        linear-gradient(180deg, rgba(32, 39, 57, 0.98), rgba(13, 20, 32, 0.98)),
        radial-gradient(120% 120% at 0% 0%, rgba(255, 214, 135, 0.14), transparent 46%);
}

.aa-db-lore-cta-card-eyebrow {
    color: rgba(255, 214, 135, 0.86);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.aa-db-lore-cta-card strong {
    color: #fff2d6;
    font-family: "Cinzel", serif;
    font-size: 1.12rem;
    line-height: 1.28;
}

.aa-db-lore-cta-card p {
    margin: 0;
    color: rgba(223, 233, 244, 0.8);
    line-height: 1.7;
}

.aa-db-lore-cta-card-action {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 32px;
    margin-top: auto;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 214, 135, 0.16);
    background: rgba(255, 214, 135, 0.08);
    color: #fff1cb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@media (max-width: 1199.98px) {
    .aa-db-lore-stage {
        grid-template-columns: 1fr;
    }

    .aa-db-lore-stage-actions,
    .aa-db-lore-act-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aa-db-lore-chapter-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aa-db-lore-finish {
        display: grid;
    }

    .aa-db-lore-cta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .aa-db-lore-journey-head,
    .aa-db-lore-chapter-top {
        display: grid;
    }

    .aa-db-lore-chapter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .aa-db-lore-stage,
    .aa-db-lore-note,
    .aa-db-lore-journey,
    .aa-db-lore-finish {
        padding: 18px;
    }

    .aa-db-lore-stage-actions,
    .aa-db-lore-act-band {
        grid-template-columns: 1fr;
    }

    .aa-db-lore-chapter-rail {
        grid-template-columns: 1fr;
    }

    .aa-db-lore-track::before {
        left: 23px;
    }

    .aa-db-lore-act-divider,
    .aa-db-lore-chapter-card {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
    }

    .aa-db-lore-act-divider::before {
        left: 16px;
    }

    .aa-db-lore-chapter-node {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        font-size: 1rem;
    }

    .aa-db-lore-chapter-main {
        padding: 18px;
    }

    .aa-db-lore-stage-cta {
        grid-template-columns: 44px minmax(0, 1fr);
        min-height: 84px;
        padding: 14px 15px;
    }

    .aa-db-lore-stage-cta-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }
}

@media (max-width: 767.98px) {
    .aa-db-hero .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .aa-db-hero-home-clean,
    .aa-db-hero-search {
        padding: 24px 0 20px;
    }

    .aa-db-home-clean,
    .aa-db-body,
    .aa-db-head {
        padding-left: 16px;
        padding-right: 16px;
    }

    .aa-db-home-clean {
        gap: 14px;
        padding-top: 24px;
        padding-bottom: 30px;
    }

    .aa-db-home-clean-hero h1 {
        font-size: clamp(30px, 10vw, 40px);
        line-height: 1.02;
    }

    .aa-db-home-clean-hero p {
        font-size: 14px;
    }

    .aa-db-home-clean-search {
        margin-top: 4px;
        border-radius: 20px;
    }

    .aa-db-home-clean-links,
    .aa-db-section-jumps,
    .aa-db-filter-summary,
    .aa-db-page-list,
    .aa-db-check-grid-inline,
    .aa-db-check-grid-categories,
    .aa-db-check-grid-grade,
    .aa-db-check-grid-tight,
    .aa-db-check-grid-race {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .aa-db-home-clean-link,
    .aa-db-section-jump,
    .aa-db-filter-chip,
    .aa-db-filter-reset,
    .aa-db-page-list > * ,
    .aa-db-check-grid-inline .aa-db-check,
    .aa-db-check-grid-categories .aa-db-check,
    .aa-db-check-grid-grade .aa-db-check,
    .aa-db-check-grid-tight .aa-db-check,
    .aa-db-check-grid-race .aa-db-check {
        flex: 0 0 auto;
    }

    .aa-db-home-clean-link,
    .aa-db-section-jump,
    .aa-db-filter-chip,
    .aa-db-filter-reset,
    .aa-db-check-label {
        white-space: nowrap;
    }

    .aa-db-home-social-modal .modal-dialog {
        margin: 16px;
    }

    .aa-db-home-social-actions .aa-db-page-btn {
        width: 100%;
        justify-content: center;
    }

    .aa-db-head-detail-clean h2,
    .aa-db-head-browse-clean h2 {
        font-size: clamp(26px, 7.8vw, 34px);
    }

    .aa-db-search-summary,
    .aa-db-search-group,
    .aa-db-filter-panel-browse {
        padding: 14px;
    }

    .aa-db-filter-panel-head,
    .aa-db-filter-panel-tools {
        gap: 12px;
    }

    .aa-db-results-toolbar-search,
    .aa-db-results-toolbar-browse {
        display: grid;
        justify-content: stretch;
        gap: 10px;
    }

    .aa-db-results-toolbar-search > *,
    .aa-db-results-toolbar-browse > * {
        width: 100%;
    }

    .aa-db-results-refine,
    .aa-db-results-refine-compact,
    .aa-db-results-refine-gathering {
        width: 100%;
        margin-left: 0;
    }

    .aa-db-results-refine input[type="search"],
    .aa-db-results-refine-compact .aa-db-select-wrap,
    .aa-db-results-refine-compact select {
        width: 100%;
        min-width: 0;
    }

    .aa-db-search-results,
    .aa-db-results-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .aa-db-search-main {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        align-items: start;
    }

    .aa-db-search-content,
    .aa-db-results-grid .aa-db-result-main > div {
        min-width: 0;
    }

    .aa-db-search-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .aa-db-search-meta,
    .aa-db-meta-inline {
        flex-wrap: wrap;
    }

    .aa-db-results-grid .aa-db-result,
    .aa-db-search-card {
        padding: 14px 15px;
    }

    .aa-db-results-grid .aa-db-result-main {
        padding-right: 0;
    }

    .aa-db-pagination {
        display: grid;
        gap: 10px;
        justify-items: stretch;
    }

    .aa-db-pagination .aa-db-page-btn {
        justify-content: center;
    }

    .aa-db-home-clean-links::-webkit-scrollbar,
    .aa-db-section-jumps::-webkit-scrollbar,
    .aa-db-filter-summary::-webkit-scrollbar,
    .aa-db-page-list::-webkit-scrollbar,
    .aa-db-check-grid-inline::-webkit-scrollbar,
    .aa-db-check-grid-categories::-webkit-scrollbar,
    .aa-db-check-grid-grade::-webkit-scrollbar,
    .aa-db-check-grid-tight::-webkit-scrollbar,
    .aa-db-check-grid-race::-webkit-scrollbar {
        display: none;
    }
}
