:root {
    --background: #07080d;
    --surface: rgba(255, 255, 255, 0.055);
    --surface-strong: rgba(255, 255, 255, 0.09);
    --border: rgba(255, 255, 255, 0.10);
    --text: #ffffff;
    --secondary-text: rgba(255, 255, 255, 0.66);
    --faint-text: rgba(255, 255, 255, 0.42);
    --purple: #846dff;
    --purple-soft: rgba(132, 109, 255, 0.24);
    --success: #62d28f;
    --warning: #ffcd70;
    --maximum-width: 1180px;
}

:root {
    --manavult-red: #F3455E;
    --manavult-green: #49C56A;
    --manavult-orange: #F6C631;
    --manavult-blue: #2990F1;
    --manavult-black: #020201;

    --manavult-aura:
        radial-gradient(
            circle at 12% 8%,
            rgba(73, 197, 106, 0.22),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 12%,
            rgba(246, 198, 49, 0.24),
            transparent 30%
        ),
        radial-gradient(
            circle at 12% 92%,
            rgba(243, 69, 94, 0.22),
            transparent 32%
        ),
        radial-gradient(
            circle at 88% 90%,
            rgba(41, 144, 241, 0.24),
            transparent 34%
        ),
        radial-gradient(
            circle at 50% 48%,
            rgba(2, 2, 1, 0.12),
            rgba(2, 2, 1, 0.92) 68%,
            rgba(2, 2, 1, 1) 100%
        );

    --manavult-aura-light:
        radial-gradient(circle at 20% 15%, rgba(73, 197, 106, 0.16), transparent 32%),
        radial-gradient(circle at 85% 20%, rgba(246, 198, 49, 0.15), transparent 34%),
        radial-gradient(circle at 18% 86%, rgba(243, 69, 94, 0.15), transparent 35%),
        radial-gradient(circle at 88% 88%, rgba(41, 144, 241, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
        var(--manavult-black);

    --manavult-aura-soft:
        radial-gradient(circle at 18% 12%, rgba(73, 197, 106, 0.03), transparent 46%),
        radial-gradient(circle at 86% 16%, rgba(246, 198, 49, 0.04), transparent 48%),
        radial-gradient(circle at 16% 88%, rgba(243, 69, 94, 0.05), transparent 50%),
        radial-gradient(circle at 88% 88%, rgba(41, 144, 241, 0.02), transparent 52%),
        linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.014)),
        var(--manavult-black);
    }

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                 "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--background);
}

body::before {
    content: "";
    position: fixed;

    top: -560px;
    left: 50%;

    width: min(1400px, 145vw);
    height: min(1400px, 145vw);

    background-image: url("../assets/ManaVault_Background_Black.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 50%;

    -webkit-mask-image: radial-gradient(
        circle,
        black 0%,
        black 35%,
        rgba(0, 0, 0, 0.85) 48%,
        rgba(0, 0, 0, 0.35) 62%,
        transparent 73%
    );

    mask-image: radial-gradient(
        circle,
        black 0%,
        black 35%,
        rgba(0, 0, 0, 0.85) 48%,
        rgba(0, 0, 0, 0.35) 62%,
        transparent 73%
    );

    filter: blur(48px) saturate(1.4) brightness(1.06);

    opacity: 0;
    transform: translateX(-50%) scale(0.7);

    transition:
        opacity 1200ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 1700ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 1500ms ease;

    pointer-events: none;
    z-index: 0;
}

body.has-loaded-atmosphere::before {
    opacity: 0.52;
    transform: translateX(-50%) scale(1);
    filter: blur(56px) saturate(1.45) brightness(1.08);
}


body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(
            circle at 50% 10%,
            transparent 0%,
            rgba(7, 8, 13, 0.12) 34%,
            rgba(7, 8, 13, 0.76) 74%,
            var(--background) 100%
        ),

        radial-gradient(
            circle at 80% 70%,
            rgba(45, 106, 255, 0.06),
            transparent 30%
        );

    pointer-events: none;
    z-index: 0;
}

/* LOADING */

.loading-page {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.manavult-loader {
    width: 200px;
    height: 200px;
    filter:
        brightness(0)
        invert(1)
        brightness(1.4);
}

.loading-message {
    margin: 0;
    color: var(--secondary-text);
    font-size: 0.9rem;
    font-weight: 700;
}

/* MANA VULT FOOTER */
#footer {
    position: relative;
    z-index: 20;
    width: 100%;
    margin-top: 80px;
}

#footer .manavult-footer,
#footer .manavult-footer * {
    box-sizing: border-box;
}

#footer .manavult-footer {
    width: 100%;
    color: rgba(255, 255, 255, 0.72);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.33337;
}

#footer .manavult-footer-inner {
    width: min(980px, calc(100% - 44px));
    margin: 0 auto;
    padding: 34px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

#footer .footer-directory {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 34px;
    padding-bottom: 34px;
}

#footer .footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

#footer .footer-column h3 {
    margin: 0 0 3px;
    padding: 0;
    color: rgba(255, 255, 255, 0.478);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.33337;
    letter-spacing: 0;
}

#footer .footer-brand-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

#footer .footer-app-icon {
    margin-bottom: 12px;
}

#footer .footer-app-brand {
    display: block;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

#footer .footer-app-icon {
    width: 75px;
    height: 75px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow:
        0 1px 1px rgba(255, 255, 255, 0.18) inset,
        0 10px 24px rgba(0, 0, 0, 0.22);
}

#footer .footer-app-brand h3 {
    margin: 0 0 3px;
    color: rgba(255, 255, 255, 0.96);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

#footer .footer-app-brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    line-height: 1.35;
}

#footer .footer-app-link {
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

#footer .footer-app-link:hover {
    color: #ffffff;
}

/* Clickable footer links */
#footer .footer-column a,
#footer .footer-shop-line a,
#footer .footer-legal-links a {
    color: rgba(255, 255, 255, 0.96);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.33337;
    text-decoration: none;
    transition:
        color 160ms ease,
        opacity 160ms ease,
        text-decoration-color 160ms ease;
}

#footer .footer-column a:hover,
#footer .footer-shop-line a:hover,
#footer .footer-legal-links a:hover {
    color: #ffffff;
    text-decoration: none;
    text-decoration-color: rgba(255, 255, 255, 0.75);
}

#footer .footer-shop-line {
    padding: 14px 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.58);
}

#footer .footer-shop-line p {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 400;
}

#footer .footer-bottom {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-top: 16px;
    color: rgba(255, 255, 255, 0.52);
}

#footer .footer-bottom p {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    font-weight: 400;
}

#footer .footer-legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

#footer .footer-legal-links span {
    color: rgba(255, 255, 255, 0.26);
    font-size: 12px;
    font-weight: 400;
}

#footer .footer-region {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.52);
}

#footer .footer-disclaimer {
    max-width: 980px;
    margin: 12px 0 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
}

/* Mobile */
@media (max-width: 760px) {
    #footer .manavult-footer-inner {
        width: calc(100% - 36px);
        padding-top: 28px;
    }

    #footer .footer-directory {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 20px;
    }

    #footer .footer-brand-column {
        padding: 13px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    #footer .footer-column {
        padding: 13px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
        gap: 9px;
    }

    #footer .footer-bottom {
        display: block;
    }

    #footer .footer-legal-links {
        margin-top: 8px;
    }

    #footer .footer-region {
        margin-top: 8px;
        margin-left: 0;
    }
}
/* LEGAL PAGES */

.legal-page {
    width: min(920px, calc(100% - 48px));
    min-height: calc(100vh - 140px);
    margin: 0 auto;
    padding: 58px 0 96px;
}

.legal-hero {
    max-width: 820px;
    margin-bottom: 48px;
}

.legal-hero h1 {
    margin: 10px 0 18px;
    font-size: clamp(46px, 8vw, 86px);
    line-height: 0.95;
    letter-spacing: -0.075em;
}

.legal-hero > p {
    max-width: 720px;
    color: var(--secondary-text);
    font-size: clamp(1rem, 2vw, 1.16rem);
    line-height: 1.65;
}

.legal-updated {
    margin-top: 18px;
    color: var(--faint-text) !important;
    font-size: 0.9rem !important;
    font-weight: 700;
}

.legal-updated span {
    color: var(--text);
}

.legal-document {
    display: grid;
    gap: 22px;
}

.legal-document section {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.022)
        );
}

.legal-document h2 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: clamp(1.25rem, 3vw, 1.7rem);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.legal-document h3 {
    margin: 20px 0 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    letter-spacing: -0.025em;
}

.legal-document p {
    margin: 0;
    color: var(--secondary-text);
    font-size: 0.96rem;
    line-height: 1.72;
}

.legal-document p + p {
    margin-top: 14px;
}

.legal-document ul {
    display: grid;
    gap: 9px;
    margin: 16px 0;
    padding-left: 20px;
    color: var(--secondary-text);
}

.legal-document li {
    line-height: 1.55;
}

.legal-document strong {
    color: rgba(255, 255, 255, 0.92);
}

.legal-document a {
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.legal-document a:hover {
    text-decoration: underline;
}

@media (max-width: 540px) {
    .legal-page {
        width: calc(100% - 28px);
        padding-top: 38px;
    }

    .legal-document section {
        padding: 20px;
        border-radius: 21px;
    }
}

/* MANAVULT AURA BACKGROUND VARIANTS */

.manavult-aura {
    background: var(--manavult-aura);
    background-size: cover;
    background-position: center;
}

.manavult-aura-soft {
    background: var(--manavult-aura-soft);
    background-size: cover;
    background-position: center;
}

@media (prefers-reduced-motion: reduce) {
    body::before {
        opacity: 0.48;
        transform: translateX(-50%) scale(1);
        transition: none;
    }
}

#app {
    position: relative;
    z-index: 1;
}

