@font-face {
    font-family: "Bricolage Grotesque";
    src: url("/fonts/bricolage-grotesque-700.woff") format("woff");
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #0E1424;
    --ink-2: #131B30;
    --ink-3: #1A2440;
    --line: #263152;
    --line-2: #33406A;
    --text: #E8ECF6;
    --muted: #8E98B8;
    --gold: #E8B04B;
    --gold-2: #F6CF7E;
    --gold-3: #9C6E1E;
    --ok: #45C98E;
    --err: #FF7A6B;
    --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
    --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font: 16px/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

[hidden] {
    display: none !important;
}

a {
    color: var(--gold-2);
    text-underline-offset: 3px;
}

    a:hover {
        color: var(--gold);
    }

h1, h2, h3 {
    font-family: var(--display);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 .5em;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.2rem, 5.2vw, 3.9rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
}

:focus-visible {
    outline: 2px solid var(--gold-2);
    outline-offset: 2px;
    border-radius: 4px;
}

.wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding-inline: 20px;
}

.skip {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--gold);
    color: var(--ink);
    padding: 8px 14px;
    border-radius: var(--r-sm);
    z-index: 100;
}

    .skip:focus {
        left: 12px;
    }

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(14, 20, 36, .82);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid rgba(38, 49, 82, .7);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 66px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

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

.nav {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

    .nav a {
        color: var(--muted);
        text-decoration: none;
        font-size: .95rem;
    }

        .nav a:hover {
            color: var(--text);
        }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: 600 .95rem/1 var(--body);
    border-radius: 999px;
    padding: 12px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}

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

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line-2);
}

    .btn-ghost:hover {
        border-color: var(--gold);
        color: var(--gold-2);
    }

.btn-gold {
    background: var(--gold);
    color: #1B1406;
}

    .btn-gold:hover {
        background: var(--gold-2);
        color: #1B1406;
    }

    .btn-gold:disabled {
        background: var(--ink-3);
        color: var(--muted);
        cursor: not-allowed;
    }

.btn-block {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 14px;
    font-size: .85rem;
}

.btn .spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: spin .8s linear infinite;
}

.link-btn {
    background: none;
    border: 0;
    color: var(--muted);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 8px;
}

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

.hero {
    padding-top: clamp(40px, 7vw, 84px);
    padding-bottom: 56px;
}

.hero-copy {
    max-width: 780px;
    margin-bottom: 40px;
}

.lede {
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    color: var(--muted);
    max-width: 62ch;
}

    .lede strong {
        color: var(--gold-2);
        font-weight: 600;
    }

.studio {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: start;
}

.mint-form {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

legend {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 18px;
    padding: 0;
}

.authorities {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

    .authorities legend {
        margin-bottom: 6px;
    }

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    display: block;
    margin-bottom: 18px;
}

    .field > span {
        display: block;
        font-size: .88rem;
        color: var(--muted);
        margin-bottom: 7px;
    }

input:not([type=checkbox]):not([type=file]), select, textarea {
    width: 100%;
    background: var(--ink);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 12px 14px;
    font: 1rem/1.4 var(--body);
    transition: border-color .15s, box-shadow .15s;
}

    input::placeholder, textarea::placeholder {
        color: #5D6788;
    }

    input:focus, select:focus, textarea:focus {
        outline: none;
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(232, 176, 75, .18);
    }

input[aria-invalid=true] {
    border-color: var(--err);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238E98B8' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

textarea {
    resize: vertical;
    min-height: 84px;
}

.drop {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px dashed var(--line-2);
    border-radius: var(--r-md);
    padding: 14px;
    cursor: pointer;
    background: var(--ink);
    transition: border-color .15s, background-color .15s;
}

    .drop:hover, .drop.is-over {
        border-color: var(--gold);
        background: rgba(232, 176, 75, .05);
    }

    #f-logo:focus-visible + .drop, .drop:focus-within {
        border-color: var(--gold);
    }

.drop-thumb {
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: 50%;
    background: var(--ink-3);
    display: grid;
    place-items: center;
    color: var(--muted);
    overflow: hidden;
}

    .drop-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.drop-text strong {
    display: block;
    font-weight: 600;
    font-size: .98rem;
}

.drop-text small {
    color: var(--muted);
    font-size: .84rem;
}

.more {
    margin-top: 2px;
}

    .more summary {
        cursor: pointer;
        color: var(--gold-2);
        font-size: .95rem;
        list-style: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

        .more summary::-webkit-details-marker {
            display: none;
        }

        .more summary::before {
            content: "+";
            display: inline-grid;
            place-items: center;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 1px solid var(--line-2);
            font-size: .9rem;
            line-height: 1;
        }

    .more[open] summary::before {
        content: "\2212";
    }

.more-body {
    margin-top: 16px;
}

.switch {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 12px 0;
    cursor: pointer;
    position: relative;
}

    .switch + .switch {
        border-top: 1px solid rgba(38, 49, 82, .6);
    }

    .switch input {
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
    }

.switch-ui {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: var(--ink-3);
    border: 1px solid var(--line-2);
    position: relative;
    margin-top: 2px;
    transition: background-color .15s, border-color .15s;
}

    .switch-ui::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--muted);
        transition: transform .18s, background-color .15s;
    }

