:root {
    color-scheme: dark;
    --page-bg: #0b0f15;
    --surface: rgba(23, 29, 39, 0.92);
    --surface-soft: rgba(255, 255, 255, 0.045);
    --border: rgba(255, 255, 255, 0.11);
    --text: #f4f7fb;
    --muted: #aab4c3;
    --accent: #ffb74d;
    --accent-strong: #ffca79;
    --blue: #70bdf5;
    --radius: 20px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--page-bg);
}

body {
    min-width: 300px;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 12% -10%, rgba(255, 183, 77, 0.15), transparent 30rem),
        radial-gradient(circle at 95% 10%, rgba(112, 189, 245, 0.12), transparent 28rem),
        var(--page-bg);
    line-height: 1.65;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 15, 21, 0.86);
    backdrop-filter: blur(18px);
}

.header-inner,
.page-shell,
.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.header-inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 1.05rem;
    font-weight: 850;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 11px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a,
.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 750;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.site-nav a:hover,
.button:hover {
    transform: translateY(-1px);
}

.site-nav a:hover {
    background: var(--surface-soft);
}

.button-primary {
    color: #1b1309;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    box-shadow: 0 10px 28px rgba(255, 183, 77, 0.2);
}

.button-secondary {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.035);
}

.page-shell {
    padding-block: 28px 64px;
}

.breadcrumbs {
    display: flex;
    overflow: hidden;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.88rem;
    white-space: nowrap;
}

.breadcrumbs a {
    color: var(--blue);
    text-decoration: none;
}

.hero,
.content-card,
.entity-card {
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(28, 35, 47, 0.96), rgba(16, 21, 29, 0.96));
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
}

.hero {
    display: grid;
    grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 56px);
    align-items: center;
    padding: clamp(24px, 4.5vw, 52px);
    overflow: hidden;
    border-color: rgba(255, 183, 77, 0.27);
    border-radius: 28px;
}

.hero > * {
    min-width: 0;
}

.entity-image-wrap {
    display: grid;
    min-height: 230px;
    place-items: center;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        radial-gradient(circle, rgba(255, 183, 77, 0.13), transparent 68%),
        rgba(0, 0, 0, 0.17);
}

.entity-image {
    display: block;
    width: min(100%, 310px);
    max-height: 260px;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.4));
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 850px;
    margin-bottom: 12px;
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h3 {
    margin-bottom: 6px;
    line-height: 1.3;
}

.lede {
    max-width: 760px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 1.05rem;
}

.actions,
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #dce5f0;
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.82rem;
    font-weight: 700;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.55fr);
    gap: 20px;
    margin-top: 20px;
}

.content-card {
    padding: clamp(22px, 3.5vw, 34px);
    border-radius: var(--radius);
}

.rich-text {
    color: #d8e0ea;
}

.rich-text > :last-child {
    margin-bottom: 0;
}

.rich-text li + li {
    margin-top: 8px;
}

.facts {
    display: grid;
    gap: 0;
    margin: 0;
}

.fact {
    display: grid;
    grid-template-columns: minmax(95px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.fact:first-child {
    padding-top: 0;
}

.fact:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.fact dt {
    color: var(--muted);
}

.fact dd {
    margin: 0;
    font-weight: 700;
}

.section-block {
    margin-top: 38px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.entity-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 18px;
    border-radius: 17px;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease;
}

.entity-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 183, 77, 0.55);
}

.entity-card img {
    width: 100%;
    height: 125px;
    margin-bottom: 15px;
    object-fit: contain;
}

.entity-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.build-card {
    position: relative;
}

.build-card .mode {
    margin-top: auto;
    padding-top: 16px;
    color: var(--accent-strong);
    font-size: 0.77rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.collection-hero {
    padding: clamp(28px, 5vw, 58px);
}

.collection-hero h1 {
    margin-bottom: 14px;
}

.collection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.empty-note {
    padding: 20px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    color: var(--muted);
}

.site-footer {
    padding-block: 28px 42px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.86rem;
}

.site-footer a {
    color: var(--text);
}

@media (max-width: 900px) {
    .hero,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .entity-image-wrap {
        min-height: 180px;
    }

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

@media (max-width: 650px) {
    .header-inner {
        min-height: 64px;
    }

    .site-nav a:not(.button-primary) {
        display: none;
    }

    .site-nav .button-primary {
        padding-inline: 11px;
        font-size: 0.84rem;
    }

    .brand span {
        display: none;
    }

    .page-shell {
        padding-top: 18px;
    }

    .hero {
        padding: 20px;
        border-radius: 20px;
    }

    h1 {
        font-size: 2.35rem;
    }

    .content-card {
        padding: 20px;
    }

    .actions .button {
        width: 100%;
    }

    .card-grid,
    .collection-grid {
        grid-template-columns: 1fr;
    }

    .entity-card {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        column-gap: 15px;
        align-items: center;
    }

    .entity-card img {
        grid-row: 1 / span 3;
        width: 88px;
        height: 78px;
        margin: 0;
    }

    .build-card {
        display: flex;
    }
}
