:root {
    --background: #0b0d10;
    --background-soft: #11151a;
    --panel: #151a20;
    --panel-hover: #1b222a;

    --border: #28313b;

    --text: #f1f3f5;
    --muted: #9aa5b1;

    --gold: #d4af37;
    --gold-light: #f0cf61;

    --blue: #3a6ea5;

    --radius: 12px;

    --shadow:
        0 20px 60px rgba(0, 0, 0, .40);
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(58, 110, 165, .18),
            transparent 38%
        ),
        var(--background);

    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.5;
}


a {
    color: inherit;
    text-decoration: none;
}


.container {
    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin: 0 auto;
}


/* =========================
   HEADER
========================= */


.site-header {
    position: relative;

    z-index: 10;

    background:
        rgba(11, 13, 16, .94);

    border-bottom:
        1px solid rgba(255,255,255,.06);
}


.header-inner {
    min-height: 72px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.brand {
    display: inline-flex;

    align-items: center;

    gap: 12px;
}


.brand-symbol {
    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    border:
        1px solid var(--gold);

    color: var(--gold);

    font-size: 20px;
    font-weight: 800;
}


.brand-name {
    font-size: 25px;

    font-weight: 800;

    letter-spacing: -.7px;
}


.brand-name span {
    color: var(--gold);
}


.main-nav {
    display: flex;

    align-items: center;

    gap: 30px;
}


.main-nav a {
    color: var(--muted);

    font-size: 14px;

    transition:
        color .2s ease;
}


.main-nav a:hover,
.main-nav a.active {
    color: var(--gold-light);
}


/* =========================
   HERO
========================= */


.hero {
    position: relative;

    min-height: 520px;

    display: flex;

    align-items: center;

    text-align: center;

    overflow: hidden;

    border-bottom:
        1px solid rgba(255,255,255,.05);
}


.hero-background {
    position: absolute;

    width: 700px;
    height: 700px;

    left: 50%;
    top: -410px;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:
        rgba(58,110,165,.20);

    filter:
        blur(100px);
}


.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(11,13,16,.05),
            var(--background)
        );

    pointer-events: none;
}


.hero-content {
    position: relative;

    z-index: 1;

    padding:
        90px 0 80px;
}


.eyebrow {
    margin-bottom: 16px;

    color: var(--gold);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2.4px;
}


.hero h1 {
    margin: 0;

    font-size:
        clamp(42px, 6vw, 72px);

    line-height: 1.02;

    letter-spacing: -2px;
}


.hero h1 span {
    color: var(--gold);
}


.hero-description {
    max-width: 650px;

    margin:
        25px auto 30px;

    color: var(--muted);

    font-size: 17px;
}


/* =========================
   SEARCH
========================= */


.search-form {
    width: min(
        760px,
        100%
    );

    margin: 0 auto;

    display: flex;

    padding: 5px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    background: #0e1216;

    box-shadow: var(--shadow);
}


.search-form input {
    flex: 1;

    min-width: 0;

    height: 52px;

    padding:
        0 18px;

    border: 0;

    outline: 0;

    background: transparent;

    color: var(--text);

    font-size: 15px;
}


.search-form input::placeholder {
    color: #68737e;
}


.search-form button {
    height: 52px;

    padding:
        0 25px;

    border: 0;

    border-radius: 7px;

    background: var(--gold);

    color: #111;

    font-weight: 800;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}


.search-form button:hover {
    background: var(--gold-light);

    transform:
        translateY(-1px);
}


.search-examples {
    margin-top: 14px;

    color: #68737e;

    font-size: 12px;
}


.search-examples span {
    margin-left: 8px;

    color: #9da8b3;
}


/* =========================
   SECTIONS
========================= */


.section {
    padding: 82px 0;
}


.section-header {
    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 30px;
}


.section-header h2 {
    margin: 0;

    font-size: 30px;

    letter-spacing: -.7px;
}


.section-link {
    color: var(--gold);

    font-size: 13px;

    font-weight: 700;
}


/* =========================
   DATABASE CATEGORIES
========================= */


.category-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}


.category-card {
    min-height: 175px;

    padding: 24px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.025),
            rgba(255,255,255,.01)
        );

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}