.switch input:checked + .switch-ui {
    background: var(--gold);
    border-color: var(--gold);
}

    .switch input:checked + .switch-ui::after {
        transform: translateX(18px);
        background: #1B1406;
    }

.switch input:focus-visible + .switch-ui {
    outline: 2px solid var(--gold-2);
    outline-offset: 2px;
}

.switch-text strong {
    display: block;
    font-weight: 600;
}

.free-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(69, 201, 142, .14);
    border: 1px solid rgba(69, 201, 142, .45);
    color: var(--ok);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: 2px;
}

.switch-text small {
    color: var(--muted);
    font-size: .88rem;
}

.preview-sticky {
    position: sticky;
    top: 88px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
}

.testnet {
    background: rgba(69, 201, 142, .1);
    color: var(--ok);
    border: 1px solid rgba(69, 201, 142, .3);
    border-radius: var(--r-sm);
    font-size: .85rem;
    padding: 8px 12px;
    margin-bottom: 16px;
}

.coin-stage {
    display: grid;
    place-items: center;
    padding: 8px 0 22px;
    perspective: 600px;
}

.coin {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), transparent 45%), conic-gradient(from 210deg, var(--gold-3), var(--gold-2), var(--gold), var(--gold-3), var(--gold-2), var(--gold-3));
    box-shadow: 0 18px 40px -12px rgba(232, 176, 75, .35), inset 0 0 0 1px rgba(255, 255, 255, .15);
}

    .coin::before {
        content: "";
        position: absolute;
        inset: 9px;
        border-radius: 50%;
        background: var(--ink);
        box-shadow: inset 0 0 0 2px rgba(246, 207, 126, .55);
    }

    .coin img, .coin span {
        position: relative;
        width: calc(100% - 26px);
        height: calc(100% - 26px);
        border-radius: 50%;
    }

    .coin img {
        object-fit: cover;
    }

    .coin span {
        display: grid;
        place-items: center;
        font-family: var(--display);
        font-size: 3.4rem;
        font-weight: 700;
        color: var(--gold-2);
    }

    .coin.stamp {
        animation: stamp .5s cubic-bezier(.2, .9, .3, 1.4);
    }

    .coin.spin {
        animation: flip 1.1s cubic-bezier(.3, .7, .3, 1);
    }

.wallet-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    align-items: center;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 12px 14px;
}

.wr-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ink-3);
    display: grid;
    place-items: center;
    overflow: hidden;
    font-family: var(--display);
    font-weight: 700;
    color: var(--gold-2);
}

    .wr-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.wr-name {
    min-width: 0;
}

    .wr-name strong {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 600;
    }

    .wr-name small {
        color: var(--muted);
        font-size: .85rem;
    }