a {
    color: inherit;
}

#navigation {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navigation {
    width: min(var(--maximum-width), calc(100% - 48px));
    height: 76px;
    position: relative;

    z-index: 1001;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 40px;
    width: auto;
    display: block;
}

.made-by {
    color: var(--secondary-text);
    font-size: 14px;
}

.home-page {
    width: min(var(--maximum-width), calc(100% - 48px));
    min-height: calc(100vh - 140px);
    margin: 0 auto;
    padding: 62px 0 92px;
}

.hero {
    max-width: 850px;
    margin: 30px auto 68px;
    text-align: center;
}

.release-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    margin-bottom: 28px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--secondary-text);
    font-size: 14px;
    backdrop-filter: blur(18px);
}

.release-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 0 0 14px var(--purple);
}

.hero h1 {
    margin-bottom: 25px;
    font-size: clamp(52px, 9vw, 104px);
    line-height: 0.95;
    letter-spacing: -0.078em;
}

.hero-gradient {
    background: linear-gradient(105deg, #ffffff 8%, var(--manavult-blue), var(--manavult-green), var(--manavult-orange), var(--manavult-red) 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 650px;
    margin: 0 auto 44px;
    color: var(--secondary-text);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.6;
}

.search-panel {
    max-width: 710px;
    margin: 0 auto;
}

.search-title {
    margin-bottom: 15px;
    color: var(--secondary-text);
    font-size: 14px;
    text-align: left;
}

.search-form {
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    backdrop-filter: blur(20px);
}

.search-input {
    flex: 1;
    min-width: 0;
    padding: 16px 16px;
    border: none;
    outline: none;
    color: var(--text);
    background: transparent;
    font: inherit;
    font-size: 16px;
}

.search-input::placeholder {
    color: var(--faint-text);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 25px;
    border: none;
    border-radius: 15px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.button-primary {
    color: #080910;
    background: #ffffff;
}

.button-search-primary {
    border-radius: 999px;
}

.button-secondary {
    color: var(--text);
    border: 1px solid var(--border);
    background: var(--surface);
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.card-actions .button {
    flex: 1 1 180px;
    min-width: 0;
}

@media (max-width: 540px) {
    .card-actions .button {
        flex-basis: 100%;
        width: 100%;
    }
}

.search-state {
    margin-top: 28px;
}

.search-message {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--secondary-text);
    text-align: center;
    background: var(--surface);
}

.results-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}

.results-header h2 {
    font-size: 22px;
    letter-spacing: -0.045em;
}

.results-header p {
    color: var(--faint-text);
    font-size: 14px;
}

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

.search-card {
    display: block;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 19px;
    text-decoration: none;
    background: transparent;
    transition: background 0.2s ease, border-color 0.2s ease,
                transform 0.2s ease;
}

.search-card:hover {
    border-color: var(--border);
    background: var(--surface);
    transform: translateY(-3px);
}

.search-card img {
    display: block;
    width: 100%;
    aspect-ratio: 488 / 680;
    object-fit: cover;
    border-radius: 12px;
    background: var(--surface);
}

.search-card h3 {
    margin-top: 12px;
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    letter-spacing: -0.025em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.search-card p {
    margin-top: 5px;
    overflow: hidden;
    color: var(--secondary-text);
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.card-page {
    width: min(1100px, calc(100% - 48px));
    min-height: calc(100vh - 140px);
    margin: 0 auto;
    padding: 46px 0 90px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 35px;
    color: var(--secondary-text);
    font-size: 14px;
    text-decoration: none;
}

.back-link:hover {
    color: var(--text);
}

.card-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 460px) minmax(280px, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.mana-card-column {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

@media (max-width: 900px) {
    .card-detail-layout {
        grid-template-columns: 1fr;
    }
}

.card-image {
    display: block;
    width: 100%;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
}

.card-information {
    padding-top: 10px;
}

.card-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.card-statsMana-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.card-information h1 {
    margin-bottom: 9px;
    font-size: clamp(34px, 5vw, 49px);
    line-height: 1.04;
    letter-spacing: -0.065em;
}

.mana-cost {
    flex-shrink: 0;
    margin-top: 10px;
    color: var(--secondary-text);
    font-size: 55px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.mana-symbol {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.12em;
    margin: 0 0.06em;
    object-fit: contain;
}

.mana-cost .mana-symbol {
    width: 1.25em;
    height: 1.25em;
    padding: 0.14em;
    margin: 0;
    display: inline-block;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    filter: none;
    transform: scale(0.96);
    transition:
        background 520ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 520ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 520ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mana-cost.has-mana-colours .mana-symbol {
    transform: scale(1);
}

.mana-cost.has-mana-colours .mana-symbol-white {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 0 18px rgba(255, 255, 255, 0.06),
        0 0 18px rgba(255, 255, 255, 0.12);
}

.mana-cost.has-mana-colours .mana-symbol-blue {
    border-color: rgba(96, 165, 250, 0.36);
    background: rgba(37, 99, 235, 0.12);
    box-shadow:
        inset 0 0 18px rgba(37, 99, 235, 0.06),
        0 0 18px rgba(96, 165, 250, 0.14);
}

.mana-cost.has-mana-colours .mana-symbol-black {
    border-color: rgba(148, 163, 184, 0.30);
    background: rgba(15, 23, 42, 0.42);
    box-shadow:
        inset 0 0 18px rgba(148, 163, 184, 0.05),
        0 0 18px rgba(15, 23, 42, 0.28);
}

.mana-cost.has-mana-colours .mana-symbol-red {
    border-color: rgba(248, 113, 113, 0.36);
    background: rgba(239, 68, 68, 0.12);
    box-shadow:
        inset 0 0 18px rgba(239, 68, 68, 0.06),
        0 0 18px rgba(248, 113, 113, 0.14);
}

.mana-cost.has-mana-colours .mana-symbol-green {
    border-color: rgba(74, 222, 128, 0.36);
    background: rgba(22, 163, 74, 0.12);
    box-shadow:
        inset 0 0 18px rgba(22, 163, 74, 0.06),
        0 0 18px rgba(74, 222, 128, 0.14);
}

.mana-cost.has-mana-colours .mana-symbol-default {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.10);
}

.mana-cost.has-mana-colours .mana-symbol-white {
    filter: brightness(0) invert(0.8);
}

.mana-cost.has-mana-colours .mana-symbol-blue {
    filter: sepia(1) saturate(2.8) hue-rotate(170deg) brightness(1.12);
}

.mana-cost.has-mana-colours .mana-symbol-black {
    filter: brightness(0.72) saturate(0.9) contrast(1.22);
}

.mana-cost.has-mana-colours .mana-symbol-red {
    filter: sepia(1) saturate(3.2) hue-rotate(315deg) brightness(1.08);
}

.mana-cost.has-mana-colours .mana-symbol-green {
    filter: sepia(1) saturate(2.6) hue-rotate(78deg) brightness(1.02);
}

.mana-cost.has-mana-colours .mana-symbol-default {
    filter: none;
}

.type-line {
    margin-bottom: 30px;
    color: var(--secondary-text);
    font-size: 17px;
}

.oracle-box {
    padding: 23px;
    margin-bottom: 26px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.oracle-text {
    white-space: pre-line;
    font-size: 16px;
    line-height: 1.65;
}

.oracle-text .mana-symbol {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.12em;
    margin: 0 0.06em;
    object-fit: contain;
}

.stats {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 43.75px;
    min-width: 62px;
    padding: 0 14px;
    margin: 0;

    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);

    color: var(--secondary-text);
    font-size: 25px;
    font-weight: 600;
    line-height: 1;
}

.card-metadata {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.metadata-item {
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.metadata-label {
    display: block;
    margin-bottom: 7px;
    color: var(--faint-text);
    font-size: 12px;
}

.metadata-value {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.loading-page,
.error-page {
    width: min(900px, calc(100% - 48px));
    min-height: calc(100vh - 140px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(255, 255, 255, 0.14);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.error-page h1 {
    margin-bottom: 12px;
    font-size: clamp(32px, 6vw, 54px);
    letter-spacing: -0.065em;
}

.error-page p {
    max-width: 490px;
    margin-bottom: 30px;
    color: var(--secondary-text);
    line-height: 1.55;
}

.footer {
    width: min(var(--maximum-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 27px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--faint-text);
    font-size: 13px;
    text-align: center;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

    .card-detail-layout {
        display: block;
    }

    .card-image {
        max-width: 370px;
        margin: 0 auto 42px;
    }

    .card-information {
        padding-top: 0;
    }
}

@media (max-width: 540px) {
    .navigation,
    .home-page,
    .card-page,
    .footer {
        width: calc(100% - 28px);
    }

    .hero {
        margin-top: 12px;
        margin-bottom: 46px;
    }

    .search-form {
        display: block;
    }

    .search-form .button {
        width: 100%;
    }

    .card-grid {
        gap: 9px;
    }

    .search-card {
        padding: 6px;
    }

    .card-heading-row {
        display: block;
    }

    .mana-cost {
        margin: 0;
    }

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

    .card-actions .button {
        width: 100%;
    }

    .card-statsMana-row {
        gap: 12px;
        margin-bottom: 22px;
    }

    #active-card-mana-cost {
        font-size: 31px;
        gap: 4px;
    }

    .stats {
        height: 40px;
        min-width: 58px;
        padding: 0 13px;
        font-size: 23px;
    }
}

.result-section + .result-section {
    margin-top: 42px;
}

.set-results {
    display: grid;
    gap: 11px;
    margin-bottom: 38px;
}

.set-result-card {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: var(--surface);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease,
                border-color 0.2s ease;
}

.set-result-card:hover {
    transform: translateY(-2px);
    background: var(--surface-strong);
    border-color: rgba(255, 255, 255, 0.16);
}

.set-icon-container {
    width: 53px;
    height: 53px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
}

.set-icon {
    width: 29px;
    height: 29px;
    filter: invert(1);
    opacity: 0.86;
}

.set-result-information {
    flex: 1;
    min-width: 0;
}

.set-result-information h3 {
    margin-bottom: 5px;
    font-size: 16px;
    letter-spacing: -0.035em;
}

.set-result-information p {
    overflow: hidden;
    color: var(--secondary-text);
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.set-result-chevron {
    flex-shrink: 0;
    padding-right: 4px;
    color: var(--faint-text);
    font-size: 18px;
}

.set-page {
    width: min(var(--maximum-width), calc(100% - 48px));
    min-height: calc(100vh - 140px);
    margin: 0 auto;
    padding: 46px 0 92px;
}

.set-header {
    display: flex;
    align-items: center;
    gap: 27px;
    margin-bottom: 60px;
}

.large-set-icon-container {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
}

.large-set-icon {
    width: 56px;
    height: 56px;
    filter: invert(1);
    opacity: 0.92;
}

.set-heading .set-label {
    margin-bottom: 9px;
    color: var(--purple);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.set-heading h1 {
    margin-bottom: 11px;
    font-size: clamp(39px, 6vw, 61px);
    line-height: 1;
    letter-spacing: -0.07em;
}

.set-heading > p:last-child {
    color: var(--secondary-text);
    font-size: 16px;
}

.set-card-section .results-header {
    margin-bottom: 24px;
}

@media (max-width: 540px) {
    .set-page {
        width: calc(100% - 36px);
    }

    .set-header {
        display: block;
        margin-bottom: 43px;
    }

    .large-set-icon-container {
        width: 78px;
        height: 78px;
        margin-bottom: 25px;
        border-radius: 22px;
    }

    .large-set-icon {
        width: 42px;
        height: 42px;
    }

    .set-result-card {
        padding: 12px;
        gap: 13px;
    }

    .set-icon-container {
        width: 47px;
        height: 47px;
    }
}

.metadata-link {
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease,
                border-color 0.2s ease;
}

.metadata-link:hover {
    transform: translateY(-2px);
    background: var(--surface-strong);
    border-color: rgba(255, 255, 255, 0.17);
}

.metadata-value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.metadata-arrow {
    flex-shrink: 0;
    color: var(--faint-text);
    font-size: 15px;
}

.artist-results {
    display: grid;
    gap: 11px;
    margin-bottom: 38px;
}

.artist-result-card {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: var(--surface);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease,
                border-color 0.2s ease;
}

.artist-result-card:hover {
    transform: translateY(-2px);
    background: var(--surface-strong);
    border-color: rgba(255, 255, 255, 0.16);
}

.artist-avatar {
    width: 53px;
    height: 53px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 36%),
        rgba(132, 109, 255, 0.22);
    color: #ffffff;
    font-size: 21px;
    font-weight: 600;
}

.artist-result-information {
    flex: 1;
    min-width: 0;
}

.artist-result-information h3 {
    margin-bottom: 5px;
    font-size: 16px;
    letter-spacing: -0.035em;
}

.artist-result-information p {
    color: var(--secondary-text);
    font-size: 13px;
}

.artist-page {
    width: min(var(--maximum-width), calc(100% - 48px));
    min-height: calc(100vh - 140px);
    margin: 0 auto;
    padding: 46px 0 92px;
}

.artist-header {
    display: flex;
    align-items: center;
    gap: 27px;
    margin-bottom: 60px;
}

.artist-large-avatar {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 36%),
        rgba(132, 109, 255, 0.20);
    color: var(--text);
    font-size: 43px;
    font-weight: 600;
}

.artist-heading .artist-label {
    margin-bottom: 9px;
    color: var(--purple);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.artist-heading h1 {
    margin-bottom: 11px;
    font-size: clamp(39px, 6vw, 61px);
    line-height: 1;
    letter-spacing: -0.07em;
}

.artist-heading > p:last-child {
    color: var(--secondary-text);
    font-size: 16px;
}

.artist-card-section .results-header {
    margin-bottom: 24px;
}

@media (max-width: 540px) {
    .artist-page {
        width: calc(100% - 36px);
    }

    .artist-header {
        display: block;
        margin-bottom: 43px;
    }

    .artist-large-avatar {
        width: 78px;
        height: 78px;
        margin-bottom: 25px;
        font-size: 31px;
    }

    .artist-result-card {
        padding: 12px;
        gap: 13px;
    }

    .artist-avatar {
        width: 47px;
        height: 47px;
    }
}

/* MARK: - ManaVult Card Artwork Experience */

.mana-card-stage {
    position: relative;
    width: min(100%, 365px);
    margin: 0 auto;
    padding: 15px;
    isolation: isolate;
    animation: manaCardArrive 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mana-card-glow {
    position: absolute;
    inset: 22px 22px 4px;
    z-index: -1;
    border-radius: 28px;
    background-size: cover;
    background-position: center;
    filter: blur(30px) saturate(1.45) brightness(1.04);
    opacity: 0.56;
    transform: translateY(22px) scale(0.98);
    pointer-events: none;
    transition:
        opacity 500ms ease,
        filter 500ms ease,
        transform 500ms ease;
}

.mana-card-stage.is-interacting .mana-card-glow {
    opacity: 0.7;
    filter: blur(34px) saturate(1.58) brightness(1.07);
    transform: translateY(24px) scale(1.015);
}

.mana-card-tilt {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --glare-x: 50%;
    --glare-y: 50%;
    --card-scale: 1;

    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 25px;
    transform-style: preserve-3d;
    transform:
        perspective(1100px)
        rotateX(var(--tilt-x))
        rotateY(var(--tilt-y))
        scale(var(--card-scale));
    transition:
        transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 280ms ease;
    box-shadow:
        0 1px 1px rgba(255, 255, 255, 0.15) inset,
        0 22px 50px rgba(0, 0, 0, 0.24),
        0 6px 18px rgba(0, 0, 0, 0.12);
    will-change: transform;
}

.mana-card-tilt.is-interacting {
    --card-scale: 1.018;

    transition:
        transform 40ms linear,
        box-shadow 220ms ease;

    box-shadow:
        0 1px 1px rgba(255, 255, 255, 0.2) inset,
        0 30px 62px rgba(0, 0, 0, 0.28),
        0 10px 26px rgba(0, 0, 0, 0.16);
}

.mana-card-art {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 488 / 680;
    object-fit: cover;
    border-radius: 25px;
    position: relative;
    z-index: 1;
}

.mana-card-border {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 25px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        inset 0 -1px 2px rgba(0, 0, 0, 0.22);
}

.mana-card-glare {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 25px;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(
            circle at var(--glare-x) var(--glare-y),
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.14) 14%,
            rgba(255, 255, 255, 0.04) 28%,
            transparent 48%
        );
    mix-blend-mode: screen;
    transition: opacity 280ms ease;
}

.mana-card-tilt.is-interacting .mana-card-glare {
    opacity: 1;
}

@keyframes manaCardArrive {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@media (hover: none), (pointer: coarse) {
    .mana-card-glow {
        opacity: 0.5;
        filter: blur(36px) saturate(1.45);
    }

    .mana-card-tilt {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mana-card-stage {
        animation: none;
    }

    .mana-card-tilt,
    .mana-card-glow,
    .mana-card-glare {
        transition: none;
        transform: none;
    }

    .mana-card-glare {
        display: none;
    }
}

/* MARK: - Card Print Carousel */

#print-carousel {
    width: 100%;
    min-width: 0;
}

.print-carousel-shell {
    width: 100%;
}

.print-carousel {
    --print-width: min(100vw, 355px);

    display: flex;
    align-items: center;
    gap: 2px;
    width: 100%;

    overflow-x: auto;
    overflow-y: visible;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    padding-block: 50px 95px;
    margin-block: -26px -45px;

    scrollbar-width: none;
}

.print-carousel::-webkit-scrollbar {
    display: none;
}

.print-carousel::before,
.print-carousel::after {
    content: "";
    flex: 0 0 calc(50% - (var(--print-width) / 2));
}

.print-slide {
    flex: 0 0 var(--print-width);
    scroll-snap-align: center;
    scroll-snap-stop: always;

    opacity: 0;
    transform: scale(0.55);
    filter: saturate(0.82) brightness(0.82);

    transition:
        transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 360ms ease,
        filter 360ms ease;

    cursor: pointer;
    z-index: 1;
    will-change: transform, opacity, filter;
}

.print-slide.is-visible {
    opacity: 0.42;
    transform: scale(0.7);
}

.print-slide.is-focused {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1) brightness(1);
    z-index: 5;
    cursor: default;
}


.print-slide:not(.is-focused) .mana-card-glow {
    opacity: 0;
}

.print-slide:not(.is-focused) .mana-card-glare {
    display: none;
}

.print-slide:not(.is-focused) .mana-card-tilt {
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.15);
}

.print-carousel-label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary, rgba(120, 120, 128, 0.9));
    transition: opacity 180ms ease;
}

.print-carousel-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .mana-card-art {
        border-radius: 15px;

    }

    .mana-card-tilt {
        border-radius: 15px;
    }

    .mana-card-border {
        border-radius: 15px;
    }

    .mana-card-glare {
        scale: 0.3;
        border-radius: 15px;
    }

    .print-carousel {
        --print-width: 50vw;
        gap: 8px;

        padding-block: 22px 40px;
        margin-block: -22px -34px;
    }

    .print-carousel::before,
    .print-carousel::after {
        flex: 0 0 calc(50% - (var(--print-width) / 2) - 45px);
    }

    .print-slide {
        flex: 0 0 var(--print-width);
        scroll-snap-align: center;
        scroll-snap-stop: always;

        opacity: 0.42;
        transform: scale(0.72);
        filter: saturate(0.82) brightness(0.82);

        transition:
            transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 360ms ease,
            filter 360ms ease;

        cursor: pointer;
        z-index: 1;
        will-change: transform, opacity, filter;
    }

    .print-slide.is-focused {
        opacity: 1;
        transform: scale(1);
        filter: saturate(1) brightness(1);
        z-index: 5;
        cursor: default;
    }

    .mana-card-stage {
        width: 100%;
        padding: 10px;
    }

    .mana-card-glow {
        inset: 10px 10px -12px;
        filter: blur(32px) saturate(1.45) brightness(1.05);
        transform: translateY(22px) scale(0.95);
    }
}

@media (prefers-reduced-motion: reduce) {
    .print-carousel {
        scroll-behavior: auto;
    }

    .print-slide {
        transition: none;
    }
}

/* MARK: - Card Legalities */

.legality-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legality-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 18px;
}

.section-kicker {
    margin: 0 0 5px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.legality-header h2 {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(1.18rem, 2vw, 1.35rem);
    letter-spacing: -0.035em;
}

.legality-summary {
    margin: 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.78rem;
    white-space: nowrap;
}

.legality-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.legality-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 255, 255, 0.5);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        border-color 180ms ease,
        background 180ms ease,
        color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.legality-tab:hover {
    transform: translateY(-1px);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.045);
}

.legality-tab:active {
    transform: translateY(0);
}

.legality-tab-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
}

.legality-tab-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legality-tab-count {
    min-width: 22px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    font-size: 0.7rem;
    line-height: 1.2;
}

.legality-tab-legal.is-selected {
    border-color: rgba(52, 211, 111, 0.34);
    background: rgba(22, 163, 74, 0.09);
    color: rgb(74, 222, 128);
    box-shadow: inset 0 0 22px rgba(22, 163, 74, 0.045);
}

.legality-tab-illegal.is-selected {
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(239, 68, 68, 0.09);
    color: rgb(248, 113, 113);
    box-shadow: inset 0 0 22px rgba(239, 68, 68, 0.045);
}

.legality-tab-all.is-selected {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.94);
}

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

.legality-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    min-height: 56px;
    padding: 14px 12px;
    border-radius: 17px;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

.legality-item.is-legal {
    color: rgba(74, 222, 128, 0.96);
    border-color: rgba(52, 211, 111, 0.2);
    background:
        linear-gradient(
            135deg,
            rgba(22, 163, 74, 0.075),
            rgba(22, 163, 74, 0.025)
        );
}

.legality-item.is-illegal,
.legality-item.is-banned {
    color: rgba(248, 113, 113, 0.96);
    border-color: rgba(248, 113, 113, 0.18);
    background:
        linear-gradient(
            135deg,
            rgba(239, 68, 68, 0.07),
            rgba(239, 68, 68, 0.025)
        );
}

.legality-item.is-restricted {
    color: rgba(251, 191, 36, 0.96);
    border-color: rgba(251, 191, 36, 0.22);
    background:
        linear-gradient(
            135deg,
            rgba(245, 158, 11, 0.08),
            rgba(245, 158, 11, 0.025)
        );
}

.legality-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.9;
}

.legality-section.has-changed .legality-grid {
    animation: legalityRefresh 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes legalityRefresh {
    from {
        opacity: 0.55;
        transform: translateY(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    .legality-header {
        align-items: start;
        flex-direction: column;
        gap: 7px;
    }

    .legality-tab {
        gap: 5px;
        padding: 0 7px;
        font-size: 0.8rem;
    }

    .legality-tab-count {
        display: none;
    }

    .legality-item {
        min-height: 52px;
        font-size: 0.86rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .legality-section.has-changed .legality-grid {
        animation: none;
    }
}

#active-card-artist .metadata-value,
#active-card-set .metadata-value {
    line-height: 1.28;
}

.metadata-item {
    min-height: 78px;
}

#active-card-mana-cost {
    font-size: 35px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.feature-link-stack {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
}

.feature-link-card {
    display: block;
    padding: 16px 17px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );
    color: inherit;
    text-decoration: none;
    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.feature-link-card:hover {
    transform: translateY(-2px);
    background: var(--surface-strong);
    border-color: rgba(255, 255, 255, 0.17);
}

.feature-link-label {
    display: block;
    margin-bottom: 7px;
    color: var(--faint-text);
    font-size: 12px;
    font-weight: 600;
}

.feature-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.feature-link-value {
    min-width: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.25;
}

.feature-link-arrow {
    flex-shrink: 0;
    color: var(--faint-text);
    font-size: 18px;
}

.print-carousel-footer {
    position: relative;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    width: 100%;
    min-width: 0;
    min-height: 34px;
    margin-top: -4px;

    overflow-x: auto;
    overflow-y: visible;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.print-carousel-footer::-webkit-scrollbar {
    display: none;
}

.keyword-chip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.keyword-chip-row::-webkit-scrollbar {
    display: none;
}

.keyword-chip {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
}

.keyword-chip-empty {
    color: rgba(255, 255, 255, 0.38);
}

.gameplay-stack {
    display: grid;
    gap: 28px;
}

.related-card-section {
    margin-top: 24px;
}

.related-card-section:empty {
    display: none;
}

.related-card-header {
    margin-bottom: 12px;
}

.related-card-header h2,
.rulings-header h2 {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(1.08rem, 2vw, 1.25rem);
    letter-spacing: -0.035em;
}

.related-card-list {
    display: grid;
    gap: 20px;
}

.related-card-item {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 64px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.related-card-item:hover {
    transform: translateY(-2px);
    background: var(--surface-strong);
    border-color: rgba(255, 255, 255, 0.17);
}

.related-card-thumb {
    width: 34px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background:var(--manavult-aura-soft);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.related-card-thumb svg {
    width: 20px;
    height: 27px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.72);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.related-card-info {
    flex: 1;
    min-width: 0;
}

.related-card-info span {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 650;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.related-card-arrow {
    flex-shrink: 0;
    color: var(--faint-text);
    font-size: 18px;
}

.rulings-section {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rulings-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 14px;
}

.rulings-summary {
    margin: 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.78rem;
    white-space: nowrap;
}

.rulings-list {
    display: grid;
    gap: 20px;
}

.ruling-item {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.ruling-item time {
    display: block;
    margin-bottom: 8px;
    color: var(--faint-text);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ruling-item p,
.rulings-empty {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
    line-height: 1.55;
}

.rulings-empty {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.price-history-header h2 {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(1.08rem, 2vw, 1.25rem);
    letter-spacing: -0.035em;
}

.currency-picker-button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.78);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.price-insight-chip.is-up {
    color: rgb(74, 222, 128);
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.22);
}

.price-insight-chip.is-down {
    color: rgb(248, 113, 113);
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.22);
}

.price-insight-chip.is-flat {
    color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.price-history-note {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.75rem;
    line-height: 1.4;
}

.price-chart-range {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
}

.price-range-point {
    display: grid;
    gap: 4px;
}

.price-range-point span:first-child {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
}

.price-range-point span:last-child {
    color: var(--faint-text);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.price-range-point-right {
    text-align: right;
}

.price-range-divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.18),
        rgba(255, 255, 255, 0.08)
    );
}

.price-chart-freshness {
    margin-top: 5px;
    color: var(--faint-text);
    font-size: 0.74rem;
}

.price-history-section {
    margin-top: 26px;
}

.price-history-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}

.price-history-header h2 {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(1.12rem, 2vw, 1.35rem);
    letter-spacing: -0.045em;
}

.price-history-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 24px;
    background:
        radial-gradient(circle at 18% 8%, rgba(73, 197, 106, 0.075), transparent 38%),
        radial-gradient(circle at 90% 14%, rgba(246, 198, 49, 0.06), transparent 42%),
        radial-gradient(circle at 90% 88%, rgba(41, 144, 241, 0.075), transparent 44%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
}

.price-history-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.price-history-current {
    color: var(--text);
    font-size: clamp(1.75rem, 5vw, 2.4rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.price-insight-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.price-insight-chip.is-up {
    color: rgb(74, 222, 128);
    background: rgba(22, 163, 74, 0.13);
    border: 1px solid rgba(74, 222, 128, 0.24);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.06);
}

.price-insight-chip.is-down {
    color: rgb(248, 113, 113);
    background: rgba(239, 68, 68, 0.13);
    border: 1px solid rgba(248, 113, 113, 0.24);
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.06);
}

.price-insight-chip.is-flat {
    color: rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.price-chart-placeholder {
    position: relative;
    min-height: 205px;
    padding: 15px 15px 13px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    background:
        radial-gradient(circle at 20% 15%, rgba(73, 197, 106, 0.045), transparent 42%),
        radial-gradient(circle at 86% 20%, rgba(246, 198, 49, 0.04), transparent 44%),
        radial-gradient(circle at 18% 86%, rgba(243, 69, 94, 0.035), transparent 48%),
        radial-gradient(circle at 88% 88%, rgba(41, 144, 241, 0.05), transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.014)),
        #020201;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.07),
        inset 0 -36px 70px rgba(0, 0, 0, 0.34);
}

.price-chart-stage {
    width: 100%;
    height: 230px;
}

.price-sparkline {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.price-sparkline-area {
    fill: rgba(255, 255, 255, 0);
}

.price-sparkline-line {
    fill: none;
    stroke: url("#priceLineGradient");
    stroke-width: 4.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 11px rgba(132, 109, 255, 0.34));
}

.price-sparkline-dot {
    fill: #ffffff;
    stroke: #846dff;
    stroke-width: 2.4;
    filter: drop-shadow(0 0 10px rgba(132, 109, 255, 0.75));
}

.price-chart-range {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
}

.price-range-point {
    display: grid;
    gap: 4px;
}

.price-range-point span:first-child {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.price-range-point span:last-child {
    color: var(--faint-text);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.14em;
}

.price-range-point-right {
    text-align: right;
}

.price-range-divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04),
        rgba(255, 255, 255, 0.18),
        rgba(255, 255, 255, 0.04)
    );
}

.price-history-note {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.76rem;
    line-height: 1.45;
}

.price-chart-empty {
    min-height: 160px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.85rem;
}

.price-chart-stage {
    position: relative;
    width: 100%;
    height: 210px;
    touch-action: none;
}

.price-chart-hit-area {
    cursor: crosshair;
    pointer-events: all;
}

.price-chart-guide {
    opacity: 0;
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 1;
    stroke-dasharray: 4 6;
    transition: opacity 160ms ease;
}

.price-chart-stage.is-scrubbing .price-chart-guide {
    opacity: 1;
}

.price-chart-stage.is-scrubbing .price-sparkline-dot {
    r: 6;
}

.price-chart-tooltip {
    position: absolute;
    top: 8px;
    left: 50%;
    z-index: 4;

    display: grid;
    gap: 3px;
    min-width: 92px;
    padding: 9px 11px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background:
        linear-gradient(
            145deg,
            rgba(22, 23, 31, 0.94),
            rgba(8, 9, 14, 0.92)
        );
    backdrop-filter: blur(18px);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.36),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);

    opacity: 0;
    pointer-events: none;

    transform: translateX(-50%) translateY(4px) scale(0.96);
    transition:
        opacity 140ms ease,
        transform 140ms ease,
        left 40ms linear;
}

.price-chart-tooltip.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.price-chart-tooltip-price {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.price-chart-tooltip-date {
    color: var(--faint-text);
    font-size: 0.68rem;
    font-weight: 700;
}

.currency-picker {
    position: relative;
    flex-shrink: 0;
}

.currency-picker-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 12px 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0.035)
        );
    color: rgba(255, 255, 255, 0.86);
    font: inherit;
    cursor: pointer;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.currency-picker-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.075);
}

