/* =========================================================================
   FoxyBrokers — everything is pixels.
   One typeface, set in a pixel font, at every size. No rounded corners, no
   blurred shadows, no soft gradients: colour steps in bands the way it does
   in the art itself.
   ========================================================================= */

:root {
    /* Sampled straight out of the banner so the site and the art agree. */
    --lime: #c4e921;
    --lime-dim: #96b41a;
    --night: #010922;
    --deep: #0a1030;
    --deeper: #060a1e;
    --plum: #69345c;
    --sunset: #fc8541;
    --ember: #e8502a;
    --water: #462e6c;
    --cream: #f3efe2;
    --mint: #5cc4ae;
    --pink: #f9a8dc;
    --up: #7ee06a;
    --down: #ff8178;

    --line: rgba(243, 239, 226, 0.16);
    --gut: clamp(1.25rem, 4vw, 3rem);
    --pixel: "Silkscreen", "Courier New", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 0 !important;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--deep);
    color: var(--cream);
    font-family: var(--pixel);
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: 0.055em;
    -webkit-font-smoothing: none;
    overflow-x: hidden;
}

/* Scanline wash — faint, so it reads as texture rather than a filter. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.11) 0 1px,
        transparent 1px 3px
    );
}

img {
    display: block;
    max-width: 100%;
    image-rendering: pixelated;
}

a {
    color: var(--lime);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

a:hover {
    border-bottom-color: var(--lime);
}

h1,
h2,
h3 {
    font-weight: 400;
    line-height: 1.25;
    text-transform: uppercase;
}

/* -------------------------------------------------------------------- nav */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem var(--gut);
    font-size: 0.82rem;
    text-transform: uppercase;
    transition: background 0.2s, box-shadow 0.2s;
}

.nav--stuck {
    background: rgba(1, 9, 34, 0.94);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}

.nav__mark {
    font-size: 1rem;
    color: var(--cream);
    letter-spacing: 0.1em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: clamp(0.9rem, 2.2vw, 2rem);
}

.nav__links a {
    color: var(--cream);
}

.nav__links a:hover,
.nav__links a.is-active {
    color: var(--lime);
}

@media (max-width: 860px) {
    .nav__links a:not(.btn) {
        display: none;
    }
}

/* ----------------------------------------------------------------- button */
.btn {
    display: inline-block;
    font-family: var(--pixel);
    font-size: 0.8rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.85rem 1.3rem;
    color: var(--deep);
    background: var(--lime);
    border: 3px solid var(--deep);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.06s steps(2), box-shadow 0.06s steps(2);
}

.btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
    border-bottom-color: var(--deep);
}

.btn:active {
    transform: translate(5px, 5px);
    box-shadow: none;
}

.btn--ghost {
    background: transparent;
    color: var(--cream);
    border-color: var(--cream);
}

.btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ------------------------------------------------------------------- hero */
.hero {
    position: relative;
    /* A hard floor, not min(100svh, ...). The wordmark ends at 43.8% of the
       banner's height, and the copy block is about 300px tall sitting 88px off
       the bottom — so the art has to be at least ~760px tall for the two never
       to meet, and 860 leaves the lettering room to breathe rather than merely
       clearing it. The old rule let a short window shrink it to 640px, and at
       that size the copy climbed into the lettering. */
    min-height: 860px;
    display: grid;
    align-items: end;
    justify-items: center;
    text-align: center;
    padding: 7rem var(--gut) 5.5rem;
    overflow: hidden;
}

.hero__scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    z-index: -2;
}

/* Darken the lower half so the copy always has a floor to sit on. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to bottom,
        rgba(1, 9, 34, 0.05) 0%,
        rgba(1, 9, 34, 0.12) 42%,
        rgba(1, 9, 34, 0.86) 82%,
        rgba(10, 16, 48, 1) 100%
    );
}

/* The banner already carries the wordmark, so the page keeps its <h1> for
   screen readers and search engines but never draws a second one. */
.hero h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.hero__inner {
    max-width: 46rem;
}

