

.app-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 100dvh;
}

.character-row {
    position: relative;
    display: grid;
    min-width: 0;
    height: max-content;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-self: start;
    gap: 0;
    width: 100%;
    padding: 6px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.018);
    cursor: pointer;
    text-align: left;
    transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.character-row::before {
    position: absolute;
    z-index: 2;
    inset: 0 18px auto;
    height: 2px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--row-c1), var(--row-c2), var(--row-c3));
    content: "";
    opacity: 0;
    transition: opacity 150ms ease;
}

.character-row:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
}

.character-row[aria-current="page"] {
    border-color: var(--row-c2);
    color: var(--text);
    background:
        linear-gradient(145deg, rgba(var(--accent-2-rgb), 0.16), rgba(var(--accent-3-rgb), 0.035)),
        rgba(255, 255, 255, 0.035);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.character-row[aria-current="page"]::before {
    opacity: 1;
}

.row-avatar {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 0.74 / 1;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background:
        radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.14), transparent 34%),
        linear-gradient(145deg, var(--row-c1), var(--row-c2) 52%, var(--row-c3));
    color: #fff;
    font-family: "Bungee", sans-serif;
    font-size: clamp(2.35rem, 4vw, 3.7rem);
    font-weight: 600;
}

.row-avatar::after {
    z-index: 2;
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 42%, rgba(7, 6, 10, 0.5)),
        linear-gradient(145deg, transparent 45%, rgba(0, 0, 0, 0.18));
    content: "";
    pointer-events: none;
}

.row-avatar img {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 180ms ease;
}

.row-avatar img.ready {
    opacity: 1;
}

.row-avatar-fallback {
    position: relative;
    z-index: 0;
    color: rgba(255, 255, 255, 0.48);
    text-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.row-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
    padding: 8px 3px 8px;
}

.row-copy strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: clip;
    white-space: nowrap;
}

.row-copy small {
    display: -webkit-box;
    min-height: 2.5em;
    overflow: hidden;
    color: var(--quiet);
    font-size: 0.52rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--warning);
    box-shadow: 0 0 10px rgba(244, 184, 96, 0.45);
}

[data-state="online"] .status-dot {
    background: var(--success);
    box-shadow: 0 0 10px rgba(103, 220, 161, 0.5);
}

[data-state="error"] .status-dot,
[data-state="offline"] .status-dot {
    background: var(--danger);
    box-shadow: 0 0 10px rgba(255, 107, 120, 0.5);
}

[data-state="fallback"] .status-dot,
[data-state="setup"] .status-dot {
    background: var(--warning);
}

.dashboard {
    position: relative;
    min-width: 0;
    grid-column: 1;
    overflow: visible;
    padding-top: 64px;
}

.character-hero {
    position: relative;
    min-height: 450px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    isolation: isolate;
}

.hero-backdrop {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-position: center 22%;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    filter: saturate(0.84) contrast(1.05);
    transition: opacity 300ms ease, background-image 300ms ease;
}

.hero-backdrop.has-image {
    opacity: 0.48;
}

.character-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 8, 13, 0.98) 0%, rgba(9, 8, 13, 0.84) 38%, rgba(9, 8, 13, 0.44) 74%, rgba(9, 8, 13, 0.78) 100%),
        linear-gradient(0deg, var(--bg), transparent 46%),
        radial-gradient(circle at 76% 20%, rgba(var(--accent-1-rgb), 0.35), transparent 34rem),
        linear-gradient(135deg, rgba(var(--accent-2-rgb), 0.13), rgba(var(--accent-3-rgb), 0.04));
    content: "";
}

.character-hero::after {
    content: none;
}

.hero-grid {
    display: grid;
    width: min(1180px, 100%);
    min-height: 450px;
    grid-template-columns: minmax(260px, 0.72fr) minmax(440px, 1.28fr);
    align-items: center;
    gap: clamp(34px, 6vw, 88px);
    margin: 0 auto;
    padding: 40px clamp(28px, 6vw, 84px) 42px;
}

.hero-copy {
    max-width: 680px;
}

.identity-route {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--quiet);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.identity-route span:last-child {
    color: #d6cfdf;
}

.eyebrow,
.card-kicker {
    margin: 0;
    color: #cfc5f8;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.character-name-slot {
    min-width: 0;
    padding: 0.09em 0 0.12em;
    margin: -0.09em 0 -0.12em;
    overflow: visible;
}