.currency-picker-label {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.68rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.currency-picker-code {
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 850;
}

.currency-picker-chevron {
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.9rem;
    line-height: 1;
    transform: translateY(-1px);
}

.currency-picker-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;

    width: 170px;
    max-height: 260px;
    overflow-y: auto;

    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background:var(--manavult-aura-soft);
    backdrop-filter: blur(22px);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.42),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);

    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;

    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.currency-picker.is-open .currency-picker-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.currency-option {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 750;
    cursor: pointer;
    text-align: left;
}

.currency-option:hover {
    background: rgba(255, 255, 255, 0.065);
    color: var(--text);
}

.currency-option.is-selected {
    background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0.035)
        );
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 540px) {
    .price-history-header {
        align-items: flex-start;
    }

    .currency-picker-button {
        min-height: 36px;
        padding-inline: 11px;
    }

    .currency-picker-label {
        display: none;
    }

    .price-history-card {
        padding: 15px;
        border-radius: 21px;
    }

    .price-chart-placeholder {
        min-height: 190px;
        padding: 12px;
    }

    .price-chart-stage {
        height: 140px;
    }

    .price-history-current {
        font-size: 2rem;
    }
}

.price-history-section {
    width: 100%;
    max-width: none;
    margin-top: 42px;
}

.price-history-card {
    width: 100%;
}