.hero__lines {
    font-size: clamp(0.9rem, 1.9vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.hero__body {
    font-size: clamp(0.85rem, 1.7vw, 1rem);
    max-width: 40rem;
    margin: 0 auto 2.4rem;
    text-transform: uppercase;
}

.hero__cta {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__version {
    position: absolute;
    left: var(--gut);
    bottom: 3.6rem;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: rgba(243, 239, 226, 0.55);
}

.hero__version::before {
    content: "CF";
    color: var(--up);
    margin-right: 0.4rem;
}

.hero__strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.85rem var(--gut);
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lime);
    background: rgba(6, 10, 30, 0.82);
    border-top: 3px solid rgba(196, 233, 33, 0.35);
}

/* Staggered load — one orchestrated reveal. */
.rise {
    opacity: 0;
    transform: translateY(12px);
    animation: rise 0.45s steps(5) forwards;
}

.rise:nth-child(1) { animation-delay: 0.08s; }
.rise:nth-child(2) { animation-delay: 0.22s; }
.rise:nth-child(3) { animation-delay: 0.36s; }
.rise:nth-child(4) { animation-delay: 0.5s; }

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rise {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* --------------------------------------------------------------- sections */
section {
    padding: clamp(3.5rem, 9vw, 6rem) 0;
    border-bottom: 3px solid var(--line);
    /* The nav is fixed, so an anchor jump would otherwise land underneath it. */
    scroll-margin-top: 4.5rem;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--gut);
}

.head {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3.2rem);
}

.head h2 {
    font-size: clamp(1.4rem, 4vw, 2.3rem);
    letter-spacing: 0.06em;
    margin-bottom: 0.9rem;
}

.head p {
    font-size: 0.85rem;
    text-transform: uppercase;
    max-width: 44rem;
    margin: 0 auto;
    color: rgba(243, 239, 226, 0.78);
}

.alt {
    background: var(--deeper);
}

/* ------------------------------------------------------------------ cards */
.grid {
    display: grid;
    gap: 1.2rem;
}

.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.box {
    background: var(--night);
    border: 3px solid var(--line);
    padding: 1.4rem;
}

.box--glow {
    border-color: rgba(196, 233, 33, 0.45);
}

.box h3 {
    font-size: 0.92rem;
    color: var(--lime);
    margin-bottom: 0.7rem;
    letter-spacing: 0.06em;
}

.box p {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: rgba(243, 239, 226, 0.8);
}

.box__n {
    font-size: 1.6rem;
    color: var(--ember);
    display: block;
    margin-bottom: 0.4rem;
}

.stat {
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--lime);
    display: block;
}

.stat__label {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(243, 239, 226, 0.65);
}

/* ----------------------------------------------------------------- tables */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    text-transform: uppercase;
}

th,
td {
    text-align: left;
    padding: 0.75rem 0.7rem;
    border-bottom: 2px solid var(--line);
}

th {
    color: var(--lime);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    border-bottom-width: 3px;
}

td.num,
th.num {
    text-align: right;
}

tbody tr:hover {
    background: rgba(226, 132, 27, 0.14);
}

.scroller {
    overflow-x: auto;
}

/* ----------------------------------------------------------------- roster */
.roster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 1rem;
}

.fox {
    border: 3px solid var(--line);
    background: var(--night);
    transition: transform 0.08s steps(2), border-color 0.08s steps(2);
}

.fox:hover {
    transform: translateY(-4px);
    border-color: var(--lime);
}

.fox img {
    width: 100%;
    border-bottom: 3px solid var(--line);
}

.fox__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.5rem 0.55rem;
    font-size: 0.66rem;
}

.tier {
    font-size: 0.58rem;
    padding: 0.15rem 0.35rem;
    border: 2px solid currentColor;
    letter-spacing: 0.06em;
}

.tier--Legendary { color: var(--lime); }
.tier--Epic { color: var(--pink); }
.tier--Rare { color: var(--mint); }
.tier--Uncommon { color: var(--sunset); }
.tier--Common { color: rgba(243, 239, 226, 0.6); }

/* -------------------------------------------------------------- dashboard */
.desk {
    border: 3px solid rgba(196, 233, 33, 0.4);
    background: var(--deeper);
}

