/* =========================================================
   MyAniimo — theme from the demo (zzprod/projet)
   palette: canopy #1e4e8c · ink #2d3436 · mist #f4f8fc
            dew #e2edf8 · petal #f07167 · sky #4ea8de
   ========================================================= */
:root {
    --aniimo-canopy: #1e4e8c;
    --aniimo-canopy-rgb: 30, 78, 140;
    --aniimo-ink: #2d3436;
    --aniimo-ink-rgb: 45, 52, 54;
    --aniimo-mist: #f4f8fc;
    --aniimo-mist-rgb: 244, 248, 252;
    --aniimo-dew: #e2edf8;
    --aniimo-dew-rgb: 226, 237, 248;
    --aniimo-petal: #f07167;
    --aniimo-petal-rgb: 240, 113, 103;
    --aniimo-sky: #4ea8de;
    --aniimo-sky-rgb: 78, 168, 222;
    --aniimo-radius: 1.25rem;
    --aniimo-shadow-soft: 0 1px 2px rgba(30, 78, 140, .04), 0 8px 24px rgba(30, 78, 140, .06), 0 24px 48px rgba(30, 78, 140, .05);
    --aniimo-shadow-float: 0 2px 4px rgba(30, 78, 140, .05), 0 12px 32px rgba(30, 78, 140, .1), 0 40px 80px rgba(30, 78, 140, .08);

    /* Bootstrap variables */
    --bs-primary: #1e4e8c;
    --bs-primary-rgb: 30, 78, 140;
    --bs-secondary: #e2edf8;
    --bs-secondary-rgb: 226, 237, 248;
    --bs-body-bg: #f4f8fc;
    --bs-body-bg-rgb: 244, 248, 252;
    --bs-body-color: #2d3436;
    --bs-body-color-rgb: 45, 52, 54;
    --bs-emphasis-color: #1e4e8c;
    --bs-emphasis-color-rgb: 30, 78, 140;
    --bs-secondary-color: rgba(45, 52, 54, .65);
    --bs-tertiary-color: rgba(45, 52, 54, .5);
    --bs-border-color: #dbe7f3;
    --bs-border-color-translucent: rgba(30, 78, 140, .12);
    --bs-link-color: #1e4e8c;
    --bs-link-color-rgb: 30, 78, 140;
    --bs-link-hover-color: #f07167;
    --bs-link-hover-color-rgb: 240, 113, 103;
    --bs-border-radius: 1.25rem;
    --bs-border-radius-sm: .75rem;
    --bs-border-radius-lg: 1.5rem;
    --bs-border-radius-xl: 2rem;
    --bs-border-radius-xxl: 2.5rem;
    --bs-focus-ring-color: rgba(78, 168, 222, .25);
    --bs-primary-text-emphasis: #163a69;
    --bs-primary-bg-subtle: #e2edf8;
    --bs-primary-border-subtle: #bcd5ec;
    --bs-danger-text-emphasis: #b3403a;
    --bs-danger-bg-subtle: #fdeceb;
    --bs-danger-border-subtle: #f8cbc7;
    --bs-success-text-emphasis: #1e7e34;
    --bs-success-bg-subtle: #e6f6e7;
    --bs-success-border-subtle: #bfe5c1;
    --bs-warning-text-emphasis: #9a6700;
    --bs-warning-bg-subtle: #fff8e1;
    --bs-warning-border-subtle: #ffe9a8;
}

html {
  scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--aniimo-ink);
    background-color: var(--aniimo-mist);
    padding-top: 65px;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
    letter-spacing: -0.02em;
    color: var(--aniimo-canopy);
}

::selection {
    background: rgba(var(--aniimo-canopy-rgb), .18);
}

