/* ==================================== */
/* REVISED CSS STYLES (Externalized)    */
/* ==================================== */
:root {
    --primary: #ffffff;
    --secondary: #0a0a0a;
    --accent: #f59e0b;
    --immortal: #FF79C6; /* New color for the Immortal rank */
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --bg-dark: #000000; /* Changed to pure black for loader */
    --bg-section: #111111;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-glow: rgba(245, 158, 11, 0.15);
    --owner-bg: #1c1917;
    --card-bg: rgba(20, 20, 20, 0.7);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 15px 40px rgba(245, 158, 11, 0.25);
    --electric-border-color: #00f3ff;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#webgl-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Keeps it behind the main content */
    background-color: #05020a; /* Fallback background color */
}

#webgl-background-container canvas {
    width: 100%;
    height: 100%;
    display: block;
    mix-blend-mode: screen; 
    filter: brightness(1.2) contrast(1.1); /* Enhance the fluid visibility */
}

/* ==================================== */
/* NEW: Full-Width Pill Nav Styles      */
/* ==================================== */
.full-width-nav-container {
    position: fixed;
    top: 1em;
    left: 1em;
    right: 1em;
    z-index: 1000;
}
.full-width-nav {
    --nav-h: 52px;
    --pill-pad-x: 24px;
    --base: #0a0a0a;
    --pill-bg: #ffffff;
    --pill-text: #0a0a0a;
    --hover-text: #ffffff;

    width: 100%;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0 1rem;
    box-sizing: border-box;
}

.nav-zone {
    display: flex;
    align-items: center;
    height: 100%;
}
.nav-zone-left {
    justify-content: flex-start;
}
.nav-zone-center {
    justify-content: center;
    flex-grow: 1;
}
.nav-zone-right {
    justify-content: flex-end;
}

.text-logo {
    font-family: 'Press Start 2P', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.pill-list {
    list-style: none;
    display: flex;
    align-items: stretch;
    gap: 6px;
    margin: 0;
    padding: 6px;
    height: 100%;
}
.pill-list > li {
    display: flex;
    height: 100%;
}
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 var(--pill-pad-x);
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 9999px;
    box-sizing: border-box;
    font-weight: 600;
    font-size: 15px;
    line-height: 0;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}
.pill:hover, .pill.is-active {
    color: var(--text-primary);
}
.pill .hover-circle {
    position: absolute;
    left: 50%;
    bottom: 0;
    border-radius: 50%;
    background: var(--pill-bg);
    z-index: 1;
    display: block;
    pointer-events: none;
    will-change: transform;
}
.pill .label-stack {
    position: relative;
    display: inline-block;
    line-height: 1;
    z-index: 2;
}
.pill .pill-label, .pill .pill-label-hover {
    position: relative;
    z-index: 2;
    display: inline-block;
    line-height: 1;
    will-change: transform;
}
.pill .pill-label-hover {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--pill-text);
    z-index: 3;
    display: inline-block;
    will-change: transform, opacity;
}

.desktop-only { display: flex; }
.mobile-only { display: none; }

@media (max-width: 1024px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    .nav-zone-left .shuffle-parent { display: none; }
}

.mobile-menu-button {
    width: var(--nav-h);
    height: var(--nav-h);
    border-radius: 50%;
    background: transparent;
    border: none;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
    position: relative;
}
@media (max-width: 1024px) {
    .mobile-menu-button {
        display: flex;
    }
}
.hamburger-line {
    width: 18px;
    height: 2px;
    background: var(--pill-bg);
    border-radius: 1px;
    transform-origin: center;
}
.mobile-menu-popover {
    position: absolute;
    top: calc(100% + 0.5em);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 998;
    opacity: 0;
    transform-origin: top center;
    visibility: hidden;
}
.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-menu-popover .mobile-menu-link {
    display: block;
    padding: 14px 20px;
    color: var(--text-secondary);
    background-color: transparent;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 16px;
    transition: all 0.2s ease;
}
.mobile-menu-popover .mobile-menu-link:hover,
.mobile-menu-popover .mobile-menu-link.is-active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}


