/* ==================================================
   CHARACTERS PAGE
================================================== */

.character-alt {
    background: rgba(255, 255, 255, .02);
}

.character-profile-img {

    width: 100%;
    border: 1px solid rgba(255, 211, 63, .15);

    box-shadow:
        0 0 30px rgba(255, 211, 63, .15);
}

.character-profile-card {

    background: #1a140d;

    padding: 40px;

    border-radius: 30px;

    border: 1px solid rgba(255, 211, 63, .15);
}

.character-tag {

    display: inline-block;

    background: rgba(255, 211, 63, .12);

    color: #ffd33f;

    padding: 10px 20px;

    border-radius: 50px;

    margin-bottom: 25px;

    font-weight: 600;
}

.character-profile-card h5 {

    color: #ffd33f;

    margin-top: 20px;
    margin-bottom: 10px;
}

.character-list {

    padding-left: 20px;
}

.character-list li {

    margin-bottom: 10px;
    color: #d8d1c4;
}

/* RELATIONSHIP SECTION */
.relationship-box {

    background: #1a140d;

    padding: 60px;

    border-radius: 30px;

    border: 1px solid rgba(255, 211, 63, .15);

    text-align: center;
}

.relationship-node {

    display: inline-block;

    background: #ffd33f;

    color: #111;

    font-weight: 700;

    padding: 15px 30px;

    border-radius: 50px;

    margin: 15px;
}

.relationship-line {

    height: 60px;

    width: 3px;

    background: #ffd33f;

    margin: auto;
}

.relationship-row {

    display: flex;

    justify-content: center;

    gap: 20px;

    flex-wrap: wrap;
}

/* TEAM SECTION */
.team-banner {

    text-align: center;

    padding: 70px;

    border-radius: 30px;

    background:
        linear-gradient(135deg,
            rgba(255, 211, 63, .08),
            rgba(255, 211, 63, .02));

    border: 1px solid rgba(255, 211, 63, .15);
}

.team-banner h2 {

    color: #ffd33f;

    margin-bottom: 20px;
}

.team-banner p {

    max-width: 800px;

    margin: auto;
}

@media(max-width:768px) {

    .character-profile-card {
        padding: 25px;
    }

    .relationship-box {
        padding: 30px;
    }

    .team-banner {
        padding: 40px 25px;
    }

}

/* ==================================================
           CHARACTERS — TITLE SECTION
        =================================================== */

.characters-main {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    background: url('../images/Characters_Card1.jpg') no-repeat center / cover;
}

.characters-title-section {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
}

.characters-title-section::before {
    content: '';
    position: absolute;
    inset: 0;
}

.characters-main-title {
    font-family: 'Cinzel', serif;
    font-size: 3.2rem;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.characters-main-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.characters-title-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 25px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(255, 211, 63, .4);
    position: relative;
    z-index: 2;
}


/* ==================================================
           CHARACTERS — CARD GRID
        =================================================== */

.characters-grid-section {
    padding: 0 0 100px;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}


/* ==================================================
   CHARACTER CARD — DEFINITIVE FIX
================================================== */

.characters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card */
.characters-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    text-align: center;
    overflow: hidden;
    transition: .4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 420px;
}

.characters-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(255, 211, 63, .2);
    border-color: rgba(255, 211, 63, .35);
}

/* IMAGE */
.characters-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(180deg, #1a1a4e 0%, #0f0f3a 100%);
}

/* Image */
.characters-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Name */
.characters-card-name {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    color: var(--gold);
    padding: 20px 20px 4px;
    margin: 0;
    width: 100%;
    word-wrap: break-word;
}

/* Role */
.characters-card-role {
    display: inline-block;
    padding: 5px 16px;
    border: 1px solid rgba(255, 211, 63, .25);
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(255, 211, 63, .05);
    margin: 0 auto 12px;
    max-width: 90%;
    word-wrap: break-word;
}

/* Description */
.characters-card-desc {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.65;
    padding: 0 20px;
    margin: 0 auto 24px;
    width: 100%;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

/* Responsive */
@media (max-width: 992px) {
    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .characters-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }
}