/* soft glass + shadows helpers from the demo */
.glass-leaf {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.glass-leaf-strong {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.shadow-soft {
    box-shadow: var(--aniimo-shadow-soft) !important;
}
.shadow-float {
    box-shadow: var(--aniimo-shadow-float) !important;
}
.display-none{
    display: none;
}

/* ---------- Navbar ---------- */
.navbar.bg-primary {
    background-color: rgba(255, 255, 255, .85) !important;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid rgba(var(--aniimo-canopy-rgb), .08);
    box-shadow: var(--aniimo-shadow-soft);
}
.navbar.bg-primary .navbar-brand,
.navbar.bg-primary .nav-link,
.navbar.bg-primary .navbar-text {
    color: var(--aniimo-canopy) !important;
}
.navbar.bg-primary .nav-link:hover,
.navbar.bg-primary .nav-link:focus {
    color: var(--aniimo-petal) !important;
}
.navbar.bg-primary .navbar-toggler {
    border-color: rgba(var(--aniimo-canopy-rgb), .15);
}
.navbar.bg-primary .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830,78,140,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar {
    padding: 10px !important;
}

/* ---------- Footer ---------- */
footer.bg-dark {
    background-color: rgba(var(--aniimo-dew-rgb), .6) !important;
    border-top: 1px solid rgba(var(--aniimo-canopy-rgb), .10);
}
footer.text-white,
footer.text-white .text-warning {
    color: var(--aniimo-ink) !important;
}
footer.bg-dark .text-warning {
    color: var(--aniimo-petal) !important;
}
footer a {
    color: rgba(var(--aniimo-ink-rgb), .7);
    text-decoration: none;
}
footer a:hover {
    color: var(--aniimo-canopy);
}

/* ---------- Cards ---------- */
.card {
    position: relative;
    background-color: #fff;
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .08);
    border-radius: var(--aniimo-radius);
    box-shadow: var(--aniimo-shadow-soft);
}
.card-header {
    background-color: rgba(var(--aniimo-dew-rgb), .6);
    border-bottom: 1px solid rgba(var(--aniimo-canopy-rgb), .08);
    border-radius: var(--aniimo-radius) var(--aniimo-radius) 0 0 !important;
    color: var(--aniimo-canopy);
}
.card-header h1 {
    width: 100%;
    margin: 0 auto;
}
.home-card-list .card-header {
    min-height: 70px;
}
.home-card-list .card-body .mb-3 {
    margin: 0 !important;
}
.home .card-body ul {
    max-width: fit-content;
    display: inline-block;
    text-align: left;
}
.card-body img {
    width: 100%;
    border: 3px solid var(--aniimo-dew);
    border-radius: var(--aniimo-radius);
    background-color: var(--aniimo-mist);
}
#btnBack {
    position: absolute;
    left: 0.875rem;
    top: 0.875rem;
}
/* ---------- Cookie consent ---------- */
.cookie-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1090;
    display: flex;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
}
.cookie-banner__panel {
    pointer-events: auto;
    width: 100%;
    max-width: 46rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .12);
    border-radius: var(--aniimo-radius);
    box-shadow: var(--aniimo-shadow-float);
}
.cookie-banner__panel:focus {
    outline: none;
}
.cookie-banner__text {
    font-size: .9rem;
    color: rgba(var(--aniimo-ink-rgb), .75);
}
.cookie-banner__preferences {
    padding-top: 1rem;
    margin-bottom: .5rem;
    border-top: 1px solid rgba(var(--aniimo-canopy-rgb), .1);
}
.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}
.aniimo-footer-button {
    padding: 0;
    border: 0;
    background: none;
    color: rgba(var(--aniimo-ink-rgb), .7);
    font-size: .9rem;
    text-align: left;
}
.aniimo-footer-button:hover {
    color: var(--aniimo-canopy);
}
body:not(.ads-consent-granted) ins.adsbygoogle {
    display: none !important;
}
#btnIgotIt {
    position: absolute;
    right: 0.875rem;
    top: 0.875rem;
}
.btn-schedule {
    padding: 3px 8px;
}
.tips-schedule {
    font-style: italic;
}

/* ---------- Tables ---------- */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--aniimo-ink);
    --bs-table-border-color: rgba(var(--aniimo-canopy-rgb), .08);
    --bs-table-hover-bg: rgba(var(--aniimo-dew-rgb), .45);
    --bs-table-hover-color: var(--aniimo-ink);
}
.table thead th {
    background-color: rgba(var(--aniimo-dew-rgb), .6);
    color: var(--aniimo-canopy);
    font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
}
.table-img {
    max-width: 100px;
    max-height: 100px;
    border: 3px solid var(--aniimo-dew);
    border-radius: var(--aniimo-radius);
    background-color: var(--aniimo-mist);
}
.table-img-lg {
    max-width: 120px;
    max-height: 120px;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: unset !important;
}
.area-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 3px solid var(--aniimo-dew);
    border-radius: var(--aniimo-radius);
    background-color: var(--aniimo-mist);
}
.table-img-sm {
    max-width: 40px;
    max-height: 40px;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: unset !important;
}
.rating-img {
    width: 32px;
    height: 32px;
    margin: 1px;
    cursor: pointer;
    opacity: .35;
    transition: opacity .15s ease-in-out;
}
.rating-img:hover {
    opacity: .7;
}
.rating-img.rating-selected {
    opacity: 1;
}
.mutation-img {
    width: 32px;
    height: 32px;
    margin: 1px;
    cursor: pointer;
    opacity: .35;
    transition: opacity .15s ease-in-out;
}
.mutation-img:hover {
    opacity: .7;
}
.mutation-img.mutation-selected {
    opacity: 1;
}
.aniimo-mutation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .15rem;
    margin-top: .25rem;
}
.element-icon {
    position: relative;
    display: inline-flex;
    line-height: 0;
}
.element-level {
    position: absolute;
    right: -5px;
    bottom: -5px;
    min-width: 14px;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--aniimo-canopy);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
}
th {
    position: relative;
}
th.nosort::before {
    content: ' ' !important;
}
table.nosort th::before {
    content: ' ' !important;
}
@media (min-width: 961px) {
    th::before {
        content: '\2195';
        position: absolute;
        margin-left: -15px;
    }
    th.up::before {
        content: '\2191';
    }
    th.down::before {
        content: '\2193';
    }
}

