
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Montserrat:wght@400;500;600;700;800&display=swap');


/* =========================================================
   RESET & BASE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
    height: 100%;
    cursor: url('../img/cursor.png') 4 4, auto;
}

a, button, [role="button"] {
    cursor: url('../img/cursor.png') 4 4, pointer;
}

body {
    background: #08120d;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    height: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* =========================================================
   NAVBAR
========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    z-index: 9999;
    background: rgba(6, 14, 10, 0.10);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
    background: rgba(6, 14, 10, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.site-header .header-inner {
    width: min(1440px, 94%);
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo img {
    width: auto;
    max-width: 128px;
    max-height: 36px;
    object-fit: contain;
}


/* MENU */

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 26px;
}

.site-nav a {
    position: relative;
    color: rgba(255, 255, 255, 0.70);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 1px;
    background: #c7eea9;
    transition: width 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: #fff;
}

.site-nav a.is-active::after {
    width: 100%;
}


/* PLAY BUTTON */

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.header-play {
    padding: 9px 17px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.25s ease;
}

.header-play:hover {
    color: #142015;
    background: #c7eea9;
    border-color: #c7eea9;
}


/* MOBILE NAV TOGGLE */

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: 14px;
    border: none;
    background: none;
    color: #fff;
    font-size: 20px;
    cursor: url('../img/cursor.png') 4 4, pointer;
}

.nav-scrim {
    display: none;
}

@media (max-width: 850px) {
    .nav-scrim.is-open {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 9998;
        background: rgba(0, 0, 0, 0.45);
    }
}


/* =========================================================
   SCENES — SCROLL SNAP SYSTEM (seperti aniimo.com)
========================================================= */

.scene {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 650px;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.scene > * {
    position: relative;
    z-index: 2;
}


/* GLOBAL SHADE */

.scene-shade {
    position: absolute;
    inset: 0;
    z-index: 1 !important;
    background: linear-gradient(
        to bottom,
        rgba(4, 12, 8, 0.35),
        rgba(4, 12, 8, 0.12) 45%,
        rgba(4, 12, 8, 0.52)
    );
}

.shade-left {
    background: linear-gradient(
        90deg,
        rgba(4, 12, 8, 0.86) 0%,
        rgba(4, 12, 8, 0.72) 30%,
        rgba(4, 12, 8, 0.25) 58%,
        rgba(4, 12, 8, 0.05) 100%
    );
}

.scene-vignette {
    position: absolute;
    inset: 0;
    z-index: 1 !important;
    background: radial-gradient(
        ellipse at center,
        transparent 25%,
        rgba(0, 0, 0, 0.28) 100%
    );
}

/* =========================================================
   FIREFLIES — sedikit titik cahaya melayang di section Home.
   Ditaruh di HTML setelah shade/vignette, sebelum konten teks,
   jadi otomatis kepakai z-index: 2 dari aturan `.scene > *`
   (sama seperti teks) — urutan DOM yang menentukan dia di
   bawah teks, bukan z-index tambahan.
========================================================= */

.fireflies {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.fireflies span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #57beffeb;
    box-shadow: 0 0 6px 2px rgb(138 232 251 / 80%);
    opacity: 0;
    animation: fireflyFloat 9s ease-in-out infinite,
               fireflyFlicker 3s ease-in-out infinite;
}


.fireflies span:nth-child(1) { left: 12%; top: 70%; animation-delay: 0s, 0.4s; animation-duration: 10s, 2.6s; }
.fireflies span:nth-child(2) { left: 24%; top: 40%; animation-delay: 1.2s, 0s; animation-duration: 8s, 3.4s; }
.fireflies span:nth-child(3) { left: 38%; top: 62%; animation-delay: 2.4s, 1.1s; animation-duration: 11s, 2.9s; width: 2px; height: 2px; }
.fireflies span:nth-child(4) { left: 55%; top: 30%; animation-delay: 0.8s, 0.6s; animation-duration: 9s, 3.1s; }
.fireflies span:nth-child(5) { left: 68%; top: 55%; animation-delay: 3s, 1.6s; animation-duration: 12s, 2.4s; width: 2px; height: 2px; }
.fireflies span:nth-child(6) { left: 80%; top: 35%; animation-delay: 1.8s, 0.2s; animation-duration: 10s, 3.6s; }
.fireflies span:nth-child(7) { left: 90%; top: 65%; animation-delay: 2.8s, 1.3s; animation-duration: 8.5s, 2.8s; }

@keyframes fireflyFloat {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(8px, -14px); }
    50%  { transform: translate(-6px, -6px); }
    75%  { transform: translate(10px, 6px); }
    100% { transform: translate(0, 0); }
}