.price-chart-placeholder {
    display: block;
    width: 100%;
    min-height: 260px;
}

.price-chart-stage {
    width: 100%;
    height: 210px;
}

.price-sparkline {
    width: 100%;
    height: 100%;
}

.print-carousel-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    max-width: 100%;
}

.print-carousel-price {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.028)
        );
    color: var(--text);
    font: inherit;
    cursor: pointer;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.print-carousel-price:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.075);
}

.print-carousel-price-label {
    color: var(--faint-text);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.print-carousel-price-value {
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 850;
}

@media (max-width: 540px) {
    .print-carousel-actions {
        gap: 7px;
    }

    .print-carousel-price-label {
        display: none;
    }

    .print-carousel-price {
        min-height: 27px;
        padding-inline: 10px;
    }
}

.rarity-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.rarity-chip-common {
    color: rgba(255, 255, 255, 0.58);
}

.rarity-chip-uncommon {
    color: rgba(180, 220, 255, 0.86);
    background: rgba(41, 144, 241, 0.10);
    border-color: rgba(41, 144, 241, 0.18);
}

.rarity-chip-rare {
    color: rgba(246, 198, 49, 0.95);
    background: rgba(246, 198, 49, 0.10);
    border-color: rgba(246, 198, 49, 0.22);
}

.rarity-chip-mythic {
    color: rgba(243, 69, 94, 0.95);
    background: rgba(243, 69, 94, 0.11);
    border-color: rgba(243, 69, 94, 0.24);
}

.rarity-chip-special,
.rarity-chip-bonus {
    color: rgba(132, 109, 255, 0.95);
    background: rgba(132, 109, 255, 0.12);
    border-color: rgba(132, 109, 255, 0.24);
}

/* SETS */

.set-hero {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 27px;
    align-items: center;
    margin-bottom: 34px;
}

.set-hero-icon {
    width: 110px;
    height: 110px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 38%),
        var(--manavult-aura-soft);
}