/* ---------- Buttons, forms, dropdowns ---------- */
.btn {
    border-radius: 1rem;
    font-weight: 600;
    border-width: 1px;
    text-transform: none;
}
.btn:not(.disabled):hover,
.btn:not(.disabled):active {
    margin-top: 0;
    border-bottom-width: 1px;
}
.btn-secondary {
    --bs-btn-color: var(--aniimo-canopy);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: rgba(var(--aniimo-canopy-rgb), .2);
    --bs-btn-hover-color: var(--aniimo-canopy);
    --bs-btn-hover-bg: var(--aniimo-dew);
    --bs-btn-hover-border-color: rgba(var(--aniimo-canopy-rgb), .3);
    --bs-btn-focus-shadow-rgb: 30, 78, 140;
    --bs-btn-active-color: var(--aniimo-canopy);
    --bs-btn-active-bg: var(--aniimo-dew);
    --bs-btn-active-border-color: rgba(var(--aniimo-canopy-rgb), .35);
    --bs-btn-disabled-color: rgba(var(--aniimo-canopy-rgb), .5);
    --bs-btn-disabled-bg: #fff;
    --bs-btn-disabled-border-color: rgba(var(--aniimo-canopy-rgb), .15);
    --bs-gradient: none;
}
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #1E4E8C;
    --bs-btn-border-color: #1E4E8C;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #158cba;
    --bs-btn-hover-border-color: #137ea7;
    --bs-btn-focus-shadow-rgb: 30, 78, 140;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #137ea7;
    --bs-btn-active-border-color: #137ea7;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #1E4E8C;
    --bs-btn-disabled-border-color: #1E4E8C;
}
.btn-outline-primary {
    --bs-btn-color: #1E4E8C;
    --bs-btn-border-color: #1E4E8C;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #158cba;
    --bs-btn-hover-border-color: #137ea7;
    --bs-btn-focus-shadow-rgb: 30, 78, 140;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #137ea7;
    --bs-btn-active-border-color: #137ea7;
    --bs-btn-disabled-color: #1E4E8C;
    --bs-btn-disabled-border-color: #1E4E8C;
}
.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: #1E4E8C;
    --bs-btn-border-color: #1E4E8C;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #158cba;
    --bs-btn-hover-border-color: #137ea7;
    --bs-btn-focus-shadow-rgb: 30, 78, 140;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #137ea7;
    --bs-btn-active-border-color: #137ea7;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #1E4E8C;
    --bs-btn-disabled-border-color: #1E4E8C;
}
.btn-outline-success {
    --bs-btn-color: #1E4E8C;
    --bs-btn-border-color: #1E4E8C;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #158cba;
    --bs-btn-hover-border-color: #137ea7;
    --bs-btn-focus-shadow-rgb: 30, 78, 140;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #137ea7;
    --bs-btn-active-border-color: #137ea7;
    --bs-btn-disabled-color: #1E4E8C;
    --bs-btn-disabled-border-color: #1E4E8C;
}

/* Lumen hardcodes green :hover/:focus/:active on .btn-success — override it */
.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: #158cba;
    border-color: #137ea7;
    color: #fff;
}
.btn-success:active {
    background-color: #137ea7;
}
.form-control,
.form-select {
    border-color: var(--bs-border-color);
    border-radius: .9rem;
    background-color: #fff;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--aniimo-sky);
    box-shadow: 0 0 0 .25rem rgba(var(--aniimo-sky-rgb), .2);
}
.form-check-input:checked {
    background-color: var(--aniimo-canopy);
    border-color: var(--aniimo-canopy);
}
.form-check {
    min-height: 2.5rem !important;
}
.form-switch .form-check-input {
    width: 4em;
    min-height: 1.5em;
}
.form-world {
    margin-top: 15px;
}
.dropdown-menu {
    --bs-dropdown-min-width: 5rem !important;
    background-color: #fff;
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .1);
    border-radius: 1rem;
    box-shadow: var(--aniimo-shadow-soft);
}
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(var(--aniimo-dew-rgb), .6);
    color: var(--aniimo-canopy);
}
.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--aniimo-canopy);
    color: #fff;
}
.nav-tabs .nav-link {
    color: rgba(var(--aniimo-ink-rgb), .7);
}
.nav-tabs .nav-link.active {
    color: var(--aniimo-canopy);
    font-weight: 600;
}
.progress {
    --bs-progress-bar-bg: var(--aniimo-canopy);
    --bs-progress-bg: rgba(var(--aniimo-dew-rgb), .8);
    border-radius: 999px;
}
.progress-bar {
    background-color: var(--aniimo-canopy);
}
.alert {
    color: var(--aniimo-ink);
    border-radius: 1rem;
    border-style: solid;
    border-width: 1px;
}
.alert-danger {
    background-color: #fdecea;
    border-color: #f7c9c4;
    color: #b3403a;
}
.alert-success {
    background-color: #e9f7ef;
    border-color: #c4e7d0;
    color: #1e7e34;
}
.alert-warning {
    background-color: #fff8e1;
    border-color: #ffe9a8;
    color: #9a6700;
}
.alert-info {
    background-color: #e8f4fb;
    border-color: #c3e2f3;
    color: #1b6d94;
}
.thumb-img {
    max-width: 60px;
    max-height: 60px;
    margin-right: 10px;
}
.popover-body {
}
.form-control {
    opacity: 1;
}
.register .alert,
.login .alert {
}
.text-right {
    text-align: right;
}
.text-left {
    text-align: left;
}
.last-update {
    text-align: right;
    font-style: italic;
}