@keyframes fireflyFlicker {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
    .fireflies span {
        animation: none;
        opacity: 0.6;
    }
}


/* =========================================================
   CONTENT
========================================================= */

.scene-content {
    position: relative;
    z-index: 3;
    width: min(660px, 88vw);
}

.center-content {
    margin: auto;
    text-align: center;
}

.content-left {
    margin-left: clamp(30px, 8vw, 150px);
}

.scene-label {
    display: inline-block;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
}

.eyebrow {
    margin-bottom: 14px;
    color: #c7eea9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: 'Cinzel', serif;
}

h1,
h2 {
    color: #fff;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

h1 span,
h2 span {
    color: #c7eea9;
}

.hero-title {
    font-size: clamp(54px, 5vw, 120px);
}

h2 {
    font-size: clamp(42px, 5.5vw, 78px);
}

.hero-tagline {
    margin-top: 18px;
    font-family: 'Cinzel', serif;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-desc,
.section-lede {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.8;
}

.hero-desc {
    max-width: 620px;
    margin: 17px auto 0;
}

.section-lede {
    max-width: 620px;
    margin-top: 20px;
}

.center-content .section-lede {
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 155px;
    padding: 13px 20px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    color: #142015;
    background: #c7eea9;
}

.btn-glass {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(3px);
}

.btn-lg {
    min-width: 230px;
    padding: 16px 28px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 27px;
}


/* =========================================================
   HOME
========================================================= */

.hero-status {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: #c7eea9;
    box-shadow: 0 0 10px #c7eea9;
}

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-hint span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
}

.scroll-hint i {
    display: block;
    width: 1px;
    height: 34px;
    background: linear-gradient(to bottom, #c7eea9, transparent);
    animation: scrollLine 1.7s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        transform: scaleY(0.5);
        transform-origin: top;
        opacity: 0.4;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}


/* =========================================================
   ABOUT — CORE LOOP
========================================================= */

.loop-flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 25px;
    margin-top: 28px;
}

.loop-step {
    display: flex;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.loop-num {
    flex: 0 0 auto;
    color: #c7eea9;
    font-family: 'Cinzel', serif;
    font-size: 12px;
}

.loop-step h3 {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
}

.loop-step p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    line-height: 1.55;
}


/* =========================================================
   WORLD
========================================================= */

.world-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.world-stat {
    min-height: 95px;
    padding: 17px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.world-stat:last-child {
    border-right: 0;
}

.world-stat strong {
    color: #c7eea9;
    font-family: 'Cinzel', serif;
    font-size: 30px;
}

.world-stat span {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
}


/* =========================================================
   CREATURES
========================================================= */

.scene-creatures {
    padding: 0;
}

.species-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #07100a;
}


/* DUAL BACKGROUND LAYERS */

.species-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.05s ease;
    pointer-events: none;
}

.species-bg.is-active {
    opacity: 1;
}

/* OVERLAYS */

.species-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(
            90deg,
            rgba(3, 10, 7, 0.88) 0%,
            rgba(3, 10, 7, 0.72) 25%,
            rgba(3, 10, 7, 0.32) 52%,
            rgba(3, 10, 7, 0.06) 78%,
            rgba(3, 10, 7, 0.12) 100%
        ),
        linear-gradient(
            to top,
            rgba(3, 10, 7, 0.82) 0%,
            rgba(3, 10, 7, 0.24) 30%,
            transparent 62%
        );
}

.species-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 40%,
        rgba(0, 0, 0, 0.22) 100%
    );
}


/* CREATURE CONTENT */

.species-content {
    position: absolute;
    top: 15%;
    left: clamp(30px, 8vw, 150px);
    z-index: 4;
    width: min(570px, 78vw);
    transform: translateY(-50%);
}

