/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --gold: #d4a017;
    --gold-br: #f0cc60;
    --silver: #cfd8de;
    --silver-br: #f2f6f8;
    --teal: #2fd6c0;
    --cream: #f4f0e8;
    --ink: #04070c;

    --f-display: 'Cinzel', serif;
    --f-body: 'EB Garamond', Georgia, serif;
    --f-data: 'Barlow Condensed', sans-serif;
}

/* Local Font Definitions */
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/cinzel-v19-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/cinzel-v19-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/montserrat-v26-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/montserrat-v26-latin-600.woff2') format('woff2');
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ------------------------------------------------------------
   THE SEAMLESS DEPTH GRADIENT
   One continuous background on <body> — as the page scrolls,
   you pass smoothly through the same water column, sunlight to
   trench, with no visible seams between sections.
------------------------------------------------------------ */
body {
    font-family: var(--f-body);
    color: var(--cream);
    line-height: 1.65;
    overflow-x: hidden;
    background-image: linear-gradient(180deg,
            #bfe8f0 0%,
            #5fc0dc 6%,
            #1a7fa8 14%,
            #0e5580 22%,
            #0e3a5c 32%,
            #0a2440 44%,
            #071830 56%,
            #050f1f 68%,
            #030914 78%,
            #020610 88%,
            #010308 96%,
            #000000 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: rgba(212, 160, 23, .35);
    color: var(--cream);
}


/* Ensure the container matches the old heading layout */
.logo-container {
    margin: 0;
    padding: 0;
    display: inline-block;
    /* Keeps it from taking up the whole row if needed */
}

/* Control the size of your logo */
.site-logo {
    height: 150px;
    /* Set your desired height */
    width: auto;
    /* Maintains the correct aspect ratio */
    display: block;
    /* Removes extra bottom spacing inside links */
}


h1,
h2,
h3 {
    font-family: var(--f-display);
    font-weight: 600;
    letter-spacing: .02em;
}

.eyebrow {
    font-family: var(--f-data);
    font-size: 2rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--teal);
    display: inline-block;
    margin-bottom: 1rem;
}

.eyebrow.gold {
    color: var(--gold-br);
}

.rule {
    width: 56px;
    height: 1px;
    margin: 1.3rem auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 6vw;
}

section {
    position: relative;
    z-index: 2;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .9s ease, transform .9s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
}



/* <!-- ============================================================
     SIMPLE ELEGANT CURSOR — soft glow + gentle bubble trail
     ============================================================ -->*/

body {
    cursor: none;
    /* Keeps default system arrow hidden */
}

@media (pointer: coarse) {
    body {
        cursor: auto;
        /* Restores standard touch pointer on mobile/tablets */
    }
}

#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    /* Adjust to whatever size you want your PNG to appear */
    width: 70px;
    height: 70px;
    pointer-events: none;
    z-index: 9999;
    /* Centers the image directly on the mouse coordinates */
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Optional: soft ocean glow behind your PNG */
    filter:
        /* 1. Razor-sharp solid edge (removes the blur at the border) */
        drop-shadow(0 0 2px rgb(255, 255, 255))
        /* 2. Intense bright core */
        drop-shadow(0 0 6px rgb(255, 255, 255))
        /* 3. Mid-range punch */
        drop-shadow(0 0 14px rgb(255, 255, 255))
        /* 4. Wide atmospheric glow */
        drop-shadow(0 0 28px rgba(255, 255, 255, 0.8));
    /* 2. Intense bright core */


}

#cursor-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    /* Smooths out rapid mouse wheel movements */
    transition: filter 0.15s ease-out;
}

@media (pointer: coarse) {
    #cursor-glow {
        display: none;
    }
}

/* ============================================================
   LARGER BUBBLES
   ============================================================ */
.mini-bubble {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.9), rgba(180, 230, 240, 0.3) 60%, transparent 75%);
    border: 1px solid rgba(210, 240, 245, 0.5);
    box-shadow: 0 0 6px rgba(180, 230, 240, 0.4);
    animation: mini-bubble-rise 2s ease-out forwards;
}