/* ---------- Responsive / layout ---------- */
@media (max-width: 961px) {
    .card-header h1 {
        margin-top: 50px;
        width: 100%;
    }
    .card-body.d-flex {
        display: inline !important;
    }
    .home-card-list .card {
        flex-direction: row !important;
    }
    .home-card-list .card-header {
        min-height: unset !important;
        margin-top: 0;
        flex: 45%;
    }
}
.card #user_discharacter #user_discharacter_discharacterLevel {
    float: left;
    width: fit-content;
}
.card #user_discharacter .form-label {
    float: left;
    padding: 0.75rem 4.5rem 0.75rem 1.5rem;
}
@media only screen and (max-width: 600px) {
    body {
        padding: 0;
    }
    .fixed-bottom {
        position: relative;
        right: unset;
        bottom: unset;
        left: unset;
        z-index: initial;
    }
    .fixed-bottom .text-left,
    .fixed-bottom .text-right {
        text-align: center !important;
    }
    .hide-mobile {
        display: none;
    }
    .tab-content button {
        width: 100%;
    }
}
@media only screen and (min-width: 601px) {
    .show-mobile {
        display: none;
    }
    .tab-content button {
        width: 32%;
    }
    .tab-content button span {
        width: 100px;
    }
}
@media only screen and (max-width: 760px),
    (min-device-width: 768px) and (max-device-width: 1024px) {
    .table>:not(caption)>*>* {
        border-bottom-width: 0 !important;
    }
    table, thead, tbody, th, td, tr {
        display: block;
        text-align: center !important;
    }
    thead tr th:first-child {
        display: none;
    }
    thead tr th {
        width: 32%;
        display: inline-block;
    }
    tr {
        border: 1px solid var(--bs-border-color);
    }
    td:first-child {
        width: 100%;
    }
    td {
        width: 32%;
        display: inline-block;
        border: none;
        border-bottom: 1px solid var(--bs-border-color);
        position: relative;
        padding-left: 50%;
    }
    td.mobile-oneline {
        width: 100%;
    }
    td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
    }
    form .mb-3 {
        margin: 0 !important;
    }
    .p-4 {
        padding: 1rem !important;
    }
}
.hidden-online {
    display: none;
}
.hidden-event {
    display: none;
}
.password-eye {
    margin-top: 40px;
    right: 50px;
    position: absolute;
}
.imgtooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}
.imgtooltip .imgtooltiptext {
    display: none;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    top: -34px;
    left: -50%;
    right: 0;
}
.imgtooltip:hover .imgtooltiptext {
    display: block;
}
.arrow-anywhere {
    background: #62bea4 url("../img/arrow_anywhere.png") no-repeat left center;
    padding: 2px 2px 2px 22px;
    width: 40px;
    height: 28px;
    display: inline-block;
    border-radius: 8px;
    margin: 5px;
}
.arrow-diagonal {
    background: #c69ae6 url("../img/arrow_diagonal.png") no-repeat left center;
    padding: 2px 2px 2px 22px;
    width: 40px;
    height: 28px;
    display: inline-block;
    border-radius: 8px;
    margin: 5px;
}
.arrow-orthogonal {
    background: #78b4e7 url("../img/arrow_orthogonal.png") no-repeat left center;
    padding: 2px 2px 2px 22px;
    width: 40px;
    height: 28px;
    display: inline-block;
    border-radius: 8px;
    margin: 5px;
}
.title-left {
    padding-left: 2rem;
}
.menu-left {
    list-style: none;
    font-size: 0.9rem;
}
.grecaptcha-badge {
    z-index: 999999999;
}
.pagination {
    padding-left: 100px;
}
.pagination a {
    text-decoration: none;
}
.pagination li,
.pagination span {
    margin: 5px;
}
.pagination li.active a,
.pagination .current {
    font-weight: bold;
    text-decoration: none;
}
.group-math #qty {
    max-width: 100px;
}
.math .dropdown-toggle,
.math .dropdown-menu {
    width: 300px;
}
.math .btn-group img {
    margin-right: 10px;
}
.math .dropdown-toggle {
    padding-right: 50px;
}
.math .dropdown-toggle .glyphicon {
    margin-left: 20px;
    margin-right: -40px;
}
.math .dropdown-menu>li>a:hover {
    background: #f1f9fd;
}
.math .dropdown-header {
    background: #ccc;
    font-size: 14px;
    font-weight: 700;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 10px;
    margin-bottom: 5px;
}
.content ul {
    padding-left: 2rem !important;
}
.bugcontact-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: .5rem;
    font-style: italic;
    font-size: 80%;
}
#bug-contact a,
#print-button a {
    text-decoration: none;
}
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    width: 1000px;
    height: 100%;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 0 20px rgba(0, 0, 0, .2);
}
.modal.visible {
    display: block;
}
.modal__header {
    color: white;
    background: #333;
    line-height: 50px;
    text-align: center;
    position: relative;
    height: 50px;
    box-sizing: border-box;
}
.modal__header a {
    position: absolute;
    top: 0;
    right: 0;
    text-decoration: none;
    color: white;
    font-weight: bold;
    display: block;
    padding: 0 20px;
    font-size: 16px;
    background: #555;
    height: 100%;
}
@media only screen and (max-width: 600px) {
    .tips img {
        width: 100% !important;
    }
    .modal {
        max-width: 100%;
    }
    .pagination {
        padding-left: 0;
    }
}
@media (min-width: 992px) {
    .universe-card-list .col-lg-3,
    .companion-card-list .col-lg-3 {
        flex: 0 0 auto;
        width: 20%;
    }
    .universe-card-list .card-body,
    .companion-card-list .card-body {
        padding: 10px;
        min-height: 100px;
    }
}
.universe-card-list .table-img,
.companion-card-list .table-img {
    margin-top: 10px;
    width: 100px;
    height: 100px;
}
#quests,
#description,
#rewards {
    scroll-margin-top: 100px;
}