.species-title {
    margin: 0;
    font-size: clamp(52px, 6vw, 94px);
    line-height: 0.95;
    text-shadow: 0 8px 35px rgba(0, 0, 0, 0.30);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.species-caption {
    max-width: 470px;
    margin-top: 25px;
}

.rarity {
    display: inline-flex;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(2px);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.rarity-common {
    color: #e4e4e4;
}

.rarity-rare {
    color: #8fc7ff;
}

.rarity-legendary {
    color: #ffd778;
}

.rarity-epic {
    color: #b48cff;
}

.species-flavor {
    margin-top: 13px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.75;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}

.species-see-all {
    margin-top: 22px;
}


/* SELECTOR */

.species-selector {
    position: absolute;
    right: 0;
    bottom: 10px;
    left: 0;
    z-index: 5;
    width: min(1040px, 90vw);
    margin: auto;
}

.species-selector-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.species-selector-label strong {
    color: rgba(255, 255, 255, 0.70);
    font-size: 9px;
    letter-spacing: 1px;
}


.species-thumbs {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Memastikan semua sejajar di bawah saat melayang */
    gap: 20px; 
}


.species-thumbs {
    display: flex;
    justify-content: center;
    align-items: flex-end; 
    gap: 20px; 
}

/* THUMBNAILS BASE */
.species-thumb {
    position: relative;
    height: 132px; 
    flex: 0 1 106px; 
    overflow: visible; 
    padding: 0;
    border: none; 
    border-radius: 16px 4px 16px 4px; 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(0, 0, 0, 0.5) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: url('../img/cursor.png') 4 4, pointer;
    opacity: 0.45; 
    
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* LAPISAN 1: WADAH GAMBAR BACKGROUND KHUSUS KARTU AKTIF */
.species-thumb .species-thumb-bg {
    position: absolute;
    inset: 0;
    z-index: 1; /* Paling belakang */
    border-radius: 16px 4px 16px 4px;
    background-image: url('../img/bg-thumb.webp'); 
    background-size: cover;
    background-position: center;
    opacity: 0; 
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* LAPISAN 2: GAMBAR KARAKTER HEWAN */
.species-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px 4px 16px 4px; 
    position: relative;
    z-index: 2; /* Berada di depan gambar latar belakang aktif */
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

/* LAPISAN 3: GRADASI OVERLAY HITAM */
.species-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px 4px 16px 4px; 
    z-index: 3; /* Berada di depan gambar karakter untuk melindungi teks */
    background: linear-gradient(to top, rgb(0 0 0 / 98%) 0%, rgb(141 110 110 / 0%) 45%, rgba(0, 0, 0, 0) 85%);

}

/* LAPISAN 4: TEKS UTAMA (NAMA HEWAN - RATA KIRI) */
.species-thumb span {
    position: absolute;
    right: 12px;
    left: 12px;
    bottom: 24px; /* Diposisikan tepat di atas teks Rarity */
    z-index: 4; /* Paling depan */
    
    color: #ffffff;
    font-size: 11px; 
    font-weight: 900; 
    letter-spacing: 0.5px;
    text-align: left; 
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
}

/* LAPISAN 5: TEKS KELANGKAHAN (RARITY) - DIPANGGIL DARI ELEMENT INDUK */
.species-thumb::before {
    content: attr(data-rarity-label); /* Berhasil memanggil teks Common/Rare kembali dari tombol induk */
    
    position: absolute;
    left: 12px; /* Sejajar rata kiri dengan nama */
    bottom: 10px; /* Terkunci rapi di posisi terbawah kartu */
    z-index: 4; /* Selevel dengan teks nama di paling depan */
    
    /* Gaya teks Rarity */
    font-size: 7.5px; 
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 1);
    color: rgba(255, 255, 255, 0.5); 
    transition: color 0.3s ease;
}


/* ==========================================================================
   KONDISI INTERAKTIF (HOVER & ACTIVE STATES)
   ========================================================================== */

/* EFEK MOUSE MENDEKAT (HOVER) */
.species-thumb:hover {
    opacity: 0.8;
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6); 
}

.species-thumb:hover img {
    transform: scale(1.15) translateY(-4px); 
}

/* EFEK KARTU AKTIF / TERPILIH */
.species-thumb.is-active {
    opacity: 1;
    transform: translateY(-16px); 
    background: transparent; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 
                0 0 25px rgba(199, 238, 169, 0.25); 
}

/* Memunculkan gambar background kustom lewat kelas baru saat aktif */
.species-thumb.is-active .species-thumb-bg {
    opacity: 1;
    transform: scale(1);
}

.species-thumb.is-active img {
    transform: scale(1.3) translateY(-14px) translateX(-4px);
    filter: saturate(1.2) brightness(1.1) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6)); 
}