@keyframes mini-bubble-rise {
    0% {
        transform: translate(0, 0) scale(0.6);
        opacity: 0.85;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        /* Floats higher and expands as water pressure drops */
        transform: translate(var(--dx, 12px), -140px) scale(3.5);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mini-bubble {
        animation: none;
        opacity: 0;
    }
}

/*  */
.hidden {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: -9999px;
}

/*<!-- ============================================================
     HERO
     ============================================================ -->*/

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10vh 6vw 8vh;
    position: relative;
}

.hero-eyebrow {
    font-family: var(--f-data);
    font-size: 1.5rem;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: rgba(10, 40, 55, .68);
    margin-bottom: 1.3rem;
}

.hero h1 {
    font-size: clamp(3rem, 9vw, 6.6rem);
    color: #052235;
    letter-spacing: .04em;
    text-shadow: 0 2px 0 rgba(255, 255, 255, .3), 0 12px 30px rgba(0, 20, 30, .2);
}

.hero-sub {
    font-family: var(--f-body);
    font-style: italic;
    font-size: clamp(2rem, 2vw, 1.4rem);
    color: rgba(4, 30, 40, .72);
    margin-top: .1rem;
}

.hero-value {
    margin-top: 2rem;
    max-width: 46ch;
    font-size: 1.08rem;
    color: rgba(4, 30, 40, .72);
}

.hero-value1 {
    margin-top: 2rem;
    max-width: 156ch;
    font-size: 1.08rem;
    color: rgba(4, 30, 40, .72);
}

.hero-cta {
    margin-top: 2.6rem;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--f-data);
    font-size: .85rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 600;
    color: #052235;
    padding: 1rem 2.2rem;
    border-radius: 30px;
    border: 1.4px solid rgba(5, 34, 53, .35);
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(2px);
    transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .32);
    box-shadow: 0 14px 30px rgba(5, 34, 53, .15);
}

.hero-btn {
    margin-top: 2.6rem;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--f-data);
    font-size: .85rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 600;
    color: #ffffff;
    padding: 1rem 2.2rem;
    border-radius: 30px;
    border: 1.4px solid rgba(5, 34, 53, .35);
    background: rgba(16, 164, 233, 0.96);
    backdrop-filter: blur(2px);
    transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    background: rgba(243, 246, 103, 0.996);
    box-shadow: 0 14px 30px rgba(5, 34, 53, .15);
    color: #000000;
}

.scroll-cue {
    position: absolute;
    bottom: 2.4rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--f-data);
    font-size: .65rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: rgba(5, 34, 53, .5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.scroll-cue .line {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, rgba(5, 34, 53, .5), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-cue .line::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .95), transparent);
    animation: drip 2s ease-in-out infinite;
}

@keyframes drip {
    0% {
        top: -50%;
    }

    100% {
        top: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue .line::after {
        animation: none;
    }
}


/* <!-- ============================================================
     STORY / VALUE INTRODUCTION
     ============================================================ -->*/

.story {
    padding: 14vh 6vw;
    text-align: center;
}

.story-inner {
    max-width: 960px;
    margin: 0 auto;
}

.story h2 {
    font-size: clamp(2rem, 4.4vw, 3rem);
    color: var(--silver-br);
}

.story p {
    margin-top: 1.4rem;
    font-size: 1.25rem;
    color: rgba(244, 240, 232, .8);
}



.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 980px;
    margin: 5rem auto 0;
}

@media (max-width:820px) {
    .pillars {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        max-width: 440px;
    }
}

.pillar {
    padding: 2.4rem 1.8rem;
    border-radius: 14px;
    text-align: center;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(212, 160, 23, .22);
}

.pillar .mark {
    font-family: var(--f-display);
    font-size: 1.9rem;
    color: var(--gold-br);
    margin-bottom: .9rem;
}

.pillar h3 {
    font-size: 1.25rem;
    color: var(--silver-br);
    font-family: var(--f-display);
    font-weight: 600;
}

.pillar p {
    margin-top: .7rem;
    font-size: .94rem;
    color: rgba(244, 240, 232, .68);
}


/*<!-- ============================================================
     THE DEPTH JOURNEY — three simple moments, shallow to deep
     ============================================================ -->*/

.journey {
    padding: 12vh 6vw;
    text-align: center;
}