/* Custom scrollbar (from the demo) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--aniimo-dew);
}
::-webkit-scrollbar-thumb {
    background: rgba(var(--aniimo-canopy-rgb), .3);
    border-radius: 999px;
    border: 2px solid var(--aniimo-dew);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--aniimo-canopy-rgb), .5);
}

/* ---------- Home hero + sections (from the demo) ---------- */
.text-aniimo-petal {
    color: var(--aniimo-petal) !important;
}
.aniimo-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 78vh;
    padding: 4.5rem 0 3rem;
}
.aniimo-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}
.aniimo-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(244, 248, 252, .55) 0%, rgba(244, 248, 252, .78) 60%, #F4F8FC 100%);
}
.aniimo-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
.aniimo-orb-1 {
    top: 22%;
    left: 22%;
    width: 18rem;
    height: 18rem;
    background: rgba(var(--aniimo-canopy-rgb), .10);
}
.aniimo-orb-2 {
    bottom: 18%;
    right: 22%;
    width: 24rem;
    height: 24rem;
    background: rgba(var(--aniimo-petal-rgb), .10);
}
.aniimo-orb-3 {
    top: 45%;
    right: 30%;
    width: 16rem;
    height: 16rem;
    background: rgba(var(--aniimo-sky-rgb), .10);
}
.aniimo-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .1);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: rgba(var(--aniimo-canopy-rgb), .75);
}
.aniimo-hero-title {
    margin: 1.5rem 0 0;
    font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -.03em;
    color: var(--aniimo-canopy);
}
.aniimo-hero-sub {
    margin: 1.25rem auto 0;
    max-width: 42rem;
    font-size: 1.15rem;
    color: rgba(var(--aniimo-ink-rgb), .65);
}
.aniimo-hero-news {
    max-width: 40rem;
    margin: 2rem auto 0;
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .12);
    box-shadow: var(--aniimo-shadow-soft);
    text-align: left;
}
.aniimo-hero-news-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(var(--aniimo-canopy-rgb), .1);
}
.aniimo-hero-news-title {
    font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    color: var(--aniimo-canopy);
}
.aniimo-hero-news-date {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(var(--aniimo-ink-rgb), .5);
}
.aniimo-hero-news-text {
    margin: .85rem 0 0;
    color: rgba(var(--aniimo-ink-rgb), .75);
    font-size: 1rem;
    line-height: 1.6;
}
.aniimo-hero-news-next {
    margin: .5rem 0 0;
    color: rgba(var(--aniimo-ink-rgb), .75);
    font-size: .9rem;
}
.aniimo-hero-news-event {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-top: 1rem;
    padding: .65rem .9rem;
    border-radius: .9rem;
    background: var(--aniimo-dew);
}
.aniimo-hero-news-event p {
    margin: 0;
    font-size: .9rem;
    color: rgba(var(--aniimo-ink-rgb), .75);
}
.aniimo-hero-news-dot {
    flex-shrink: 0;
    width: .5rem;
    height: .5rem;
    margin-top: .45rem;
    border-radius: 50%;
    background: var(--aniimo-petal);
}
.aniimo-hero-search {
    display: flex;
    align-items: center;
    gap: .75rem;
    max-width: 42rem;
    margin: 2.5rem auto 0;
    padding: 1rem 1.25rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .12);
    box-shadow: var(--aniimo-shadow-float);
}
.aniimo-hero-search > i {
    color: rgba(var(--aniimo-canopy-rgb), .6);
}
.aniimo-hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: 1.05rem;
    color: var(--aniimo-ink);
    outline: none;
}
.aniimo-hero-search input::placeholder {
    color: rgba(var(--aniimo-ink-rgb), .4);
}
.aniimo-hero-search .btn {
    white-space: nowrap;
}
.aniimo-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-top: 2rem;
}
.aniimo-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .6);
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .08);
    color: rgba(var(--aniimo-ink-rgb), .7);
    font-size: .78rem;
    font-weight: 500;
    text-decoration: none;
    transition: .15s;
}
.aniimo-chip:hover {
    background: #fff;
    border-color: rgba(var(--aniimo-canopy-rgb), .2);
    color: var(--aniimo-canopy);
}
.aniimo-chip img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.aniimo-eyebrow {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: rgba(var(--aniimo-canopy-rgb), .6);
}
.aniimo-section-title {
    margin-top: .25rem;
    font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    color: var(--aniimo-canopy);
}
.aniimo-link {
    color: var(--aniimo-canopy);
    font-weight: 600;
    text-decoration: none;
}
.aniimo-link:hover {
    color: var(--aniimo-petal);
}
.aniimo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .08);
    border-radius: 1.5rem;
    box-shadow: var(--aniimo-shadow-soft);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.aniimo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--aniimo-shadow-float);
    color: inherit;
}
.aniimo-card-num {
    position: absolute;
    top: .75rem;
    left: .75rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .1);
    font-size: .7rem;
    color: rgba(var(--aniimo-canopy-rgb), .8);
}
.aniimo-card-img {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 1rem;
    background: rgba(var(--aniimo-dew-rgb), .5);
}
.aniimo-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.aniimo-card-body {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: .9rem 1rem 1.1rem;
}
.aniimo-card-name {
    font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    color: var(--aniimo-canopy);
}
.aniimo-card-meta {
    font-size: .8rem;
    color: rgba(var(--aniimo-ink-rgb), .6);
}
.aniimo-card-elements {
    display: flex;
    gap: .25rem;
    margin-top: .25rem;
}
.aniimo-card-elements img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.aniimo-pillar {
    height: 100%;
    padding: 1.75rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .08);
    box-shadow: var(--aniimo-shadow-soft);
}
a.aniimo-pillar {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.aniimo-pillar:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--aniimo-canopy-rgb), .2);
    box-shadow: var(--aniimo-shadow-float);
}
.aniimo-pillar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: var(--aniimo-dew);
    color: var(--aniimo-canopy);
    font-size: 1.2rem;
}
.aniimo-pillar h3 {
    font-size: 1.15rem;
    font-weight: 700;
}
.aniimo-pillar p {
    margin: .5rem 0 0;
    color: rgba(var(--aniimo-ink-rgb), .6);
}
.aniimo-cta {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 2rem;
    border-radius: 2rem;
    background: var(--aniimo-canopy);
    color: #fff;
    text-align: center;
    box-shadow: var(--aniimo-shadow-float);
}
.aniimo-cta h2 {
    color: #fff;
    font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}