.hero-copy h1 {
    display: inline-block;
    max-width: none;
    padding: 0.09em 0 0.14em;
    margin: -0.09em 0 -0.14em -0.05em;
    overflow: visible;
    font-family: "Bungee", sans-serif;
    font-size: clamp(3.6rem, 8vw, 7.5rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 12px 50px rgba(0, 0, 0, 0.28);
    background-image: linear-gradient(
        135deg,
        var(--accent-1) 0%,
        var(--accent-2) 32%,
        var(--accent-3) 64%,
        var(--accent-1) 100%
    );
    background-size: 300% 300%;
    background-position: 0% 100%;
    background-origin: border-box;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    -webkit-text-fill-color: transparent;
    animation: characterGradientFlow 16s linear infinite alternate;
    will-change: background-position, filter, transform;
}

.hero-copy h1.name-switching {
    animation:
        characterGradientFlow 16s linear infinite alternate,
        characterNameIn 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes characterGradientFlow {
    from {
        background-position: 0% 100%;
    }

    to {
        background-position: 100% 0%;
    }
}

@keyframes characterNameIn {
    0% {
        opacity: 0.18;
        filter: blur(10px);
        transform: translate3d(0, 14px, 0) scale(0.96);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.character-archetype {
    min-height: 1.5em;
    margin: 18px 0 25px;
}

.identity-facts {
    position: relative;
    display: grid;
    max-width: 640px;
    grid-template-columns: 0.7fr 1.25fr 1.25fr 0.8fr;
    margin: 0 0 28px;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    box-shadow: inset 0 -1px var(--line);
}

.identity-facts div {
    min-width: 0;
    padding: 14px 14px 13px;
    border-right: 1px solid var(--line);
}

.identity-facts div:first-child {
    padding-left: 0;
}

.identity-facts div:last-child {
    border-right: 0;
}

.identity-facts dt {
    margin-bottom: 4px;
    color: var(--quiet);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.identity-facts dd {
    overflow: hidden;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#characterGuild { display: flex; align-items: center; gap: 6px; }
#characterGuild > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.character-guild-emblem { flex: 0 0 18px; width: 18px; height: 18px; object-fit: contain; filter: brightness(0) invert(1); }
.character-guild-emblem[hidden] { display: none; }

.hero-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.hero-action-group {
    width: max-content;
    max-width: 100%;
}

.showdown-entry {
    display: flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    gap: 7px;
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: color 150ms ease;
}

.showdown-entry:hover {
    color: var(--accent-3);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.showdown-entry:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 4px;
}

.showdown-entry-arrow {
    color: var(--accent-3);
    font-size: 0.95rem;
    transition: transform 150ms ease;
}

.showdown-entry:hover .showdown-entry-arrow {
    transform: translateX(3px);
}

.primary-action,
.secondary-action {
    min-height: 50px;
    border-radius: 12px;
    cursor: pointer;
}

.primary-action {
    position: relative;
    display: block;
    min-width: 230px;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    perspective: 900px;
    text-align: left;
    transition: filter 150ms ease, transform 150ms ease;
}

.primary-action:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.battle-tag-flipper {
    position: absolute;
    inset: 0;
    display: block;
    transform-style: preserve-3d;
    transition: transform 620ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

.primary-action.is-copied .battle-tag-flipper {
    transform: rotateX(180deg);
}

.battle-tag-face {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    padding: 9px 13px 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2) 48%, var(--accent-3));
    background-clip: padding-box;
    box-shadow: 0 14px 35px rgba(var(--accent-2-rgb), 0.25);
    backface-visibility: hidden;
}

.battle-tag-face::after {
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(
        315deg,
        color-mix(in srgb, var(--accent-3) 82%, white 18%) 0%,
        color-mix(in srgb, var(--accent-2) 74%, white 26%) 50%,
        color-mix(in srgb, var(--accent-1) 82%, white 18%) 100%
    );
    content: "";
    opacity: 0.78;
    pointer-events: none;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.battle-tag-back {
    align-content: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 46%),
        linear-gradient(135deg, var(--accent-3), var(--accent-2) 55%, var(--accent-1));
    transform: rotateX(180deg);
}

.button-kicker {
    align-self: end;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.53rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.battle-tag-face strong {
    grid-column: 1;
    font-size: 0.78rem;
}

.copy-icon {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.8);
    background: currentColor;
    -webkit-mask: url("https://droog.uk/housing-images/icons/site-icons-warband.svg?v=20260907") center / contain no-repeat;
    mask: url("https://droog.uk/housing-images/icons/site-icons-warband.svg?v=20260907") center / contain no-repeat;
}

.copy-confirmation {
    display: grid;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    width: 23px;
    height: 23px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    font-size: 0.72rem;
}

.hero-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-social-links a {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.hero-social-links a[hidden] {
    display: none;
}

.hero-social-links a::before {
    width: 23px;
    height: 23px;
    background: currentColor;
    content: "";
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.hero-social-links a[data-link="wow"]::before {
    -webkit-mask-image: url("https://droog.uk/housing-images/icons/site-root-wow.svg?v=20260907");
    mask-image: url("https://droog.uk/housing-images/icons/site-root-wow.svg?v=20260907");
}

.hero-social-links a[data-link="discord"]::before {
    -webkit-mask-image: url("https://droog.uk/housing-images/icons/site-root-discord.svg?v=20260907");
    mask-image: url("https://droog.uk/housing-images/icons/site-root-discord.svg?v=20260907");
}

.hero-social-links a[data-link="wowhead"]::before {
    -webkit-mask-image: url("https://droog.uk/housing-images/icons/site-root-wowhead.svg?v=20260907");
    mask-image: url("https://droog.uk/housing-images/icons/site-root-wowhead.svg?v=20260907");
}

.hero-social-links a[data-link="data"]::before {
    -webkit-mask-image: url("https://droog.uk/housing-images/icons/site-root-da.svg?v=20260907");
    mask-image: url("https://droog.uk/housing-images/icons/site-root-da.svg?v=20260907");
}

.hero-social-links a:hover {
    border-color: rgba(var(--accent-2-rgb), 0.6);
    color: var(--accent-3);
    background: rgba(var(--accent-2-rgb), 0.1);
    transform: translateY(-1px);
}

.secondary-action {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0 17px;
    border: 1px solid var(--line-strong);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.secondary-action:hover {
    border-color: rgba(255, 255, 255, 0.24);
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
}

.headline-stats {
    position: relative;
    display: grid;
    width: min(1180px, calc(100% - 56px));
    grid-template-columns: repeat(4, 1fr);
    margin: 0 auto;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.headline-stats::after {
    position: absolute;
    right: 50%;
    bottom: 0;
    width: 100vw;
    height: 1px;
    background: var(--line);
    content: "";
    transform: translateX(50%);
    pointer-events: none;
}

.stat-tile {
    position: relative;
    display: grid;
    min-height: 128px;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    column-gap: 13px;
    padding: 24px 28px;
    border-right: 1px solid var(--line);
    background: rgba(14, 13, 18, 0.7);
}

.stat-tile:last-child {
    border-right: 0;
}

.tile-label {
    grid-column: 2;
    grid-row: 1;
    color: var(--quiet);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.stat-tile strong {
    grid-column: 2;
    grid-row: 2;
    margin: 5px 0 1px;
    font-family: "Bungee", sans-serif;
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    font-weight: 400;
    line-height: 1;
}

.stat-tile small {
    grid-column: 2;
    grid-row: 3;
    color: var(--quiet);
    font-size: 0.65rem;
}

.highlight-icon {
    display: grid;
    width: 46px;
    height: 46px;
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    place-items: center;
    color: var(--accent-3);
}

.highlight-icon::before {
    width: 36px;
    height: 36px;
}

.dashboard-grid {
    display: grid;
    width: min(1180px, calc(100% - 56px));
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    margin: 28px auto 48px;
}

#characterHero,
#profileHighlights,
#aboutSection,
#statisticsSection,
#professionsSection,
#collectionsSection,
#equipmentSection {
    scroll-margin-top: 82px;
}

.dashboard-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 40%),
        rgba(17, 16, 22, 0.82);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

.dashboard-card[hidden] {
    display: none;
}

.dashboard-card::before {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 100% 0, rgba(var(--accent-2-rgb), 0.1), transparent 18rem);
    content: "";
    pointer-events: none;
}

.story-card {
    grid-column: span 7;
    min-height: 310px;
    padding: 30px;
}

.statistics-card {
    grid-column: span 5;
    min-height: 310px;
    padding: 30px;
}

.professions-section {
    grid-column: 1 / -1;
    padding: 30px;
}

.profession-grid {
    display: grid;
    width: min(100%, 1080px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 auto;
}

.profession-panel {
    min-width: 0;
    min-height: 284px;
    padding: 22px 12px 18px;
    border-color: rgba(var(--accent-2-rgb), 0.18);
    border-radius: 18px;
    background: radial-gradient(ellipse at 50% 25%, rgba(var(--accent-2-rgb), 0.085), transparent 72%), rgba(8, 7, 12, 0.34);
    text-align: center;
}

.profession-panel > * {
    position: relative;
    z-index: 1;
}

.profession-seal {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--accent-3);
}

.profession-seal::before {
    width: 42px;
    height: 42px;
}

.profession-label {
    display: block;
    min-height: 1.4em;
    color: rgba(var(--accent-3-rgb), 0.82);
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profession-ring {
    position: relative;
    width: min(144px, 100%);
    aspect-ratio: 1;
    margin: 16px auto 14px;
}

.profession-ring-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
}

.profession-ring-track {
    stroke: rgba(var(--accent-2-rgb), 0.12);
    stroke-width: 6;
}

.profession-ring-fill {
    stroke-width: 6;
    stroke-linecap: round;
}

.profession-ring-centre {
    position: absolute;
    inset: 18%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 1px solid rgba(var(--accent-3-rgb), 0.08);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, rgba(var(--accent-2-rgb), 0.12), transparent 75%);
}

.profession-skill {
    color: var(--text);
    font: 400 0.63rem/1.1 "Bungee", sans-serif;
    white-space: nowrap;
}

.profession-panel h3 {
    min-height: 2.4em;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 600;
    text-wrap: balance;
}

.profession-tier {
    display: block;
    margin-top: 7px;
    color: var(--accent-3);
    font-size: 0.64rem;
    line-height: 1.35;
}

.profession-panel > small {
    display: block;
    margin-top: 6px;
    color: var(--quiet);
    font-size: 0.54rem;
}

.profession-panel.is-empty .profession-ring-centre,
.profession-panel.has-no-progress .profession-ring-centre {
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--quiet);
    background: rgba(255, 255, 255, 0.02);
}

.profession-panel.is-empty .profession-seal,
.profession-panel.has-no-progress .profession-seal {
    opacity: 0.48;
}

.profession-panel.is-loading {
    animation: profession-loading 1.6s ease-in-out infinite alternate;
}

@keyframes profession-loading {
    from { opacity: 0.58; }
    to { opacity: 0.88; }
}

.collection-card {
    grid-column: 1 / -1;
    min-height: 320px;
    padding: 30px;
}

.equipment-card {
    grid-column: 1 / -1;
    padding: 30px;
}

.card-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.card-kicker {
    color: #a79cc1;
    font-size: 0.58rem;
}

.card-heading h2 {
    margin: 5px 0 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.section-heading-lockup {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.section-heading-copy {
    min-width: 0;
}

.section-title-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(var(--accent-2-rgb), 0.38);
    border-radius: 14px;
    color: var(--accent-3);
    background: linear-gradient(145deg, rgba(var(--accent-1-rgb), 0.19), rgba(var(--accent-3-rgb), 0.07));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
    transition: color 260ms ease, border-color 260ms ease, background 260ms ease;
}

.section-title-icon::before {
    width: 26px;
    height: 26px;
}

.backstory {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0;
    color: #c3bec9;
    font-size: clamp(0.78rem, 1.15vw, 0.9rem);
    line-height: 1.72;
}

.backstory p {
    margin: 0 0 1em;
    white-space: pre-line;
}

.backstory p:last-child {
    margin-bottom: 0;
}

.statistics-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0;
}

.statistics-list div {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 72px;
    grid-template-columns: 50px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 12px;
    padding: 9px 12px 9px 9px;
    overflow: hidden;
    border: 1px solid rgba(var(--accent-2-rgb), 0.34);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(var(--accent-1-rgb), 0.14), transparent 44%),
        rgba(7, 7, 10, 0.35);
    box-shadow: inset 0 1px rgba(var(--accent-3-rgb), 0.09), inset 0 0 20px rgba(0, 0, 0, 0.14);
}

.statistics-list div[hidden] {
    display: none;
}

.dashboard-grid.statistics-hidden .story-card {
    grid-column: 1 / -1;
}

.statistics-list div::after {
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(var(--accent-3-rgb), 0.08);
    border-radius: 8px;
    content: "";
    pointer-events: none;
}

.statistic-emblem {
    position: relative;
    z-index: 1;
    display: grid;
    width: 50px;
    height: 50px;
    grid-row: 1 / span 2;
    place-items: center;
    border: 1px solid rgba(var(--accent-3-rgb), 0.48);
    border-radius: 10px;
    color: var(--accent-3);
    background:
        radial-gradient(circle at 50% 28%, rgba(var(--accent-3-rgb), 0.22), transparent 52%),
        linear-gradient(145deg, rgba(var(--accent-1-rgb), 0.48), rgba(var(--accent-2-rgb), 0.18) 58%, rgba(8, 7, 11, 0.88));
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.22), 0 5px 16px rgba(0, 0, 0, 0.24);
}

.statistic-emblem::before {
    width: 29px;
    height: 29px;
}

.statistic-label {
    position: relative;
    z-index: 1;
    align-self: end;
    color: rgba(var(--accent-3-rgb), 0.72);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.statistics-list strong {
    position: relative;
    z-index: 1;
    align-self: start;
    margin: 0;
    color: var(--text);
    font-family: "Bungee", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

.collection-heading {
    align-items: center;
}

.collection-tabs {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.14);
}

.collection-tabs button {
    padding: 7px 13px;
    border: 0;
    border-radius: 7px;
    color: var(--quiet);
    background: transparent;
    cursor: pointer;
    font-size: 0.67rem;
    font-weight: 600;
}

.collection-tabs button[aria-selected="true"] {
    color: var(--text);
    background: linear-gradient(135deg, rgba(var(--accent-1-rgb), 0.28), rgba(var(--accent-3-rgb), 0.2));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.mount-collection-panel,
.pet-collection-panel,
.mount-library,
.favourite-mounts {
    position: relative;
    z-index: 1;
}

.mount-toolbar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(135px, 0.58fr) minmax(128px, 0.48fr);
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
}

.pet-toolbar {
    grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(118px, 0.48fr));
}

.mount-search {
    display: grid;
    min-width: 0;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
}

.mount-search:focus-within {
    border-color: rgba(var(--accent-2-rgb), 0.48);
    box-shadow: 0 0 0 3px rgba(var(--accent-2-rgb), 0.09);
}

.mount-search svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.7;
    stroke-linecap: round;
}

.mount-search input,
.collection-select select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font: inherit;
    font-size: 0.66rem;
}

.mount-search input::placeholder {
    color: var(--quiet);
}

.mount-search input::-webkit-search-cancel-button {
    filter: invert(1);
    opacity: 0.45;
}

.collection-select {
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    color: var(--quiet);
    background: rgba(255, 255, 255, 0.025);
}

.collection-select {
    display: flex;
    align-items: center;
    padding: 0 9px;
}

.collection-select select {
    color-scheme: dark;
    cursor: pointer;
}

.collection-select select:disabled {
    color: var(--quiet);
    cursor: wait;
}

.collection-subheading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 14px;
}