/* Button */
.characters-card-btn {
    display: inline-block;
    padding: 10px 28px;
    border: 1px solid rgba(255, 211, 63, .35);
    border-radius: 50px;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: .4s;
    margin: 0 auto 24px;
    flex-shrink: 0;
}

/* ==================================================
           ABOUT THE GROUP SECTION
        =================================================== */

.characters-about-section {
    padding: 100px 0;
    background: url('../images/Characters_Card2.jpg') no-repeat center / cover;
    position: relative;
    overflow: hidden;
}

.characters-about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
}

.characters-about-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
}

.characters-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.characters-about-title {
    font-family: 'Cinzel', serif;
    font-size: 2.4rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.characters-about-title span {
    color: var(--gold);
}

.characters-about-text {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 30px;
}

.characters-about-btn {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid var(--gold);
    border-radius: 50px;
    color: var(--bg);
    background: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: .4s;
    box-shadow: 0 0 20px rgba(255, 211, 63, .2);
}

.characters-about-btn:hover {
    background: var(--gold-light);
    box-shadow: 0 0 35px rgba(255, 211, 63, .4);
    color: var(--bg);
}


/* ==================================================
           ABOUT — UNDERWATER PARTICLE ILLUSTRATION
        =================================================== */

.characters-about-art {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(26, 20, 13, .9) 0%, rgba(15, 12, 8, .95) 40%, rgba(10, 30, 50, .9) 100%);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* Water surface line */
.characters-art-waterline {
    position: absolute;
    top: 38%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 211, 63, .15), transparent);
    z-index: 3;
}

.characters-art-waterline::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 10%;
    right: 10%;
    height: 16px;
    background: linear-gradient(180deg, transparent, rgba(10, 30, 50, .3));
    filter: blur(4px);
}

/* Light rays from surface */
.characters-art-ray {
    position: absolute;
    top: 0;
    width: 2px;
    height: 45%;
    background: linear-gradient(180deg, rgba(255, 211, 63, .12) 0%, transparent 100%);
    z-index: 2;
    transform-origin: top center;
}

.characters-art-ray.r1 {
    left: 25%;
    transform: rotate(5deg);
    height: 42%;
}

.characters-art-ray.r2 {
    left: 40%;
    height: 48%;
}

.characters-art-ray.r3 {
    left: 55%;
    transform: rotate(-4deg);
    height: 40%;
}

.characters-art-ray.r4 {
    left: 70%;
    transform: rotate(6deg);
    height: 44%;
}

.characters-art-ray.r5 {
    left: 85%;
    transform: rotate(-3deg);
    height: 38%;
}

/* Floating particles */
.characters-art-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffe98a, #ffd33f 50%, #c79c15);
    z-index: 4;
    box-shadow: 0 0 8px rgba(255, 211, 63, .5), 0 0 20px rgba(255, 211, 63, .2);
}

/* Surface particles (above water) */
.characters-art-particle.p1 {
    width: 10px;
    height: 10px;
    top: 15%;
    left: 30%;
    animation: charactersParticleBob 4s ease-in-out infinite;
}

.characters-art-particle.p2 {
    width: 8px;
    height: 8px;
    top: 25%;
    left: 60%;
    animation: charactersParticleBob 3.5s ease-in-out infinite .8s;
}

.characters-art-particle.p3 {
    width: 6px;
    height: 6px;
    top: 20%;
    left: 75%;
    animation: charactersParticleBob 5s ease-in-out infinite 1.5s;
}

/* Underwater particles */
.characters-art-particle.p4 {
    width: 12px;
    height: 12px;
    top: 50%;
    left: 20%;
    animation: charactersParticleFloat 5s ease-in-out infinite;
}

.characters-art-particle.p5 {
    width: 9px;
    height: 9px;
    top: 60%;
    left: 45%;
    animation: charactersParticleFloat 4.5s ease-in-out infinite 1s;
}

.characters-art-particle.p6 {
    width: 14px;
    height: 14px;
    top: 55%;
    left: 70%;
    animation: charactersParticleFloat 6s ease-in-out infinite .5s;
}

.characters-art-particle.p7 {
    width: 7px;
    height: 7px;
    top: 70%;
    left: 30%;
    animation: charactersParticleFloat 4s ease-in-out infinite 2s;
}

