#app {
    padding: 1.25rem clamp(1rem, 3vw, 2rem);
    max-width: min(1024px, 94vw);
    margin: 0 auto;
    box-sizing: border-box;
}

body.aura-page {
    overflow-x: hidden;
    overflow-y: auto;
}

.aura-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    margin-bottom: 0;
    width: 100%;
}

.aura-divider {
    width: 100%;
    margin: 0;
    border: 0;
    border-top: 1px solid #333;
    opacity: 0.9;
}

.aura-sprite-wrap {
    position: relative;
    width: 100%;
    max-width: none;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: stretch;
}

@media (min-width: 768px) {
    .aura-hero {
        gap: 1.75rem;
    }
}

.aura-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .aura-panel-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1.5rem;
        align-items: start;
    }
}

.aura-sprite {
    position: relative;
    z-index: 1;
    width: 72%;
    max-width: 72%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: contain;
}

.aura-procedural {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
}

.aura-hero__info {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    justify-self: stretch;
    --aura-chrome: linear-gradient(
        165deg,
        #4a4a52 0%,
        #8a8a94 16%,
        #c8c8d0 32%,
        #f4f4f8 46%,
        #ffffff 50%,
        #d0d0d8 54%,
        #9898a2 68%,
        #6a6a72 84%,
        #424248 100%
    );
    --aura-chrome-soft: linear-gradient(
        165deg,
        #5a5a62 0%,
        #909098 28%,
        #d8d8de 46%,
        #ececf0 50%,
        #a8a8b0 72%,
        #686870 100%
    );
    --aura-chrome-shadow: 0 1px 0 rgba(255, 255, 255, 0.22),
        0 2px 2px rgba(0, 0, 0, 0.55),
        0 4px 10px rgba(0, 0, 0, 0.42);
    --aura-chrome-shadow-strong: 0 1px 0 rgba(255, 255, 255, 0.32),
        0 2px 3px rgba(0, 0, 0, 0.7),
        0 5px 14px rgba(0, 0, 0, 0.55),
        0 10px 28px rgba(0, 0, 0, 0.38);
}

.aura-hero__info h1,
.aura-hero__info > .concept-meta,
.aura-hero__info .aura-xp-ratio,
.aura-hero__info .aura-xp-label,
.aura-hero__info .aura-xp-meta {
    background-image: var(--aura-chrome);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--aura-chrome-shadow);
}

.aura-hero__info > .concept-meta,
.aura-hero__info .aura-xp-label,
.aura-hero__info .aura-xp-meta {
    background-image: var(--aura-chrome-soft);
    opacity: 1;
}

.aura-hero__info h1,
.aura-hero__info .aura-xp-ratio {
    text-shadow: var(--aura-chrome-shadow-strong);
}

.aura-hero__info h1,
.aura-hero__info p,
.aura-hero__info .aura-xp-line {
    width: 100%;
    max-width: none;
    text-align: center;
}

.aura-hero h1 {
    font-size: clamp(1.85rem, 4.5vw + 0.5rem, 2.85rem);
    line-height: 1.08;
    margin: 0 0 0.35rem;
}

.aura-hero__info > .concept-meta {
    font-size: clamp(1.05rem, 2.2vw + 0.4rem, 1.5rem);
    line-height: 1.45;
    margin: 0;
}

.aura-xp-line {
    margin-top: 0.65rem;
    font-size: clamp(1rem, 1.8vw + 0.35rem, 1.25rem);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem 0.5rem;
}

.aura-xp-ratio {
    font-size: clamp(1.6rem, 3.8vw + 0.4rem, 2.5rem);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.aura-xp-ratio strong {
    font-weight: 700;
}

.aura-xp-sep,
.aura-xp-max {
    background-image: var(--aura-chrome-soft);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--aura-chrome-shadow);
}

.aura-xp-sep {
    margin: 0 0.1rem;
    font-weight: 400;
}

.aura-xp-max {
    font-weight: 500;
}