.collection-subheading p,
.collection-subheading h3 {
    margin: 0;
}

.collection-subheading p {
    margin-bottom: 3px;
    color: rgba(var(--accent-3-rgb), 0.72);
    font-size: 0.49rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.collection-subheading h3 {
    font-family: "Bungee", sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
}

.collection-subheading > span {
    color: var(--quiet);
    font-size: 0.6rem;
}

.favourite-mounts {
    margin-bottom: 30px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.favourite-mount-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.mount-library-heading {
    margin-bottom: 14px;
}

.collection-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    align-items: start;
    gap: 8px;
}

.mount-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.collection-item {
    position: relative;
    z-index: 0;
    display: grid;
    min-width: 0;
    grid-template-rows: auto minmax(46px, auto);
    gap: 0;
    padding: 7px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.045), transparent 46%),
        rgba(255, 255, 255, 0.018);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
    isolation: isolate;
    pointer-events: auto;
    width: 100%;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.collection-item:disabled {
    cursor: default;
}

.collection-item:not(:disabled):hover,
.collection-item:not(:disabled):focus-visible,
.collection-item:not(:disabled).is-hovered {
    z-index: 3;
    border-color: rgba(var(--accent-2-rgb), 0.52);
    background:
        radial-gradient(ellipse at 50% 115%, rgba(var(--accent-2-rgb), 0.24), transparent 58%),
        linear-gradient(150deg, rgba(var(--accent-1-rgb), 0.12), transparent 48%),
        rgba(255, 255, 255, 0.03);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.22),
        0 0 24px rgba(var(--accent-2-rgb), 0.14),
        inset 0 -24px 34px rgba(var(--accent-2-rgb), 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.collection-art {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 11px;
    color: rgba(255, 255, 255, 0.6);
    background:
        radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.16), transparent 34%) padding-box,
        linear-gradient(145deg, rgba(var(--accent-1-rgb), 0.72), rgba(var(--accent-2-rgb), 0.52) 54%, rgba(var(--accent-3-rgb), 0.5)) padding-box,
        linear-gradient(
            315deg,
            color-mix(in srgb, var(--accent-3) 82%, white 18%) 0%,
            color-mix(in srgb, var(--accent-2) 74%, white 26%) 50%,
            color-mix(in srgb, var(--accent-1) 82%, white 18%) 100%
        ) border-box;
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.collection-art::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 48%, rgba(7, 6, 10, 0.58)),
        linear-gradient(145deg, transparent 44%, rgba(0, 0, 0, 0.14));
    content: "";
    pointer-events: none;
}