.journey-head {
    max-width: 620px;
    margin: 0 auto 5rem;
}

.journey-head h2 {
    font-size: clamp(2rem, 4.4vw, 3rem);
    color: var(--silver-br);
}

.journey-head p {
    margin-top: 1.2rem;
    font-size: 1.05rem;
    color: rgba(244, 240, 232, .75);
}

.journey-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width:820px) {
    .journey-row {
        grid-template-columns: 1fr;
        max-width: 340px;
        gap: 3rem;
    }
}

.moment {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.moment .depth-tag {
    font-family: var(--f-data);
    font-size: .68rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--gold-br);
    margin-bottom: 1rem;
}

/* poker-ratio placeholder card, gentle float */
.pcard {
    width: 150px;
    aspect-ratio: 63/88;
    border-radius: 9px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .4));
    border: 1.4px solid var(--pc, var(--gold));
    box-shadow: 0 18px 36px rgba(0, 0, 0, .4);
    animation: float-card 5s ease-in-out infinite;
}

.moment:nth-child(2) .pcard {
    animation-delay: .6s;
}

.moment:nth-child(3) .pcard {
    animation-delay: 1.2s;
}


@keyframes float-card {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.pcard .art {
    position: absolute;

    padding-top: 10%;
    /* Pushes the image down inside the box */
    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.pcard .art span {
    font-family: var(--f-data);
    font-size: .52rem;
    letter-spacing: .08em;
    color: rgba(244, 240, 232, .38);
}

.pcard .art span img {
    height: 120px;


    /* Fills the box cleanly and crops the excess edges */

    /* Removes any unwanted extra whitespace at the bottom */
}

.pcard::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .25) 48%, transparent 56%);
    transform: translateX(-140%);
    animation: foil-sweep 6s ease-in-out infinite;
}

.moment:nth-child(2) .pcard::after {
    animation-delay: 1.4s;
}

.moment:nth-child(3) .pcard::after {
    animation-delay: 2.8s;
}

@keyframes foil-sweep {

    0%,
    65% {
        transform: translateX(-140%);
    }

    100% {
        transform: translateX(140%);
    }
}

.pcard .meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .5rem .55rem .55rem;
}

.pcard .name {
    font-family: var(--f-display);
    font-size: 0.9rem;
    color: var(--silver-br);
}

.pcard .id {
    font-family: var(--f-data);
    font-size: .5rem;
    letter-spacing: .08em;
    color: var(--pc, var(--gold));
    margin-top: .15rem;
}

.moment .cap {
    margin-top: 1.3rem;
    font-size: .92rem;
    color: rgba(244, 240, 232, .68);
    max-width: 26ch;
}

@media (prefers-reduced-motion: reduce) {

    .pcard,
    .pcard::after {
        animation: none !important;
    }
}


/*<!-- ============================================================
     WHAT'S IN THE BOX
     ============================================================ -->*/

.box-section {
    padding: 12vh 6vw;
}

.box-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width:760px) {
    .box-inner {
        grid-template-columns: 1fr;
        gap: 2.6rem;
        text-align: center;
    }
}

.box-copy h2 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    color: var(--silver-br);
}

.box-copy p {
    margin-top: 1.1rem;
    color: rgba(244, 240, 232, .75);
    font-size: 1.03rem;
}

.box-list {

    margin-top: 2rem;
    list-style: none;
}

.box-list li {
    display: flex;
    align-items: baseline;
    gap: .7rem;
    padding: .55rem 0;
    font-size: .98rem;
    color: rgba(244, 240, 232, .82);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

@media (max-width:760px) {
    .box-list li {
        justify-content: center;
    }
}

.box-list li::before {
    content: '◆';
    color: var(--gold-br);
    font-size: .7rem;
}

.rarity-panel {
    border: 1px solid rgba(212, 160, 23, .25);
    border-radius: 14px;
    padding: 2.2rem;
    background: rgba(255, 255, 255, .025);
    transform: translateY(30px);
}

.rarity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 0;
    font-family: var(--f-data);
    font-size: .85rem;
}

.rarity-row+.rarity-row {
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.rarity-row .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: .6rem;
    display: inline-block;
    box-shadow: 0 0 6px currentColor;
}