/* Shuffle Text Logo Styles */
.text-logo {
    font-family: 'Press Start 2P', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    display: flex; /* Add this */
}

.shuffle-char-wrapper {
    display: inline-block;
    vertical-align: bottom;
    overflow: hidden;
    height: 1.2rem; /* Match the logo font-size */
    line-height: 1.2rem;
}

#shuffle-logo .shuffle-char-inner {
  display: inline-flex;
  flex-direction: column;
  will-change: transform;
}

#shuffle-logo .shuffle-char {
  line-height: 1;
  display: inline-block;
  text-align: center;
}


/* ==================================== */
/* Hero Section                         */
/* ==================================== */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    padding: 0 4rem;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: transparent; /* MODIFIED: Removed the dark gradient overlay */
    background-size: cover;
    will-change: transform;
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: left; /* ALIGN LEFT */
    max-width: 900px;
    padding: 0;
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; /* ALIGN LEFT */
    transform: translateY(5vh); /* Nudge the content down */
}
.hero h1 {
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    letter-spacing: -4px;
    font-family: 'Playfair Display', serif;
}
.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0 0 3rem 0;
    max-width: 550px;
    line-height: 1.7;
    font-weight: 300;
}
.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start; /* ALIGN LEFT */
    flex-wrap: wrap;
}

/* NEW: Marquee Styles */
.marquee-container {
    width: 100%;
    overflow: hidden;
    margin: 2rem 0 1rem 0; /* Reduced bottom margin */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.marquee-track {
    display: flex;
    width: fit-content;
    animation: marquee 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 1rem 0;
}

.marquee-content span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 2rem;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: 'Inter', sans-serif;
}
.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}
.mt-3 {
    margin-top: 1rem;
}
.btn-primary {
    background: var(--accent);
    color: var(--secondary);
    border-color: var(--accent);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--accent-glow);
}
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}
.ip-display {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.ip-display:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--accent);
    transform: translateY(-2px);
}
.ip-text {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-weight: 500;
}
.copy-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}
section {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}
.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent-glow);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-weight: 600;
}
.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}
.section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}
.features-grid,
.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

/* Owners Section */
#owners .section-header {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
#owners .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
    justify-content: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.owner-profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.owner-card {
    padding: 0;
    min-height: 420px;
    width: 100%;
    aspect-ratio: 4 / 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: visible;
    border-radius: 24px;
    cursor: pointer;
    margin-top: 3rem;
}
.owner-card:hover {
    transform: translateY(-8px) scale(1.03);
}
.owner-card-name {
    position: absolute;
    top: -3.5rem;
    left: 0;
    right: 0;
    padding: 0 1.5rem;
    text-align: center;
    background: none;
    z-index: 2;
}
.owner-card-name .feature-title {
    margin-bottom: 0;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: bold;
    color: #b5b5b5a4;
    background: linear-gradient( 120deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 60% );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
    animation: shine 5s linear infinite;
}