.aniimo-cta p {
    margin: .75rem auto 1.5rem;
    max-width: 36rem;
    color: rgba(255, 255, 255, .8);
}
.aniimo-cta .btn-light {
    color: var(--aniimo-canopy);
    font-weight: 600;
    border-radius: 1rem;
}
.aniimo-cta .btn-light:hover {
    background: var(--aniimo-dew);
}
.aniimo-orb-cta-1 {
    top: -3rem;
    right: -3rem;
    width: 12rem;
    height: 12rem;
    background: rgba(var(--aniimo-petal-rgb), .3);
}
.aniimo-orb-cta-2 {
    bottom: -4rem;
    left: -3rem;
    width: 14rem;
    height: 14rem;
    background: rgba(var(--aniimo-sky-rgb), .2);
}

/* ---------- Auth pages (demo AuthLayout look) ---------- */
.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 2.5rem 1rem 4rem;
}
.auth-card {
    width: 100%;
    max-width: 30rem;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .1);
    border-radius: 1.75rem;
    box-shadow: var(--aniimo-shadow-float);
    padding: 2.25rem 2rem;
}
.auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: var(--aniimo-dew);
    color: var(--aniimo-canopy);
    font-size: 1.25rem;
}
.auth-title {
    margin: 1rem 0 0;
    font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--aniimo-canopy);
}
.auth-sub {
    margin: .25rem 0 1.5rem;
    color: rgba(var(--aniimo-ink-rgb), .6);
}
.auth-error {
    margin-bottom: 1rem;
    padding: .75rem 1rem;
    border-radius: 1rem;
    background: rgba(var(--aniimo-petal-rgb), .12);
    color: #b3403a;
    font-size: .9rem;
}
.auth-note {
    margin-bottom: 1rem;
    font-size: .9rem;
    color: rgba(var(--aniimo-ink-rgb), .7);
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.auth-field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.auth-field > label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--aniimo-ink);
}
.auth-input {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input > i.fa-envelope,
.auth-input > i.fa-lock,
.auth-input > i.fa-user {
    position: absolute;
    left: 1rem;
    color: rgba(var(--aniimo-ink-rgb), .4);
    pointer-events: none;
}
.auth-input > input {
    width: 100%;
    height: 3rem;
    padding: 0 2.6rem 0 2.6rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: #fff;
    color: var(--aniimo-ink);
    outline: none;
}
.auth-input > input:focus {
    border-color: var(--aniimo-sky);
    box-shadow: 0 0 0 .25rem rgba(var(--aniimo-sky-rgb), .2);
}
.auth-eye {
    position: absolute;
    right: 1rem;
    cursor: pointer;
    color: rgba(var(--aniimo-ink-rgb), .4);
}
.auth-submit {
    height: 3rem;
    font-weight: 600;
}
.auth-footer {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: .9rem;
    color: rgba(var(--aniimo-ink-rgb), .65);
}
.auth-footer a {
    color: var(--aniimo-canopy);
    font-weight: 600;
    text-decoration: none;
}
.auth-footer a:hover {
    color: var(--aniimo-petal);
}
.auth-mini-link {
    font-size: .75rem;
    color: var(--aniimo-canopy);
    text-decoration: none;
}
.auth-mini-link:hover {
    color: var(--aniimo-petal);
}
.auth-card .form-label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--aniimo-ink);
}
.auth-card .form-control {
    height: 3rem;
    border-radius: 1rem;
}
.auth-card .form-control[type="checkbox"] {
    height: auto;
}
.auth-card .mb-3 {
    margin-bottom: 1rem !important;
}
.auth-card .form-text,
.auth-card .invalid-feedback {
    font-size: .8rem;
}
.auth-card .form-check {
    min-height: auto;
}
.auth-card .form-check-label {
    font-size: .875rem;
    color: rgba(var(--aniimo-ink-rgb), .75);
}

/* ---------- Footer (demo look) ---------- */
.aniimo-footer {
    margin-top: 3rem;
    background: rgba(var(--aniimo-dew-rgb), .5);
    border-top: 1px solid rgba(var(--aniimo-canopy-rgb), .1);
    color: var(--aniimo-ink);
}
.aniimo-footer-brand {
    font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -.03em;
    color: var(--aniimo-canopy);
}
.aniimo-footer-dot {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: rgba(var(--aniimo-canopy-rgb), .5);
    margin-left: .25rem;
}
.aniimo-footer-text {
    margin-top: .75rem;
    max-width: 22rem;
    font-size: .9rem;
    color: rgba(var(--aniimo-ink-rgb), .6);
}
.aniimo-footer-title {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: rgba(var(--aniimo-canopy-rgb), .6);
    margin-bottom: .75rem;
}
.aniimo-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    font-size: .9rem;
}
.aniimo-footer-links a {
    color: rgba(var(--aniimo-ink-rgb), .7);
    text-decoration: none;
}
.aniimo-footer-links a:hover {
    color: var(--aniimo-canopy);
}
.aniimo-footer-sep {
    border-color: rgba(var(--aniimo-canopy-rgb), .1);
    margin: 2rem 0 1rem;
    opacity: 1;
}
.aniimo-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
    font-size: .8rem;
    color: rgba(var(--aniimo-ink-rgb), .55);
}