.rarity-row .name {
    display: flex;
    align-items: center;
    color: rgba(244, 240, 232, .85);
}

.rarity-row .count {
    color: rgba(244, 240, 232, .5);
}

.rarity-total {
    margin-top: 1rem;
    text-align: center;
    font-family: var(--f-data);
    font-size: .78rem;
    letter-spacing: .1em;
    color: var(--gold-br);
    text-transform: uppercase;
}


/*<!-- ============================================================
     PRODUCTS
     ============================================================ -->*/

.products {
    padding: 12vh 6vw 10vh;
    align-items: center;
}

.product img {
    width: 85%;
    /* Reduced from 55% to make it physically narrower */
    height: auto;
    /* Changed to 'auto' so height shrinks proportionally with width */
    display: block;
    /* Forces the image to behave like a standalone block box */
    margin-left: auto;
    /* Pushes equal spacing on the left side to center it */
    margin-right: auto;
    /* Pushes equal spacing on the right side to center it */
    object-fit: contain;
    /* Keeps the artwork from stretching or distorting */

}

.products-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.products-head h2 {
    font-size: clamp(2rem, 4.4vw, 3rem);
    color: var(--silver-br);
}

.products-head p {
    margin-top: 1.1rem;
    color: rgba(244, 240, 232, .75);
    font-size: 1.03rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1080px;
    margin: 0 auto;
}

@media (max-width:900px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

.product {
    position: relative;
    text-align: center;
    padding: 2.6rem 2rem 2.4rem;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(212, 160, 23, .06), rgba(255, 255, 255, .015));
    border: 1px solid rgba(212, 160, 23, .25);
}

.product.featured {
    border-color: var(--gold-br);
    box-shadow: 0 30px 60px rgba(212, 160, 23, .12);
    transform: scale(1.03);
}

.badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--f-data);
    font-size: .6rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 600;
    background: var(--gold-br);
    color: #241a04;
    padding: .35rem .9rem;
    border-radius: 20px;
}

.product .glyph {
    font-family: var(--f-display);
    font-size: 1.4rem;
    color: var(--gold-br);
}

.product h3 {
    margin-top: .5rem;
    font-size: 1.4rem;
    color: var(--silver-br);
}

.product .desc {
    margin-top: .5rem;
    font-size: .88rem;
    color: rgba(244, 240, 232, .62);
    min-height: 2.6em;
}

.product .price {
    margin-top: 1.5rem;
    font-family: var(--f-data);
}

.product .amt {
    font-size: 2.1rem;
    color: var(--gold-br);
    font-weight: 600;
}

.product .per {
    display: block;
    margin-top: .2rem;
    font-size: .76rem;
    color: rgba(244, 240, 232, .5);
}

.product .strike {
    font-size: .82rem;
    color: rgba(244, 240, 232, .4);
    text-decoration: line-through;
    margin-right: .5rem;
}

.buy-btn {
    display: inline-block;
    margin-top: 1.7rem;
    padding: .85rem 2.1rem;
    border-radius: 30px;
    border: none;
    font-family: var(--f-data);
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
    background: linear-gradient(135deg, var(--gold-br), var(--gold));
    color: #241a04;
    cursor: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(212, 160, 23, .35);
}



