@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
    color-scheme: light;
    --ink: #10243e;
    --ink-soft: #50647d;
    --navy: #0b213d;
    --blue: #1767d2;
    --blue-dark: #0d4fa8;
    --sky: #eaf4ff;
    --paper: #fffdf9;
    --background: #f3f0e9;
    --line: #d8d5cd;
    --green: #13785b;
    --red: #a43b4d;
    --amber: #9a6512;
    --shadow: 0 14px 38px rgba(20, 38, 61, .09);
    --shadow-lg: 0 30px 80px rgba(20, 38, 61, .16);
    font-family: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(rgba(255, 255, 255, .72), rgba(255, 255, 255, .72)),
        repeating-linear-gradient(90deg, transparent 0 47px, rgba(16, 36, 62, .025) 47px 48px),
        var(--background);
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
    outline: 3px solid rgba(23, 103, 210, .35);
    outline-offset: 3px;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1rem, 5vw, 5rem);
    border-bottom: 1px solid rgba(16, 36, 62, .12);
    background: rgba(255, 253, 249, .9);
    backdrop-filter: blur(18px);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    font: 700 1rem "Space Grotesk", sans-serif;
    letter-spacing: -.025em;
    text-decoration: none;
}
.brand strong { color: var(--blue); }
.brand-mark {
    display: block;
    width: 38px;
    aspect-ratio: 1;
    overflow: hidden;
    padding: .2rem;
    border-radius: 8px 14px 8px 14px;
    background: #fff;
    box-shadow: 5px 5px 0 #9fd1ff;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: .2rem; }
.site-nav a {
    padding: .68rem .9rem;
    border-radius: 9px;
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}
.site-nav a:hover { color: var(--ink); background: var(--sky); }
.site-nav .nav-cta { color: #fff; background: var(--blue); }
.site-nav .nav-cta:hover { color: #fff; background: var(--blue-dark); }
.nav-toggle { display: none; padding: .65rem; border: 0; background: transparent; }
.account-menu { position: relative; margin-left: .25rem; }
.account-menu__trigger {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 16px;
    min-width: 190px;
    align-items: center;
    gap: .55rem;
    padding: .35rem .5rem;
    border: 1px solid #cbd3dc;
    border-radius: 11px;
    color: var(--ink);
    background: rgba(255,255,255,.78);
    text-align: left;
    cursor: pointer;
}
.account-menu__trigger:hover, .account-menu.is-open .account-menu__trigger { border-color: #9ab9d9; background: var(--sky); }
.account-avatar { width: 38px; aspect-ratio: 1; flex: 0 0 auto; overflow: hidden; border-radius: 9px; background: #dcecff; color: var(--blue-dark); }
.account-avatar > span { padding: 0 !important; }
.account-avatar img { object-fit: cover; }
.account-avatar--large { width: 48px; border-radius: 11px; }
.account-avatar--organization { width: 38px; border-radius: 8px 14px 8px 14px; }
.account-menu__identity, .account-menu__person > span:last-child, .account-menu__actor > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.account-menu__identity strong, .account-menu__identity small,
.account-menu__person strong, .account-menu__person small,
.account-menu__actor strong, .account-menu__actor small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu__identity strong { font-size: .78rem; }
.account-menu__identity small { color: var(--ink-soft); font-size: .66rem; }
.account-menu__chevron { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .18s; }
.account-menu.is-open .account-menu__chevron { transform: rotate(180deg); }
.account-menu__panel {
    position: absolute;
    z-index: 150;
    top: calc(100% + .65rem);
    right: 0;
    overflow-y: auto;
    width: min(360px, calc(100vw - 2rem));
    max-height: min(680px, calc(100vh - 100px));
    padding: .65rem;
    border: 1px solid #c8d0d8;
    border-radius: 13px;
    background: var(--paper);
    box-shadow: var(--shadow-lg);
}
.account-menu__person { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: .75rem; padding: .55rem; }
.account-menu__person strong { font: 700 .92rem "Space Grotesk", sans-serif; }
.account-menu__person small { margin-top: .15rem; color: var(--ink-soft); font-size: .72rem; }
.account-menu__links { display: grid; gap: .15rem; }
.site-nav .account-menu__links a,
.account-menu__links button { display: flex; width: 100%; padding: .65rem .7rem; border: 0; border-radius: 8px; color: var(--ink-soft); background: transparent; font-size: .76rem; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.site-nav .account-menu__links a:hover, .account-menu__links button:hover { color: var(--ink); background: var(--sky); }
.account-menu__links .account-menu__signout { color: var(--red); }
.account-menu__divider { height: 1px; margin: .55rem .25rem; background: var(--line); }
.account-menu__heading { padding: .3rem .55rem .45rem; color: var(--ink-soft); font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.account-menu__panel form { margin: 0; }
.account-menu__actor {
    display: grid;
    width: 100%;
    grid-template-columns: 38px minmax(0, 1fr) 22px;
    align-items: center;
    gap: .65rem;
    padding: .55rem;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--ink);
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.account-menu__actor:hover { background: #f1f7fd; }
.account-menu__actor.is-selected { border-color: #b8d5ef; background: var(--sky); }
.account-menu__actor strong { font-size: .76rem; }
.account-menu__actor small { margin-top: .12rem; color: var(--ink-soft); font-size: .65rem; }
.account-menu__actor b { display: grid; width: 22px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: transparent; background: transparent; font-size: .7rem; }
.account-menu__actor.is-selected b { color: #fff; background: var(--blue); }
.account-menu__notice { padding: .7rem; margin: 0; color: var(--ink-soft); background: #f6f3ed; font-size: .7rem; line-height: 1.45; }

@media (max-width: 980px) and (min-width: 781px) {
    .account-menu__trigger { min-width: 0; grid-template-columns: 38px 14px; }
    .account-menu__identity { display: none; }
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: .72rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, background .18s;
}
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }
.button--primary { color: #fff; background: var(--blue); box-shadow: 4px 4px 0 #9fd1ff; }
.button--primary:hover { background: var(--blue-dark); }
.button--ghost { border-color: #c6ced8; color: var(--ink); background: rgba(255, 255, 255, .7); }
.button--secondary { border-color: #9dc7f2; color: var(--blue-dark); background: var(--sky); }
.button--danger { border-color: #e2aab4; color: var(--red); background: #fff1f3; }
.button--light { color: var(--navy); background: #fff; box-shadow: 5px 5px 0 rgba(7, 25, 48, .22); }
.button--compact { min-height: 39px; padding: .55rem .8rem; font-size: .76rem; }
.text-link { color: var(--blue-dark); font-size: .82rem; font-weight: 800; text-underline-offset: 3px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .8rem;
    color: var(--blue-dark);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.eyebrow::before { width: 22px; height: 3px; background: #ef9c39; content: ""; }

.image-frame {
    position: relative;
    display: grid;
    overflow: hidden;
    place-items: center;
    color: #6d7c8e;
    background:
        linear-gradient(135deg, rgba(255,255,255,.52), transparent),
        repeating-linear-gradient(135deg, #dce8f4 0 12px, #e8f1f8 12px 24px);
    font: 700 .68rem "Space Grotesk", sans-serif;
    letter-spacing: .11em;
}
.image-frame > img {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-frame > span:not(.rarity) { padding: 1rem; text-align: center; }
.image-frame.has-image-error { background: repeating-linear-gradient(135deg, #f1e9db 0 12px, #f8f3ea 12px 24px); }

.hero {
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) minmax(340px, .95fr);
    width: min(1450px, calc(100% - 3rem));
    align-items: start;
    gap: clamp(2rem, 4.5vw, 4.5rem);
    padding: clamp(3rem, 5vw, 5rem) 0 4.5rem;
    margin: 0 auto;
}
.hero-image-wrap {
    min-height: clamp(390px, 33vw, 500px);
    border: 1px solid #b9c8d6;
    border-radius: 18px 56px 18px 56px;
    box-shadow: 12px 14px 0 #c6e5ff, var(--shadow-lg);
}
.hero-image-wrap img { object-position: center; }
.hero-content h1,
.section-heading h2,
.feature-banner h2,
.final-cta h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1.02;
}
.hero-content h1 { max-width: 14ch; font-size: clamp(2.9rem, 4.5vw, 4.65rem); }
.hero-content > p {
    max-width: 58ch;
    margin: 1.35rem 0 0;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.4vw, 1.17rem);
    line-height: 1.72;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.trust-list { display: flex; flex-wrap: wrap; gap: .8rem 1.3rem; padding: 0; margin: 1.8rem 0 0; list-style: none; }
.trust-list li { color: var(--ink-soft); font-size: .82rem; font-weight: 700; }
.trust-list span { color: var(--green); }

.metric-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: min(1250px, calc(100% - 3rem));
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: var(--shadow);
}
.metric-strip div { display: flex; flex-direction: column; gap: .25rem; padding: 1.4rem 1.7rem; }
.metric-strip div + div { border-left: 1px solid var(--line); }
.metric-strip strong { font: 700 1.25rem "Space Grotesk", sans-serif; }
.metric-strip span { color: var(--ink-soft); font-size: .78rem; }

.content-section { width: min(1250px, calc(100% - 3rem)); padding: clamp(5rem, 9vw, 9rem) 0; margin: 0 auto; }
.section-heading { max-width: 720px; margin-bottom: 2.5rem; }
.section-heading h2, .feature-banner h2, .final-cta h2 { font-size: clamp(2.1rem, 4vw, 4rem); }
.section-heading p { color: var(--ink-soft); line-height: 1.7; }
.workflow-visual { overflow: hidden; aspect-ratio: 1672 / 941; margin-top: 2rem; border: 1px solid #b9c8d6; border-radius: 12px 34px 12px 34px; background: var(--sky); box-shadow: 8px 8px 0 #c6e5ff; }
.workflow-visual img { width: 100%; height: 100%; object-fit: cover; }
.workflow-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.workflow { padding: 0; margin: 0; list-style: none; counter-reset: steps; }
.workflow li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
}
.workflow > li > span { color: var(--blue); font: 700 .75rem "Space Grotesk", sans-serif; letter-spacing: .1em; }
.workflow h3 { margin: 0 0 .3rem; font: 700 1.05rem "Space Grotesk", sans-serif; }
.workflow p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.economy-section { padding-top: 2rem; }
.feature-banner {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 3rem;
    padding: clamp(2rem, 6vw, 5rem);
    border-radius: 18px 50px 18px 50px;
    color: #fff;
    background: var(--navy);
    box-shadow: 12px 12px 0 #9fd1ff;
}
.feature-banner h2 { max-width: 19ch; }
.feature-banner .eyebrow { color: #9fd1ff; }
.feature-banner__copy { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; gap: 2rem; }
.feature-banner__media { overflow: hidden; align-self: center; border: 1px solid rgba(255,255,255,.24); border-radius: 12px 34px 12px 34px; box-shadow: 7px 7px 0 rgba(159,209,255,.35); }
.feature-banner__media img { width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; }
.feature-stack { display: flex; flex-direction: column; justify-content: center; gap: .7rem; }
.feature-stack span { padding: .8rem 1rem; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: rgba(255,255,255,.07); font-size: .84rem; }
.final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(2rem, 5vw, 4rem);
    margin-bottom: 7rem;
    border: 1px solid #0e579f;
    border-radius: 16px;
    color: #fff;
    background: var(--blue);
}
.final-cta h2 { max-width: 17ch; }
.final-cta .eyebrow { color: #d9efff; }

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem 4rem;
    padding: 4rem clamp(1.25rem, 7vw, 7rem) 2rem;
    color: #adbed1;
    background: #081a2f;
}
.footer-brand { color: #fff; }
.site-footer p { max-width: 550px; margin: .9rem 0 0; font-size: .86rem; }
.site-footer nav { display: flex; flex-wrap: wrap; align-content: start; justify-content: flex-end; gap: .5rem 1.1rem; }
.site-footer nav a { color: #e5effa; font-size: .82rem; text-decoration: none; }
.footer-legal-more { display: inline-block; }
.footer-legal-more summary { cursor: pointer; color: #e5effa; font-size: .82rem; list-style: none; }
.footer-legal-more summary::-webkit-details-marker { display: none; }
.footer-legal-more summary::after { content: " \25BE"; }
.footer-legal-more[open] summary::after { content: " \25B4"; }
.footer-legal-more__panel { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1.1rem; max-width: 42rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.1); }
.footer-legal-more__panel a { color: #e5effa; font-size: .82rem; text-decoration: none; }
.site-footer small { grid-column: 1 / -1; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .74rem; }

.page-shell { width: min(1180px, calc(100% - 3rem)); min-height: 68vh; padding: 4rem 0 7rem; margin: 0 auto; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.3rem; }
.page-heading h1, .create-heading h1, .public-package-copy h1 {
    margin: 0;
    font: 700 clamp(2.4rem, 5vw, 4.5rem) "Space Grotesk", sans-serif;
    letter-spacing: -.055em;
    line-height: 1;
}
.page-heading p { max-width: 620px; margin: .8rem 0 0; color: var(--ink-soft); line-height: 1.6; }
.empty-state { padding: 4rem 2rem; border: 1px dashed #9eabb8; border-radius: 14px; background: rgba(255,253,249,.8); text-align: center; }
.empty-state__mark { display: grid; width: 70px; aspect-ratio: 1; place-items: center; margin: 0 auto 1.2rem; border-radius: 14px 25px 14px 25px; color: #fff; background: var(--navy); font: 700 .75rem "Space Grotesk", sans-serif; }
.empty-state h1, .empty-state h2 { margin: 0; font: 700 1.6rem "Space Grotesk", sans-serif; }
.empty-state p { margin: .7rem auto 1.4rem; color: var(--ink-soft); }
.status-message,
.error-message {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1rem;
    margin: 0 0 1.3rem;
    border-radius: 10px;
    font-size: .88rem;
}
.status-message { border: 1px solid #9ed6c2; color: #0e5b45; background: #edfaf5; }
.status-message > span { display: grid; width: 24px; aspect-ratio: 1; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--green); }
.error-message { align-items: flex-start; flex-direction: column; gap: .2rem; border: 1px solid #e0a9b3; color: #81283a; background: #fff1f3; }
.validation-summary:empty, .validation-summary-valid, .field-error:empty { display: none; }
.validation-summary { padding: .9rem 1rem; border: 1px solid #e0a9b3; border-radius: 10px; color: #81283a; background: #fff1f3; font-size: .84rem; }
.validation-summary ul { margin: 0; padding-left: 1.2rem; }
.field-error { color: var(--red); font-size: .74rem; font-weight: 700; }

.campaign-create-page { width: min(1320px, calc(100% - 3rem)); }
.create-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.3rem; }
.create-heading p { max-width: 720px; margin: 1rem 0 0; color: var(--ink-soft); line-height: 1.65; }
.create-heading .eyebrow { display: flex; width: fit-content; margin-top: 1rem; }
.back-link { color: var(--ink-soft); font-size: .84rem; font-weight: 800; text-decoration: none; }
.back-link:hover { color: var(--blue-dark); }
.draft-badge { display: flex; align-items: center; gap: .55rem; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); font-size: .8rem; font-weight: 800; }
.draft-badge span { width: 9px; aspect-ratio: 1; border-radius: 50%; background: #e58a27; }
.campaign-builder { display: grid; gap: 1.15rem; }
.form-section { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,249,.95); box-shadow: var(--shadow); }
.form-section__heading { display: grid; grid-template-columns: 38px 1fr; gap: .9rem; align-items: start; margin-bottom: 1.4rem; }
.form-section__heading > span { display: grid; width: 38px; aspect-ratio: 1; place-items: center; border-radius: 7px 13px 7px 13px; color: #fff; background: var(--navy); font: 700 .72rem "Space Grotesk", sans-serif; }
.form-section__heading h2 { margin: 0; font: 700 1.2rem "Space Grotesk", sans-serif; }
.form-section__heading p { margin: .25rem 0 0; color: var(--ink-soft); font-size: .83rem; line-height: 1.5; }
.form-notice { padding: .8rem .9rem; border: 1px solid #e2c28c; border-radius: 9px; color: #76500e; background: #fff8e9; font-size: .82rem; }
.owner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .7rem; }
.owner-option { position: relative; cursor: pointer; }
.owner-option > input { position: absolute; opacity: 0; pointer-events: none; }
.owner-option__card { display: grid; grid-template-columns: 46px 1fr 23px; align-items: center; gap: .7rem; min-height: 74px; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border .18s, transform .18s, box-shadow .18s; }
.owner-option:hover .owner-option__card { transform: translateY(-1px); }
.image-frame--avatar { width: 46px; aspect-ratio: 1; border-radius: 9px; }
.image-frame--avatar img { object-fit: cover; }
.owner-option__card > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.owner-option__card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-option__card small { color: var(--ink-soft); }
.owner-option__card > b,
.choice-card > b { display: grid; width: 23px; aspect-ratio: 1; place-items: center; border: 1px solid #bdc7d2; border-radius: 50%; color: transparent; font-size: .7rem; }
.owner-option input:checked + .owner-option__card { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,103,210,.11); }
.owner-option input:checked + .owner-option__card > b,
.choice-option input:checked + .choice-card > b { border-color: var(--blue); color: #fff; background: var(--blue); }
.owner-option input:focus-visible + .owner-option__card,
.choice-option input:focus-visible + .choice-card { outline: 3px solid rgba(23,103,210,.3); outline-offset: 2px; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.field { display: flex; min-width: 0; flex-direction: column; gap: .4rem; color: var(--ink); font-size: .82rem; font-weight: 800; }
.field--wide { grid-column: 1 / -1; }
.field > span small { margin-left: .25rem; color: var(--ink-soft); font-weight: 500; }
.field input, .field textarea, .field select,
.catalog-search input,
.catalog-item__controls input {
    width: 100%;
    min-height: 46px;
    padding: .68rem .78rem;
    border: 1px solid #c9c9c2;
    border-radius: 8px;
    outline: 0;
    color: var(--ink);
    background: #fff;
    font-weight: 500;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus,
.catalog-search input:focus, .catalog-item__controls input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,103,210,.11); }
.field > small { color: var(--ink-soft); font-size: .72rem; font-weight: 500; line-height: 1.4; }
.rarity-field { min-width: 0; padding: 0; margin: .25rem 0 0; border: 0; }
.rarity-field legend { padding: 0; margin-bottom: .55rem; font-size: .82rem; font-weight: 800; }
.rarity-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.rarity-option { position: relative; min-width: 130px; flex: 1 1 150px; cursor: pointer; color: #445466; }
.rarity-option > input { position: absolute; opacity: 0; pointer-events: none; }
.rarity-option__card { display: flex; min-height: 58px; align-items: center; justify-content: center; gap: .55rem; padding: .65rem .75rem; border: 2px solid color-mix(in srgb, currentColor 32%, white); border-radius: 10px; background: color-mix(in srgb, currentColor 8%, white); font: 700 .78rem "Space Grotesk", sans-serif; transition: transform .18s, border-color .18s, box-shadow .18s, background .18s; }
.rarity-option:hover .rarity-option__card { transform: translateY(-1px); border-color: currentColor; }
.rarity-option__icon { display: grid; width: 28px; aspect-ratio: 1; place-items: center; flex: 0 0 auto; border-radius: 8px; background: color-mix(in srgb, currentColor 13%, white); }
.rarity-option__icon svg { width: 22px; height: 22px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rarity-option--uncommon { color: #13704d; }
.rarity-option--rare { color: #1767c4; }
.rarity-option--epic { color: #7543b5; }
.rarity-option--legendary { color: #a3610b; }
.rarity-option--mythic { color: #a52c57; }
.rarity-option input:checked + .rarity-option__card { border-color: currentColor; background: color-mix(in srgb, currentColor 17%, white); box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent), inset 0 -3px 0 color-mix(in srgb, currentColor 25%, transparent); }
.rarity-option input:checked + .rarity-option__card .rarity-option__icon { color: #fff; background: currentColor; }
.rarity-option input:focus-visible + .rarity-option__card { outline: 3px solid currentColor; outline-offset: 3px; }
.choice-group { padding: 0; margin: 0; border: 0; }
.choice-group + .choice-group { padding-top: 1.3rem; margin-top: 1.3rem; border-top: 1px solid var(--line); }
.choice-group legend { padding: 0; font: 700 .88rem "Space Grotesk", sans-serif; }
.choice-grid { display: grid; gap: .7rem; margin-top: .7rem; }
.choice-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-option { position: relative; cursor: pointer; }
.choice-option > input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card { display: grid; grid-template-columns: 42px 1fr 23px; align-items: center; gap: .7rem; height: 100%; min-height: 84px; padding: .78rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border .18s, transform .18s, box-shadow .18s; }
.choice-option:hover .choice-card { transform: translateY(-1px); border-color: #a8bdd3; }
.choice-option input:checked + .choice-card { border-color: var(--blue); background: #f6fbff; box-shadow: 0 0 0 3px rgba(23,103,210,.1); }
.choice-card > i { display: grid; width: 42px; aspect-ratio: 1; place-items: center; border-radius: 8px; color: var(--blue-dark); background: var(--sky); font-style: normal; font-size: .65rem; font-weight: 800; }
.choice-card > span { display: flex; min-width: 0; flex-direction: column; gap: .18rem; }
.choice-card strong { font: 700 .82rem "Space Grotesk", sans-serif; }
.choice-card small { color: var(--ink-soft); font-size: .7rem; font-weight: 500; line-height: 1.35; }
.referral-field { max-width: 420px; padding-top: 1.2rem; }

.catalog-section { overflow: hidden; padding-right: 0; padding-left: 0; }
.form-section__heading--catalog, .catalog-section > .form-notice, .catalog-section > .field-error { margin-right: clamp(1.2rem, 3vw, 2rem); margin-left: clamp(1.2rem, 3vw, 2rem); }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1.2rem, 3vw, 2rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f6f3ed; }
.catalog-search { flex: 1 1 380px; max-width: 560px; }
.catalog-search input { padding-left: 1rem; background: var(--paper); }
.catalog-totals { display: flex; flex-direction: column; align-items: flex-end; color: var(--ink-soft); font-size: .76rem; }
.catalog-totals strong { color: var(--ink); font-size: .88rem; }
.catalog-empty { padding: 2rem; color: var(--ink-soft); text-align: center; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.catalog-item { min-width: 0; background: var(--paper); transition: background .18s; }
.catalog-item.is-selected { background: #f3f9ff; }
.catalog-item__select { position: relative; display: block; cursor: pointer; }
.catalog-item__image { aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); }
.catalog-item__image img { object-fit: cover; }
.catalog-item__copy { display: flex; min-height: 125px; flex-direction: column; gap: .34rem; padding: .85rem; }
.catalog-item__copy strong { font: 700 .9rem "Space Grotesk", sans-serif; }
.catalog-item__copy small { display: -webkit-box; overflow: hidden; color: var(--ink-soft); font-size: .7rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.catalog-item__select > input { position: absolute; right: .8rem; bottom: .8rem; opacity: 0; }
.check-mark { position: absolute; z-index: 3; top: .7rem; right: .7rem; display: grid; width: 30px; aspect-ratio: 1; place-items: center; border: 2px solid rgba(255,255,255,.92); border-radius: 50%; color: transparent; background: rgba(16,36,62,.56); box-shadow: 0 2px 8px rgba(16,36,62,.2); }
.catalog-item.is-selected .check-mark { color: #fff; background: var(--blue); }
.catalog-item__select:has(input:focus-visible) { outline: 3px solid rgba(23,103,210,.4); outline-offset: -3px; }
.rarity { display: inline-flex; width: fit-content; align-items: center; padding: .22rem .45rem; border-radius: 999px; color: #35475b; background: #e3e7eb; font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rarity--uncommon { color: #176244; background: #d9f1e5; }
.rarity--rare { color: #135cae; background: #dcecff; }
.rarity--epic { color: #6538a4; background: #ebdefc; }
.rarity--legendary { color: #8c5510; background: #ffebc7; }
.rarity--mythic { color: #952f51; background: #ffe0ea; }
.catalog-item__controls { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; padding: 0 .85rem .85rem; }
.catalog-item__controls label { display: flex; min-width: 0; flex-direction: column; gap: .25rem; color: var(--ink-soft); font-size: .65rem; font-weight: 800; }
.catalog-item__controls input { min-height: 38px; padding: .45rem .5rem; }
.catalog-item:not(.is-selected) .catalog-item__controls { opacity: .58; }
.weight-control { display: none !important; }
.campaign-builder.is-weighted .weight-control { display: flex !important; }
.item-probability { grid-column: 1 / -1; min-height: 18px; color: var(--blue-dark); font-size: .68rem; font-weight: 800; }
.form-submit { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.2rem 1.3rem; border: 1px solid #b8c8d7; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.form-submit > div { display: flex; flex-direction: column; gap: .2rem; }
.form-submit span { color: var(--ink-soft); font-size: .78rem; }

.campaign-list { display: grid; gap: 1.1rem; }
.campaign-card { display: grid; grid-template-columns: 270px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.campaign-card__image { min-height: 100%; border-right: 1px solid var(--line); }
.campaign-card__image .rarity,
.public-package-image .rarity { position: absolute; z-index: 2; right: .8rem; bottom: .8rem; }
.campaign-card__body { min-width: 0; padding: 1.25rem; }
.campaign-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.campaign-card__heading .eyebrow { margin-bottom: .35rem; }
.campaign-card__heading h2, .my-package-card h2 { margin: 0; font: 700 1.3rem "Space Grotesk", sans-serif; letter-spacing: -.025em; }
.campaign-card__heading p { margin: .25rem 0 0; color: var(--ink-soft); font-size: .78rem; }
.status-badge { display: inline-flex; width: fit-content; padding: .3rem .55rem; border: 1px solid #c5ced8; border-radius: 999px; color: #445a70; background: #f1f4f6; font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.status-badge--active, .status-badge--rewarded, .status-badge--provisioned { border-color: #9dd5c1; color: #126147; background: #e7f7f1; }
.status-badge--draft, .status-badge--notprovisioned, .status-badge--available { border-color: #a8c9ea; color: #195a9c; background: #eaf4ff; }
.status-badge--scheduled, .status-badge--awaitingreferrals, .status-badge--awaitingtask, .status-badge--provisioning { border-color: #e4c78f; color: #7b5516; background: #fff6e4; }
.status-badge--failed, .status-badge--cancelled, .status-badge--expired, .status-badge--suspended { border-color: #e2aab4; color: #862d3e; background: #fff0f3; }
.campaign-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 1rem 0; background: var(--line); }
.campaign-facts div { min-width: 0; padding: .7rem; background: #f8f6f1; }
.campaign-facts dt { color: var(--ink-soft); font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.campaign-facts dd { overflow: hidden; margin: .25rem 0 0; font-size: .76rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.economy-identity { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; padding: .7rem .8rem; border: 1px solid #cbd7e2; border-radius: 8px; background: #f3f8fc; }
.economy-identity > span { width: 100%; color: var(--ink-soft); font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.economy-identity code { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; }
.economy-identity strong { font-size: .76rem; }
.economy-identity small { color: var(--ink-soft); font-size: .68rem; }
.campaign-note { padding: .65rem .75rem; margin: .7rem 0 0; border-left: 3px solid var(--blue); color: var(--ink-soft); background: #edf6ff; font-size: .75rem; line-height: 1.45; }
.campaign-note--warning { border-color: #d08b23; color: #714b10; background: #fff7e7; }
.campaign-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; padding-top: .9rem; margin-top: .9rem; border-top: 1px solid var(--line); }
.campaign-controls form { margin: 0; }
.campaign-controls .text-link { margin-left: auto; }
.control-countdown { margin: .6rem 0 0; color: var(--amber); font-size: .72rem; }

.public-package-page { width: min(1220px, calc(100% - 3rem)); }
.public-package-layout { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(380px, 1.1fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.public-package-media { min-width: 0; }
.public-package-image { aspect-ratio: 1; border: 1px solid #b7c4d0; border-radius: 18px 50px 18px 50px; box-shadow: 12px 12px 0 #c6e5ff, var(--shadow-lg); }
.package-capacity { margin-top: 1.8rem; }
.package-capacity progress { display: block; width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 999px; background: #d9dee3; }
.package-capacity progress::-webkit-progress-bar { background: #d9dee3; }
.package-capacity progress::-webkit-progress-value { border-radius: 999px; background: var(--blue); }
.package-capacity progress::-moz-progress-bar { border-radius: 999px; background: var(--blue); }
.package-capacity small { display: block; margin-top: .5rem; color: var(--ink-soft); text-align: center; }
.public-package-copy h1 { max-width: 13ch; }
.package-description { color: var(--ink-soft); font-size: 1.04rem; line-height: 1.7; }
.package-rule-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.package-rule-row span { padding: .5rem .65rem; border: 1px solid #bed3e6; border-radius: 8px; color: #28597f; background: #eef7ff; font-size: .72rem; font-weight: 800; }
.package-window { color: var(--ink-soft); font-size: .78rem; }
.public-package-action { padding-top: 1.2rem; margin-top: 1.2rem; border-top: 1px solid var(--line); }
.public-package-action form { margin: 0; }
.public-package-action > small { display: block; margin-top: .65rem; color: var(--ink-soft); }
.public-package-action .status-message { align-items: flex-start; }
.public-package-action .validation-summary { margin-top: .8rem; }
.package-contents { padding-top: 7rem; }
.contents-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.content-item { display: grid; grid-template-columns: 100px 1fr; overflow: hidden; min-height: 100px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.content-item__image { min-height: 100%; border-right: 1px solid var(--line); }
.content-item > div:last-child { align-self: center; min-width: 0; padding: .75rem; }
.content-item h3 { overflow: hidden; margin: 0; font: 700 .9rem "Space Grotesk", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.content-item p { margin: .3rem 0; color: var(--ink-soft); font-size: .72rem; }
.content-item strong { color: var(--blue-dark); font-size: .72rem; }

.my-package-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.my-package-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: var(--shadow); }
.my-package-card__image { aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); }
.my-package-card__body { display: flex; align-items: flex-start; flex-direction: column; gap: .75rem; padding: 1rem; }
.my-package-card .economy-identity { width: 100%; }
.my-package-card__body > small { color: var(--ink-soft); font-size: .68rem; }

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
        gap: clamp(1.5rem, 3.5vw, 2.5rem);
        padding-top: 3.5rem;
    }
    .hero-image-wrap { min-height: clamp(280px, 38vw, 410px); }
    .hero-content h1 { max-width: 15ch; font-size: clamp(2.5rem, 5vw, 3.5rem); }
    .hero-content > p { line-height: 1.6; }
    .hero-actions, .trust-list { margin-top: 1.4rem; }
    .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .campaign-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contents-grid, .my-package-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
    .site-header { min-height: 64px; padding: 0 1rem; }
    .nav-toggle { display: grid; gap: 4px; }
    .nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--ink); }
    .site-nav { position: absolute; top: calc(100% + 7px); right: .8rem; left: .8rem; display: none; overflow-y: auto; max-height: calc(100vh - 82px); align-items: stretch; flex-direction: column; padding: .65rem; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); box-shadow: var(--shadow-lg); }
    .site-nav.is-open { display: flex; }
    .account-menu { width: 100%; margin: .25rem 0 0; }
    .account-menu__trigger { width: 100%; min-width: 0; }
    .account-menu__panel { position: static; width: 100%; max-height: 55vh; margin-top: .45rem; box-shadow: inset 0 0 0 1px rgba(16,36,62,.03); }
    .hero, .content-section, .metric-strip, .page-shell, .campaign-create-page, .public-package-page { width: calc(100% - 2rem); }
    .hero { padding-top: 2.5rem; }
    .hero-image-wrap { min-height: clamp(260px, 39vw, 300px); border-radius: 14px 35px 14px 35px; box-shadow: 7px 8px 0 #c6e5ff; }
    .metric-strip { grid-template-columns: repeat(2, 1fr); }
    .metric-strip div:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
    .metric-strip div:nth-child(4) { border-top: 1px solid var(--line); }
    .workflow-section, .feature-banner, .public-package-layout { grid-template-columns: 1fr; }
    .feature-banner { border-radius: 14px 35px 14px 35px; }
    .site-footer { grid-template-columns: 1fr; }
    .site-footer nav { justify-content: flex-start; }
    .site-footer small { grid-column: 1; }
    .page-heading, .create-heading { align-items: flex-start; flex-direction: column; }
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .campaign-card { grid-template-columns: 200px 1fr; }
    .campaign-card__image { min-height: 280px; }
    .public-package-media { width: min(520px, 100%); margin: 0 auto; }
}

@media (max-width: 700px) {
    .hero { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-image-wrap { order: 2; min-height: 0; aspect-ratio: 1672 / 941; }
    .hero-content h1 { max-width: 16ch; }
}

@media (max-width: 560px) {
    .brand > span:last-child { font-size: .86rem; }
    .hero-content h1 { font-size: 2.65rem; }
    .hero-actions .button, .final-cta .button { width: 100%; }
    .metric-strip { grid-template-columns: 1fr; }
    .metric-strip div + div, .metric-strip div:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
    .final-cta { align-items: flex-start; flex-direction: column; }
    .field-grid, .choice-grid--two { grid-template-columns: 1fr; }
    .field--wide { grid-column: 1; }
    .catalog-toolbar { align-items: stretch; flex-direction: column; }
    .catalog-search { flex-basis: auto; }
    .catalog-totals { align-items: flex-start; }
    .catalog-grid { grid-template-columns: 1fr; }
    .catalog-item__image { aspect-ratio: 16 / 9; }
    .form-submit { align-items: stretch; flex-direction: column; }
    .campaign-card { grid-template-columns: 1fr; }
    .campaign-card__image { min-height: 220px; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
    .campaign-card__heading { flex-direction: column-reverse; }
    .campaign-facts { grid-template-columns: 1fr 1fr; }
    .campaign-controls .text-link { width: 100%; margin: .35rem 0 0; }
    .contents-grid, .my-package-list { grid-template-columns: 1fr; }
    .package-contents { padding-top: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