.wr-bal {
    font-variant-numeric: tabular-nums;
    font-size: .92rem;
    color: var(--text);
    text-align: right;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.costs {
    margin: 22px 0 18px;
    padding: 0;
}

    .costs > div {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 12px;
        padding: 8px 0;
    }

    .costs dt {
        color: var(--muted);
        font-size: .92rem;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .costs dd {
        margin: 0;
        text-align: right;
    }

        .costs dd span {
            font-weight: 600;
            margin-right: 8px;
        }

        .costs dd small {
            color: var(--muted);
            font-size: .85rem;
            font-variant-numeric: tabular-nums;
        }

    .costs .total {
        border-top: 1px solid var(--line);
        margin-top: 6px;
        padding-top: 12px;
    }

        .costs .total dt {
            color: var(--text);
            font-weight: 600;
            font-size: 1rem;
        }

        .costs .total dd {
            font-weight: 700;
            font-variant-numeric: tabular-nums;
        }

.tip {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: none;
    color: var(--muted);
    font-size: .7rem;
    cursor: help;
    padding: 0;
    line-height: 1;
}

.tip-body {
    display: none;
    font-size: .82rem;
    color: var(--muted);
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 8px 10px;
    margin: 0 0 6px;
}

.tip:hover + .tip-body, .tip:focus + .tip-body, .costs:has(.tip:hover) .tip-body, .costs:has(.tip:focus) .tip-body {
    display: block;
}

.status {
    min-height: 1.5em;
    margin: 12px 0 0;
    font-size: .9rem;
    color: var(--muted);
    text-align: center;
}

    .status.is-error {
        color: var(--err);
    }

    .status.is-ok {
        color: var(--ok);
    }

.assure {
    list-style: none;
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    font-size: .85rem;
    color: var(--muted);
}

    .assure li {
        padding-left: 22px;
        position: relative;
        margin-bottom: 6px;
    }

        .assure li::before {
            content: "";
            position: absolute;
            left: 2px;
            top: .45em;
            width: 10px;
            height: 6px;
            border-left: 2px solid var(--ok);
            border-bottom: 2px solid var(--ok);
            transform: rotate(-45deg);
        }

.result {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 40px 28px;
}

    .result:focus {
        outline: none;
    }

.result-coin {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 8px;
    background: conic-gradient(from 210deg, var(--gold-3), var(--gold-2), var(--gold), var(--gold-3), var(--gold-2), var(--gold-3));
    animation: flip 1.1s cubic-bezier(.3, .7, .3, 1);
}

    .result-coin img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        background: var(--ink);
    }

.result-sub {
    color: var(--muted);
}

    .result-sub strong {
        color: var(--text);
    }

.mint-address {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 12px 14px;
    margin: 22px 0;
}

    .mint-address span {
        color: var(--muted);
        font-size: .85rem;
        width: 100%;
    }

    .mint-address code {
        font: .92rem/1.4 var(--mono);
        word-break: break-all;
        color: var(--gold-2);
    }

.result-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 14px;
}

.trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-top: 32px;
    padding-bottom: 32px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

    .trust div {
        display: grid;
        grid-template-columns: 22px 1fr;
        gap: 14px;
        align-items: start;
    }

    .trust svg {
        color: var(--gold);
        margin-top: 3px;
    }

    .trust p {
        margin: 0;
        color: var(--muted);
        font-size: .95rem;
    }

    .trust strong {
        color: var(--text);
        font-weight: 600;
    }

.section {
    padding-top: clamp(64px, 9vw, 104px);
}

.section-lede {
    color: var(--muted);
    max-width: 62ch;
    font-size: 1.08rem;
    margin-bottom: 36px;
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    counter-reset: step;
    border-top: 1px solid var(--line);
}

    .steps li {
        counter-increment: step;
        padding: 26px 24px 0 0;
        position: relative;
    }

        .steps li::before {
            content: counter(step);
            display: block;
            font-family: var(--display);
            font-weight: 700;
            font-size: 2.6rem;
            line-height: 1;
            color: var(--gold);
            margin-bottom: 18px;
        }

        .steps li + li {
            padding-left: 24px;
            border-left: 1px solid var(--line);
        }

    .steps p {
        color: var(--muted);
        font-size: .96rem;
    }