/* Mengubah warna teks Rarity menjadi hijau menyala saat aktif */
.species-thumb.is-active::before {
    color: #c7eea9; 
}

/* FILTER WARNA KARTU YANG TIDAK AKTIF */
.species-thumb:not(.is-active) img {
    filter: saturate(0.4) brightness(0.6) grayscale(0.2); 
}


/* =========================================================
   FIX: THUMB AKTIF TIDAK TERTUTUP THUMB TETANGGA
========================================================= */

.species-thumb {
    position: relative;
    z-index: 1;
    transition: z-index 0s; /* Agar langsung berubah */
}

/* Saat hover, naikkan z-index */
.species-thumb:hover {
    z-index: 5;
}

/* Saat aktif, naikkan z-index paling tinggi */
.species-thumb.is-active {
    z-index: 10 !important;
    transform: translateY(-16px);
    /* Tambahkan margin agar tidak saling menimpa */
    margin-left: 4px;
    margin-right: 4px;
}

/* Pastikan parent tidak memotong */
.species-thumbs {
    overflow: visible !important;
    padding: 10px 10px 30px 10px; /* Beri padding horizontal */
}


/* =========================================================
   ROADMAP
========================================================= */

.roadmap-track {
    margin-top: 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.roadmap-phase {
    position: relative;
    display: flex;
    gap: 15px;
    padding: 0 0 17px 22px;
    opacity: 0.55;
    transition: opacity 0.25s ease;
}

.roadmap-phase:hover,
.roadmap-phase.is-active {
    opacity: 1;
}

.phase-dot {
    position: absolute;
    top: 4px;
    left: -5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #5b645d;
}

.roadmap-phase.is-active .phase-dot {
    background: #c7eea9;
    box-shadow: 0 0 14px rgba(199, 238, 169, 0.7);
}

.roadmap-phase h3 {
    margin-bottom: 4px;
    font-size: 13px;
}

.roadmap-phase p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    line-height: 1.5;
}

.phase-tag {
    display: inline-block;
    margin-top: 7px;
    color: #c7eea9;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}


/* =========================================================
   MILESTONE
========================================================= */

.milestone-counter {
    margin-top: 27px;
}

.milestone-counter span,
.milestone-counter small {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.milestone-number {
    display: block;
    margin: 5px 0;
    color: #c7eea9;
    font-family: 'Cinzel', serif;
    font-size: clamp(55px, 7vw, 90px);
}

.milestone-track {
    width: min(850px, 100%);
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.milestone-node {
    position: relative;
    padding: 20px 10px 0;
}

.milestone-node::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    width: 9px;
    height: 9px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #c7eea9;
}

.milestone-node strong {
    display: block;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 17px;
}

.milestone-node span {
    display: block;
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 8px;
    line-height: 1.5;
}


/* =========================================================
   COMMUNITY
========================================================= */

.community-content .btn {
    margin-top: 28px;
}

.komunitas-soon {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 9px;
}


/* =========================================================
   FOOTER
========================================================= */

.scene-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    width: min(1440px, 94%);
    margin: auto;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.48);
}

.scene-footer img {
    max-width: auto;
    max-height: 37px;
    object-fit: contain;
}

.footer-links {
    display: flex;
    gap: 14px;
}

.footer-links a,
.scene-footer > span {
    font-size: 8px;
    font-weight: 600;
}

.footer-credibility {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}


/* =========================================================
   SCENE INDEX
========================================================= */

.scene-index {
    position: absolute;
    right: 30px;
    bottom: 26px;
    z-index: 6;
    color: rgba(255, 255, 255, 0.40);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
}


/* =========================================================
   FADE-IN BERTAHAP — CSS Native
========================================================= */

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.scene.is-inview [data-reveal="1"] {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
}

.scene.is-inview [data-reveal="2"] {
    opacity: 1;
    transform: none;
    transition-delay: 0.5s;
}