.characters-art-particle.p8 {
    width: 10px;
    height: 10px;
    top: 75%;
    left: 60%;
    animation: charactersParticleFloat 5.5s ease-in-out infinite 1.2s;
}

.characters-art-particle.p9 {
    width: 8px;
    height: 8px;
    top: 85%;
    left: 45%;
    animation: charactersParticleFloat 4.8s ease-in-out infinite .3s;
}

.characters-art-particle.p10 {
    width: 6px;
    height: 6px;
    top: 65%;
    left: 82%;
    animation: charactersParticleFloat 5.2s ease-in-out infinite 1.8s;
}

/* Tiny ambient dots */
.characters-art-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    opacity: .3;
    z-index: 3;
}

.characters-art-dot.d1 {
    top: 48%;
    left: 15%;
    animation: charactersDotTwinkle 3s ease-in-out infinite;
}

.characters-art-dot.d2 {
    top: 58%;
    left: 35%;
    animation: charactersDotTwinkle 4s ease-in-out infinite .7s;
}

.characters-art-dot.d3 {
    top: 68%;
    left: 55%;
    animation: charactersDotTwinkle 3.5s ease-in-out infinite 1.4s;
}

.characters-art-dot.d4 {
    top: 78%;
    left: 75%;
    animation: charactersDotTwinkle 4.5s ease-in-out infinite .3s;
}

.characters-art-dot.d5 {
    top: 52%;
    left: 90%;
    animation: charactersDotTwinkle 3.8s ease-in-out infinite 2.1s;
}

.characters-art-dot.d6 {
    top: 88%;
    left: 25%;
    animation: charactersDotTwinkle 4.2s ease-in-out infinite 1s;
}

/* Bubble rings */
.characters-art-bubble {
    position: absolute;
    border: 1px solid rgba(255, 211, 63, .15);
    border-radius: 50%;
    z-index: 2;
}

.characters-art-bubble.b1 {
    width: 20px;
    height: 20px;
    top: 55%;
    left: 12%;
    animation: charactersBubbleRise 6s ease-in-out infinite;
}

.characters-art-bubble.b2 {
    width: 14px;
    height: 14px;
    top: 72%;
    left: 65%;
    animation: charactersBubbleRise 5s ease-in-out infinite 2s;
}

.characters-art-bubble.b3 {
    width: 10px;
    height: 10px;
    top: 82%;
    left: 40%;
    animation: charactersBubbleRise 7s ease-in-out infinite 1s;
}

@keyframes charactersParticleBob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes charactersParticleFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(8px, -12px) scale(1.1);
    }

    50% {
        transform: translate(-5px, 6px) scale(.95);
    }

    75% {
        transform: translate(10px, -4px) scale(1.05);
    }
}

@keyframes charactersDotTwinkle {

    0%,
    100% {
        opacity: .1;
        transform: scale(.6);
    }

    50% {
        opacity: .5;
        transform: scale(1.2);
    }
}

@keyframes charactersBubbleRise {
    0% {
        transform: translateY(0) scale(1);
        opacity: .3;
    }

    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: .5;
    }

    100% {
        transform: translateY(-40px) scale(.8);
        opacity: 0;
    }
}

/* Rock silhouettes at bottom */
.characters-art-rock {
    position: absolute;
    bottom: 0;
    z-index: 1;
}

.characters-art-rock::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 50px solid rgba(15, 12, 8, .9);
}

.characters-art-rock::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 35px solid rgba(15, 12, 8, .85);
}


/* ==================================================
           RESPONSIVE
        =================================================== */

@media (max-width: 992px) {
    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .characters-about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .characters-about-art {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .characters-main-title {
        font-size: 2.2rem;
    }

    .characters-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }

    .characters-card-image {
        height: 220px;
    }

    .characters-card-image img {
        height: 170px;
    }

    .characters-about-title {
        font-size: 1.9rem;
    }

    .characters-about-art {
        height: 250px;
    }
}

/* ==================================================
   CHARACTERS-COMING SOON PAGE
================================================== */

.characters-coming-soon-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: url('../images/Characters_Activities.jpg') no-repeat center / cover;
}

.characters-coming-soon-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(15, 12, 8, .15) 0%, rgba(15, 12, 8, .6) 70%);
    z-index: 0;
}