.desk__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.8rem 1.1rem;
    background: rgba(196, 233, 33, 0.12);
    border-bottom: 3px solid rgba(196, 233, 33, 0.4);
    font-size: 0.74rem;
    text-transform: uppercase;
}

.desk__body {
    padding: clamp(1.1rem, 3vw, 2rem);
}

.cursor::after {
    content: "\2588";
    animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.empty {
    text-align: center;
    padding: 3rem 1rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    color: rgba(243, 239, 226, 0.7);
}

.pill {
    display: inline-block;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border: 2px solid currentColor;
}

.pill--on { color: var(--up); }
.pill--off { color: var(--down); }

.note {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(243, 239, 226, 0.6);
    margin-top: 1rem;
    line-height: 2;
}

/* ----------------------------------------------------------------- footer */
footer {
    padding: 2.5rem 0 3rem;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.footer__row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: space-between;
    align-items: center;
}

.disclaimer {
    margin-top: 1.6rem;
    font-size: 0.64rem;
    line-height: 2.2;
    color: rgba(243, 239, 226, 0.5);
    max-width: 78ch;
}

/* =========================================================================
   Docs — reference layout. Denser than the marketing pages: dashed rules,
   numbered sections, and copyable addresses.
   ========================================================================= */
.doc-head {
    border: 3px dashed var(--lime);
    padding: 1.6rem;
    margin-bottom: 1.6rem;
}

.doc-head h1 {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    letter-spacing: 0.05em;
    margin-bottom: 0.7rem;
}

.doc-head p {
    font-size: 0.8rem;
    color: rgba(243, 239, 226, 0.75);
    text-transform: uppercase;
}

.toc {
    background: var(--night);
    border: 3px solid var(--line);
    padding: 1.4rem;
    margin-bottom: 2.5rem;
}

.toc h2 {
    font-size: 0.8rem;
    color: var(--lime);
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.toc ol {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.35rem 1.5rem;
    counter-reset: toc;
}

.toc li {
    counter-increment: toc;
    font-size: 0.76rem;
}

.toc li::before {
    content: counter(toc, decimal-leading-zero);
    color: rgba(243, 239, 226, 0.4);
    margin-right: 0.7rem;
}

.toc a {
    color: rgba(243, 239, 226, 0.88);
}

.toc a:hover {
    color: var(--lime);
}

.doc {
    margin-bottom: 2.2rem;
    scroll-margin-top: 5rem;
}

.doc > h2 {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    padding: 0.7rem 1rem;
    border: 3px dashed rgba(196, 233, 33, 0.55);
    margin-bottom: 0;
}

.doc > h2 span {
    color: rgba(243, 239, 226, 0.4);
    font-size: 0.8rem;
}

.doc__body {
    background: var(--night);
    border: 3px solid var(--line);
    border-top: 0;
    padding: 1.4rem;
    font-size: 0.8rem;
    text-transform: none;
    line-height: 2.1;
}

.doc__body p + p,
.doc__body p + .scroller,
.doc__body .scroller + p,
.doc__body p + ul {
    margin-top: 1rem;
}

.doc__body ul {
    list-style: none;
    padding-left: 1.1rem;
}

.doc__body li {
    position: relative;
    margin-bottom: 0.35rem;
}

.doc__body li::before {
    content: "\203A";
    position: absolute;
    left: -1.1rem;
    color: var(--lime);
}

.doc__body strong {
    color: var(--lime);
    font-weight: 400;
}

.addr {
    display: inline-block;
    font-size: 0.72rem;
    padding: 0.15rem 0.4rem;
    background: rgba(196, 233, 33, 0.1);
    border: 2px solid rgba(196, 233, 33, 0.3);
    word-break: break-all;
}

.muted {
    color: rgba(243, 239, 226, 0.5);
    font-size: 0.74rem;
}

.pending {
    color: var(--down);
}

/* ------------------------------------------------------------ mint row */
.mint-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.mint-qty {
    font-size: 1.6rem;
    min-width: 3rem;
    text-align: center;
    color: var(--lime);
}

/* -------------------------------------------------------- token cards */
.holding {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 1.1rem;
    align-items: start;
    padding: 1rem;
    border: 3px solid var(--line);
    background: var(--night);
    margin-bottom: 1rem;
}

.holding img {
    width: 128px;
    border: 3px solid var(--line);
}

.holding__head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: 0.7rem;
}

.holding__id {
    font-size: 1rem;
    color: var(--lime);
}

.owed {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    margin-bottom: 0.9rem;
}

.owed b {
    color: var(--lime);
    font-weight: 400;
}

@media (max-width: 620px) {
    .holding {
        grid-template-columns: 1fr;
    }
    .holding img {
        width: 100%;
    }
}

/* ---------------------------------------------------------------- meter */
.meter {
    height: 18px;
    border: 3px solid var(--line);
    background: var(--deeper);
    overflow: hidden;
}

.meter__fill {
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        var(--lime) 0 8px,
        var(--lime-dim) 8px 16px
    );
    transition: width 0.4s steps(8);
}