.scene.is-inview [data-reveal="3"] {
    opacity: 1;
    transform: none;
    transition-delay: 1s;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .site-nav {
        gap: 12px;
        margin-left: 18px;
    }
    .site-nav a {
        font-size: 9px;
    }
    .header-play {
        padding: 8px 13px;
    }
}

@media (max-width: 850px) {
    .nav-toggle {
        display: flex;
    }
    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        width: 230px;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 90px 28px 28px;
        background: rgba(6, 14, 10, 0.97);
        backdrop-filter: blur(5px);
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    .site-nav.is-open {
        transform: translateX(0);
    }
    .site-nav a {
        font-size: 13px;
    }
    .content-left {
        margin-left: 7vw;
    }
    .world-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .world-stat:nth-child(2) {
        border-right: 0;
    }
    .world-stat:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
    .species-thumbs {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 4px;
    }

}

@media (max-width: 600px) {
    .site-header {
        height: 58px;
    }
    .logo img {
        max-width: auto;
        max-height: 50px;
    }
    .header-play {
        padding: 8px 11px;
        font-size: 8px;
    }
    .scene {
        min-height: 100dvh;
    }
    .hero-title {
        font-size: 54px;
    }
    h2 {
        font-size: 40px;
    }
    .hero-desc,
    .section-lede {
        font-size: 11px;
    }
    .loop-flow {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .species-content {
        top: 43%;
        left: 7vw;
        transform: translateY(-50%);
    }
    .species-thumbs {
        bottom: 65px;
    }
    .milestone-track {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 0;
        border-top: 0;
    }
    .milestone-node {
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }
    .scene-footer {
        flex-wrap: wrap;
        gap: 10px;
        padding-bottom: 12px;
    }
    .footer-links {
        order: 3;
        width: 100%;
    }
    .scene-index {
        right: 15px;
        bottom: 18px;
    }
}

/* =========================================================
   HALAMAN LAIN — World, Creatures, Journal, Roadmap (lengkap),
   Community, About, FAQ. (Bagian ini yang hilang di versi
   yang di-upload — ditambahkan kembali supaya halaman-halaman
   itu tidak tampil polos tanpa styling.)
========================================================= */

/* --- Pola "full-page scene" bersama --- */

.scene-creature-grid,
.scene-creature-detail,
.scene-roadmap-full,
.scene-journal,
.scene-journal-entry,
.scene-community-full,
.scene-about-full,
.scene-faq {
    position: relative;

    min-height: 100vh;
    min-height: 100dvh;
    height: auto;

    display: block;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.scene-creature-grid { background-position: center top; }
.scene-journal { background-position: center top; }

.scene-creature-grid .creature-grid-wrap,
.scene-creature-detail .creature-detail-wrap,
.scene-roadmap-full .roadmap-full-wrap,
.scene-journal .journal-wrap,
.scene-journal-entry .journal-entry-wrap,
.scene-community-full .community-full-wrap,
.scene-about-full .about-full-wrap,
.scene-faq .faq-wrap {
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.creature-grid-wrap    { max-width: 1200px; padding: 100px 24px 80px; }
.creature-detail-wrap  { max-width: 900px;  padding: 100px 24px 80px; }
.roadmap-full-wrap     { max-width: 820px;  padding: 100px 24px 100px; }
.journal-wrap           { max-width: 900px;  padding: 110px 24px 80px; }
.journal-entry-wrap     { max-width: 720px;  padding: 110px 24px 80px; }
.community-full-wrap    { max-width: 760px;  padding: 110px 24px 90px; text-align: center; }
.about-full-wrap        { max-width: 720px;  padding: 110px 24px 90px; }
.faq-wrap                { max-width: 720px;  padding: 110px 24px 90px; }


/* --- World: tag biome --- */

.world-content {
    max-width: 620px;
}

.biome-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.biome-tag {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}


/* --- Creatures: grid katalog --- */

.creature-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    cursor: url('../img/cursor.png') 4 4, pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.7);
}

.filter-btn.is-active {
    background: #d4af37;
    border-color: #d4af37;
    color: #14100a;
    font-weight: 600;
}

.creature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 3fr));
    gap: 20px;
}

.creature-card {
    display: block;
    text-decoration: none;
    background: rgba(10, 14, 12, 0.72);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.creature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.6);
}

.creature-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.06);
}