.more-link {
    margin-top: 20px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.compare {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

    .compare th, .compare td {
        padding: 15px 20px;
        text-align: left;
        border-bottom: 1px solid var(--line);
        font-size: .96rem;
    }

    .compare thead th {
        color: var(--muted);
        font-weight: 600;
        font-size: .88rem;
        background: var(--ink-2);
    }

        .compare thead th:nth-child(2) {
            color: var(--gold-2);
        }

    .compare tbody th {
        font-weight: 500;
    }

    .compare td:nth-child(2) {
        color: var(--text);
        font-weight: 600;
    }

    .compare td:nth-child(3) {
        color: var(--muted);
    }

    .compare tr:last-child th, .compare tr:last-child td {
        border-bottom: 0;
    }

    .compare .sum th, .compare .sum td {
        background: rgba(232, 176, 75, .06);
        font-weight: 700;
    }

        .compare .sum td:nth-child(2) {
            color: var(--gold-2);
            font-size: 1.1rem;
        }

.fine {
    color: var(--muted);
    font-size: .9rem;
    margin-top: 16px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}

    .split p {
        color: var(--muted);
    }

.faq {
    border-top: 1px solid var(--line);
    max-width: 860px;
}

    .faq details {
        border-bottom: 1px solid var(--line);
    }

    .faq summary {
        cursor: pointer;
        list-style: none;
        padding: 20px 40px 20px 0;
        font-weight: 600;
        font-size: 1.05rem;
        position: relative;
    }

        .faq summary::-webkit-details-marker {
            display: none;
        }

        .faq summary::after {
            content: "";
            position: absolute;
            right: 6px;
            top: 50%;
            width: 10px;
            height: 10px;
            border-right: 2px solid var(--muted);
            border-bottom: 2px solid var(--muted);
            transform: translateY(-70%) rotate(45deg);
            transition: transform .2s;
        }

    .faq details[open] summary::after {
        transform: translateY(-30%) rotate(225deg);
    }

    .faq details p {
        color: var(--muted);
        padding-right: 40px;
        max-width: 72ch;
    }

.guide-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
    border-top: 1px solid var(--line);
}

    .guide-list a {
        display: block;
        padding: 20px 0;
        border-bottom: 1px solid var(--line);
        text-decoration: none;
        color: var(--text);
    }

        .guide-list a:hover strong {
            color: var(--gold-2);
        }

    .guide-list strong {
        display: block;
        font-family: var(--display);
        font-size: 1.15rem;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .guide-list span {
        color: var(--muted);
        font-size: .95rem;
    }

.header-cta {
    margin-left: 4px;
}

body[data-page="creator"] .header-cta, body[data-page="referral"] .header-cta, body[data-page="revoke"] .header-cta {
    display: none;
}

body:not([data-page="creator"]):not([data-page="referral"]):not([data-page="revoke"]) .wallet-wrap {
    display: none;
}

.hero .crumbs {
    margin-bottom: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.home-hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: center;
}

    .home-hero .hero-copy {
        margin-bottom: 0;
    }

.chains-title {
    font-size: .82rem;
    font-family: var(--body);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 14px;
}

.chain-card {
    display: grid;
    grid-template-columns: 56px 1fr 24px;
    gap: 18px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    background: var(--ink-2);
    color: var(--text);
    text-decoration: none;
    transition: border-color .2s, transform .2s, background .2s;
}

    .chain-card:hover {
        border-color: var(--gold);
        background: var(--ink-3);
        transform: translateY(-2px);
    }

    .chain-card:focus-visible {
        outline: 2px solid var(--gold);
        outline-offset: 3px;
    }

.chain-mark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .04em;
    color: #0E1424;
    background: linear-gradient(135deg, #9D7CF4, #3FD9B6);
}

.chain-body strong {
    display: block;
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.chain-body > span {
    display: block;
    color: var(--muted);
    font-size: .95rem;
}

.chain-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

    .chain-meta span {
        font-size: .8rem;
        color: var(--gold-2);
        border: 1px solid var(--line-2);
        border-radius: 999px;
        padding: 3px 10px;
    }

.chain-go {
    color: var(--gold);
}

.article {
    max-width: 760px;
    padding-top: clamp(40px, 6vw, 72px);
}

.crumbs {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 24px;
}

    .crumbs ol {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0;
        padding: 0;
    }

    .crumbs li + li::before {
        content: "/";
        margin-right: 8px;
        color: var(--line-2);
    }

    .crumbs a {
        color: var(--muted);
        text-decoration: none;
    }

        .crumbs a:hover {
            color: var(--text);
        }

.article-meta {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 32px;
}

.article h2 {
    margin-top: 2.2em;
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.article h3 {
    margin-top: 1.6em;
}

.article p, .article li {
    color: #C9D0E2;
    font-size: 1.04rem;
    line-height: 1.75;
}

.article ul, .article ol {
    padding-left: 1.3em;
    margin: 0 0 1.2em;
}

.article li {
    margin-bottom: .4em;
}

.article strong {
    color: var(--text);
}

.article .lede {
    color: var(--muted);
}

.article table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.4em;
    font-size: .96rem;
}

.article th, .article td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
}

.article th {
    color: var(--muted);
    font-weight: 600;
}

.article td:last-child {
    font-variant-numeric: tabular-nums;
}

.article .crumbs ol {
    padding: 0;
    margin: 0;
}

.article .crumbs li {
    margin: 0;
    font-size: .88rem;
    color: var(--muted);
}

.article .article-meta {
    color: var(--muted);
    font-size: .9rem;
}

.callout {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--r-md);
    padding: 20px 22px;
    margin: 32px 0;
}

    .callout p {
        margin: 0 0 14px;
        color: var(--text);
    }

        .callout p:last-child {
            margin: 0;
        }

.related {
    margin-top: 56px;
}

.notfound {
    text-align: center;
    padding: 120px 20px;
}

    .notfound p {
        color: var(--muted);
    }

.site-footer {
    margin-top: 120px;
    border-top: 1px solid var(--line);
    background: var(--ink-2);
    padding-top: 56px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    color: var(--muted);
    font-size: .92rem;
    margin-top: 14px;
    max-width: 40ch;
}

.social {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
}

    .social a {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border: 1px solid var(--line-2);
        border-radius: 50%;
        color: var(--muted);
        transition: color .15s, border-color .15s;
    }

        .social a:hover {
            color: var(--gold-2);
            border-color: var(--gold);
        }

.site-footer nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer h2 {
    font-family: var(--body);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--text);
    margin-bottom: 6px;
}