/* ---------------------------------------------------- roster controls */
.filters {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
    align-items: center;
}

.filters input,
.filters select {
    font-family: var(--pixel);
    font-size: 0.76rem;
    padding: 0.7rem 0.8rem;
    color: var(--cream);
    background: var(--night);
    border: 3px solid var(--line);
}

.filters input::placeholder {
    color: rgba(243, 239, 226, 0.4);
}

.chip-btn {
    font-family: var(--pixel);
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 0.55rem 0.7rem;
    background: transparent;
    color: var(--cream);
    border: 3px solid var(--line);
    cursor: pointer;
}

.chip-btn.is-on {
    color: var(--lime);
    border-color: var(--lime);
}


/* ------------------------------------------------------------ mobile menu
   Below 861px the inline links are hidden, so this button is the only way to
   reach another page. Tap targets are 48px because a pixel font at 0.8rem is a
   small thing to hit with a thumb. */
.nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 40px;
    padding: 0 10px;
    background: transparent;
    border: 3px solid var(--line);
    cursor: pointer;
    flex: 0 0 auto;
}

.nav__burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--cream);
    transition: transform 0.15s steps(2), opacity 0.15s steps(2);
}

.nav__burger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav__burger.is-open span:nth-child(2) {
    opacity: 0;
}

.nav__burger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav__burger:focus-visible,
.nav__links a:focus-visible,
.menu a:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 2px;
}

.menu {
    display: none;
}

@media (max-width: 860px) {
    .nav__burger {
        display: flex;
    }

    /* Only the text links go; Connect wallet is the primary action and stays
       reachable without opening anything. */
    .nav__links a:not(.btn) {
        display: none;
    }

    .nav__links .btn {
        font-size: 0.7rem;
        padding: 0.75rem 0.9rem;
    }

    .menu:not([hidden]) {
        display: block;
        position: fixed;
        inset: 62px 0 0 0;
        z-index: 95;
        background: var(--night);
        border-top: 3px solid var(--lime);
        overflow-y: auto;
        padding: 0.5rem 0 2rem;
    }

    .menu a {
        display: block;
        padding: 1rem var(--gut);
        min-height: 48px;
        font-size: 0.95rem;
        text-transform: uppercase;
        color: var(--cream);
        border-bottom: 2px solid var(--line);
    }

    .menu a.is-active {
        color: var(--lime);
    }

    .menu a:active {
        background: rgba(196, 233, 33, 0.12);
    }
}

/* -------------------------------------------------------------- hero: phones
   A phone viewport is narrow enough that cover-cropping a 2.5:1 banner shows
   only about a fifth of its width — straight through the middle of the
   lettering. Overlaying is fine on a wide screen and impossible here, so below
   901px the art runs full width at its own aspect with the copy beneath it. */
@media (max-width: 900px) {
    .hero {
        display: block;
        min-height: 0;
        padding: 4.5rem 0 0;
    }

    .hero__scene {
        position: static;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .hero::before {
        content: none;
    }

    .hero__inner {
        padding: 2rem var(--gut) 0;
        margin: 0 auto;
    }

    .hero__version {
        position: static;
        display: block;
        padding: 1.5rem var(--gut) 0;
        text-align: center;
    }

    .hero__strip {
        position: static;
        margin-top: 1.5rem;
    }
}