.set-hero-content h1 {
    margin: 0 0 11px;
    font-size: clamp(39px, 6vw, 68px);
    line-height: 0.96;
    letter-spacing: -0.075em;
}

.set-hero-content p:last-child {
    color: var(--secondary-text);
    font-size: 16px;
}

.set-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.set-insight-card {
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );
}

.set-insight-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--faint-text);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.set-insight-card strong {
    display: block;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: -0.045em;
}

.set-insight-card p {
    margin-top: 7px;
    color: var(--faint-text);
    font-size: 0.78rem;
}

.set-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 18px;
    margin-bottom: 18px;
}

.set-dashboard-card {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 24px;
    background:
        radial-gradient(circle at 18% 8%, rgba(73, 197, 106, 0.06), transparent 38%),
        radial-gradient(circle at 90% 14%, rgba(246, 198, 49, 0.045), transparent 42%),
        radial-gradient(circle at 90% 88%, rgba(41, 144, 241, 0.06), transparent 44%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
}

.set-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.set-section-header h2 {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(1.12rem, 2vw, 1.35rem);
    letter-spacing: -0.045em;
}

.set-section-header > p {
    color: var(--faint-text);
    font-size: 0.78rem;
    white-space: nowrap;
}

.set-stat-list {
    display: grid;
    gap: 14px;
}

.set-stat-row {
    display: grid;
    gap: 8px;
}

.set-stat-row > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.set-stat-row span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    font-weight: 700;
}

.set-stat-row strong {
    color: var(--faint-text);
    font-size: 0.78rem;
    font-weight: 750;
    white-space: nowrap;
}

.set-stat-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.set-stat-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            white,
            var(--purple),
            var(--manavult-blue)
        );
    box-shadow: 0 0 18px rgba(132, 109, 255, 0.25);
}

.rarity-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.set-rarity-pill {
    min-height: 62px;
    padding: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.045);
}

.set-rarity-pill span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    font-weight: 750;
}

.set-rarity-pill strong {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 850;
}

.set-artists-section {
    margin-bottom: 34px;
}

.set-artist-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.set-artist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    color: inherit;
    text-decoration: none;
    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.set-artist-item:hover {
    transform: translateY(-2px);
    background: var(--surface-strong);
    border-color: rgba(255, 255, 255, 0.17);
}

.set-artist-item span {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.set-artist-item strong {
    flex-shrink: 0;
    color: var(--faint-text);
    font-size: 0.74rem;
    font-weight: 750;
}

@media (max-width: 860px) {
    .set-overview-grid,
    .set-dashboard-grid,
    .set-artist-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .set-hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .set-hero-icon {
        width: 78px;
        height: 78px;
        border-radius: 22px;
    }

    .set-section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .rarity-chip-grid {
        grid-template-columns: 1fr;
    }
}

.set-card-tools {
    margin-bottom: 24px;
}

.set-search-shell {
    margin: 18px 0 14px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    backdrop-filter: blur(20px);
}

.set-search-input {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
}

.set-search-input::placeholder {
    color: var(--faint-text);
}

.set-filter-row {
    display: flex;
    align-items: center;
    gap: 9px;
    overflow-x: auto;
    padding-bottom: 4px;
    padding-top: 5px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.set-filter-row::-webkit-scrollbar {
    display: none;
}

.set-filter-chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.68);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    cursor: pointer;
    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.set-filter-chip:hover {
    transform: translateY(-1px);
    color: var(--text);
    background: rgba(255, 255, 255, 0.075);
}

.set-filter-chip.is-selected {
    color: #ffffff;
    border-color: rgba(132, 109, 255, 0.34);
    background: rgba(132, 109, 255, 0.18);
    box-shadow: 0 0 24px rgba(132, 109, 255, 0.08);
}

.set-card-empty {
    grid-column: 1 / -1;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
}

.set-card-empty {
    grid-column: 1 / -1;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
}

.set-card-empty h3,
.set-card-empty p {
    margin: 0;
}

.set-filter-chip .mana-symbol {
    width: 1.05em;
    height: 1.05em;
    margin: 0;
    vertical-align: -0.16em;
}

.set-filter-chip {
    white-space: nowrap;
}

.set-filter-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.set-filter-picker {
    position: relative;
    flex-shrink: 0;
}

.set-filter-picker-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 13px 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0.035)
        );
    color: rgba(255, 255, 255, 0.86);
    font: inherit;
    cursor: pointer;
}

.set-filter-picker-label {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.68rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.set-filter-picker-code {
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 850;
}

.set-filter-picker-chevron {
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.9rem;
    line-height: 1;
    transform: translateY(-1px);
}

.set-filter-picker-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 80;

    width: 230px;
    max-height: 320px;
    overflow-y: auto;

    display: grid;
    gap: 8px;

    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: var(--manavult-aura-soft);
    backdrop-filter: blur(22px);

    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;

    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.set-filter-picker.is-open .set-filter-picker-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.set-filter-option {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 750;
    cursor: pointer;
    text-align: left;
}

.set-filter-option:hover {
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0.035)
        );
    color: var(--text);
}