.site-footer nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: .92rem;
}

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

.footer-base {
    border-top: 1px solid var(--line);
    margin-top: 48px;
    padding-top: 20px;
    padding-bottom: 28px;
}

    .footer-base p {
        color: #67729A;
        font-size: .82rem;
        margin: 0;
    }

.wallet-dialog {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--ink-2);
    color: var(--text);
    padding: 0;
    width: min(420px, calc(100% - 32px));
}

    .wallet-dialog::backdrop {
        background: rgba(5, 8, 16, .7);
        backdrop-filter: blur(4px);
    }

    .wallet-dialog[open] {
        animation: rise .2s ease-out;
    }

.wallet-dialog-inner {
    padding: 22px;
}

.dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

    .dialog-head h2 {
        font-size: 1.3rem;
        margin: 0;
    }

.icon-btn {
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

    .icon-btn:hover {
        color: var(--text);
        background: var(--ink-3);
    }

.wallet-list {
    display: grid;
    gap: 8px;
}

.wallet-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--text);
    font: 600 1rem var(--body);
    cursor: pointer;
    text-decoration: none;
    text-align: left;
}

    .wallet-opt:hover {
        border-color: var(--gold);
        color: var(--text);
    }

    .wallet-opt img {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .wallet-opt small {
        margin-left: auto;
        color: var(--muted);
        font-weight: 500;
        font-size: .82rem;
    }

.dialog-note {
    color: var(--muted);
    font-size: .85rem;
    margin: 16px 0 0;
}

.wallet-wrap {
    position: relative;
}

.wallet-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 260px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 8px;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6);
    z-index: 30;
    animation: rise .15s ease-out;
}

.wm-label {
    margin: 6px 10px 2px;
    font-size: .78rem;
    color: var(--muted);
}

.wm-addr {
    margin: 0 10px 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font: .8rem/1.45 var(--mono);
    color: var(--text);
    word-break: break-all;
}

.wm-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    border-radius: var(--r-sm);
    padding: 10px;
    color: var(--text);
    font: 500 .92rem var(--body);
    text-decoration: none;
    cursor: pointer;
}

    .wm-item:hover, .wm-item:focus-visible {
        background: var(--ink-3);
        color: var(--text);
    }

.wm-danger {
    color: var(--err);
}

    .wm-danger:hover, .wm-danger:focus-visible {
        color: var(--err);
        background: rgba(255, 122, 107, .1);
    }

.connected-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .connected-chip::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--ok);
    }

.nav a.nav-earn {
    color: var(--gold-2);
}

    .nav a.nav-earn:hover {
        color: var(--gold);
    }

.wm-earn {
    color: var(--gold-2);
}

    .wm-earn:hover, .wm-earn:focus-visible {
        color: var(--gold-2);
    }