.creature-card-info {
    padding: 14px 16px 18px;
}

.creature-card-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    color: #fff;
    margin: 6px 0 4px;
    letter-spacing: 0.5px;
}

.creature-habitat {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}


/* --- Creature detail --- */

.creature-detail-back,
.journal-entry-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
}

.creature-detail-back:hover,
.journal-entry-back:hover {
    color: #fff;
}

.creature-detail-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 24px;
}

.creature-detail-name {
    font-family: 'Cinzel', serif;
    font-size: 42px;
    color: #fff;
    margin: 10px 0 6px;
    letter-spacing: 0.5px;
}

.creature-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.creature-detail-habitat {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
}

.creature-detail-flavor {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
}

.creature-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 3fr));
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.creature-stat .stat-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.creature-stat .stat-value {
    display: block;
    font-size: 18px;
    color: #fff;
    font-weight: 600;
}


/* --- Roadmap (versi lengkap) --- */

.roadmap-phase-full {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.roadmap-phase-full:last-child {
    border-bottom: none;
}

.phase-marker {
    flex-shrink: 0;
    width: 90px;
}

.phase-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

.phase-status-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid currentColor;
}

.phase-status-dot.status-active { color: #6fd88a; }
.phase-status-dot.status-upcoming { color: rgba(255, 255, 255, 0.45); }

.phase-status-dot .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.roadmap-phase-full-body h3 {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    color: #fff;
    margin: 0 0 8px;
}

.phase-question {
    font-size: 15px;
    color: #d4af37;
    font-style: italic;
    margin: 0 0 10px;
}

.phase-desc {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.roadmap-intro-text {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    line-height: 1.6;
}


/* --- Journal (index + detail) --- */

.journal-entry-card {
    display: flex;
    gap: 20px;
    text-decoration: none;
    background: rgba(10, 14, 12, 0.72);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.journal-entry-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.6);
}

.journal-entry-thumb {
    flex-shrink: 0;
    width: 160px;
    background-size: cover;
    background-position: center;
}

.journal-entry-body {
    padding: 18px 20px 18px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.journal-entry-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.journal-category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 2px 10px;
    border-radius: 999px;
}

.journal-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.journal-entry-panel .journal-date {
    margin-left: 10px;
}

.journal-entry-body h3 {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: #fff;
    margin: 0 0 6px;
}

.journal-entry-body p {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.journal-entry-panel {
    background: rgba(10, 14, 12, 0.78);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 32px 28px;
}

.journal-entry-panel h1 {
    font-family: 'Cinzel', serif;
    font-size: 30px;
    color: #fff;
    margin: 14px 0 20px;
    line-height: 1.3;
}

.journal-entry-body-text p {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 18px;
}


/* --- Community (halaman penuh) --- */

.community-milestone-panel {
    background: rgba(10, 14, 12, 0.78);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 32px 24px;
    margin: 36px 0;
}

.community-counter-big {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 56px;
    color: #d4af37;
    line-height: 1;
    margin: 6px 0;
}

.community-counter-label {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.community-target-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.community-milestone-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 28px;
    text-align: left;
}

.community-milestone-node {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 14px 12px;
}

.community-milestone-node strong {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: #fff;
    margin-bottom: 6px;
}

.community-milestone-node span {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.65);
}

.community-future-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 22px;
    margin-top: 30px;
    text-align: left;
}

.community-future-panel h3 {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: #fff;
    margin: 0 0 8px;
}

.community-future-panel p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}


/* --- About / Story --- */

.about-story-panel {
    background: rgba(10, 14, 12, 0.75);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 36px 28px;
    margin-bottom: 24px;
}

.about-story-panel p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 18px;
}

.about-story-panel p:last-child { margin-bottom: 0; }

.about-theme-quote {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    line-height: 1.6;
    color: #d4af37;
    text-align: center;
    font-style: italic;
    margin: 32px 0;
    padding: 0 12px;
}

.about-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.about-principle-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 18px;
}

.about-principle-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    color: #fff;
    margin: 0 0 8px;
}

.about-principle-card p {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.about-credibility,
.footer-credibility {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}


/* --- FAQ --- */

.faq-item {
    background: rgba(10, 14, 12, 0.72);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 18px 20px;
    cursor: url('../img/cursor.png') 4 4, pointer;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    font-family: inherit;
}

.faq-question .faq-icon {
    flex-shrink: 0;
    font-size: 20px;
    color: #d4af37;
    transition: transform 0.2s ease;
}

.faq-item.is-open .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    padding: 0 20px;
}

