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

@font-face {
    font-family: "Editundo";
    src: url('../font/editundo.woff2') format('woff2'),
    url('../font/editundo.woff') format('woff'),
    url('../font/editundo.ttf')  format('truetype');
    font-display: swap;
}

@keyframes flipX {
    0% {
      opacity: 0;
      transform: rotateX(-90deg);
    }
    10% {
      opacity: 1;
      transform: rotateX(-720deg);
    }
    100% {
      opacity: 1;
      transform: rotateX(-720deg);
    }
}
  
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    10% {
      transform: translateY(-10px);
    }
    30% {
      transform: translateY(-5px);
    }
}

:root {
    --color-gray-100: #111111;
    --color-gray-90: #1B1128;
    --color-gray-80: #332A3F;
    --color-gray-70: #4B4356;
    --color-gray-60: #7B7583;
    --color-gray-50: #9F9BA5;
    --color-button-hover: #ff7724;
    --font-color: rgb(243, 242, 244);
    --border-color: rgba(131, 131, 131, 0.25);
    --padding: 8%;
    --min-font-header: 58px;
    --min-font: 14px;
    --font-main: "Space Grotesk", sans-serif;
    --font-family-secondary: "Editundo", sans-serif;
    --font-p: 'Space Grotesk', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-gray-100);
    color: #ffffff;
}

ul {
    list-style: none;
}

a.button {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 20px 35px;
    border: none;
    transition: all .2s ease;
    position: relative;
    text-align: center;
}

a.button:hover {
    transform: scale(0.98);
}