/* ---------- Aniimo page ---------- */
.aniimo-lead {
    color: rgba(var(--aniimo-ink-rgb), .6);
    margin-bottom: 1rem;
}
.aniimo-toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.aniimo-search {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex: 1;
    min-width: 14rem;
    padding: .8rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .1);
}
.aniimo-search > i {
    color: rgba(var(--aniimo-canopy-rgb), .5);
}
.aniimo-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    color: var(--aniimo-ink);
}
.aniimo-search input::placeholder {
    color: rgba(var(--aniimo-ink-rgb), .4);
}
.aniimo-sort {
    width: auto;
    min-width: 7rem;
}
.aniimo-count {
    margin-left: auto;
    font-size: .85rem;
    color: rgba(var(--aniimo-ink-rgb), .6);
}
.aniimo-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    margin-bottom: 1.75rem;
}
.aniimo-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
}
.aniimo-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .12);
    color: rgba(var(--aniimo-ink-rgb), .7);
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    transition: .15s;
}
.aniimo-pill img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
.aniimo-pill:hover {
    border-color: rgba(var(--aniimo-canopy-rgb), .3);
    color: var(--aniimo-canopy);
}
.aniimo-pill.active {
    background: var(--aniimo-canopy);
    border-color: var(--aniimo-canopy);
    color: #fff;
}
.aniimo-item .aniimo-card-img {
    aspect-ratio: 3 / 4;
}