.faq-item.is-open .faq-answer {
    max-height: 260px;
    padding: 0 20px 20px;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}


/* --- Responsive: halaman-halaman ini --- */

@media (max-width: 560px) {
    .roadmap-phase-full { flex-direction: column; gap: 8px; }
    .phase-marker { width: auto; display: flex; align-items: center; gap: 10px; }

    .journal-entry-card { flex-direction: column; }
    .journal-entry-thumb { width: 100%; height: 140px; }
    .journal-entry-body { padding: 16px; }

    .community-milestone-track { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .creature-grid-wrap { padding-top: 90px; }
    .creature-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}


/* =========================================================
   SITE FOOTER — sekarang jadi scene penuh layar sendiri
   (lihat includes/footer.php), konten tetap menempel di
   bawah lewat align-items: flex-end di bawah ini.
========================================================= */

.scene-footer-full {
    align-items: flex-end;
}

.footer-cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
}

.footer-cta .eyebrow {
    margin-bottom: 16px;
}

.site-footer-main {
    width: 100%;
    background: rgba(6, 14, 10, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 40px 0 24px;
}

.site-footer-inner {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.site-footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.site-footer-logo {
    max-height: 34px;
    object-fit: contain;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-social a svg {
    width: 16px;
    height: 16px;
}

.footer-social a:hover {
    color: #142015;
    background: #c7eea9;
    border-color: #c7eea9;
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 18px;
}

.site-footer-bottom .footer-credibility {
    margin: 0;
    padding: 0;
    border: none;
    text-align: left;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.site-footer-bottom > span {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 700px) {
    .site-footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-links {
        flex-wrap: wrap;
    }
    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ==========================================================================
   ATURAN RESPONSIF LAYAR MOBILE (HP & TABLET KECIL)
   ========================================================================== */
@media screen and (max-width: 768px) {

    .species-content {
        top: 25% !important; 
        left: 20px !important; 
        transform: none !important; 
        width: calc(100% - 200px) !important; 
        min-width: 220px !important; 
        max-width: none !important;
    }


    .species-content .scene-label {
        display: none !important;
    }

    /* MENYESUAIKAN LABEL KECIL "MAKHLUK BURUAN" */
    .species-content .eyebrow {
        font-size: 10px !important;
        letter-spacing: 1.5px !important;
        margin-bottom: 2px !important;
        opacity: 0.8;
    }

    /* MENCEGAH TOMBOL TERLALU LEBAR DI HP */
    .species-see-all {
        margin-top: 16px !important;
        padding: 8px 14px !important;
        font-size: 10.5px !important;
        display: inline-block !important; /* Memastikan tombol tidak memanjang penuh ke kanan */
        width: auto !important; 
    }


    /* 2. SOLUSI FIX KARTU PILIHAN HEWAN (OVERLAY & FLUID) */
    
    /* Memastikan pembungkus menu bawah tidak memotong efek 3D melayang */
    .species-selector,
    .species-thumbs {
        overflow: visible !important; 
    }

    /* Penataan ulang container kartu di bawah agar muat di layar HP */
    .species-thumbs {
        gap: 10px !important; 
        padding: 10px 0 !important;
    }

    /* Menghitung ulang proporsi kartu mini agar proporsional di HP */
    .species-thumb {
        height: 96px !important;
        border-radius: 12px 3px 12px 3px !important; 
    }

    /* Penyesuaian jarak melayang di HP agar tidak terlalu ekstrem menabrak teks */
    .species-thumb:hover {
        transform: translateY(-4px) !important;
    }

    .species-thumb.is-active {
        transform: translateY(-8px) !important; /* Melayang pas untuk estetika layar hp */
    }

    /* Menata ulang posisi Teks Nama di dalam kartu mini HP */
    .species-thumb span {
        left: 8px !important;
        right: 8px !important;
        bottom: 18px !important; 
        font-size: 8.5px !important; 
    }

    /* Menata ulang posisi Teks Rarity di dalam kartu mini HP */
    .species-thumb::before {
        left: 8px !important;
        bottom: 8px !important;
        font-size: 6px !important; 
    }
}


/* =========================================================
   SPECIES SECTION TRANSITIONS
========================================================= */

.species-stage {
    position: relative;
    width: 100%;
    height: 100%;
}

.species-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease-in-out; /* Animasi fading yang halus */
    z-index: 1;
}

.species-bg.is-active {
    opacity: 1;
    z-index: 2;
}

.species-scrim, .species-vignette {
    z-index: 3 !important;
}

.species-content, .species-selector {
    z-index: 4 !important;
}



/* =========================================================
   FIX: THUMBNAIL SERAGAM (Lebar Fix, Tinggi Auto)
========================================================= */

.species-thumbs {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    overflow: visible !important;
    padding: 10px 10px 30px 10px;
}

.species-thumb {
    position: relative;
    flex: 0 0 106px; /* LEBAR FIX */
    width: 106px;
    height: auto; /* TINGGI AUTO sesuai proporsi gambar */
    min-height: 120px; /* Minimal tinggi agar tidak terlalu kecil */
    max-height: 160px; /* Maksimal tinggi agar tidak terlalu besar */
    border-radius: 16px 4px 16px 4px;
    overflow: visible !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(0,0,0,0.5) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: url('../img/cursor.png') 4 4, pointer;
    opacity: 0.45;
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

/* Gambar di dalam thumb */
.species-thumb img {
    display: block;
    width: 100%;
    height: auto; /* Proporsi asli */
    border-radius: 16px 4px 16px 4px;
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.4s ease;
}

/* Background overlay di belakang gambar */
.species-thumb .species-thumb-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 16px 4px 16px 4px;
    background-image: url('../img/bg-thumb.webp');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Gradasi overlay hitam di atas gambar */
.species-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px 4px 16px 4px;
    z-index: 3;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgb(0 0 0 / 0%) 45%, rgba(0, 0, 0, 0) 85%);
    transition: opacity 0.3s ease;
}

/* Nama makhluk */
.species-thumb span {
    position: absolute;
    right: 12px;
    left: 12px;
    bottom: 24px;
    z-index: 4;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-align: left;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,1);
}

/* Rarity label */
.species-thumb::before {
    content: attr(data-rarity-label);
    position: absolute;
    left: 12px;
    bottom: 10px;
    z-index: 4;
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0,0,0,1);
    color: rgba(255,255,255,0.5);
    transition: color 0.3s ease;
}

/* =========================================================
   INTERAKSI: HOVER & ACTIVE
========================================================= */

/* HOVER */
.species-thumb:hover {
    opacity: 0.8;
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.6);
    z-index: 5;
}