#akigai-card:hover {
    box-shadow: 0 0 35px #DA70D6; /* Golden glow */
}
#ishu-card:hover {
    box-shadow: 0 0 35px #DA70D6; /* Golden glow */
}
#akigai-card .owner-card-name .feature-title {
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7), 0 0 10px rgba(192, 132, 252, 0.7);
}
#ishu-card .owner-card-name .feature-title {
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7), 0 0 10px rgba(244, 114, 182, 0.7);
}
.owner-details-below {
    margin-top: 1.5rem;
    text-align: center;
    max-width: 90%;
}
.owner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s ease;
    border-radius: 24px;
}
.owner-card:hover .owner-image {
    transform: scale(1.05);
}
.flower-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    transform: translate(-50%, -50%);
    animation: revolve 25s linear infinite;
    pointer-events: none;
    z-index: 15;
}
@keyframes revolve {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
.flower-orbit::before,
.flower-orbit::after {
    content: '🌸';
    position: absolute;
    font-size: 2.8rem;
    opacity: 0.9;
    text-shadow: 0 0 15px rgba(255, 105, 180, 0.7), 0 0 5px rgba(255, 255, 255, 0.5);
    animation: point-out 25s linear infinite reverse;
}
.flower-orbit::before { top: -10%; left: 45%; }
.flower-orbit::after {
    content: '🌺';
    bottom: -10%;
    right: 45%;
    text-shadow: 0 0 15px rgba(199, 21, 133, 0.7), 0 0 5px rgba(255, 255, 255, 0.5);
}
@keyframes point-out {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}
@keyframes shine {
  0% { background-position: 100%; }
  100% { background-position: -100%; }
}
.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent), #fbbf24);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.6rem;
    color: var(--bg-dark);
    font-weight: bold;
}
.feature-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-family: 'Playfair Display', serif;
}
.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}
.rank-card.featured {
    background: rgba(245, 158, 11, 0.08);
    border-color: var(--accent);
    transform: scale(1.03);
}
.rank-card.featured:hover {
    transform: scale(1.06) translateY(-8px);
}
.rank-badge {
    display: inline-block;
    padding: 0.35rem 1.2rem;
    background: var(--accent);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
    align-self: center;
    font-family: 'Inter', sans-serif;
}
.rank-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-family: 'Playfair Display', serif;
}
.rank-price {
    font-size: 3.2rem;
    font-weight: 800;
    margin: 1.8rem 0;
    background: linear-gradient(135deg, var(--accent), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Playfair Display', serif;
}
.rank-features {
    list-style: none;
    text-align: left;
    margin: 2.2rem 0;
    padding: 0;
}
.rank-features li {
    padding: 0.9rem 0 0.9rem 2.2rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    font-weight: 300;
}
.rank-features li:last-child {
    border-bottom: none;
}
.rank-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}
#story {
    padding-bottom: 0;
}
.story-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}
.story-image-container {
    position: sticky;
    top: 120px;
    height: 70vh;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}
.story-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}
.story-image.active {
    opacity: 1;
}
.story-text-content {
    display: flex;
    flex-direction: column;
    gap: 50vh;
    padding-bottom: 20vh;
}
.story-step {
    min-height: 100px;
    transition: opacity 0.3s ease;
}
.story-step h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}
.story-step p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
}
#contact .section-header {
    margin-bottom: 3rem;
}
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--card-bg);
    padding: 4.5rem;
    border-radius: 30px;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(12px);
}
.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}
.contact-info p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.2rem;
    font-weight: 300;
}
.contact-socials {
    display: flex;
    gap: 1.2rem;
}
.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
    color: var(--text-primary);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-link i {
    width: 24px;
    height: 24px;
}
.social-link:hover {
    background: var(--accent);
    color: var(--secondary);
    transform: scale(1.15);
}
.contact-form .form-group {
    margin-bottom: 1.8rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.05rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    background: rgba(40, 40, 40, 0.8);
}
.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}
footer {
    padding: 4.5rem;
    background: var(--bg-section);
    border-top: 1px solid var(--border-color);
    margin-top: 8rem;
    position: relative;
}
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4.5rem;
}
.footer-brand h3 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
    font-family: 'Playfair Display', serif;
}
.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.7;
    padding-right: 2rem;
    font-weight: 300;
}
.footer-links h4 {
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
    font-weight: 600;
}
.footer-links ul {
    list-style: none;
    padding: 0;
}
.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    padding: 0.6rem 0;
    transition: all 0.3s ease;
    font-weight: 300;
}
.footer-links a:hover {
    color: var(--accent);
    transform: translateX(8px);
}
.notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translate(-50%, 200px);
    padding: 1.2rem 2.5rem;
    background: var(--accent);
    color: var(--secondary);
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2000;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}
.notification.show {
    transform: translate(-50%, 0);
}

.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#lights {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
}
#lights canvas {
    width: 100%;
    height: 100%;
}