@media (pointer:coarse) {
    .buy-btn {
        cursor: pointer;
    }
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 2.2rem;
    transform: translate(-50%, 20px);
    z-index: 2000;
    background: #0c2434;
    border: 1px solid var(--gold-br);
    color: var(--silver-br);
    font-family: var(--f-data);
    font-size: .82rem;
    padding: .8rem 1.5rem;
    border-radius: 8px;
    opacity: 0;
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.creator {
    padding: 12vh 6vw 10vh;
}

.creator-head {
    text-align: center;
    max-width: 980px;
    margin: 0 auto 4rem;
}

.creator-head h2 {
    font-size: clamp(2rem, 4.4vw, 3rem);
    color: var(--silver-br);
}

.creator-head p {
    margin-top: 1.1rem;
    color: rgba(244, 240, 232, .75);
    font-size: 1.25rem;
}


/*<!-- ============================================================
     FOOTER
     ============================================================ -->*/

footer {
    text-align: center;
    padding: 5rem 6vw 3rem;
}

.footer-mark {
    font-family: var(--f-display);
    font-size: 3rem;
    letter-spacing: .14em;
    color: var(--gold-br);
}

.footer-sub {
    margin-top: .5rem;
    font-family: var(--f-data);
    font-size: 1.25rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(244, 240, 232, .4);
}

.footer-links {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    font-family: var(--f-data);
    font-size: .78rem;
    color: rgba(244, 240, 232, .55);
}

.footer-links a:hover {
    color: var(--teal);
}

.footer-copy {
    margin-top: 2.2rem;
    font-family: var(--f-data);
    font-size: .66rem;
    color: rgba(244, 240, 232, .3);
}


/*<!-- ============================================================
     UNDERSTANDING THE CARDS — stat explainer
     ============================================================ -->*/

.explain {
    padding: 12vh 6vw;
}

.explain-head {
    text-align: center;
    max-width: 960px;
    margin: 0 auto 4.5rem;
}

.explain-head h2 {
    font-size: clamp(2rem, 4.4vw, 3rem);
    color: var(--silver-br);
}

.explain-head p {
    margin-top: 1.1rem;
    color: rgba(244, 240, 232, .75);
    font-size: 1.03rem;
}

.explain-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

@media (max-width:760px) {
    .explain-body {
        grid-template-columns: 1fr;
        gap: 2.6rem;
        justify-items: center;
    }
}

/* the sample card itself */
.ecard {
    width: 280px;
    aspect-ratio: 63/88;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .4));
    border: 1.6px solid var(--gold);
    box-shadow: 0 20px 44px rgba(0, 0, 0, .45);
}

.ecard .e-topline {
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-br), var(--gold));
}

.ecard .e-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: .6rem .8rem 0;
    font-family: var(--f-data);
    font-size: .62rem;
    letter-spacing: .08em;
}

.ecard .e-header .id {
    color: var(--teal);
    padding-top: .15rem;
}

.ecard .e-header .rarity-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .15rem;
}

.ecard .e-header .stars {
    color: var(--gold-br);
    font-size: .72rem;
    letter-spacing: 1px;
}

.ecard .e-header .rarity-label {
    color: var(--gold-br);
    font-size: .5rem;
    letter-spacing: .12em;
    font-weight: 600;
}

.ecard .e-art {
    margin: .6rem .7rem 0;
    height: 36%;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.ecard .e-art span {
    font-size: 2.6rem;
}

.ecard .e-art span img {
    height: 150px;
    width: 250px;
}


.ecard .e-name {
    text-align: center;
    margin-top: .7rem;
    padding: 0 .6rem;
}

.ecard .e-name .n {
    font-family: var(--f-display);
    font-size: 1.05rem;
    color: var(--silver-br);
}

.ecard .e-name .s {
    font-family: var(--f-body);
    font-style: italic;
    font-size: .7rem;
    color: var(--teal);
    margin-top: .1rem;
}

.ecard .e-badges {
    display: flex;
    gap: .35rem;
    justify-content: center;
    margin-top: .6rem;
    padding: 0 .6rem;
    flex-wrap: wrap;
}

.ecard .e-badges span {
    font-family: var(--f-data);
    font-size: .5rem;
    letter-spacing: .06em;
    padding: .2rem .5rem;
    border-radius: 20px;
    border: 1px solid currentColor;
}

.ecard .e-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .3rem;
    margin: .6rem .5rem 0;
    padding-bottom: 10%;
}

.ecard .e-stat {
    background: rgba(255, 255, 255, .04);
    border-radius: 5px;
    padding: .28rem .15rem;
    text-align: center;
    overflow: hidden;
}

.ecard .e-stat b {
    display: block;
    font-family: var(--f-display);
    font-size: .74rem;
    line-height: 1.15;
    color: var(--silver-br);
    white-space: nowrap;
}

.ecard .e-stat span {
    display: block;
    font-family: var(--f-data);
    font-size: .42rem;
    letter-spacing: .05em;
    color: rgba(244, 240, 232, .55);
    margin-top: .1rem;

}