.result-earn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    background: rgba(232, 176, 75, .06);
    border: 1px solid rgba(232, 176, 75, .3);
    border-radius: var(--r-md);
    padding: 14px 16px;
    margin: 6px 0 10px;
}

    .result-earn p {
        margin: 0;
        font-size: .92rem;
        color: var(--muted);
    }

    .result-earn strong {
        color: var(--text);
    }

    .result-earn .btn {
        flex: 0 0 auto;
    }

.auth-panel form > p {
    color: var(--muted);
    margin: 0 0 20px;
    font-size: .95rem;
}

.auth-panel .status:empty {
    display: none;
}

.auth-token {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
}

.auth-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ink);
    border: 2px solid var(--gold);
    color: var(--gold-2);
    font-family: var(--display);
    font-size: 1.1rem;
}

.auth-name {
    min-width: 0;
}

    .auth-name strong {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .auth-name small {
        display: block;
        color: var(--muted);
        font-size: .8rem;
    }

.auth-rows {
    margin: 16px 0;
    display: grid;
    gap: 8px;
}

    .auth-rows div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        background: var(--ink);
        border: 1px solid var(--line);
        border-radius: var(--r-md);
        padding: 12px 14px;
    }

    .auth-rows dt {
        color: var(--muted);
        font-size: .9rem;
    }

    .auth-rows dd {
        margin: 0;
    }

.auth-holder {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: .82rem var(--mono);
}

    .auth-holder a {
        color: var(--text);
    }

.chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font: 700 .72rem var(--body);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.chip-ok {
    background: rgba(69, 201, 142, .14);
    border: 1px solid rgba(69, 201, 142, .45);
    color: var(--ok);
}

.chip-warn {
    background: rgba(255, 122, 107, .12);
    border: 1px solid rgba(255, 122, 107, .45);
    color: var(--err);
}

.auth-safe {
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--r-md);
    background: rgba(69, 201, 142, .08);
    border: 1px solid rgba(69, 201, 142, .35);
    color: var(--ok);
    font-size: .92rem;
}

.auth-warn {
    margin: 8px 0 14px;
    font-size: .85rem;
    color: var(--muted);
}

.auth-done {
    margin-top: 14px;
    padding: 14px;
    border-radius: var(--r-md);
    background: rgba(69, 201, 142, .08);
    border: 1px solid rgba(69, 201, 142, .35);
    display: grid;
    gap: 6px;
    font-size: .92rem;
}

    .auth-done strong {
        color: var(--ok);
    }

    .auth-done a {
        color: var(--text);
    }

.switch.is-disabled {
    cursor: not-allowed;
    opacity: .55;
}