.scroll-to-top {
    position: fixed;
    bottom: 3.5rem;
    right: 4.5rem;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(25px);
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover {
    background-color: #fbbf24;
    transform: translateY(-5px) scale(1.1);
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 5000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 520px;
    position: relative;
    transform: scale(1);
    transition: transform 0.4s ease;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(12px);
}
.modal-overlay.hidden .modal-content {
    transform: scale(0.9);
}
.modal-close-btn {
    position: absolute;
    top: 1.8rem;
    right: 1.8rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.modal-close-btn:hover {
    color: var(--primary);
    transform: scale(1.2);
}
.ip-info {
    margin-bottom: 2.2rem;
}
.ip-info:last-child {
    margin-bottom: 0;
}
.ip-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.2rem;
    text-align: left;
    font-family: 'Playfair Display', serif;
}
.modal-content.purple-theme {
    background: linear-gradient(145deg, #f5f3ff, #ede9fe);
    border: 1px solid #d8b4fe;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2), 0 0 15px rgba(233, 213, 255, 0.3);
    color: #581c87;
    overflow: hidden;
}
.modal-content.purple-theme .modal-close-btn { color: #9333ea; }
.modal-content.purple-theme .modal-close-btn:hover { color: #581c87; }
.modal-content.purple-theme .bio-header img {
    border: 4px solid #c084fc;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
}
.modal-content.purple-theme .bio-header h2 { color: #581c87; }
.modal-content.purple-theme .bio-content p { color: #7e22ce; }
.modal-content.purple-theme .bio-content strong { color: #581c87; }
.modal-content.purple-theme .btn-primary {
    background: linear-gradient(145deg, #c084fc, #a855f7);
    color: #ffffff;
    border: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}
.modal-content.purple-theme .btn-primary:hover {
    background: linear-gradient(145deg, #d8b4fe, #a855f7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}
.modal-content.purple-theme .btn-secondary {
    background: transparent;
    color: #a855f7;
    border-color: #c084fc;
}
.modal-content.purple-theme .btn-secondary:hover {
    background: #ede9fe;
    border-color: #a855f7;
    color: #581c87;
}
.falling-flowers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.flower {
    position: absolute;
    top: -10%;
    animation: fall linear infinite;
    user-select: none;
}
@keyframes fall {
    to {
        transform: translateY(105vh) rotate(720deg);
    }
}
.bio-header {
    text-align: center;
    margin-bottom: 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}
.bio-header img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    margin-bottom: 1.2rem;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
}
.bio-header h2 {
    font-size: 2.6rem;
    font-weight: 800;
    margin: 0;
    font-family: 'Playfair Display', serif;
}
.bio-content {
    position: relative;
    z-index: 1;
}
.bio-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-weight: 300;
}
.bio-content strong {
    color: var(--primary);
    font-weight: 600;
}
.bio-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.minecraft-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.7;
}
.particle {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--accent);
    font-size: 14px;
    opacity: 0;
    animation: floatUp 15s infinite ease-in;
}
@keyframes floatUp {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease-out;
}
.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease-out;
}
.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}
.circular-text-wrapper {
    position: absolute;
    right: 8rem;
    bottom: 3rem;
    z-index: 10;
}
.circular-text {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    animation: spin 30s linear infinite;
}
.circular-text span {
    position: absolute;
    left: 50%;
    top: 0;
    transform-origin: 0 60px;
    height: 60px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}
#owners-title-effect {
    display: inline-block;
}
#owners-title-effect > span {
    display: inline-block;
    font-variation-settings: 'wght' 300;
}
@keyframes flow-animation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#immortal-rank {
    border-color: var(--immortal);
}
#immortal-rank .rank-price {
    background: linear-gradient(135deg, var(--immortal), #f9a8d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
#immortal-rank::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -2px; left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    border-radius: 26px;
    background: conic-gradient( from 0deg, transparent 0%, transparent 50%, var(--immortal) 90%, transparent 100% );
    animation: flow-animation 4s linear infinite;
    transform: scaleX(1);
}
#team {
    padding-top: 4rem;
}
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
}
.team-section {
    width: 100%;
}
.team-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5ch;
}

.rotating-text-container {
    position: relative;
    display: grid;
    text-align: left;
}

.rotating-text-word {
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateY(10px);
    color: var(--primary); /* Make the animated word stand out */
}