.ecard .e-lore {
    margin: .7rem .8rem 0;
    font-family: var(--f-body);
    font-style: italic;
    font-size: .58rem;
    text-align: center;
    color: rgba(244, 240, 232, .6);
    line-height: 1.4;
}

.ecard .e-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: .5rem 44px .5rem .7rem;
    /* right padding makes room for the orb so text never runs under it */
    font-family: var(--f-data);
    font-size: .44rem;
    letter-spacing: .06em;
    color: rgba(244, 240, 232, .4);
}

.ecard .e-power {
    position: absolute;
    right: .6rem;
    bottom: .55rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.4px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-display);
    font-size: .9rem;
    color: var(--gold-br);
    background: rgba(0, 0, 0, .5);
    z-index: 2;
}

/* the numbered explanation list */
.explain-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.explain-item {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    text-align: left;
}

.explain-num {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.4px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-display);
    font-size: .85rem;
    color: var(--gold-br);
}

.explain-item h4 {
    font-family: var(--f-display);
    font-size: 1.02rem;
    color: var(--silver-br);
    font-weight: 600;
}

.explain-item p {
    margin-top: .25rem;
    font-size: .9rem;
    color: rgba(244, 240, 232, .68);
}




/*<!-- ============================================================
     CARD GALLERY — 8 species across the rarity tiers
     ============================================================ -->*/
.gallery {
    padding: 12vh 6vw 8vh;
    text-align: center;
}

.gallery-head {
    max-width: 960px;
    margin: 0 auto 4rem;
}

.gallery-head h2 {
    font-size: clamp(2rem, 4.4vw, 3rem);
    color: var(--silver-br);
}

.gallery-head p {
    margin-top: 1.1rem;
    color: rgba(244, 240, 232, .75);
    font-size: 1.03rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;

}

@media (max-width:900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 420px;
    }
}

@media (max-width:460px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 220px;
    }
}

.gcard {
    width: 100%;
    aspect-ratio: 63/88;
    border-radius: 9px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .4));
    border: 1.4px solid var(--gc, var(--gold));
    box-shadow: 0 16px 32px rgba(0, 0, 0, .4);
    animation: gfloat 5.5s ease-in-out infinite;
}

.gallery-grid .gcard:nth-child(2) {
    animation-delay: .4s;
}

.gallery-grid .gcard:nth-child(3) {
    animation-delay: .8s;
}

.gallery-grid .gcard:nth-child(4) {
    animation-delay: 1.2s;
}

.gallery-grid .gcard:nth-child(5) {
    animation-delay: .2s;
}

.gallery-grid .gcard:nth-child(6) {
    animation-delay: .6s;
}

.gallery-grid .gcard:nth-child(7) {
    animation-delay: 1s;
}

.gallery-grid .gcard:nth-child(8) {
    animation-delay: 1.4s;
}

@keyframes gfloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.gcard .gart {
    position: absolute;
    inset: 6px 6px 38% 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.gcard .gart span {
    font-family: var(--f-data);
    font-size: .5rem;
    letter-spacing: .08em;
    color: rgba(244, 240, 232, .38);
}

.gcard .gart span img {
    height: 220px;
    padding-top: 10%;
}

.gcard::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .25) 48%, transparent 56%);
    transform: translateX(-140%);
    animation: gfoil 6.5s ease-in-out infinite;
}

.gallery-grid .gcard:nth-child(even)::after {
    animation-delay: 2s;
}

.gallery-grid .gcard:nth-child(3n)::after {
    animation-delay: 3.2s;
}

@keyframes gfoil {

    0%,
    65% {
        transform: translateX(-140%);
    }

    100% {
        transform: translateX(140%);
    }
}

.gcard .gmeta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .45rem .5rem .5rem;
}

.gcard .gname {
    font-family: var(--f-display);
    font-size: 1rem;
    line-height: 1.15;
    color: var(--silver-br);
}

.gcard .gid {
    font-family: var(--f-data);
    font-size: .8rem;
    letter-spacing: .06em;
    color: var(--gc, var(--gold));
    margin-top: .15rem;
    padding-bottom: 10%;

}

@media (prefers-reduced-motion: reduce) {

    .gcard,
    .gcard::after {
        animation: none !important;
    }
}