.category-card:hover {
    border-color:
        rgba(212,175,55,.55);

    background:
        var(--panel-hover);

    transform:
        translateY(-3px);
}


.category-icon {
    display: inline-flex;

    min-width: 42px;

    height: 28px;

    align-items: center;

    justify-content: center;

    padding:
        0 9px;

    border:
        1px solid rgba(212,175,55,.45);

    border-radius: 5px;

    color: var(--gold);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;
}


.category-card h3 {
    margin:
        18px 0 6px;

    font-size: 18px;
}


.category-card p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}


/* =========================
   EXPANSIONS
========================= */


.expansions-section {
    background:
        var(--background-soft);

    border-top:
        1px solid rgba(255,255,255,.04);

    border-bottom:
        1px solid rgba(255,255,255,.04);
}


.expansion-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}


.expansion-card {
    min-height: 120px;

    padding: 20px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        var(--panel);

    transition:
        border-color .2s ease,
        transform .2s ease;
}


.expansion-card:hover {
    border-color:
        rgba(58,110,165,.8);

    transform:
        translateY(-2px);
}


.version {
    color: var(--gold);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;
}


.expansion-card strong {
    margin-top: 5px;

    font-size: 16px;
}


.expansion-card small {
    margin-top: 4px;

    color: var(--muted);
}


/* =========================
   FOOTER
========================= */


.site-footer {
    padding: 38px 0;

    background: #080a0c;
}


.footer-inner {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.footer-brand {
    font-size: 19px;

    font-weight: 800;
}


.footer-inner p {
    margin:
        4px 0 0;

    color: var(--muted);

    font-size: 12px;
}


.footer-meta {
    display: flex;

    gap: 22px;

    color: #69747e;

    font-size: 11px;
}


/* =========================
   RESPONSIVE
========================= */


@media (max-width: 800px) {

    .main-nav {
        gap: 15px;
    }


    .category-grid,
    .expansion-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .hero {
        min-height: 470px;
    }

}


@media (max-width: 560px) {

    .container {
        width:
            calc(100% - 24px);
    }


    .brand-name {
        font-size: 22px;
    }


    .main-nav a:not(.active) {
        display: none;
    }


    .hero-content {
        padding:
            65px 0;
    }


    .hero h1 {
        letter-spacing: -1.5px;
    }


    .hero-description {
        font-size: 15px;
    }


    .search-form {
        flex-direction: column;
    }


    .search-form button {
        height: 48px;
    }


    .section {
        padding: 60px 0;
    }


    .section-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }


    .category-grid,
    .expansion-grid {
        grid-template-columns: 1fr;
    }


    .footer-inner {
        align-items: flex-start;

        flex-direction: column;
    }


    .footer-meta {
        align-items: flex-start;

        flex-direction: column;

        gap: 6px;
    }

}



/* =========================================================
   DATABASE
   ========================================================= */

.database-page {
    min-height: calc(100vh - 80px);
    background: var(--background);
}


/* DATABASE HERO */

.database-hero {
    padding: 42px 0 36px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(
            circle at top right,
            rgba(58, 110, 165, 0.12),
            transparent 45%
        ),
        var(--background-soft);
}

.database-hero h1 {
    margin: 12px 0 8px;
    font-size: 34px;
    line-height: 1.15;
}

.database-hero p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 15px;
}


/* BREADCRUMB */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--gold-light);
}


/* SEARCH */

.database-search {
    display: flex;
    gap: 10px;
    max-width: 900px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .65;
    pointer-events: none;
}

.database-search input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 46px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.database-search input::placeholder {
    color: var(--muted);
}

.database-search input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(58, 110, 165, .15);
}

.database-search button {
    height: 48px;
    padding: 0 25px;
    border: 0;
    border-radius: 8px;
    background: var(--gold);
    color: #111;
    font-weight: 700;
    cursor: pointer;
}

.database-search button:hover {
    background: var(--gold-light);
}


/* MAIN LAYOUT */

.database-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 25px;
    padding-top: 28px;
    padding-bottom: 60px;
}


/* SIDEBAR */

.database-sidebar {
    min-width: 0;
}

.sidebar-panel {
    margin-bottom: 18px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
}