.collection-art img {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-item:not(:disabled):hover .collection-art img,
.collection-item:not(:disabled):focus-visible .collection-art img,
.collection-item:not(:disabled).is-hovered .collection-art img {
    transform: scale(1.035);
}

.collection-art > span {
    position: relative;
    z-index: 0;
}

.collection-item-copy {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
    align-content: center;
    gap: 2px;
    padding: 8px 5px 5px;
}

.collection-item-badge {
    position: absolute;
    z-index: 4;
    top: 13px;
    right: 13px;
    padding: 4px 7px;
    border: 1px solid rgba(var(--accent-3-rgb), 0.45);
    border-radius: 999px;
    color: var(--text);
    background: rgba(8, 7, 11, 0.78);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
    font-size: 0.42rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.collection-pet-type {
    position: absolute;
    z-index: 4;
    top: 13px;
    left: 13px;
    max-width: calc(100% - 26px);
    padding: 4px 7px;
    overflow: hidden;
    border: 1px solid rgba(var(--accent-3-rgb), 0.45);
    border-radius: 999px;
    color: var(--text);
    background: rgba(8, 7, 11, 0.78);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
    font-size: 0.42rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.collection-pet-type[hidden] {
    display: none;
}

.collection-item.is-favourite {
    border-color: rgba(var(--accent-2-rgb), 0.34);
}

.collection-item.is-unusable .collection-art img {
    filter: saturate(0.45) brightness(0.74);
}

.collection-item.is-unusable small {
    color: var(--quiet);
}

.collection-item.is-loading .collection-art::before {
    position: absolute;
    z-index: 3;
    inset: auto 10px 10px auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 12px rgba(var(--accent-3-rgb), 0.7);
    content: "";
    animation: collection-loading 900ms ease-in-out infinite alternate;
}

@keyframes collection-loading {
    to { opacity: 0.28; }
}

.collection-item strong {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.2em;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.collection-given-name {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 0.56rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-given-name[hidden] {
    display: none;
}

.collection-item small {
    overflow: hidden;
    color: rgba(var(--accent-3-rgb), 0.82);
    font-size: 0.48rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.collection-item.detail-empty {
    grid-template-rows: auto minmax(34px, auto);
}

.collection-item.detail-empty .collection-item-copy {
    padding-top: 6px;
    padding-bottom: 4px;
}

.collection-item.detail-empty strong {
    min-height: 0;
}

.collection-more {
    display: block;
    margin: 20px auto 0;
    padding: 10px 18px;
    border: 1px solid rgba(var(--accent-2-rgb), 0.38);
    border-radius: 10px;
    color: var(--text);
    background: rgba(var(--accent-1-rgb), 0.12);
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 600;
}

.collection-more[hidden] {
    display: none;
}

.collection-more:hover {
    border-color: rgba(var(--accent-3-rgb), 0.58);
    background: rgba(var(--accent-2-rgb), 0.18);
}

.mount-detail-dialog {
    width: min(720px, calc(100% - 32px));
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--accent-2-rgb), 0.38);
    border-radius: 20px;
    color: var(--text);
    background: #121016;
    box-shadow: 0 40px 110px rgba(0, 0, 0, 0.68), 0 0 55px rgba(var(--accent-1-rgb), 0.13);
}

.mount-detail-dialog::backdrop {
    background: rgba(5, 4, 7, 0.8);
    backdrop-filter: blur(7px);
}

.mount-detail-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.1fr);
    min-height: 310px;
}

.mount-detail-close {
    position: absolute;
    z-index: 5;
    top: 14px;
    right: 14px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    color: var(--text);
    background: rgba(8, 7, 11, 0.78);
    cursor: pointer;
    font-size: 1.2rem;
}

.mount-detail-art {
    position: relative;
    display: grid;
    min-height: 310px;
    overflow: hidden;
    place-items: center;
    color: rgba(var(--accent-3-rgb), 0.72);
    background: linear-gradient(145deg, rgba(var(--accent-1-rgb), 0.68), rgba(var(--accent-2-rgb), 0.5), rgba(var(--accent-3-rgb), 0.42));
    font-size: 4.5rem;
}

.mount-detail-art::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(90deg, transparent 58%, #121016 100%);
    content: "";
    pointer-events: none;
}

.mount-detail-art img {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mount-detail-copy {
    display: flex;
    min-width: 0;
    justify-content: center;
    flex-direction: column;
    padding: 52px 42px 38px 34px;
}

.mount-detail-copy > p:first-child {
    margin: 0 0 6px;
    color: rgba(var(--accent-3-rgb), 0.82);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mount-detail-copy h2 {
    margin: 0 0 18px;
    font-family: "Bungee", sans-serif;
    font-size: clamp(1.15rem, 3vw, 1.75rem);
    font-weight: 400;
    line-height: 1.08;
}

.collection-detail-given-name {
    margin: -10px 0 14px;
    color: var(--text);
    font-size: 0.82rem;
}

.collection-detail-given-name[hidden] {
    display: none;
}

#collectionDetailDescription {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.7;
}

.mount-detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 24px;
}

.mount-detail-facts span {
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--quiet);
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.54rem;
}

.mount-detail-facts span.is-usable {
    border-color: var(--accent-1);
    color: #fff;
    background: rgba(var(--accent-1-rgb), 0.72);
    box-shadow: 0 0 18px rgba(var(--accent-1-rgb), 0.18);
}

.collection-empty,
.equipment-empty {
    position: relative;
    z-index: 1;
    margin: 52px 0;
    color: var(--quiet);
    font-size: 0.78rem;
    text-align: center;
}

.equipment-set-summaries {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.equipment-set-card {
    padding: 18px;
    border: 1px solid rgba(var(--accent-2-rgb), 0.34);
    border-radius: 15px;
    background:
        linear-gradient(135deg, rgba(var(--accent-1-rgb), 0.1), transparent 55%),
        rgba(8, 7, 11, 0.42);
}

.equipment-set-card header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.equipment-set-card header span {
    color: rgba(var(--accent-3-rgb), 0.82);
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.equipment-set-card h3 {
    margin: 5px 0 0;
    font-size: 0.92rem;
}

.equipment-set-card header small {
    color: var(--muted);
    font-size: 0.6rem;
    text-align: right;
}

.equipment-set-effects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 15px;
}

.equipment-set-effects p {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    margin: 0;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
}

.equipment-set-effects p > span {
    color: var(--quiet);
    font-size: 0.48rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.equipment-set-effects p > strong {
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 500;
    line-height: 1.45;
}

.equipment-set-effects p.is-active {
    border-color: rgba(var(--accent-3-rgb), 0.34);
    background: rgba(var(--accent-1-rgb), 0.08);
}

.equipment-set-effects p.is-active > span,
.equipment-set-effects p.is-active > strong {
    color: var(--text);
}

.equipment-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 10px;
}

.equipment-row {
    display: grid;
    height: 100%;
    min-width: 0;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    column-gap: 15px;
    row-gap: 10px;
    align-items: center;
    align-content: start;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.028), transparent 48%),
        rgba(8, 7, 11, 0.38);
}