.post-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

    .post-list a {
        display: block;
        padding: 24px 0;
        border-bottom: 1px solid var(--line);
        text-decoration: none;
        color: var(--text);
    }

    .post-list time {
        display: block;
        color: var(--muted);
        font-size: .85rem;
        margin-bottom: 6px;
    }

    .post-list strong {
        display: block;
        font-family: var(--display);
        font-size: clamp(1.15rem, 2.2vw, 1.4rem);
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .post-list span {
        display: block;
        color: var(--muted);
        font-size: .98rem;
    }

    .post-list a:hover strong {
        color: var(--gold-2);
    }

.post-empty {
    color: var(--muted);
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.toc {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 18px 22px;
    margin: 0 0 32px;
}

    .toc p {
        margin: 0 0 8px;
        font-weight: 600;
        color: var(--text);
        font-size: .95rem;
    }

    .toc ol {
        margin: 0;
        padding-left: 1.2em;
    }

    .toc li {
        margin: 4px 0;
        font-size: .95rem;
    }

    .toc a {
        color: var(--muted);
        text-decoration: none;
    }

        .toc a:hover {
            color: var(--gold-2);
        }

.article .result-earn {
    margin: 28px 0;
}

    .article .result-earn p {
        font-size: .95rem;
        line-height: 1.6;
    }

.article h2[id], .article h3[id] {
    scroll-margin-top: 90px;
}

.ref-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 48px;
    align-items: start;
}

    .ref-hero .hero-copy {
        margin-bottom: 0;
    }

.ref-points {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

    .ref-points li {
        display: flex;
        gap: 14px;
        align-items: flex-start;
        color: var(--muted);
    }

    .ref-points strong {
        color: var(--text);
        font-weight: 600;
    }

    .ref-points svg {
        flex: 0 0 auto;
        color: var(--gold);
        margin-top: 2px;
    }

.ref-panel {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px;
}

    .ref-panel h2 {
        font-size: 1.3rem;
        margin: 0 0 8px;
    }

    .ref-panel > p {
        color: var(--muted);
        margin: 0 0 20px;
        font-size: .95rem;
    }

.ref-share {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

    .ref-share b {
        font-family: var(--display);
        font-size: 3rem;
        line-height: 1;
        color: var(--gold);
    }

    .ref-share span {
        color: var(--muted);
        font-size: .95rem;
    }

.ref-code {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--ink);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

.field > .ref-code {
    display: flex;
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text);
}

.ref-code:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(232, 176, 75, .18);
}

.ref-code span {
    display: flex;
    align-items: center;
    padding: 0 0 0 14px;
    color: var(--muted);
    font-size: .95rem;
    white-space: nowrap;
}

.ref-code input:not([type=checkbox]) {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding-left: 2px;
    min-width: 0;
}

.ref-code input:focus {
    box-shadow: none;
}

.ref-hint {
    font-size: .82rem;
    color: var(--muted);
    margin: 8px 0 18px;
}

.ref-link {
    margin: 0 0 18px;
}

    .ref-link code {
        font-size: .95rem;
    }

.ref-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

    .ref-tiles div {
        background: var(--ink);
        border: 1px solid var(--line);
        border-radius: var(--r-md);
        padding: 14px;
    }

    .ref-tiles dt {
        font-size: .78rem;
        color: var(--muted);
        margin-bottom: 6px;
    }

    .ref-tiles dd {
        margin: 0;
        font-family: var(--display);
        font-size: 1.2rem;
        color: var(--text);
        white-space: nowrap;
    }

.ref-recent {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

    .ref-recent th, .ref-recent td {
        text-align: left;
        padding: 10px 6px;
        border-bottom: 1px solid var(--line);
    }

    .ref-recent th {
        color: var(--muted);
        font-weight: 500;
        font-size: .8rem;
    }

        .ref-recent td:last-child, .ref-recent th:last-child {
            text-align: right;
        }

    .ref-recent a {
        color: var(--text);
    }

.ref-empty {
    color: var(--muted);
    font-size: .9rem;
    text-align: center;
    padding: 14px 0 4px;
    margin: 0;
}

.ref-wallet {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: .85rem;
    color: var(--muted);
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

    .ref-wallet code {
        font: .82rem var(--mono);
        color: var(--text);
    }

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

@keyframes stamp {
    0% {
        transform: scale(.86);
    }

    60% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes flip {
    0% {
        transform: rotateY(0) scale(.9);
    }

    100% {
        transform: rotateY(720deg) scale(1);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 980px) {
    .home-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .studio {
        grid-template-columns: 1fr;
    }

    .preview-sticky {
        position: static;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }

        .steps li:nth-child(3) {
            padding-left: 0;
            border-left: 0;
        }

    .split {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ref-hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 760px) {
    .nav {
        display: none;
    }

    .header-cta {
        margin-left: auto;
    }

    .header-row {
        justify-content: space-between;
    }

    .trust {
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 520px) {
    .wrap {
        padding-inline: 16px;
    }

    .mint-form {
        padding: 20px;
    }

    .row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .steps {
        grid-template-columns: 1fr;
    }

        .steps li, .steps li + li {
            padding: 22px 0 0;
            border-left: 0;
        }

            .steps li + li {
                border-top: 1px solid var(--line);
                margin-top: 16px;
            }

    .coin {
        width: 120px;
        height: 120px;
    }

    .chain-card {
        grid-template-columns: 48px 1fr;
        padding: 18px;
        gap: 14px;
    }

    .chain-mark {
        width: 48px;
        height: 48px;
        font-size: .85rem;
    }

    .chain-go {
        display: none;
    }

    .faq summary {
        font-size: 1rem;
    }

    .ref-panel {
        padding: 20px;
    }

    .result-earn {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .ref-tiles {
        grid-template-columns: 1fr 1fr;
    }

        .ref-tiles div:last-child {
            grid-column: span 2;
        }

    .ref-code span {
        font-size: .85rem;
        padding-left: 10px;
    }
}

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

    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