.set-filter-option.is-selected {
    background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0.035)
        );
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.set-filter-option .mana-symbol {
    width: 20px;
    height: 20px;
    margin: 0;
}

.set-filter-divider {
    height: 1px;
    margin: 7px 5px;
    background: rgba(255, 255, 255, 0.08);
}

.set-clear-filters {
    display: none;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.68);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    cursor: pointer;
}

.set-clear-filters.is-visible {
    display: inline-flex;
    align-items: center;
}

/* ARTIST */

.artist-hero {
    display: flex;
    align-items: center;
    gap: 27px;
    margin-bottom: 34px;
}

.artist-hero-avatar {
    width: 112px;
    height: 112px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 32px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 36%),
        var(--manavult-aura-soft);
    color: var(--text);
    font-size: 44px;
    font-weight: 800;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 18px 44px rgba(0, 0, 0, 0.18);
}

.artist-hero-content h1 {
    margin: 0 0 11px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.075em;
}

.artist-hero-content p:last-child {
    max-width: 620px;
    color: var(--secondary-text);
    font-size: 1rem;
    line-height: 1.55;
}

.artist-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.artist-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 18px;
    margin-bottom: 18px;
    padding-top: 20px;
}

.artist-dashboard-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 18% 8%, rgba(73, 197, 106, 0.055), transparent 38%),
        radial-gradient(circle at 90% 88%, rgba(41, 144, 241, 0.06), transparent 44%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
}

.artist-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.artist-section-header h2 {
    margin: 0;
    font-size: clamp(1.12rem, 2vw, 1.35rem);
    letter-spacing: -0.045em;
}

.artist-section-header > p {
    margin: 0;
    color: var(--faint-text);
    font-size: 0.78rem;
    white-space: nowrap;
}

.artist-stat-list {
    display: grid;
    gap: 14px;
}

.artist-set-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.artist-set-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 54px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    color: inherit;
    text-decoration: none;
}

.artist-set-item span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 700;
}

.artist-set-item strong {
    flex-shrink: 0;
    color: var(--faint-text);
    font-size: 0.74rem;
}

.artist-timeline-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.artist-timeline-track::-webkit-scrollbar {
    display: none;
}

.artist-timeline-item {
    min-width: 76px;
    padding: 13px 12px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.artist-timeline-item span {
    display: block;
    color: var(--faint-text);
    font-size: 0.72rem;
    font-weight: 800;
}

.artist-timeline-item strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 1.1rem;
}

.artist-card-section {
    margin-top: 26px;
}

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

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

@media (max-width: 540px) {
    .artist-hero {
        display: block;
    }

    .artist-hero-avatar {
        width: 82px;
        height: 82px;
        margin-bottom: 22px;
        border-radius: 24px;
        font-size: 34px;
    }

    .artist-overview-grid,
    .artist-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* LEGAL NOTE */

.card-legal-note {
    max-width: 780px;
    margin: 56px auto 0;
    padding: 34px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.46);
}

.card-legal-note h2 {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.card-legal-note p {
    margin: 0;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.92rem;
    line-height: 1.5;
}

.card-legal-divider {
    width: 100%;
    height: 1px;
    margin: 28px 0;
    background: rgba(255, 255, 255, 0.10);
}

.card-legal-source {
    display: grid;
    gap: 4px;
    margin-top: 18px;
}

.card-legal-source strong {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
    font-weight: 800;
}

.card-legal-source span {
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.9rem;
    line-height: 1.35;
}

.card-legal-support {
    color: rgba(255, 255, 255, 0.44);
}

.card-legal-support a {
    color: #2990F1;
    font-weight: 800;
    text-decoration: none;
}

.card-legal-support a:hover {
    text-decoration: underline;
}

@media (max-width: 540px) {
    .card-legal-note {
        margin-top: 42px;
        padding: 28px 10px;
    }

    .card-legal-note p {
        font-size: 0.86rem;
    }
}

/* HOME */

.navigation {
    position: sticky;
    top: 0;
    z-index: 100;
    width: min(var(--maximum-width), calc(100% - 48px));
    height: 76px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(220px, 520px) auto;
    align-items: center;
    gap: 18px;
}

.nav-search-form {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(22px);
}

.nav-search-input {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 13px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.88rem;
}

.nav-search-input::placeholder {
    color: var(--faint-text);
}

.nav-search-button {
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #080910;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.home-explore-page {
    display: grid;
    gap: 58px;
}

.home-hero {
    max-width: 920px;
    margin: 30px auto 10px;
    text-align: center;
}

.home-search-form {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    backdrop-filter: blur(22px);
}

.home-search-input {
    flex: 1;
    min-width: 0;
    padding: 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 1rem;
}

.home-section {
    display: grid;
    gap: 18px;
}

.home-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.home-section-header h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: -0.055em;
}

.home-small-button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.home-random-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 18% 8%, rgba(73, 197, 106, 0.075), transparent 38%),
        radial-gradient(circle at 90% 88%, rgba(41, 144, 241, 0.075), transparent 44%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
    text-decoration: none;
    overflow: hidden;
}

.home-random-card img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
}

.home-random-card h3 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.075em;
}

.home-random-card p {
    color: var(--secondary-text);
    line-height: 1.45;
}

.home-random-card span {
    display: inline-flex;
    margin-top: 18px;
    color: #ffffff;
    font-weight: 800;
}

.home-loading-card {
    min-height: 180px;
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    color: var(--secondary-text);
}

@media (max-width: 760px) {
    .navigation {
        width: calc(100% - 28px);
        height: auto;
        padding: 14px 0;
        grid-template-columns: 1fr auto;
    }

    .nav-search-form {
        grid-column: 1 / -1;
        order: 3;
    }

    .home-search-form {
        display: block;
    }

    .home-search-form .button {
        width: 100%;
        margin-top: 8px;
    }

    .home-random-card {
        grid-template-columns: 1fr;
    }

    .home-random-card img {
        max-width: 230px;
        margin: 0 auto;
    }
}

.nav-pill {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    text-decoration: none;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.nav-pill:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.16);
}

.brand {
    padding: 0 16px;
}

.brand-logo {
    height: 30px;
    width: auto;
    display: block;

    filter:
        brightness(0)
        invert(1);

    opacity: 0.94;
}

.made-by {
    padding: 0 18px;

    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 750;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.nav-search-shell {
    position: relative;
    width: min(520px, 100%);
    justify-self: center;
}

.nav-search-shell.is-searching {
    z-index: 1200;
}

.nav-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    width: min(720px, calc(100vw - 28px));
    max-height: min(620px, calc(100vh - 120px));
    overflow-y: auto;

    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(22px);

    scrollbar-width: none;

    opacity: 0;
    transform: translateX(-50%) translateY(-8px) scale(0.98);
    pointer-events: none;

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.nav-search-shell.is-searching .nav-search-results {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

.nav-result-section + .nav-result-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding: 0 4px;
}

.nav-result-header span {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 850;
}

.nav-result-header small {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.72rem;
    font-weight: 700;
}

.nav-result-list {
    display: grid;
    gap: 7px;
}

.nav-result-item {
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 58px;
    padding: 8px;
    border-radius: 16px;

    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.025);

    transition:
        background 160ms ease,
        transform 160ms ease;
}

.nav-result-item:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.07);
}

.nav-result-item > img {
    width: 38px;
    height: 52px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.nav-result-item span {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.nav-result-item strong {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nav-result-item small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.74rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nav-result-icon,
.nav-result-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 13px;
    background: rgba(255, 255, 255, 0.065);
}

.nav-result-icon img {
    width: 24px;
    height: 24px;
    filter: invert(1);
    opacity: 0.88;
}

.nav-result-avatar {
    border-radius: 50%;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 850;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 36%),
        rgba(132, 109, 255, 0.20);
}

.nav-search-message {
    padding: 18px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 760px) {
    .nav-search-shell {
        grid-column: 1 / -1;
        order: 3;
        width: 100%;
    }

    .nav-search-results {
        left: 0;
        width: 100%;
        transform: translateY(-8px) scale(0.98);
    }

    .nav-search-shell.is-searching .nav-search-results {
        transform: translateY(0) scale(1);
    }
}

.home-explore-hero {
    position: relative;
    min-height: clamp(420px, 58vw, 680px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;

    border-radius: 34px;

    background-image:
        linear-gradient(
            180deg,
            rgba(2, 2, 1, 0.04) 0%,
            rgba(2, 2, 1, 0.18) 38%,
            rgba(2, 2, 1, 0.78) 78%,
            rgba(2, 2, 1, 0.96) 100%
        ),
        var(--explore-art);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: inherit;
    text-decoration: none;

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.10),
        0 28px 90px rgba(0, 0, 0, 0.34);

    isolation: isolate;
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.home-explore-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 20% 15%,
            rgba(255, 255, 255, 0.10),
            transparent 34%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(132, 109, 255, 0.18),
            transparent 38%
        );
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
}

.home-explore-hero:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        0 34px 110px rgba(0, 0, 0, 0.42);
}

.home-explore-hero-content {
    width: min(720px, 100%);
    padding: clamp(26px, 5vw, 54px);
}

.home-explore-hero-content h2 {
    max-width: 680px;
    margin: 8px 0 14px;
    color: #ffffff;
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    line-height: 0.93;
    letter-spacing: -0.075em;
}

.home-explore-hero-content p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.5;
}

.home-explore-hero-content > span {
    display: inline-flex;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.92rem;
    font-weight: 800;
}

/* HOME -> ARTIST */