.characters-coming-soon-content {
    position: relative;
    z-index: 5;
    max-width: 700px;
    padding: 60px 20px;
}

.characters-coming-soon-title {
    font-family: 'Cinzel', serif;
    font-size: 3.4rem;
    color: #fff;
    margin: 20px 0;
    line-height: 1.15;
}

.characters-coming-soon-text {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 550px;
    line-height: 1.8;
}

.characters-coming-soon-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 30px auto;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(255, 211, 63, .4);
}

.characters-coming-soon-glow {
    font-size: 2.8rem;
    margin: 10px 0 20px;
    animation: charactersCsGlowPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 211, 63, .6));
}

@keyframes charactersCsGlowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: .7;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}


/* ==================================================
   CHARACTERS-CS ICON CONTAINER
================================================== */

.characters-cs-icons {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.characters-cs-icon {
    position: absolute;
    will-change: transform, opacity;
}


/* ==================================================
   15 THEMED DIV SHAPES
================================================== */

/* 1. Gold Particle Dot */
.characters-cs-gold-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 6px rgba(255, 211, 63, .7), 0 0 14px rgba(255, 211, 63, .3);
}

/* 2. Crystal / Diamond */
.characters-cs-crystal {
    width: 12px;
    height: 12px;
    background: rgba(255, 211, 63, .12);
    border: 1px solid rgba(255, 211, 63, .4);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 211, 63, .15);
}

/* 3. Mini Book */
.characters-cs-mini-book {
    width: 18px;
    height: 26px;
    border: 1px solid rgba(255, 211, 63, .35);
    border-radius: 2px 4px 4px 2px;
    background: rgba(255, 211, 63, .04);
    box-shadow: 0 0 8px rgba(255, 211, 63, .1);
    position: relative;
}

.characters-cs-mini-book::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 5px;
    right: 4px;
    height: 1px;
    background: rgba(255, 211, 63, .2);
    box-shadow: 0 3px 0 rgba(255, 211, 63, .15), 0 6px 0 rgba(255, 211, 63, .1);
}

/* 4. Hexagonal Gem */
.characters-cs-hex {
    width: 14px;
    height: 14px;
    background: rgba(255, 211, 63, .08);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    filter: drop-shadow(0 0 4px rgba(255, 211, 63, .2));
}

/* 5. Mountain Triangle */
.characters-cs-mountain {
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 22px solid rgba(255, 211, 63, .12);
    filter: drop-shadow(0 0 6px rgba(255, 211, 63, .15));
}

/* 6. Lantern */
.characters-cs-lantern {
    width: 10px;
    height: 14px;
    border: 1px solid rgba(255, 211, 63, .4);
    border-radius: 50% 50% 30% 30%;
    background: rgba(255, 211, 63, .06);
    box-shadow: 0 0 12px rgba(255, 211, 63, .25), 0 0 25px rgba(255, 211, 63, .1);
    position: relative;
}

.characters-cs-lantern::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 3px;
    border: 1px solid rgba(255, 211, 63, .35);
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    background: transparent;
}

/* 7. Treasure Chest */
.characters-cs-chest {
    width: 24px;
    height: 14px;
    border: 1px solid rgba(255, 211, 63, .35);
    border-radius: 3px 3px 1px 1px;
    background: rgba(255, 211, 63, .04);
    position: relative;
    box-shadow: 0 2px 0 rgba(255, 211, 63, .1);
}

.characters-cs-chest::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border: 1px solid rgba(255, 211, 63, .45);
    border-radius: 50%;
    background: rgba(255, 211, 63, .1);
}

.characters-cs-chest::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 5px;
    border: 1px solid rgba(255, 211, 63, .3);
    border-radius: 3px 3px 0 0;
    background: rgba(255, 211, 63, .06);
}

/* 8. Key */
.characters-cs-key {
    width: 8px;
    height: 8px;
    border: 1.5px solid rgba(255, 211, 63, .45);
    border-radius: 50%;
    background: transparent;
    position: relative;
}

.characters-cs-key::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5px;
    height: 14px;
    background: rgba(255, 211, 63, .4);
    border-radius: 0 0 1px 1px;
}