.aura-xp-label {
    font-size: clamp(0.9rem, 1.4vw + 0.3rem, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.aura-xp-meta {
    flex: 1 1 100%;
    font-size: clamp(0.95rem, 1.6vw + 0.3rem, 1.2rem);
    text-align: center;
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 480px) {
    .grid-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-stats article {
    background: #1a1a22;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.75;
}

.aura-panel-grid,
.aura-recent {
    margin-bottom: 1.25rem;
}

.aura-panel-grid .aura-detail-summary,
.aura-panel-grid .aura-titles {
    margin-bottom: 0;
}

.aura-detail-summary {
    background: #1a1a22;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
}

.aura-detail-summary__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    cursor: pointer;
    list-style: none;
    font-size: 1rem;
    font-weight: 600;
}

.aura-detail-summary__head::-webkit-details-marker {
    display: none;
}

.aura-detail-summary__head::before {
    content: "▸";
    display: inline-block;
    margin-right: 0.35rem;
    opacity: 0.65;
    transition: transform 0.15s ease;
}

.aura-detail-summary[open] .aura-detail-summary__head::before {
    transform: rotate(90deg);
}

.aura-detail-summary__hint {
    font-weight: 400;
    font-size: 0.8rem;
}

.aura-detail-summary__note {
    margin: 0.65rem 0 0;
    font-size: 0.8rem;
}

.aura-titles h2,
.aura-recent h2 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.aura-titles__group {
    margin-bottom: 0.85rem;
}

.aura-titles__group:last-child {
    margin-bottom: 0;
}

.aura-titles__subtitle {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.7;
}

.aura-titles__group--unlocked .aura-titles__subtitle {
    color: #9fd89f;
}

.aura-titles__group--locked .aura-titles__subtitle {
    color: #b0b0b8;
}

.aura-titles__empty {
    list-style: none;
    font-size: 0.85rem;
}

.aura-elements__list {
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.aura-element {
    display: grid;
    grid-template-columns: 5.5rem 1fr 2rem;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
    cursor: help;
}

@media (min-width: 768px) {
    .aura-element {
        grid-template-columns: 6.5rem 1fr 2.5rem;
        font-size: 0.9rem;
    }

    .aura-titles__list {
        gap: 0.55rem 1rem;
    }
}

.aura-element[title]:hover .aura-element__name {
    text-decoration: underline dotted;
    text-underline-offset: 0.15em;
}

.aura-element--idle {
    opacity: 0.45;
}

.aura-element__name {
    text-transform: capitalize;
}

.aura-element__bar {
    display: block;
    height: 0.45rem;
    border-radius: 999px;
    background: #2a2a34;
    position: relative;
    overflow: hidden;
}

.aura-element__bar::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--fill, 0%);
    background: var(--color, #666);
    border-radius: inherit;
    transition: width 0.3s ease;
}

.aura-element__value {
    text-align: right;
    font-variant-numeric: tabular-nums;
    opacity: 0.85;
}

.aura-titles__list {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.aura-titles__list--locked {
    opacity: 0.55;
}

.aura-titles__list li {
    white-space: nowrap;
}

.aura-title-item {
    cursor: help;
    border-bottom: 1px dotted transparent;
    transition: border-color 0.15s ease, opacity 0.15s ease;
}

.aura-title-item[title]:hover {
    border-bottom-color: currentColor;
}

.aura-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1rem 1.5rem;
    margin-bottom: max(100px, 8vh);
}

.aura-btn-skilltree {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: min(100%, 14rem);
    padding: 1rem 2.25rem;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e4eaff;
    cursor: pointer;
    border: 1px solid #5a7fd4;
    border-radius: 10px;
    background: linear-gradient(160deg, #222a42 0%, #141a2e 48%, #1a2240 100%);
    box-shadow:
        0 0 0 1px rgba(122, 170, 255, 0.12) inset,
        0 4px 24px rgba(40, 72, 160, 0.35),
        0 12px 40px rgba(0, 0, 0, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.aura-btn-skilltree:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    border-color: #7aaaff;
    box-shadow:
        0 0 0 1px rgba(180, 210, 255, 0.2) inset,
        0 6px 28px rgba(74, 130, 255, 0.45),
        0 16px 48px rgba(0, 0, 0, 0.5);
}

.aura-btn-skilltree:active {
    transform: translateY(-1px);
}

.aura-btn-skilltree__icon {
    font-size: 1.35rem;
    line-height: 1;
    color: #8ab4ff;
    text-shadow: 0 0 12px rgba(122, 170, 255, 0.65);
    margin-bottom: 0.15rem;
}

.aura-btn-skilltree__text {
    font-size: 1.05rem;
    line-height: 1.2;
}

.aura-btn-skilltree__sub {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: none;
    opacity: 0.72;
    color: #a8bce8;
}

.btn-link {
    background: none;
    border: none;
    color: #7af;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
    padding: 0;
}