.home-artist-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-artist-feature-card {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;

    border-radius: 30px;

    color: inherit;
    text-decoration: none;

    background:
        linear-gradient(
            180deg,
            rgba(2, 2, 1, 0.05) 0%,
            rgba(2, 2, 1, 0.22) 42%,
            rgba(2, 2, 1, 0.82) 82%,
            rgba(2, 2, 1, 0.96) 100%
        ),
        var(--artist-art);

    background-size: cover;
    background-position: center;
    isolation: isolate;
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        filter 260ms ease;
}

.home-artist-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 24% 18%,
            rgba(255, 255, 255, 0.12),
            transparent 34%
        ),
        radial-gradient(
            circle at 82% 18%,
            rgba(132, 109, 255, 0.18),
            transparent 42%
        );
    opacity: 0.85;
    pointer-events: none;
    z-index: -1;
}

.home-artist-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.13),
        0 32px 95px rgba(0, 0, 0, 0.40);
}

.home-artist-feature-card.is-changing-art {
    filter: blur(1.5px) saturate(1.08);
}

.home-artist-feature-content {
    width: 100%;
    padding: 26px;
}

.home-artist-feature-content h3 {
    margin: 7px 0 10px;
    color: #ffffff;
    font-size: clamp(1.75rem, 3vw, 2.7rem);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.home-artist-feature-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.95rem;
    line-height: 1.45;
}

.home-artist-feature-content > span {
    display: inline-flex;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.84rem;
    font-weight: 800;
}

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

@media (max-width: 620px) {
    .home-artist-grid {
        grid-template-columns: 1fr;
    }

    .home-artist-feature-card {
        min-height: 320px;
    }
}

/* HOME -> SETS */
.home-set-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-set-feature-card {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;

    border-radius: 30px;

    color: inherit;
    text-decoration: none;

    background:
        linear-gradient(
            180deg,
            rgba(2, 2, 1, 0.04) 0%,
            rgba(2, 2, 1, 0.20) 40%,
            rgba(2, 2, 1, 0.82) 82%,
            rgba(2, 2, 1, 0.96) 100%
        ),
        var(--set-art);

    background-size: cover;
    background-position: center;

    isolation: isolate;
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        filter 260ms ease;
}

.home-set-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 18% 16%,
            rgba(255, 255, 255, 0.12),
            transparent 34%
        ),
        radial-gradient(
            circle at 84% 18%,
            rgba(132, 109, 255, 0.18),
            transparent 44%
        );
    opacity: 0.85;
    pointer-events: none;
    z-index: -1;
}

.home-set-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.13),
        0 32px 95px rgba(0, 0, 0, 0.40);
}

.home-set-feature-card.is-changing-art {
    filter: blur(1.5px) saturate(1.08);
}

.home-set-feature-content {
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 26px;
}

.home-set-feature-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.04)
        );

    backdrop-filter: blur(18px);
}

.home-set-feature-icon img {
    width: 28px;
    height: 28px;
    filter: invert(1);
    opacity: 0.92;
}

.home-set-feature-content h3 {
    margin: 0 0 9px;
    color: #ffffff;
    font-size: clamp(1.45rem, 2.6vw, 2.35rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.home-set-feature-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    line-height: 1.4;
}

.home-set-feature-content span {
    display: inline-flex;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.82rem;
    font-weight: 800;
}

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

@media (max-width: 620px) {
    .home-set-grid {
        grid-template-columns: 1fr;
    }

    .home-set-feature-card {
        min-height: 310px;
    }

    .home-set-feature-content {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* HOME -> FUTURE */

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

.home-feature-card {
    position: relative;
    min-height: 255px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;

    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 26px;

    background:
        radial-gradient(circle at 20% 12%, rgba(132, 109, 255, 0.16), transparent 38%),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );

    color: inherit;
    overflow: hidden;
}

.home-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 85%, rgba(255, 255, 255, 0.08), transparent 34%);
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}

.home-feature-card:hover::before {
    opacity: 1;
}

.home-feature-card-primary {
    background:
        radial-gradient(circle at 18% 12%, rgba(73, 197, 106, 0.18), transparent 38%),
        radial-gradient(circle at 88% 18%, rgba(246, 198, 49, 0.16), transparent 42%),
        radial-gradient(circle at 90% 88%, rgba(41, 144, 241, 0.18), transparent 45%),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.105),
            rgba(255, 255, 255, 0.035)
        );
}

.home-feature-label {
    display: inline-flex;
    margin-bottom: 13px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-feature-card h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.home-feature-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
    line-height: 1.55;
}

.home-feature-arrow {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.86rem;
    font-weight: 750;
}

.home-feature-card {
    text-decoration: none;
}

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

@media (max-width: 560px) {
    .home-feature-grid {
        grid-template-columns: 1fr;
    }

    .home-feature-card {
        min-height: 220px;
        padding: 20px;
        border-radius: 23px;
    }
}

/* EVENTS */
.event-interest-page {
    width: min(var(--maximum-width), calc(100% - 48px));
    min-height: calc(100vh - 140px);
    margin: 0 auto;
    padding: 46px 0 92px;
}

.event-interest-hero {
    max-width: 850px;
    margin: 30px auto 58px;
    text-align: center;
}

.event-interest-hero h1 {
    margin-bottom: 24px;
    font-size: clamp(48px, 8vw, 94px);
    line-height: 0.95;
    letter-spacing: -0.078em;
}

.event-interest-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--secondary-text);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.6;
}

.event-interest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.event-interest-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );
}

.event-interest-card span {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--faint-text);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.event-interest-card h2 {
    margin-bottom: 9px;
    font-size: 1.25rem;
    letter-spacing: -0.045em;
}

.event-interest-card p {
    color: var(--secondary-text);
    font-size: 0.92rem;
    line-height: 1.55;
}

.event-interest-form-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
    gap: 22px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background:
        radial-gradient(circle at 10% 0%, rgba(132, 109, 255, 0.14), transparent 32%),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );
}

.event-interest-form-copy h2 {
    margin-bottom: 12px;
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    letter-spacing: -0.06em;
}

.event-interest-form-copy p:last-child {
    color: var(--secondary-text);
    line-height: 1.6;
}

.event-interest-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.event-interest-form label {
    display: grid;
    gap: 8px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    font-weight: 750;
}

.event-interest-form input,
.event-interest-form select,
.event-interest-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 15px;
    outline: none;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    font: inherit;
}

.event-interest-form textarea {
    padding-top: 13px;
    resize: vertical;
}

.event-interest-form input::placeholder,
.event-interest-form textarea::placeholder {
    color: var(--faint-text);
}

.event-interest-form select {
    cursor: pointer;
}

.event-interest-full {
    grid-column: 1 / -1;
}

.event-interest-submit {
    grid-column: 1 / -1;
    width: 100%;
}

.event-interest-status {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--secondary-text);
    font-size: 0.88rem;
    line-height: 1.45;
}

.event-interest-status.is-success {
    color: var(--success);
}

.event-interest-status.is-error {
    color: var(--warning);
}

@media (max-width: 820px) {
    .event-interest-grid,
    .event-interest-form-section,
    .event-interest-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .event-interest-page {
        width: calc(100% - 28px);
    }

    .event-interest-form-section {
        padding: 18px;
        border-radius: 24px;
    }
}

.event-interest-body::before,
.event-interest-body::after {
    display: none;
}

.event-interest-label {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    font-weight: 750;
}

.event-type-field {
    display: grid;
    gap: 8px;
}

.event-type-picker {
    position: relative;
}

.event-type-picker-button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );

    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.event-type-chevron {
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.9rem;
    transform: translateY(-1px);
}

.event-type-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 60;

    display: grid;
    gap: 6px;

    max-height: 280px;
    overflow-y: auto;

    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(22, 23, 31, 0.98),
            rgba(8, 9, 14, 0.98)
        );

    backdrop-filter: blur(22px);

    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;

    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.event-type-picker.is-open .event-type-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.event-type-option {
    width: 100%;
    min-height: 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 0 10px;
    border: 0;
    border-radius: 12px;

    background: transparent;
    color: rgba(255, 255, 255, 0.72);

    font: inherit;
    font-size: 0.84rem;
    font-weight: 750;
    cursor: pointer;
    text-align: left;
}

.event-type-option:hover {
    background: rgba(255, 255, 255, 0.065);
    color: var(--text);
}

.event-type-option.is-selected {
    background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0.035)
        );
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.event-other-type-field {
    display: none;
}

.event-other-type-field.is-visible {
    display: grid;
}

.event-interest-form .event-other-type-field {
    display: none;
}

.event-interest-form .event-other-type-field.is-visible {
    display: grid;
}

/* 404 */

.manavult-404-page {
    width: min(760px, calc(100% - 48px));
    min-height: calc(100vh - 180px);
    margin: 0 auto;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 80px 0;
}

.manavult-404-page h1 {
    margin: 10px 0 16px;
    font-size: clamp(46px, 8vw, 86px);
    line-height: 0.95;
    letter-spacing: -0.075em;
}

.manavult-404-page p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--secondary-text);
    font-size: 1rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

/* DECKS */
.decks-page {
    min-height: 100vh;
    padding: 120px 24px 80px;
}