.equipment-slot-icon {
    display: grid;
    width: 60px;
    height: 60px;
    grid-column: 1;
    grid-row: 1;
    place-items: center;
    border: 1px solid rgba(var(--accent-2-rgb), 0.3);
    border-radius: 11px;
    color: rgba(var(--accent-3-rgb), 0.9);
    background:
        linear-gradient(145deg, rgba(var(--accent-2-rgb), 0.15), rgba(var(--accent-1-rgb), 0.04)),
        rgba(8, 7, 11, 0.46);
    box-shadow: inset 0 0 14px rgba(var(--accent-2-rgb), 0.08);
}

.equipment-slot-icon::before {
    width: 40px;
    height: 40px;
}

.equipment-item-copy {
    display: grid;
    height: 60px;
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
    align-content: space-between;
}

.equipment-slot-label {
    color: var(--quiet);
    font-size: 0.54rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.equipment-item-level {
    min-width: 2.2ch;
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    color: var(--text);
    font-family: "Bungee", sans-serif;
    font-size: clamp(2rem, 2.8vw, 2.4rem);
    font-weight: 400;
    line-height: 1;
    text-align: right;
}

.equipment-item-name {
    display: block;
    min-width: 0;
    margin: 0;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.35;
}

.equipment-transmog {
    display: block;
    min-width: 0;
    overflow: hidden;
    margin: 0;
    color: rgba(var(--accent-3-rgb), 0.78);
    font-size: 0.54rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.equipment-transmog.is-empty {
    visibility: hidden;
}

.equipment-set-badge {
    display: inline-block;
    width: max-content;
    max-width: 100%;
    grid-column: 2 / -1;
    overflow: hidden;
    margin-top: 8px;
    padding: 4px 7px;
    border: 1px solid rgba(var(--accent-2-rgb), 0.3);
    border-radius: 999px;
    color: rgba(var(--accent-3-rgb), 0.88);
    background: rgba(var(--accent-1-rgb), 0.08);
    font-size: 0.48rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.equipment-modifiers {
    display: grid;
    gap: 7px;
    grid-column: 1 / -1;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid var(--line);
}

.equipment-modifier {
    display: grid;
    min-width: 0;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 9px;
}

.equipment-modifier > span {
    color: rgba(var(--accent-3-rgb), 0.76);
    font-size: 0.48rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.equipment-modifier > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.58rem;
    line-height: 1.45;
}


.toast {
    position: fixed;
    z-index: 50;
    right: 28px;
    bottom: 28px;
    padding: 11px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    color: var(--text);
    background: rgba(23, 21, 29, 0.94);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.app-shell[data-dashboard-state="loading"] .dashboard {
    opacity: 0.82;
}

noscript {
    position: fixed;
    z-index: 100;
    inset: auto 20px 20px;
    padding: 14px;
    border: 1px solid var(--danger);
    border-radius: 12px;
    background: var(--panel-strong);
}

@media (max-width: 1120px) {

    .hero-grid {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 48px;
        padding-top: 34px;
        padding-bottom: 36px;
        padding-right: 34px;
        padding-left: 34px;
    }

    .avatar-frame {
        width: 210px;
    }

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

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

    html {
        overflow-x: clip;
    }

    body {
        overflow: visible;
    }

    .app-shell {
        display: block;
        min-height: 100dvh;
    }

    .dashboard {
        min-height: 100dvh;
        grid-column: auto;
        overflow: visible;
        padding-top: 0;
    }

    .character-hero,
    .hero-grid {
        min-height: 460px;
    }

    .hero-grid {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 48px;
        padding: 36px 34px 38px;
    }

    .avatar-frame {
        width: 190px;
    }

    .identity-facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .identity-facts div:nth-child(2) {
        border-right: 0;
    }

    .identity-facts div:nth-child(3) {
        padding-left: 0;
    }

    .identity-facts div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .headline-stats,
    .dashboard-grid {
        width: calc(100% - 40px);
    }

    .headline-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-tile:nth-child(2) {
        border-right: 0;
    }

    .stat-tile:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .story-card,
    .statistics-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {

    .character-row {
        padding: 6px;
    }

    .character-hero,
    .hero-grid {
        min-height: auto;
    }

    .hero-backdrop {
        inset: 0;
        background-position: center 20%;
        background-size: cover;
    }

    .character-hero::before {
        background:
            linear-gradient(90deg, rgba(9, 8, 13, 0.9) 0%, rgba(9, 8, 13, 0.3) 18%, rgba(9, 8, 13, 0.3) 82%, rgba(9, 8, 13, 0.9) 100%),
            linear-gradient(0deg, var(--bg) 0%, rgba(9, 8, 13, 0.08) 48%, rgba(9, 8, 13, 0.48) 100%),
            radial-gradient(circle at 50% 20%, rgba(var(--accent-1-rgb), 0.26), transparent 30rem);
    }

    .hero-grid {
        display: block;
        padding: 86px 20px 34px;
    }

    .avatar-frame {
        width: min(218px, 70vw);
        margin: 0 auto 28px;
    }

    .identity-route {
        justify-content: center;
        margin-bottom: 10px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy h1 {
        margin-left: 0;
        font-size: clamp(3.2rem, 17vw, 5.2rem);
    }

    .character-archetype {
        margin: 16px auto 24px;
    }

    .identity-facts {
        text-align: left;
    }

    .hero-actions {
        display: flex;
        width: 100%;
        align-items: stretch;
        justify-content: center;
        gap: 8px;
    }

    .hero-action-group {
        width: 100%;
    }

    .showdown-entry {
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .primary-action {
        width: auto;
        min-width: 0;
        max-width: 190px;
        flex: 1 1 150px;
    }

    .hero-social-links {
        flex: 0 0 auto;
        justify-content: center;
        gap: 6px;
    }

    .hero-social-links a {
        width: 44px;
        height: 48px;
    }

    .hero-social-links a::before {
        width: 20px;
        height: 20px;
    }

    .battle-tag-face {
        grid-template-columns: minmax(0, 1fr) 19px;
        padding-right: 9px;
        padding-left: 11px;
    }

    .battle-tag-face strong {
        font-size: 0.7rem;
    }

    .button-kicker {
        font-size: 0.48rem;
    }

    .headline-stats,
    .dashboard-grid {
        width: calc(100% - 28px);
    }


    .stat-tile {
        min-height: 108px;
        grid-template-columns: 38px minmax(0, 1fr);
        column-gap: 9px;
        padding: 16px;
    }

    .highlight-icon {
        width: 38px;
        height: 38px;
    }

    .highlight-icon::before {
        width: 30px;
        height: 30px;
    }

    .dashboard-grid {
        margin-top: 18px;
    }

    .story-card,
    .statistics-card,
    .collection-card,
    .equipment-card {
        padding: 22px;
    }

    .profession-panel {
        min-height: 0;
        padding: 16px 9px;
    }

    .professions-section {
        padding: 22px;
    }

    .profession-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .profession-ring {
        width: min(132px, 100%);
        margin-top: 12px;
    }

    .profession-seal {
        width: 42px;
        height: 42px;
    }

    .profession-seal::before {
        width: 36px;
        height: 36px;
    }

    .profession-skill {
        font-size: 0.54rem;
    }

    .profession-panel h3 {
        font-size: 0.72rem;
    }

    .card-heading {
        margin-bottom: 24px;
    }

    .collection-heading {
        display: grid;
    }

    .collection-tabs {
        width: 100%;
    }

    .collection-tabs button {
        flex: 1;
    }

    .mount-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(120px, 0.55fr);
    }

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

    .mount-search {
        grid-column: 1 / -1;
    }

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

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

    .equipment-list {
        grid-template-columns: 1fr;
    }

    .equipment-set-card header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .equipment-set-card header small {
        text-align: left;
    }

    .equipment-set-effects {
        grid-template-columns: 1fr;
    }

    .collection-item {
        padding: 6px;
        border-radius: 13px;
    }

    .collection-art {
        border-radius: 9px;
    }

    .collection-item-copy {
        padding: 9px 5px 6px;
    }

    .statistics-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .statistics-list div {
        min-height: 66px;
        grid-template-columns: 42px minmax(0, 1fr);
        column-gap: 8px;
        padding: 7px 8px 7px 7px;
    }

    .statistic-emblem {
        width: 42px;
        height: 42px;
        border-radius: 9px;
    }

    .statistic-emblem::before {
        width: 24px;
        height: 24px;
    }

    .statistic-label {
        font-size: 0.5rem;
        letter-spacing: 0.07em;
    }

    .statistics-list strong {
        font-size: clamp(0.7rem, 3.8vw, 0.88rem);
    }

    .toast {
        right: 14px;
        bottom: 14px;
        left: 14px;
        text-align: center;
    }
    .mount-toolbar {
        grid-template-columns: 1fr 1fr;
        margin-bottom: 24px;
    }

    .pet-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .pet-toolbar .collection-sort-select {
        grid-column: 1 / -1;
    }

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

    .collection-subheading {
        align-items: start;
        flex-direction: column;
        gap: 6px;
    }

    .mount-detail-layout {
        grid-template-columns: 1fr;
    }

    .mount-detail-art {
        min-height: 210px;
    }

    .mount-detail-art::after {
        background: linear-gradient(180deg, transparent 54%, #121016 100%);
    }

    .mount-detail-copy {
        padding: 28px 24px 30px;
    }
}

@media (max-width: 360px) {
    .hero-actions {
        gap: 6px;
    }

    .hero-social-links {
        gap: 4px;
    }

    .hero-social-links a {
        width: 38px;
        height: 46px;
    }

    .battle-tag-face {
        padding-right: 7px;
        padding-left: 9px;
    }

    .battle-tag-face strong {
        font-size: 0.64rem;
    }
}