a.button:before {
    content: "";
    display: block;
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: -14px;
    right: -14px;
    background-image: linear-gradient(to right, #ff7724, #F2A900);
    z-index: -1;
}
  
a.button:after {
    content: "";
    display: block;
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: -6px;
    right: -6px;
    background-image: linear-gradient(to right, #ff7724, #F2A900);
    z-index: -1;
}

a.button-secondary:before {
    background-image: linear-gradient(to right, #333333, #444444);
}
  
a.button-secondary:after {
    background-image: linear-gradient(to right, #333333, #444444);
}

.official {
    background: -webkit-linear-gradient(0deg, #ff7724, #F2A900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.flipX {
    animation: 4s flipX ease;
    animation-direction: reverse;
}

.flipX-2 {
    animation-delay: 3s;
}

.flipX-3 {
    animation-delay: 4s;
}

.flipX-4 {
    animation-delay: 5s;
}

.d-flex {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.mt-50 {
    margin-top: 50px;
}

.mt-80 {
    margin-top: 80px;
}

/* --------------------Collection---------------------- */
.collection {
    height: calc(100vh);
    width: 100%;
    position: relative;
}
.collection:after {
    height: 100px;
    content: '';
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, var(--color-gray-100), transparent) !important;
}

.collection .background {
    background-image: url("../img/bg_header.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.15;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -2;
}

.collection .content {
    height: 100vh;
    width: 100%;
    padding-left: var(--padding);
    padding-right: var(--padding);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection .content .arrow-link {
    position: absolute;
    bottom: 40px;
    width: 40px;
    transition: bottom 0.2s ease;
    animation: bounce 2s infinite;
    z-index: 99;
}

.collection .content .arrow-link img {
   width: 100%;
} 

.collection .content .text {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    text-align: center;
}

.collection .content .text h1 {
    color: var(--font-color);
    font-family: var(--font-family-secondary);
    font-weight: 500;
    font-size: 9vw;
    margin-bottom: 20px;
}

.collection .content .text p {
    color: var(--font-color);
    font-family: var(--font-family-secondary);
    font-weight: 400;
    margin: 2vw auto 0;
    font-size: 36px;
    line-height: 1.1;
    max-width: 1000px;
    word-spacing: -5px;
}

/* --------------------collection-carders---------------------- */
.collection-carders {
    width: 100%;
    position: relative;
    padding-left: var(--padding);
    padding-right: var(--padding);
}

.collection-carders .content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: -1rem;
    margin-right: -1rem;
}

.collection-carders .content .boxes {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.collection-carders .content .boxes .card {
    text-align: center !important;
    width: calc(20% - 2rem);
    margin: 1rem;
    aspect-ratio: 1;
    transition: transform 0.3s ease;
}

.collection-carders .content .boxes .card:hover {
    transform: scale(0.98);
}

.collection-carders .content .boxes .card.card-hide {
    display: none;
}

.collection-carders .content .boxes .card .card-image {
    
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.collection-carders .content .boxes .card .card-image .number {
  position: absolute;
  z-index: 99;
  background: #000;
  padding: 5px 8px;
  bottom: 10px;
  left: 10px;
  border-radius: 5px;
  font-size: 13px;
}

.collection-carders .content .boxes .card .card-image img {
    border-radius: 16px;
    transition: opacity 0.3s ease;
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-carders .content .boxes .card .card-image img.fade-out {
    opacity: 0;
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
    .collection-carders .content .boxes .card {
        width: calc(25% - 2rem);
    }
}

@media screen and (min-width: 577px) and (max-width: 991px) {
    .collection-carders .content .boxes .card {
        width: calc(33.33% - 2rem);
        margin: 0.5rem;
    }
    .collection-carders .content .boxes .card.card-hide {
        display: block;
    }
}

@media screen and (max-width: 576px) {
    .collection-carders .content .boxes .card {
        width: calc(50% - 2rem);
        margin: 0.5rem;
    }
}

/* ---------------------about---------------- */
.about {
    width: 100%;
    min-height: 100vh;
    padding-left: var(--padding);
    padding-right: var(--padding);
}

.about-margin {
    margin-bottom: 80px;
}

.about-first {
    padding-top: 110px;
}

.about .content {
    padding-top: 80px;
    padding-bottom: 80px;
}

.about .content .side-1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.about .content .text-section {
    position: relative;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about .content .side-1 .text-section h3 {
    font-family: var(--font-family-secondary);
    font-size: clamp(52px, 5vw, 100px);
    line-height: 1;
    font-weight: 700;
    margin-bottom: 60px;
    word-spacing: -1.5vw;
}

.about .content .side-1 .text-section h3:last-child {
    margin-bottom: 0;
}

.about .content .side-1 .text-section img {
    margin-bottom: 60px;
    max-width: 600px;
    width: 100%;
}

/* --------------------cta----------------- */
.cta {
    width: 100%;
    position: relative;
    padding-left: var(--padding);
    padding-right: var(--padding);

}

.cta .content {
    height: 100%;
    padding-top: 50px;
    padding-bottom: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
}

.cta .content .button {
    margin-top: 0;
}

.cta .content > .left-bottom {
    background: rgb(151,84,162);
    background: linear-gradient(90deg, rgba(151,84,162,1) 0%, rgba(181,147,199,1) 100%);
    bottom: 9%;
    left: 25%;
    width: 12px;
    height: 12px;
    position: absolute;
    border-radius: 50%;
}

.cta .content > .right-bottom {
    background: rgb(84,147,102);
    background: linear-gradient(90deg, rgba(84,147,102,1) 0%, rgba(129,170,142,1) 100%);
    bottom: 22%;
    right: 18%;
    width: 18px;
    height: 18px;
    position: absolute;
    border-radius: 50%;
}

.cta .content > .top-right {
    background: rgb(162,84,84);
    background: linear-gradient(90deg, rgba(162,84,84,1) 0%, rgba(178,129,129,1) 100%);
    top: 8%;
    right: 10%;
    width: 12px;
    height: 12px;
    position: absolute;
    border-radius: 50%;
}

.cta .content > .top-left {
    background: rgb(176,117,55);
    background: linear-gradient(90deg, rgba(176,117,55,1) 0%, rgba(188,151,113,1) 100%);;
    top: 4%;
    left: 16%;
    width: 16px;
    height: 16px;
    position: absolute;
    border-radius: 50%;
}


/* ----------------------footer---------------- */
footer {
    background: url("../img/bg_footer.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
    width: 100%;
    padding-top: 250px;
    padding-bottom: 80px;

}

footer .container {
    padding-left: var(--padding);
    padding-right: var(--padding);
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    font-style: normal;
}

footer .container ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

footer .container ul li {
    padding: 20px;
}

footer .container ul li a {
    color: #fff;
}

footer .container .social-section li a i {
    font-size: 38px;
    transition: .3s ease-in-out;
}

footer .container .social-section li a i:hover {
    color: var(--color-button-hover);
}

footer .container .end-footer a {
    font-size: 16px;
}

footer .container .end-footer p {
    text-align: center;
    font-size: 16px;
    color: rgb(183, 180, 187);
    margin-top: 20px;
}

/* ------------------------------------------------------------------------------ */
@media screen and (min-width: 768px) and (max-width: 991px) {

    /* ----------------general--------------- */
    a.button {
        padding: 20px 25px;
    }

    /* -----------------Collection and cta--------------------- */
    .collection .content .text h1 {
        font-size: 80px;
    }
    .collection .content {
        flex-direction: column;
    }
    .collection .content .text p {
        font-size: 30px;
    }
    .collection .content .arrow-link {
        position: relative;
        margin-top: 100px;
        width: 35px;
    }

    /* ---------------------about--------------------- */

    .about-first {
        padding-top: 80px;
      }
    .about .content .text-section {
        width: 100%;
    }
    .about .content .side-1 .text-section {
        padding: 25px;
        text-align: center;
    }
    .about .content .side-1 .text-section h3 {
        line-height: 1;
        word-spacing: -10px;
    }
    .about-margin {
        margin-bottom: 60px;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px), screen and (max-height: 600px) {
    .collection .content .arrow-link {
        position: absolute;
    }
}

@media screen and (max-width: 767px) {

    a.button {
        font-size: 16px;
        padding: 20px 20px;
    }

    /* -----------------Collection--------------------- */

    .collection .background {
        background-size: 200%;
        background-position: top 30% center;
    }
    .collection .content, .collection-carders {
        padding-left: 16px;
        padding-right: 16px;
    }
    .collection .content {
        flex-direction: column;
    }
    .collection .content .text h1 {
        font-size: 50px;
    }
    .collection .content .text p {
        font-size: 26px;
    }
    .collection .content .d-flex {
        margin-left: auto;
        margin-right: auto;
    }
    .collection .content .arrow-link {
        position: relative;
        margin-top: 100px;
        width: 30px;
    }

    /* ---------------------about--------------------- */

    .about {
        padding-left: 16px;
        padding-right: 16px;
    }
    .about-first {
        padding-top: 30px;
    }
    .about .content .text-section {
        padding-left: 0;
        padding-right: 0;
      }

    .about .content .side-1 .text-section h3 {
        word-spacing: -10px;
    }
    .about-margin {
        margin-bottom: 30px;
    }

    /* -----------------footer--------------------------- */

    .cta {
        padding-left: 16px;
        padding-right: 16px;
    }
    .cta .content {
        padding-bottom: 0;
        padding-top: 30px;
    }
    .cta .content > .left-bottom {
        left: 5%;
    }
    .cta .content > .right-bottom {
        bottom: -20%;
        right: 5%;
    }
    footer {
        background-position: top center;
        width: 100%;
        padding-top: 0;
        padding-bottom: 50px;
        height: 300px;
        display: flex;
        justify-content: center;
        align-items: end;
        margin-top: 50px;
    
    }
    footer .container .social-section li {
        padding: 16px;
    }

    footer .container .social-section li a i {
        font-size: 26px;
    }
    footer .container .end-footer p {
        margin-top: 0;
      }

}

@media screen and (max-width: 576px) {

    .d-flex {
        gap: 20px;
        flex-direction: column;
        width: max-content;
    }

}

/* =====================================================================
   V2 ADDITIONS
   ===================================================================== */
:root {
    --orange: #ff7724;
    --gold: #F2A900;
    --grad: linear-gradient(to right, #ff7724, #F2A900);
    --panel: #18141f;
    --panel-2: #221c2b;
    --header-h: 84px;
}
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { overflow-x: hidden; }
img { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.pixel { font-family: var(--font-family-secondary); word-spacing: -4px; }
.muted { color: var(--color-gray-50); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- sprites (freaks rendered from one atlas) ---------- */
.sprite {
    background-image: url("../img/sprites_full.png");
    background-size: 5000% 4000%;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    aspect-ratio: 1;
    width: 100%;
}
.sprite-chars { background-image: url("../img/sprites_chars.png"); }

/* ---------- header / nav ---------- */
#site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
    height: var(--header-h);
    transition: background .3s ease, box-shadow .3s ease;
    background: linear-gradient(to bottom, rgba(17,17,17,.95), rgba(17,17,17,0));
}
#site-header.scrolled { background: rgba(17,17,17,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--border-color); }
.header-inner {
    height: 100%; display: flex; align-items: center; gap: 32px;
    padding: 0 var(--padding);
}
.logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo img { width: 48px; image-rendering: pixelated; }
.logo span { font-family: var(--font-family-secondary); font-size: 26px; letter-spacing: -1px; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 6px; align-items: center; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--font-color); font-family: var(--font-family-secondary);
    font-size: 22px; padding: 8px 14px; position: relative; word-spacing: -3px;
}
.nav-link:after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 4px;
    background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link:hover:after, .nav-link.active:after { transform: scaleX(1); }
.nav-link .fa-caret-down { font-size: 14px; }
.has-sub { position: relative; }
.has-sub .sub {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px;
    background: var(--panel); border: 1px solid var(--border-color); padding: 8px;
    box-shadow: 6px 6px 0 rgba(0,0,0,.5);
    opacity: 0; transform: translateY(-6px); pointer-events: none; transition: all .2s ease;
}
.has-sub.open .sub, .has-sub:hover .sub { opacity: 1; transform: none; pointer-events: auto; }
.has-sub .sub a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; color: var(--font-color); font-size: 15px; }
.has-sub .sub a:hover { background: var(--panel-2); color: var(--orange); }
.has-sub .sub a i { font-size: 11px; opacity: .6; }
.nav-cta {
    font-weight: 700; color: #111; background: var(--grad); padding: 10px 18px; font-size: 15px;
    box-shadow: 4px 4px 0 rgba(255,119,36,.25); transition: transform .2s ease;
}
.nav-cta:hover { transform: translate(-1px,-1px); box-shadow: 6px 6px 0 rgba(255,119,36,.3); }
.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 6px; margin-left: auto; }
.burger span { display: block; height: 4px; background: #fff; transition: transform .25s ease, opacity .25s ease; }
.menu-open .burger span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 991px) {
    :root { --header-h: 70px; }
    .burger { display: flex; }
    .nav-cta { display: none; }
    .logo span { font-size: 22px; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 0 0; background: rgba(17,17,17,.98);
        padding: 30px var(--padding); transform: translateX(100%); transition: transform .3s ease; overflow: auto;
    }
    .menu-open .main-nav { transform: none; }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-link { font-size: 34px; padding: 14px 0; width: 100%; }
    .nav-link:after { left: 0; right: auto; width: 60px; }
    .has-sub .sub { position: static; opacity: 1; transform: none; pointer-events: auto; display: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 10px 0; }
    .has-sub.open .sub { display: block; }
    .has-sub .sub a { font-size: 18px; padding: 10px 0; }
}

/* ---------- generic section heads ---------- */
.section { padding: 100px var(--padding); position: relative; }
.section-head { text-align: center; max-width: 900px; margin: 0 auto 50px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.section-head h2 { font-family: var(--font-family-secondary); font-size: clamp(40px, 5vw, 80px); line-height: 1; word-spacing: -1vw; margin-bottom: 18px; font-weight: 400; }
.section-head p { color: var(--color-gray-50); font-size: 18px; line-height: 1.5; }

/* ---------- hero tweaks ---------- */
.collection .content { padding-top: var(--header-h); }
.collection .hero-sub { font-size: 16px !important; font-family: var(--font-main) !important; color: var(--color-gray-50) !important; margin-top: 18px !important; word-spacing: 0 !important; }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); margin: 0 var(--padding); }
.stat { text-align: center; padding: 34px 10px; border-right: 1px solid var(--border-color); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-family-secondary); font-size: clamp(40px, 5vw, 72px); font-weight: 400; line-height: 1; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { display: block; margin-top: 8px; color: var(--color-gray-50); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
@media (max-width: 767px) { .stats { grid-template-columns: repeat(2, 1fr); margin: 0 16px; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border-color); } }

/* ---------- home card grid (sprites instead of imgs) ---------- */
.collection-carders .card a { display: block; width: 100%; height: 100%; }
.collection-carders .card .card-image { border-radius: 16px; }
.collection-carders .card .card-image .sprite { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 16px; }
.collection-carders .card .card-image .number { color: #fff; }

/* ---------- freak card (search / physical / lists) ---------- */
.freak-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
.freak-card {
    position: relative; background: var(--panel); border: 1px solid var(--border-color);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; cursor: pointer; text-align: left; width: 100%; display: block; color: inherit;
}
.freak-card:hover, .freak-card:focus-visible { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--orange); border-color: var(--orange); outline: none; }
.freak-card .sprite { display: block; }
.freak-card .fc-body { padding: 12px 14px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.freak-card .fc-num { font-family: var(--font-family-secondary); font-size: 26px; line-height: 1; }
.freak-card .fc-rank { font-size: 12px; color: var(--color-gray-50); margin-top: 4px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 8px; border: 1px solid currentColor; white-space: nowrap; }
.badge-phys { position: absolute; top: 10px; left: 10px; background: #111; color: var(--gold); border-color: var(--gold); }
.tier-legendary { color: #ff7724; } .tier-epic { color: #c27bff; } .tier-rare { color: #3fb6ff; } .tier-uncommon { color: #4ee17f; } .tier-common { color: #9F9BA5; }

/* ---------- physical teaser / split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; max-width: 1300px; margin: 0 auto; }
.split h2 { font-family: var(--font-family-secondary); font-size: clamp(40px, 5vw, 80px); line-height: 1; word-spacing: -1vw; margin-bottom: 24px; font-weight: 400; }
.split p { color: var(--color-gray-50); font-size: 18px; line-height: 1.6; margin-bottom: 18px; }
.steps { display: grid; gap: 14px; margin: 28px 0 46px; counter-reset: s; }
.steps li { display: flex; gap: 16px; align-items: center; font-size: 16px; line-height: 1.5; color: var(--font-color); }
.steps li:before { counter-increment: s; content: counter(s); flex: 0 0 38px; height: 38px; display: grid; place-items: center; font-family: var(--font-family-secondary); font-size: 24px; background: var(--grad); color: #111; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mosaic .freak-card:nth-child(3n+2) { transform: translateY(30px); }
.mosaic .freak-card:nth-child(3n+2):hover { transform: translate(-3px, 27px); }
@media (max-width: 991px) { .split { grid-template-columns: 1fr; gap: 50px; } }

/* ---------- rarity ---------- */
.tier-legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 50px; }
.tier-legend .badge { font-size: 13px; padding: 8px 14px; }
.trait-types { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; max-width: 1100px; margin: 0 auto 60px; }
.trait-type { background: var(--panel); border: 1px solid var(--border-color); padding: 20px; text-align: center; }
.trait-type b { font-family: var(--font-family-secondary); font-size: 44px; font-weight: 400; display: block; line-height: 1; }
.trait-type span { font-size: 13px; color: var(--color-gray-50); text-transform: uppercase; letter-spacing: 1.5px; }
.rarest { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 991px) { .rarest { grid-template-columns: repeat(3, 1fr); } .trait-types { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 576px) { .rarest { grid-template-columns: repeat(2, 1fr); } .trait-types { grid-template-columns: repeat(2, 1fr); } }

/* ---------- city teaser ---------- */
.city-teaser {
    position: relative; overflow: hidden; height: clamp(460px, 62vh, 640px); display: grid; place-items: center; text-align: center;
    margin: 100px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
    background: #4f4859;
}
.city-teaser .city-live { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; display: block; }
.city-teaser .city-hit { position: absolute; inset: 0; z-index: 1; }
.city-teaser .inner { position: relative; z-index: 2; color: #1B1128; padding: 36px 40px; background: rgba(251,244,221,.9); box-shadow: 8px 8px 0 #1B1128; border: 3px solid #1B1128; max-width: 600px; margin: 0 20px; }
.city-teaser h2 { font-family: var(--font-family-secondary); font-size: clamp(40px, 5vw, 72px); font-weight: 400; line-height: 1; margin-bottom: 14px; word-spacing: -1vw; }
.city-teaser p { font-size: 18px; margin-bottom: 32px; color: #4B4356; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@media (max-width: 767px) { .city-teaser { margin: 70px 0; } .city-teaser .inner { padding: 26px 22px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--border-color); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-size: 19px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: '+'; font-family: var(--font-family-secondary); font-size: 34px; color: var(--orange); line-height: 0; transition: transform .2s ease; }
.faq details[open] summary:after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--color-gray-50); line-height: 1.6; font-size: 16px; }
.faq details p a, .how p a { color: var(--orange); }

/* ---------- footer additions ---------- */
.footer-nav { margin-bottom: 10px; }
.footer-nav li { padding: 10px 16px !important; }
.footer-nav a { font-family: var(--font-family-secondary); font-size: 22px; word-spacing: -3px; }
.footer-nav a:hover { color: var(--orange) !important; }

/* ---------- inner page hero ---------- */
.page-hero { padding: calc(var(--header-h) + 60px) var(--padding) 40px; text-align: center; position: relative; }
.page-hero h1 { font-family: var(--font-family-secondary); font-size: clamp(54px, 7vw, 120px); font-weight: 400; line-height: .95; word-spacing: -1vw; }
.page-hero p { color: var(--color-gray-50); font-size: 18px; max-width: 760px; margin: 18px auto 0; line-height: 1.5; }

/* ---------- small buttons (UI) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 15px; padding: 14px 20px; color: #111; background: var(--grad); box-shadow: 4px 4px 0 rgba(0,0,0,.6); transition: transform .15s ease, box-shadow .15s ease; text-align: center; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(0,0,0,.6); }
.btn-dark { background: #333; color: #fff; }
.btn-line { background: transparent; color: var(--font-color); border: 1px solid var(--border-color); box-shadow: none; }
.btn-line:hover { border-color: var(--orange); color: var(--orange); box-shadow: none; transform: none; }
.btn-sm { padding: 9px 12px; font-size: 13px; }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   RESPONSIVE VERTICAL SPACING
   Same values as desktop on wide screens (reference 1440px), scaled down
   proportionally on smaller screens instead of staying fixed.
   ===================================================================== */
:root {
    --sp-100: clamp(56px, 6.95vw, 100px);
    --sp-80:  clamp(44px, 5.56vw, 80px);
    --sp-60:  clamp(34px, 4.17vw, 60px);
    --sp-50:  clamp(30px, 3.48vw, 50px);
}
.section { padding-top: var(--sp-100); padding-bottom: var(--sp-100); }
.section-head { margin-bottom: var(--sp-50); }
.city-teaser { margin: var(--sp-100) 0; }
.about .content { padding-top: var(--sp-80); padding-bottom: var(--sp-80); }
.about .content .side-1 .text-section h3 { margin-bottom: var(--sp-60); }
.about .content .side-1 .text-section h3:last-child { margin-bottom: 0; }
.about .content .side-1 .text-section img { margin-bottom: var(--sp-60); }
.mt-50 { margin-top: var(--sp-50); }
.mt-80 { margin-top: var(--sp-80); }
.tier-legend { margin-bottom: var(--sp-50); }
.trait-types { margin-bottom: var(--sp-60); }
.steps { margin-bottom: clamp(30px, 3.2vw, 46px); }

/* =====================================================================
   OVERFLOW FIXES: grid columns may shrink below their content (minmax(0,1fr)),
   cards and badges adapt, and grids drop columns on medium/small screens.
   ===================================================================== */
.split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.split > * { min-width: 0; }
.mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rarest { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.trait-types { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.freak-grid { grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); }
.freak-card { min-width: 0; }
.freak-card .fc-body { flex-wrap: wrap; row-gap: 6px; }
.freak-card .fc-body > div { min-width: 0; }
.trait-type { min-width: 0; padding: 18px 10px; }
.trait-type span { display: block; letter-spacing: 1px; overflow-wrap: anywhere; }
@media (max-width: 1199px) {
    .rarest { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .trait-types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .freak-card .fc-num { font-size: 22px; }
    .freak-card .badge { font-size: 10px; padding: 3px 6px; letter-spacing: .5px; }
}
@media (max-width: 991px) {
    .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 576px) {
    .rarest, .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mosaic .freak-card:nth-child(3n+2) { transform: none; }
    .mosaic .freak-card:nth-child(n+5) { display: none; }      /* 4 cards on phones, no staggering */
    .trait-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .badge-phys { font-size: 9px; padding: 3px 5px; top: 6px; left: 6px; }
}
/* very narrow phones: the 52px minimum of the About titles is wider than the screen for long words */
@media (max-width: 400px) {
    .about .content .side-1 .text-section h3 { font-size: 12.5vw; }
}
.trait-type span { overflow-wrap: normal; word-break: normal; }
@media (max-width: 767px) { .trait-type span { font-size: 10px; letter-spacing: .5px; } }

/* buttons that wrap: small vertical gap, horizontal gap stays wide */
.d-flex { row-gap: 20px; column-gap: clamp(20px, 3.5vw, 50px); }
@media screen and (max-width: 576px) { .d-flex { gap: 20px; } }
/* the pixel "steps" of a.button stick out 14px on each side: reserve that space so buttons stay inside the container */
.d-flex > a.button { margin-left: 14px; margin-right: 14px; }
.d-flex { column-gap: clamp(0px, calc(3.5vw - 28px), 22px); }
@media screen and (max-width: 576px) { .d-flex { row-gap: 20px; column-gap: 0; } }
.d-flex { row-gap: 12px; }
@media screen and (max-width: 576px) { .d-flex { row-gap: 12px; } }
/* same horizontal spacing as desktop at every width (visible gap 22px between the steps) */
.d-flex { column-gap: 22px; }
/* CTA buttons stay inside the same side margins as the other sections */
@media screen and (max-width: 767px) { .cta { padding-left: var(--padding); padding-right: var(--padding); } }
.cta .content .d-flex { max-width: 100%; min-width: 0; }
/* collection cards buttons: compensate the -1rem margins of .content so buttons stay inside the section */
.collection-carders .content > .d-flex { width: calc(100% - 2rem); margin-left: 1rem; margin-right: 1rem; }
@media screen and (max-width: 576px) {
    .collection-carders .content > .d-flex { width: max-content; max-width: calc(100% - 2rem); margin-left: auto; margin-right: auto; }
}

/* =====================================================================
   HEADER v3: hover bridge for the dropdown, no wrapping, compact burger,
   fullscreen fade mobile menu
   ===================================================================== */
/* invisible bridge over the 8px gap, so moving the mouse to the submenu doesn't close it */
.has-sub .sub:before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-sub .sub { transition: opacity .2s ease .08s, transform .2s ease .08s; }
.has-sub:hover .sub, .has-sub.open .sub { transition-delay: 0s; }

.logo, .logo span, .nav-cta, .nav-link { white-space: nowrap; }
.logo, .nav-cta { flex-shrink: 0; }
@media (min-width: 992px) and (max-width: 1279px) {
    .header-inner { gap: 18px; }
    .logo img { width: 40px; }
    .logo span { font-size: 22px; }
    .main-nav > ul { gap: 0; }
    .nav-link { font-size: 18px; padding: 8px 10px; }
    .nav-link:after { left: 10px; right: 10px; }
    .nav-cta { padding: 9px 14px; font-size: 14px; }
}

/* compact burger / X */
.burger { width: 34px; height: 34px; gap: 5px; align-items: center; position: relative; z-index: 2; }
.burger span { width: 22px; height: 3px; }
.menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mnav { display: none; }
@media (max-width: 991px) {
    :root { --header-h: 64px; }
    .logo img { width: 36px; }
    .logo span { font-size: 20px; }
    .main-nav { display: none; }
    .menu-open #site-header { background: transparent; box-shadow: none; backdrop-filter: none; }

    .mnav {
        display: flex; position: fixed; inset: 0; z-index: 9998;
        padding: calc(var(--header-h) + 4vh) var(--padding) 28px;
        background:
            radial-gradient(120% 60% at 100% 0%, rgba(255,119,36,.18), transparent 60%),
            radial-gradient(90% 50% at 0% 100%, rgba(242,169,0,.12), transparent 60%),
            rgba(14,12,18,.97);
        backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
        overflow-y: auto;
    }
    .menu-open .mnav { opacity: 1; visibility: visible; transition: opacity .35s ease; }
    .mnav nav { display: flex; flex-direction: column; width: 100%; min-height: 100%; }
    .mnav-main li, .mnav-extra, .mnav-foot {
        opacity: 0; transform: translateY(18px);
        transition: opacity .3s ease, transform .4s cubic-bezier(.2,.8,.2,1);
    }
    .menu-open .mnav-main li, .menu-open .mnav-extra, .menu-open .mnav-foot {
        opacity: 1; transform: none; transition-delay: calc(.08s + var(--i) * .05s);
    }
    .mnav-main li + li { border-top: 1px solid rgba(255,255,255,.07); }
    .mnav-main a {
        display: flex; align-items: baseline; gap: 14px; padding: 2.2vh 0;
        font-family: var(--font-family-secondary); font-size: clamp(34px, 9vw, 56px); line-height: 1;
        color: #fff; transition: color .2s ease, padding-left .25s ease;
    }
    .mnav-main a .n { font-size: 12px; letter-spacing: 1px; color: var(--color-gray-50, #888); min-width: 22px; }
    .mnav-main a.active { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .mnav-main a:hover { padding-left: 8px; color: var(--orange); }
    .mnav-extra { margin-top: 4vh; }
    .mnav-extra .lbl { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--color-gray-50, #888); margin-bottom: 12px; }
    .mnav-extra div { display: flex; flex-wrap: wrap; gap: 8px; }
    .mnav-extra a { padding: 8px 12px; border: 1px solid var(--border-color); color: var(--font-color); font-size: 14px; }
    .mnav-extra a i { font-size: 10px; opacity: .6; margin-left: 4px; }
    .mnav-extra a:hover { border-color: var(--orange); color: var(--orange); }
    .mnav-foot { margin-top: auto; padding-top: 4vh; display: flex; align-items: center; gap: 12px; }
    .mnav-cta { flex: 1; text-align: center; font-weight: 700; color: #111; background: var(--grad); padding: 14px 18px; font-size: 15px; box-shadow: 4px 4px 0 rgba(255,119,36,.25); }
    .mnav-ig { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--border-color); color: #fff; font-size: 20px; flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .mnav, .mnav-main li, .mnav-extra, .mnav-foot { transition: none !important; }
}
.mnav-main { list-style: none; margin: 0; padding: 0; }
/* header 992–1279: larger, fluid sizes (reach desktop sizes at 1280) */
@media (min-width: 992px) and (max-width: 1279px) {
    .header-inner { gap: clamp(16px, 2vw, 28px); }
    .logo img { width: clamp(42px, 3.75vw, 48px); }
    .logo span { font-size: clamp(22px, 2.03vw, 26px); }
    .nav-link { font-size: clamp(18px, 1.72vw, 22px); padding: 8px clamp(8px, 1.1vw, 14px); }
    .nav-link:after { left: clamp(8px, 1.1vw, 14px); right: clamp(8px, 1.1vw, 14px); }
    .nav-cta { padding: 10px clamp(14px, 1.4vw, 18px); font-size: 15px; }
}
/* mobile: slightly larger logo and burger/X */
@media (max-width: 991px) {
    .logo img { width: 42px; }
    .logo span { font-size: 23px; }
    .burger { width: 40px; height: 40px; gap: 6px; }
    .burger span { width: 28px; height: 3px; }
    .menu-open .burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-open .burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}
@media (min-width: 992px) and (max-width: 1279px) {
    .logo img { width: 46px; }
    .logo span { font-size: clamp(25px, 2.03vw, 26px); }
    .nav-link { font-size: clamp(20px, 1.72vw, 22px); padding: 8px clamp(10px, 1.1vw, 14px); }
    .nav-link:after { left: clamp(10px, 1.1vw, 14px); right: clamp(10px, 1.1vw, 14px); }
}

/* ---------- layered parallax scene (replaces attributes.png) ---------- */
.px-scene {
    position: relative; display: block; width: 100%; max-width: 600px; aspect-ratio: 850 / 660;
    margin: 0 auto var(--sp-60); user-select: none;
}
.about .content .side-1 .text-section .px-scene img.px-l {
    position: absolute; max-width: none; margin: 0; height: auto;
    image-rendering: pixelated; will-change: transform; pointer-events: none;
}

/* flipX: the gradient words spin in again every 7s (before: played only once, with no iteration count) */
.flipX { animation: flipX 7s ease-out infinite; animation-direction: normal; }
@media (prefers-reduced-motion: reduce) { .flipX { animation: none; } }
.flipX-2 { animation-delay: 3s; } .flipX-3 { animation-delay: 4s; } .flipX-4 { animation-delay: 5s; }
/* fast spin (0.4s, like the original 4s animation) repeated every 7s */
@keyframes flipXLoop {
    0%    { transform: rotateX(0deg); }
    5.7%  { transform: rotateX(-720deg); }
    100%  { transform: rotateX(-720deg); }
}
.flipX { animation-name: flipXLoop; animation-timing-function: ease; }
/* home cards: one-shot swap in 4s (old image stays 3.6s, then spins away in 0.4s) */
.card-flip { animation: flipX 4s ease 0s 1 reverse; }
/* hero logo word: first spin after 2s instead of right on page load */
h1 .flipX { animation-delay: 2s; }

/* footer on phones: same skyline-to-menu proportion as desktop.
   Desktop: skyline edge ~176px, menu text ~84px below it (gap ≈ 48% of the skyline height).
   Phones: skyline drawn 240px tall (edge at 92px), menu 45px below it; footer grows with its content. */
@media screen and (max-width: 767px) {
    footer {
        height: auto; display: block; padding-top: 127px; padding-bottom: 40px;
        background:
            url("../img/bg_footer.png") center top / auto 240px no-repeat,
            linear-gradient(#1f1f1f, #1f1f1f) 0 92px / 100% calc(100% - 92px) no-repeat;
    }
}

/* stats: top/bottom borders full width, cells stay where they were */
.stats { margin: 0; padding: 0 var(--padding); }
@media (max-width: 767px) { .stats { margin: 0; padding: 0 16px; } }

/* home "Meet some freaks": 6 per row in a narrower container (as wide as the next section), always 4 rows */
.collection-carders .content { max-width: calc(1300px + 2rem); margin-left: auto; margin-right: auto; }
.collection-carders .content .boxes .card { width: calc(16.666% - 2rem); }
.collection-carders .content .boxes .card:nth-child(n+25) { display: none; }
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .collection-carders .content .boxes .card { width: calc(25% - 2rem); }
    .collection-carders .content .boxes .card:nth-child(n+17) { display: none; }
}
@media screen and (min-width: 577px) and (max-width: 991px) {
    .collection-carders .content .boxes .card { width: calc(33.33% - 2rem); }
    .collection-carders .content .boxes .card:nth-child(n+13) { display: none; }
}
@media screen and (max-width: 576px) {
    .collection-carders .content .boxes .card { width: calc(50% - 2rem); }
    .collection-carders .content .boxes .card:nth-child(n+9) { display: none; }
}