/* 9. Scroll / Map */
.characters-cs-scroll {
    width: 14px;
    height: 20px;
    border: 1px solid rgba(255, 211, 63, .3);
    border-radius: 7px;
    background: rgba(255, 211, 63, .03);
    position: relative;
}

.characters-cs-scroll::before,
.characters-cs-scroll::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    height: 3px;
    background: rgba(255, 211, 63, .25);
    border-radius: 2px;
}

.characters-cs-scroll::before {
    top: -2px;
}

.characters-cs-scroll::after {
    bottom: -2px;
}

/* 10. Cart Wheel */
.characters-cs-wheel {
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(255, 211, 63, .35);
    border-radius: 50%;
    background: transparent;
    position: relative;
}

.characters-cs-wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 1px;
    background: rgba(255, 211, 63, .25);
}

.characters-cs-wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    width: 9px;
    height: 1px;
    background: rgba(255, 211, 63, .25);
}

/* 11. Cave Arch */
.characters-cs-cave {
    width: 30px;
    height: 18px;
    border: 1.5px solid rgba(255, 211, 63, .25);
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    background: rgba(0, 0, 0, .25);
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, .3);
}

/* 12. Rail Track */
.characters-cs-rail {
    width: 32px;
    height: 2px;
    background: rgba(255, 211, 63, .25);
    position: relative;
    border-radius: 1px;
}

.characters-cs-rail::before,
.characters-cs-rail::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 6px;
    background: rgba(255, 211, 63, .18);
    top: -2px;
    border-radius: 1px;
}

.characters-cs-rail::before {
    left: 5px;
}

.characters-cs-rail::after {
    right: 5px;
}

/* 13. Compass */
.characters-cs-compass {
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255, 211, 63, .35);
    border-radius: 50%;
    background: transparent;
    position: relative;
}

.characters-cs-compass::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 7px solid rgba(255, 211, 63, .5);
}

.characters-cs-compass::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    border-top: 5px solid rgba(255, 211, 63, .2);
}

/* 14. Fossil Shell */
.characters-cs-fossil {
    width: 18px;
    height: 12px;
    border: 1px solid rgba(255, 211, 63, .25);
    border-bottom: none;
    border-radius: 50% 50% 0 0;
    background: transparent;
    position: relative;
}

.characters-cs-fossil::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 10px;
    background: rgba(255, 211, 63, .15);
}

/* 15. Pickaxe */
.characters-cs-pickaxe {
    width: 24px;
    height: 24px;
    position: relative;
}

.characters-cs-pickaxe::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(-30deg);
    transform-origin: bottom center;
    width: 2px;
    height: 18px;
    background: rgba(255, 211, 63, .35);
    border-radius: 1px;
}

.characters-cs-pickaxe::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-30%);
    width: 14px;
    height: 7px;
    border: 1.5px solid rgba(255, 211, 63, .4);
    border-radius: 2px 10px 10px 2px;
    background: rgba(255, 211, 63, .04);
}


/* ==================================================
   7 ANIMATIONS
================================================== */

.characters-cs-float {
    animation-name: charactersCsFloat;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes charactersCsFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    30% {
        transform: translateY(-18px) scale(1.06);
    }

    60% {
        transform: translateY(-8px) scale(0.94);
    }
}