.species-thumb:hover img {
    transform: scale(1.1) translateY(-4px);
}

/* ACTIVE */
.species-thumb.is-active {
    opacity: 1;
    transform: translateY(-16px);
    background: transparent;
    box-shadow: 0 20px 40px rgba(0,0,0,0.7),
                0 0 25px rgba(199, 238, 169, 0.25);
    z-index: 10 !important;
}

.species-thumb.is-active .species-thumb-bg {
    opacity: 1;
    transform: scale(1);
}

.species-thumb.is-active img {
    transform: scale(1.3) translateY(-14px) translateX(-4px);
    filter: saturate(1.2) brightness(1.1) drop-shadow(0 6px 12px rgba(0,0,0,0.6));
}

.species-thumb.is-active::before {
    color: #c7eea9;
}

/* Thumb tidak aktif di-desaturate */
.species-thumb:not(.is-active) img {
    filter: saturate(0.4) brightness(0.6) grayscale(0.2);
}

/* =========================================================
   RESPONSIVE: Mobile
========================================================= */

@media screen and (max-width: 768px) {
    .species-thumb {
        flex: 0 0 72px;
        width: 72px;
        min-height: 80px;
        max-height: 110px;
        border-radius: 12px 3px 12px 3px;
    }

    .species-thumb span {
        font-size: 8.5px;
        bottom: 18px;
        left: 8px;
        right: 8px;
    }

    .species-thumb::before {
        font-size: 6px;
        left: 8px;
        bottom: 8px;
    }

    .species-thumb.is-active {
        transform: translateY(-10px);
    }

    .species-thumb:hover {
        transform: translateY(-4px);
    }
}