/* ---------- Aniimo detail (Specimen look) ---------- */
.specimen-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    font-weight: 500;
    color: rgba(var(--aniimo-ink-rgb), .6);
    text-decoration: none;
    margin-bottom: 1rem;
}
.specimen-back:hover {
    color: var(--aniimo-canopy);
}
.specimen-visual {
    position: relative;
    border-radius: 2rem;
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .1);
    box-shadow: var(--aniimo-shadow-float);
    background: linear-gradient(160deg, var(--aniimo-dew) 0%, #fff 70%, var(--aniimo-dew) 100%);
    overflow: hidden;
}
.specimen-num {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    padding: .3rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .1);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .85rem;
    font-weight: 700;
    color: rgba(var(--aniimo-ink-rgb), .5);
}
.specimen-element {
    position: absolute;
    top: 1.15rem;
    right: 1.25rem;
    display: flex;
    gap: .3rem;
}
.specimen-element img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.specimen-img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 2.5rem;
}
.specimen-rating {
    display: flex;
    justify-content: center;
    gap: .25rem;
    margin-top: 1rem;
}
.specimen-mutations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .25rem;
    margin-top: .5rem;
}
.specimen-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
}
.specimen-mutation {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: var(--aniimo-petal);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
}
.specimen-tag {
    display: inline-flex;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .12);
    font-size: .75rem;
    font-weight: 600;
    color: rgba(var(--aniimo-ink-rgb), .65);
}
.specimen-title {
    font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    letter-spacing: -.03em;
    color: var(--aniimo-canopy);
}
.specimen-sub {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: rgba(var(--aniimo-canopy-rgb), .5);
    margin-bottom: 1.5rem;
}
.specimen-section {
    margin-bottom: 2rem;
}
.specimen-section h2 {
    font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--aniimo-canopy);
    margin-bottom: .75rem;
}
.specimen-paragraph {
    color: rgba(var(--aniimo-ink-rgb), .75);
    font-size: 1.05rem;
    line-height: 1.6;
}
.specimen-facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .35rem 1rem;
    font-size: .95rem;
    margin: 0;
}
.specimen-facts dt {
    color: rgba(var(--aniimo-ink-rgb), .55);
    font-weight: 600;
}
.specimen-facts dd {
    margin: 0;
}
.specimen-stat {
    margin-bottom: .85rem;
}
.specimen-stat-head {
    display: flex;
    justify-content: space-between;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .8rem;
    font-weight: 600;
    color: rgba(var(--aniimo-ink-rgb), .7);
    margin-bottom: .25rem;
}
.specimen-stat-bar {
    height: .6rem;
    border-radius: 999px;
    background: var(--aniimo-dew);
    overflow: hidden;
}
.specimen-stat-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--aniimo-canopy);
}
.specimen-forms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 1rem;
}
.specimen-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: .75rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .12);
    box-shadow: var(--aniimo-shadow-soft);
    text-align: center;
}
.specimen-form-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}
.specimen-form-img-link {
    display: block;
    width: 100%;
}
.specimen-form-name {
    font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
    font-weight: 600;
    font-size: .9rem;
    color: var(--aniimo-canopy);
    text-decoration: none;
}
.specimen-form-elements {
    display: flex;
    gap: .2rem;
}
.specimen-form-elements img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.homeland-element-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.home-element-level {
    display: inline-block;
    margin-top: .2rem;
    padding: .1rem .55rem;
    border-radius: 999px;
    background: var(--aniimo-dew);
    color: var(--aniimo-canopy);
    font-size: .75rem;
    font-weight: 600;
}
.home-category-row td {
    background: var(--aniimo-dew);
    color: var(--aniimo-canopy);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.home-recipe {
    height: 100%;
    padding: 1rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .1);
    box-shadow: var(--aniimo-shadow-soft);
}
.home-recipe-owned {
    border-color: rgba(25, 135, 84, .45);
}
.home-recipe-head {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.home-recipe-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}
.home-recipe-output {
    font-weight: 700;
    color: var(--aniimo-canopy);
}
.home-recipe-duration {
    margin-left: auto;
    font-size: .8rem;
    color: rgba(var(--aniimo-ink-rgb), .6);
}
.home-recipe-ingredients {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .75rem;
    margin-top: .5rem;
    font-size: .85rem;
}
.home-recipe-ingredient {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}
.home-recipe-ingredient img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}
.home-recipe-gotit {
    margin-top: .75rem;
}
.home-recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .35rem;
    font-size: .85rem;
    color: rgba(var(--aniimo-ink-rgb), .65);
}
.home-recipe-work {
    margin-left: .5rem;
}
.home-recipe-detail {
    margin-bottom: 1.5rem;
}
.home-steps {
    list-style: none;
    margin: 0;
    padding-left: .25rem;
}
.home-steps .home-steps {
    margin-top: .35rem;
    padding-left: 1.25rem;
    border-left: 2px solid rgba(var(--aniimo-canopy-rgb), .12);
}
.home-step {
    margin-bottom: .4rem;
}
.home-step-material {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 600;
    color: var(--aniimo-canopy);
}
.home-step-material img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.home-step-producer {
    margin-left: .5rem;
    font-size: .85rem;
    color: rgba(var(--aniimo-ink-rgb), .65);
}
.home-step-raw {
    margin-left: .5rem;
    font-size: .8rem;
    font-style: italic;
    color: rgba(var(--aniimo-ink-rgb), .45);
}
.specimen-form .aniimo-rating {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .15rem;
}
.specimen-form .aniimo-rating .rating-img {
    width: 28px;
    height: 28px;
}
.specimen-form .aniimo-mutation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .15rem;
}
.specimen-form .aniimo-mutation .mutation-img {
    width: 28px;
    height: 28px;
}
.evo-node {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .75rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .1);
    text-decoration: none;
    color: inherit;
    transition: .15s;
}
.evo-node:hover {
    border-color: rgba(var(--aniimo-canopy-rgb), .3);
    box-shadow: var(--aniimo-shadow-soft);
    color: inherit;
}
.evo-current {
    background: var(--aniimo-dew);
    border-color: rgba(var(--aniimo-canopy-rgb), .25);
}
.evo-node img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.evo-info {
    display: flex;
    flex-direction: column;
}
.evo-name {
    font-weight: 700;
    color: var(--aniimo-canopy);
}
.evo-meta {
    font-size: .8rem;
    color: rgba(var(--aniimo-ink-rgb), .55);
}
.evo-children {
    margin-top: .5rem;
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(var(--aniimo-canopy-rgb), .12);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.aniimo-card-body .aniimo-rating {
    display: flex;
    gap: .15rem;
    margin-top: .4rem;
}
.aniimo-card-body .aniimo-rating .rating-img {
    width: 28px;
    height: 28px;
}
.aniimo-card-body .aniimo-mutation {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: .15rem;
    margin-top: .4rem;
}
.aniimo-card-body .aniimo-mutation .mutation-img {
    width: 28px;
    height: 28px;
}

/* ---------- Header search + search page ---------- */.nav-search-item {
    display: flex;
    align-items: center;
    padding: 0 .35rem;
}
.nav-search {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-search > i {
    position: absolute;
    left: .75rem;
    color: rgba(var(--aniimo-ink-rgb), .4);
    pointer-events: none;
    font-size: .8rem;
}
.nav-search input {
    width: 12rem;
    padding: .4rem .9rem .4rem 2rem;
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .15);
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    font-size: .85rem;
    color: var(--aniimo-ink);
    outline: none;
    transition: width .2s ease, border-color .15s ease;
}
.nav-search input::placeholder {
    color: rgba(var(--aniimo-ink-rgb), .4);
}
.nav-search input:focus {
    width: 15rem;
    border-color: var(--aniimo-sky);
    box-shadow: 0 0 0 .2rem rgba(var(--aniimo-sky-rgb), .2);
}
.search-hero {
    display: flex;
    align-items: center;
    gap: .6rem;
    max-width: 42rem;
    padding: .8rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .12);
    box-shadow: var(--aniimo-shadow-soft);
}
.search-hero > i {
    color: rgba(var(--aniimo-canopy-rgb), .5);
}
.search-hero input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 1.05rem;
    color: var(--aniimo-ink);
}
.search-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.search-item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(var(--aniimo-canopy-rgb), .12);
    color: rgba(var(--aniimo-ink-rgb), .75);
    font-size: .85rem;
    text-decoration: none;
}
.search-item:hover {
    border-color: rgba(var(--aniimo-canopy-rgb), .3);
    color: var(--aniimo-canopy);
}
.search-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Element strengths */
.strength-list {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem;
}
.strength-item {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .8rem;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.strength-item:hover {
    color: var(--aniimo-canopy);
}
.strength-item img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Element counters page */
.element-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
}
.element-nav-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: inherit;
    text-decoration: none;
}
.element-nav-item:hover,
.element-nav-item.active {
    color: var(--aniimo-canopy);
    font-weight: 600;
}
.element-nav-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Header, hero and footer aligned on the main content column (2/3 of the
   viewport, same as .col-md-8 in the 3-column page grid). */
@media (min-width: 768px) {
    .navbar > .container,
    .aniimo-hero > .container,
    .aniimo-footer > .container {
        max-width: 66.666667%;
    }
}

/* Keep the narrower header readable between lg and xl */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar .nav-link {
        padding-right: .35rem;
        padding-left: .35rem;
        font-size: .9rem;
    }
    .nav-search input {
        width: 7rem;
    }
    .nav-search input:focus {
        width: 9rem;
    }
}