.characters-cs-spin {
    animation-name: charactersCsSpin;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes charactersCsSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.characters-cs-pulse {
    animation-name: charactersCsPulse;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes charactersCsPulse {

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

    50% {
        transform: scale(1.45);
    }
}

.characters-cs-drift {
    animation-name: charactersCsDrift;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes charactersCsDrift {

    0%,
    100% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(16px) translateY(-10px);
    }

    50% {
        transform: translateX(-10px) translateY(7px);
    }

    75% {
        transform: translateX(13px) translateY(-12px);
    }
}

.characters-cs-twinkle {
    animation-name: charactersCsTwinkle;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes charactersCsTwinkle {

    0%,
    100% {
        opacity: 0.03;
        transform: scale(0.5);
    }

    25% {
        opacity: 0.7;
        transform: scale(1.15);
    }

    50% {
        opacity: 0.05;
        transform: scale(0.7);
    }

    75% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

.characters-cs-orbit {
    animation-name: charactersCsOrbit;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes charactersCsOrbit {
    from {
        transform: rotate(0deg) translateX(10px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(10px) rotate(-360deg);
    }
}

.characters-cs-wobble {
    animation-name: charactersCsWobble;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes charactersCsWobble {

    0%,
    100% {
        transform: rotate(0deg) translateY(0);
    }

    20% {
        transform: rotate(14deg) translateY(-7px);
    }

    40% {
        transform: rotate(-11deg) translateY(4px);
    }

    60% {
        transform: rotate(9deg) translateY(-10px);
    }

    80% {
        transform: rotate(-7deg) translateY(3px);
    }
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 768px) {
    .characters-coming-soon-title {
        font-size: 2.2rem;
    }

    .characters-coming-soon-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .characters-coming-soon-title {
        font-size: 1.8rem;
    }

    .characters-coming-soon-text {
        font-size: .92rem;
    }

    .characters-coming-soon-glow {
        font-size: 2.2rem;
    }
}

/* ==========================
   CHARACTERS-COMING SOON PAGE
========================== */

.characters-coming-soon-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 65px;
    padding: 0 20px;
}

.characters-coming-soon-content {
    max-width: 850px;
    padding: 60px;
    background: rgba(26, 20, 13, 0.85);
    border: 1px solid rgba(255, 211, 63, .15);
    border-radius: 35px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(255, 211, 63, .08);
    text-align: center;
    margin: 0 auto;
}

.characters-coming-soon-title {
    font-size: 4rem;
    margin: 20px 0;
    color: var(--cream);
}

.characters-coming-soon-text {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.9;
}

.characters-coming-soon-glow {
    font-size: 6rem;
    margin-top: 30px;
    color: var(--gold);
    animation: glowFloat 4s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 211, 63, .6), 0 0 40px rgba(255, 211, 63, .4);
}

@keyframes glowFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

@media(max-width:768px) {
    .characters-coming-soon-content {
        padding: 40px 25px;
    }

    .characters-coming-soon-title {
        font-size: 2.5rem;
    }

    .characters-coming-soon-glow {
        font-size: 4rem;
    }
}

/* ==================================================
   CHARACTERS-CARD COMING SOON AREA
================================================== */

.characters-card-coming {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 211, 63, .05) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center glow orb */
.characters-coming-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 211, 63, .12) 0%, transparent 70%);
    animation: charactersComingGlow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes charactersComingGlow {

    0%,
    100% {
        transform: scale(.8);
        opacity: .4;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Sparkle container */
.characters-coming-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.characters-sparkle {
    position: absolute;
    color: var(--gold);
    pointer-events: none;
    animation: charactersSparklePop 2.5s ease-in-out infinite;
    opacity: 0;
    text-shadow: 0 0 8px rgba(255, 211, 63, .8), 0 0 20px rgba(255, 211, 63, .4);
    z-index: 2;
}

.characters-sparkle.s1 {
    left: 8%;
    top: 15%;
    font-size: 18px;
    animation-delay: 0s;
}

.characters-sparkle.s2 {
    left: 22%;
    top: 70%;
    font-size: 12px;
    animation-delay: .3s;
}

.characters-sparkle.s3 {
    left: 15%;
    top: 45%;
    font-size: 20px;
    animation-delay: .6s;
}

.characters-sparkle.s4 {
    left: 88%;
    top: 20%;
    font-size: 14px;
    animation-delay: .15s;
}

.characters-sparkle.s5 {
    left: 78%;
    top: 65%;
    font-size: 16px;
    animation-delay: .45s;
}

.characters-sparkle.s6 {
    left: 92%;
    top: 45%;
    font-size: 18px;
    animation-delay: .75s;
}

.characters-sparkle.s7 {
    left: 35%;
    top: 10%;
    font-size: 13px;
    animation-delay: .9s;
}

.characters-sparkle.s8 {
    left: 65%;
    top: 80%;
    font-size: 15px;
    animation-delay: .2s;
}

.characters-sparkle.s9 {
    left: 50%;
    top: 8%;
    font-size: 16px;
    animation-delay: .55s;
}

.characters-sparkle.s10 {
    left: 42%;
    top: 85%;
    font-size: 12px;
    animation-delay: .8s;
}

.characters-sparkle.s11 {
    left: 55%;
    top: 75%;
    font-size: 14px;
    animation-delay: .35s;
}

.characters-sparkle.s12 {
    left: 30%;
    top: 82%;
    font-size: 17px;
    animation-delay: .65s;
}

@keyframes charactersSparklePop {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    15% {
        transform: scale(1.4) rotate(30deg);
        opacity: 1;
    }

    30% {
        transform: scale(1) rotate(60deg);
        opacity: .8;
    }

    50% {
        transform: scale(1.3) rotate(90deg);
        opacity: 1;
    }

    70% {
        transform: scale(.9) rotate(150deg);
        opacity: .6;
    }

    85% {
        transform: scale(1.2) rotate(200deg);
        opacity: .9;
    }

    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* Big Coming Soon text */
.characters-coming-content {
    position: relative;
    z-index: 3;
}

.characters-coming-text {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-block;
    animation: charactersBounceGlow 2s ease-in-out infinite;
    text-shadow:
        0 0 10px rgba(255, 211, 63, .8),
        0 0 30px rgba(255, 211, 63, .4),
        0 0 60px rgba(255, 211, 63, .2);
}

/* Main bounce + glow + color shift animation */
@keyframes charactersBounceGlow {

    0%,
    100% {
        transform: translateY(0) scale(1);
        text-shadow:
            0 0 10px rgba(255, 211, 63, .6),
            0 0 25px rgba(255, 211, 63, .3),
            0 0 50px rgba(255, 211, 63, .15);
        color: #ffd33f;
    }

    25% {
        transform: translateY(-12px) scale(1.08);
        text-shadow:
            0 0 15px rgba(255, 211, 63, 1),
            0 0 40px rgba(255, 211, 63, .6),
            0 0 80px rgba(255, 211, 63, .3);
        color: #ffe98a;
    }

    50% {
        transform: translateY(0) scale(1);
        text-shadow:
            0 0 8px rgba(255, 180, 50, .8),
            0 0 30px rgba(255, 180, 50, .4),
            0 0 60px rgba(255, 180, 50, .2);
        color: #ffb432;
    }

    75% {
        transform: translateY(-8px) scale(1.05);
        text-shadow:
            0 0 12px rgba(255, 211, 63, .9),
            0 0 35px rgba(255, 211, 63, .5),
            0 0 70px rgba(255, 211, 63, .25);
        color: #ffd33f;
    }
}

/* Each card gets a slightly different timing so they don't sync */
.characters-card:nth-child(1) .characters-coming-text {
    animation-delay: 0s;
}

.characters-card:nth-child(2) .characters-coming-text {
    animation-delay: .4s;
}

.characters-card:nth-child(3) .characters-coming-text {
    animation-delay: .8s;
}

.characters-card:nth-child(4) .characters-coming-text {
    animation-delay: 1.2s;
}

/* Hover — speed it up and add extra glow */
.characters-card:hover .characters-coming-text {
    animation-duration: 1.2s;
    text-shadow:
        0 0 20px rgba(255, 211, 63, 1),
        0 0 50px rgba(255, 211, 63, .7),
        0 0 100px rgba(255, 211, 63, .4);
}

.characters-card:hover .characters-coming-glow {
    background: radial-gradient(circle, rgba(255, 211, 63, .25) 0%, transparent 70%);
    animation-duration: 1.5s;
}

/* ==================================================
   IMAGE MODAL
================================================== */

.char-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--bg-card);
    backdrop-filter: blur(8px);
    animation: modalFade 0.3s ease;
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.char-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffd33f;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.char-modal-close:hover {
    color: #fff;
    transform: scale(1.2);
}

.char-modal-img {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 0 60px rgba(255, 211, 63, 0.3);
    animation: modalZoom 0.3s ease;
    border: 2px solid rgba(255, 211, 63, 0.2);
}

@keyframes modalZoom {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.char-modal-caption {
    margin: 20px auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ffd33f;
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    padding: 10px 0;
}

.characters-card-image {
    cursor: pointer;
    position: relative;
}

.characters-card-image::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0;
    transition: 0.3s;
    color: #ffd33f;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
    pointer-events: none;
}

.characters-card-image:hover::after {
    opacity: 1;
}

.characters-card-image:hover img {
    filter: brightness(0.7);
}