.sidebar-title {
    padding: 12px 11px 9px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.database-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 11px;
    border-radius: 7px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: .15s ease;
}

.database-sidebar a:hover {
    background: var(--panel-hover);
    color: var(--text);
}

.database-sidebar a.active {
    background: rgba(212, 175, 55, .12);
    color: var(--gold-light);
}

.filter-icon {
    width: 20px;
    text-align: center;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    color: var(--muted);
    font-size: 13px;
}

.checkbox-row input {
    accent-color: var(--gold);
}

.checkbox-row.disabled {
    opacity: .45;
}


/* RESULTS HEADER */

.results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.results-label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.results-header h2 {
    margin: 0;
    color: var(--text);
    font-size: 23px;
}

.results-count {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--muted);
    font-size: 13px;
}

.results-count strong {
    color: var(--text);
    font-size: 20px;
}


/* RESULT ROW */

.results-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.result-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 120px 24px;
    align-items: center;
    gap: 15px;
    min-height: 76px;
    padding: 10px 14px 10px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--panel);
    color: inherit;
    text-decoration: none;
    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.result-row:hover {
    border-color: var(--border);
    background: var(--panel-hover);
    transform: translateX(2px);
}


/* RESULT ICON */

.result-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #0d1014;
    font-size: 25px;
}

.creature-icon {
    box-shadow:
        inset 0 0 20px rgba(180, 60, 60, .08);
}


/* RESULT CONTENT */

.result-main {
    min-width: 0;
}

.result-name {
    overflow: hidden;
    color: var(--gold-light);
    font-size: 16px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-row:hover .result-name {
    color: #fff;
}

.result-subname {
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-details {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
}

.result-details span {
    color: #78838f;
    font-size: 11px;
}

.result-details span:not(:last-child)::after {
    content: "•";
    margin-left: 7px;
    color: #4c5661;
}


/* EXPANSION */

.result-expansion {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.expansion-name {
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.expansion-version {
    color: var(--muted);
    font-size: 11px;
}


/* ARROW */

.result-arrow {
    color: #59636d;
    font-size: 18px;
    transition: .15s ease;
}

.result-row:hover .result-arrow {
    color: var(--gold);
    transform: translateX(3px);
}


/* EMPTY */

.database-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
    text-align: center;
}

.empty-icon {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 35px;
}

.database-empty h2 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 20px;
}

.database-empty p {
    max-width: 500px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}


/* ERROR */

.database-error {
    display: flex;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(180, 50, 50, .35);
    border-radius: 10px;
    background: rgba(120, 30, 30, .10);
}

.error-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(180, 50, 50, .2);
    color: #f08080;
    font-weight: 700;
}

.database-error h2 {
    margin: 0 0 8px;
    color: #f08080;
    font-size: 17px;
}

.database-error pre {
    margin: 0;
    color: var(--muted);
    white-space: pre-wrap;
}


/* PAGINATION */

.pagination {
    margin-top: 18px;
    padding: 15px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.pagination-info {
    color: var(--muted);
    font-size: 12px;
}


/* RESPONSIVE */

@media (max-width: 850px) {

    .database-layout {
        grid-template-columns: 1fr;
    }

    .database-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sidebar-panel {
        margin-bottom: 0;
    }

}


@media (max-width: 650px) {

    .database-hero {
        padding: 30px 0;
    }

    .database-hero h1 {
        font-size: 27px;
    }

    .database-search {
        flex-direction: column;
    }

    .database-search button {
        width: 100%;
    }

    .database-sidebar {
        grid-template-columns: 1fr;
    }

    .result-row {
        grid-template-columns: 46px minmax(0, 1fr) 20px;
        gap: 11px;
        padding: 9px;
    }

    .result-icon {
        width: 46px;
        height: 46px;
    }

    .result-expansion {
        display: none;
    }

    .results-header {
        align-items: flex-start;
    }

}




/* =========================================================
   CREATURE PAGE
   ========================================================= */

.creature-page {
    min-height: calc(100vh - 80px);
    background: var(--background);
}


/* HERO */

.creature-hero {
    padding: 28px 0 35px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(212, 175, 55, .08),
            transparent 40%
        ),
        var(--background-soft);
}


/* BREADCRUMB */

.creature-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 13px;
}