.decks-hero {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.eyebrow {
    margin-bottom: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
}

.decks-hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-copy {
    max-width: 680px;
    margin: 24px auto 0;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.6;
    opacity: 0.78;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

.primary-button {
    background: #ffffff;
    color: #050505;
}

.secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: inherit;
}

.coming-soon-note {
    margin-top: 20px;
    font-size: 0.95rem;
    opacity: 0.58;
}

.deck-features {
    max-width: 1120px;
    margin: 90px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    padding: 26px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.feature-card p {
    margin: 0;
    line-height: 1.55;
    opacity: 0.72;
}

.web-coming-soon {
    max-width: 760px;
    margin: 90px auto 0;
    padding: 44px;
    border-radius: 34px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.web-coming-soon h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.04em;
}

.web-coming-soon p {
    margin: 18px auto 28px;
    line-height: 1.6;
    opacity: 0.74;
}

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

@media (max-width: 640px) {
    .decks-page {
        padding: 100px 18px 60px;
    }

    .deck-features {
        grid-template-columns: 1fr;
        margin-top: 64px;
    }

    .web-coming-soon {
        padding: 30px 22px;
        margin-top: 64px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }
}

/* EVENT / MARKETPLACE DROPDOWN FIX */
.event-interest-body .event-interest-page,
.event-interest-body .event-interest-form-section,
.event-interest-body .event-interest-form,
.event-interest-body .event-type-field,
.event-interest-body .event-type-picker {
    position: relative;
    overflow: visible !important;
}

.event-interest-body main,
.event-interest-body #navigation,
.event-interest-body #footer {
    position: relative;
    z-index: 10;
}

.event-interest-body .event-type-picker {
    width: 100%;
    z-index: 50;
}

.event-interest-body .event-type-picker-button {
    position: relative;
    z-index: 2;
    width: 100%;
    cursor: pointer;
    pointer-events: auto !important;
}

.event-interest-body .event-type-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(10, 11, 18, 0.98);
    backdrop-filter: blur(22px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
    pointer-events: auto !important;
}

/* Supports BOTH dropdown systems:
   1. JS adds is-open to the menu itself
   2. JS adds is-open to the picker parent
*/
.event-interest-body .event-type-menu.is-open,
.event-interest-body .event-type-picker.is-open .event-type-menu {
    display: grid !important;
    gap: 6px;
}

.event-interest-body .event-type-option {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    pointer-events: auto !important;
}

.event-interest-body .event-type-option:hover,
.event-interest-body .event-type-option.is-selected {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
}

.event-interest-body .event-other-type-field {
    display: none;
}

.event-interest-body .event-other-type-field.is-visible {
    display: flex;
}

/* SEARCH */
.search-page {
    width: min(var(--maximum-width), calc(100% - 48px));
    min-height: calc(100vh - 140px);
    margin: 0 auto;
    padding: 58px 0 96px;
}

.search-hero {
    max-width: 850px;
    margin: 0 auto 54px;
    text-align: center;
}

.search-hero .back-link {
    margin-bottom: 28px;
}

.search-hero h1 {
    margin: 0;
    font-size: clamp(48px, 8vw, 92px);
    line-height: 0.95;
    letter-spacing: -0.075em;
}

.search-page-input {
    flex: 1;
    min-width: 0;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 1rem;
}

.search-page-input::placeholder {
    color: var(--faint-text);
}

.search-type-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.search-type-tab {
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.68);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 750;
    cursor: pointer;
}

.search-type-tab.is-selected {
    color: #ffffff;
    border-color: rgba(132, 109, 255, 0.34);
    background: rgba(132, 109, 255, 0.18);
}

.search-results-page-section {
    max-width: 980px;
    margin: 0 auto;
}

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

.search-list-grid {
    display: grid;
    gap: 12px;
}

.search-list-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 74px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.search-list-card:hover {
    transform: translateY(-2px);
    background: var(--surface-strong);
    border-color: rgba(255, 255, 255, 0.18);
}

.search-list-icon,
.search-list-avatar {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 850;
}

.search-list-icon img {
    width: 28px;
    height: 28px;
    filter: invert(1);
    opacity: 0.88;
}

.search-list-avatar {
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 36%),
        rgba(132, 109, 255, 0.22);
}

.search-list-info {
    flex: 1;
    min-width: 0;
}

.search-list-info h3 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 1rem;
    letter-spacing: -0.035em;
}

.search-list-info p {
    margin: 0;
    overflow: hidden;
    color: var(--secondary-text);
    font-size: 0.86rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.search-list-arrow {
    flex-shrink: 0;
    color: var(--faint-text);
    font-size: 1.4rem;
}

.search-card-placeholder {
    width: 100%;
    aspect-ratio: 488 / 680;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--surface);
    color: var(--faint-text);
    font-size: 0.82rem;
    font-weight: 700;
}

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

@media (max-width: 540px) {
    .search-card-grid {
        gap: 9px;
    }

    .search-list-card {
        padding: 12px;
        gap: 12px;
    }

    .search-list-icon,
    .search-list-avatar {
        width: 46px;
        height: 46px;
    }
}

.search-controls {
    max-width: 900px;
    margin: 20px auto 0;
    display: none;
    gap: 14px;
}

.search-sort-picker {
    position: relative;
    width: min(260px, 100%);
    margin: 0 auto;
}

.search-sort-button {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.search-sort-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(10, 11, 18, 0.98);
    backdrop-filter: blur(22px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.search-sort-picker.is-open .search-sort-menu {
    display: grid;
    gap: 5px;
}

.search-sort-option {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 11px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 750;
    cursor: pointer;
    text-align: left;
}

.search-sort-option:hover,
.search-sort-option.is-selected {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.search-filter-row {
    display: grid;
    gap: 12px;
}

.search-filter-group {
    display: grid;
    gap: 8px;
}

.search-filter-label {
    color: var(--faint-text);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.search-chip-filter,
.search-mana-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
}

.search-chip-filter::-webkit-scrollbar,
.search-mana-filter::-webkit-scrollbar {
    display: none;
}

.search-filter-chip,
.search-mana-chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.68);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    cursor: pointer;
}

.search-mana-chip {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.search-mana-symbol {
    width: 26px;
    height: 26px;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

.search-mana-chip.is-selected {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 0 24px rgba(132, 109, 255, 0.18);
}

.search-filter-chip.is-selected,
.search-mana-chip.is-selected {
    color: #ffffff;
    border-color: rgba(132, 109, 255, 0.34);
    background: rgba(132, 109, 255, 0.18);
}

.nav-search-loading {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    font-weight: 700;
}

.nav-search-loading .manavult-loader,
.nav-search-lottie {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
}

.nav-search-loading .manavult-loader svg,
.nav-search-lottie svg {
    width: 100%;
    height: 100%;
    display: block;
}

.search-hero {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 24px;
}

.search-page-form {
    display: flex;
    gap: 10px;
    max-width: 720px;
    margin: 34px auto 18px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(22px);
}

.search-page-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 1rem;
}

.search-type-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 14px auto 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.search-type-tabs::-webkit-scrollbar {
    display: none;
}

.search-type-tab {
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.66);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 750;
    cursor: pointer;
}

.search-type-tab.is-selected {
    color: #080910;
    background: #ffffff;
    border-color: #ffffff;
}

.search-controls {
    position: relative;
    width: min(620px, 100%);
    margin: 16px auto 0;
}

.search-filter-toggle {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    font: inherit;
    cursor: pointer;
}

.search-filter-toggle > span:first-child {
    font-weight: 850;
}

.search-filter-toggle small {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.76rem;
    font-weight: 700;
}

.search-filter-toggle-chevron {
    color: rgba(255, 255, 255, 0.42);
    transition: transform 180ms ease;
}

.search-filter-toggle.is-open .search-filter-toggle-chevron {
    transform: rotate(180deg);
}

.search-filter-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 80;

    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        linear-gradient(
            145deg,
            rgba(18, 19, 28, 0.96),
            rgba(8, 9, 14, 0.94)
        );
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

.search-filter-panel.is-open {
    display: block;
}

.search-filter-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.search-filter-panel-header h2 {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.05em;
}

.search-clear-filters {
    min-height: 44px;
    min-width: 84px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.72);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 750;
    cursor: pointer;
}

.search-filter-panel-grid {
    display: grid;
    gap: 16px;
}

.search-sort-picker {
    position: relative;
    width: 100%;
}

.search-sort-button {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.search-sort-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 90;
    max-height: 280px;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(10, 11, 18, 0.98);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.search-sort-picker.is-open .search-sort-menu {
    display: grid;
    gap: 5px;
}

.search-filter-row {
    display: grid;
    gap: 14px;
}

.search-filter-group {
    display: grid;
    gap: 8px;
}

.search-filter-label {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.search-chip-filter,
.search-mana-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
}

.search-chip-filter::-webkit-scrollbar,
.search-mana-filter::-webkit-scrollbar {
    display: none;
}

.search-filter-chip,
.search-mana-chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.68);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    cursor: pointer;
}

.search-mana-chip {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-mana-symbol {
    width: 26px;
    height: 26px;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

.search-filter-chip.is-selected,
.search-mana-chip.is-selected {
    color: #ffffff;
    border-color: rgba(132, 109, 255, 0.34);
    background: rgba(132, 109, 255, 0.18);
}

@media (max-width: 620px) {
    .search-page-form {
        display: grid;
        border-radius: 30px;
    }

    .search-page-form .button {
        width: 100%;
    }

    .search-filter-panel {
        position: static;
        margin-top: 10px;
    }

    .search-filter-toggle {
        text-align: left;
    }

    .search-filter-toggle small {
        display: none;
    }
}

.nav-card-suggestion {
    width: 100%;
    border: 0;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

/* APPICON */
.appcontain {
    background-image: url(/assets/ManaVault_Application_Icon_Dark_Glass.png);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    width: 85px;
    min-width: 85px;
    height: 85px;
    min-height: 85px;
    position: relative;
    margin-bottom: 10px;
}

.appblur {
    opacity: .5;
    filter: blur(20px) saturate(200%);
    background-image: url(/assets/ManaVault_Application_Icon_Dark_Glass.png);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    width: 85px;
    height: 85px;
    position: absolute;
    inset: 0%;
    transform: scale(1.1);
}

.app {
    background-image: url(/assets/ManaVault_Application_Icon_Dark_Glass.png);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    width: 85px;
    height: 85px;
    position: absolute;
    inset: 0%;
}