.rotating-text-word.active {
    opacity: 1;
    transform: translateY(0);
}
.team-card-container {
    display: flex;
    justify-content: center;
}
.admin-cards-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    width: 100%;
    flex-wrap: wrap;
}
.team-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    height: 300px;
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.team-card-details {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
}
.team-card-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Playfair Display', serif;
}
.team-card-role {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.admin-cards-container .team-card:first-child { box-shadow: 0 0 25px rgba(255, 0, 0, 0.4); }
.admin-cards-container .team-card:last-child { box-shadow: 0 0 25px rgba(255, 0, 0, 0.4); }

/* Styles for cards with images */
.team-card.has-image {
    justify-content: flex-end; /* Align content to bottom */
}
.team-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    z-index: 1;
}
.team-card.has-image:hover .team-card-image {
    transform: scale(1.1);
}
.team-card.has-image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    pointer-events: none;
}

.electric-border {
    --electric-light-color: oklch(from var(--electric-border-color) l c h);
    --eb-border-width: 2px;
    position: relative;
    border-radius: inherit;
    overflow: visible;
    isolation: isolate;
    border: none;
    background: var(--card-bg);
}
.eb-svg { position: fixed; left: -10000px; top: -10000px; width: 10px; height: 10px; opacity: 0.001; pointer-events: none; }
.eb-content { 
    position: relative; 
    border-radius: inherit; 
    z-index: 1; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
}
.eb-layers { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; }
.eb-stroke, .eb-glow-1, .eb-glow-2, .eb-overlay-1, .eb-overlay-2, .eb-background-glow { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-sizing: border-box; }
.eb-stroke { border: var(--eb-border-width) solid var(--electric-border-color); }
.eb-glow-1 { border: var(--eb-border-width) solid oklch(from var(--electric-border-color) l c h / 0.6); opacity: 0.5; filter: blur(calc(0.5px + (var(--eb-border-width) * 0.25))); }
.eb-glow-2 { border: var(--eb-border-width) solid var(--electric-light-color); opacity: 0.5; filter: blur(calc(2px + (var(--eb-border-width) * 0.5))); }
.eb-background-glow { z-index: -1; transform: scale(1.08); filter: blur(32px); opacity: 0.3; background: linear-gradient(-30deg, var(--electric-light-color), transparent, var(--electric-border-color)); }

@media (max-width: 1024px) {
    .team-grid { grid-template-columns: 1fr; }
    .team-section { margin-bottom: 3rem; }
}
@media (max-width: 768px) {
    header { padding: 1.5rem 2rem; }
    .hero { padding: 0 2rem; }
    section { padding: 6rem 2rem; }
    .features-grid, .ranks-grid { grid-template-columns: 1fr; }
    #owners .features-grid { grid-template-columns: 1fr; }
    .rank-card.featured { transform: scale(1); }
    .story-container { grid-template-columns: 1fr; }
    .story-image-container { position: relative; top: 0; height: 50vh; margin-bottom: 2.5rem; }
    .story-text-content { gap: 2.5rem; padding-bottom: 0; }
    .story-step { min-height: auto; margin-bottom: 3.5rem; }
    .footer-content { grid-template-columns: 1fr; gap: 3.5rem; }
    .circular-text-wrapper { display: none; }
    .scroll-to-top { right: 1.5rem; bottom: 1.5rem; width: 40px; height: 40px; }
    .contact-container { grid-template-columns: 1fr; }
    .admin-cards-container { justify-content: center; }
}

/* ==================================== */
/* Loading Screen Typing Effect    */
/* ==================================== */
#loading-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001; /* On top of the hyperspeed canvas */
    text-align: center;
    width: 100%;
    padding: 0 1rem;
}

.loading-text {
    font-family: 'Press Start 2P', sans-serif;
    font-size: clamp(2rem, 8vw, 4.5rem);
    color: var(--primary);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.7), 0 0 20px var(--accent-glow);
    display: inline-block;
    white-space: pre; /* Preserves spaces and stops line wrapping */
    border-right: 0.1em solid var(--accent);
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent); }
}