.creature-breadcrumb a {
    color: var(--gold);
    text-decoration: none;
}

.creature-breadcrumb a:hover {
    color: var(--gold-light);
}


/* TITLE */

.creature-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.creature-large-icon {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #0b0e12;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, .35);
    font-size: 42px;
    overflow: hidden;
}

.creature-large-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creature-type-label {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}

.creature-title h1 {
    margin: 0;
    color: var(--gold-light);
    font-size: 34px;
    line-height: 1.15;
}

.creature-subname {
    margin-top: 5px;
    color: var(--muted);
    font-size: 15px;
}

.creature-identifiers {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.creature-identifiers span {
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: rgba(255, 255, 255, .025);
    color: #8d98a4;
    font-size: 11px;
}


/* LAYOUT */

.creature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 70px;
}

.creature-main {
    min-width: 0;
}


/* SECTION */

.creature-section {
    margin-bottom: 22px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
    overflow: hidden;
}

.section-heading {
    padding: 17px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .015);
}

.section-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
}


/* GENERAL STATS */

.creature-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.creature-stat {
    min-height: 78px;
    padding: 16px 20px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.creature-stat:nth-child(3n) {
    border-right: 0;
}

.creature-stat:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.stat-label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.creature-stat strong {
    color: var(--text);
    font-size: 15px;
}


/* COMBAT */

.combat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.combat-stat {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 90px;
    padding: 18px 20px;
    border-right: 1px solid var(--border);
}

.combat-stat:last-child {
    border-right: 0;
}

.combat-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #0d1014;
    color: var(--gold);
    font-size: 18px;
}

.combat-stat span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}

.combat-stat strong {
    color: var(--text);
    font-size: 17px;
}


/* LOCATION */

.location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.location-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: background .2s ease, border-color .2s ease;
}

.location-card:hover {
    background: var(--panel-hover);
    border-color: rgba(212, 175, 55, .35);
}

.location-card strong {
    color: var(--text);
    font-size: 18px;
    line-height: 1.3;
}

.location-id {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 900px) {

    .location-grid {
        grid-template-columns: 1fr;
    }

}

/* SIDEBAR */

.creature-sidebar {
    min-width: 0;
}

.creature-sidebar-card {
    margin-bottom: 16px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
}

.sidebar-card-title {
    padding: 11px;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.creature-sidebar-card > a {
    display: block;
    padding: 9px 11px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.creature-sidebar-card > a:hover {
    background: var(--panel-hover);
    color: var(--gold-light);
}


/* VERSION */

.version-info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px;
    padding: 8px 11px 11px;
}

.version-info span {
    color: var(--muted);
    font-size: 12px;
}

.version-info strong {
    color: var(--text);
    font-size: 12px;
}


/* IDENTIFIERS */

.identifier-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 9px 11px;
    border-top: 1px solid var(--border);
}

.identifier-row span {
    color: var(--muted);
    font-size: 12px;
}

.identifier-row strong {
    color: var(--text);
    font-size: 12px;
}


/* BACK BUTTON */

.creature-back-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--gold-light);
    text-decoration: none;
}

.creature-back-button:hover {
    background: var(--panel-hover);
}


/* RESPONSIVE */

@media (max-width: 850px) {

    .creature-layout {
        grid-template-columns: 1fr;
    }

    .creature-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .creature-sidebar-card {
        margin-bottom: 0;
    }

}


@media (max-width: 650px) {

    .creature-title-row {
        align-items: flex-start;
    }

    .creature-large-icon {
        width: 65px;
        height: 65px;
        font-size: 30px;
    }

    .creature-title h1 {
        font-size: 25px;
    }

    .creature-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .creature-stat:nth-child(3n) {
        border-right: 1px solid var(--border);
    }

    .creature-stat:nth-child(2n) {
        border-right: 0;
    }

    .creature-stat:nth-last-child(-n + 3) {
        border-bottom: 1px solid var(--border);
    }

    .creature-stat:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .combat-grid {
        grid-template-columns: 1fr;
    }

    .combat-stat {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .combat-stat:last-child {
        border-bottom: 0;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .location-card {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .location-card:last-child {
        border-bottom: 0;
    }

    .creature-sidebar {
        grid-template-columns: 1fr;
    }

}
