:root {
    --primary: #9b59b6;
    --primary-dark: #8e44ad;
    --primary-light: #d2b4de;
    --secondary: #3498db;
    --secondary-dark: #2980b9;
    --accent: #f39c12;
    --accent-dark: #e67e22;
    --dark: #1a1a2e;
    --darker: #0f0f1b;
    --light: #f9f9f9;
    --gray: #95a5a6;
    --success: #2ecc71;
    --glow: 0 0 10px rgba(155, 89, 182, 0.6), 0 0 20px rgba(155, 89, 182, 0.4), 0 0 30px rgba(155, 89, 182, 0.2);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    --radius: 8px;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(155, 89, 182, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(155, 89, 182, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(155, 89, 182, 0); }
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.05em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.05em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(155, 89, 182, 0.5), 0 0 10px rgba(155, 89, 182, 0.3); }
    50% { box-shadow: 0 0 20px rgba(155, 89, 182, 0.8), 0 0 30px rgba(155, 89, 182, 0.5); }
    100% { box-shadow: 0 0 5px rgba(155, 89, 182, 0.5), 0 0 10px rgba(155, 89, 182, 0.3); }
}

@keyframes floatParticle {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

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

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Prompt', sans-serif;
    line-height: 1.6;
    color: var(--light);
    background-color: var(--dark);
    overflow-x: hidden;
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

body.loaded {
    opacity: 1;
}

/* Social sharing */
.social-share {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 90;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
}

.share-btn:hover {
    transform: translateY(-5px);
    background-color: var(--secondary-dark);
}

.share-dropdown {
    position: absolute;
    bottom: 60px;
    left: 0;
    background-color: rgba(15, 15, 27, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 1rem;
    width: 150px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-share:hover .share-dropdown,
.share-dropdown:hover {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.share-dropdown a,
.share-dropdown button {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    padding: 5px 0;
}

.share-dropdown a:hover,
.share-dropdown button:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.copy-link {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 0.3rem;
    padding-top: 0.8rem !important;
}

/* Accessibility - Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 1001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

body.nav-open {
    overflow: hidden;
}

/* Game-like cursor and player stats */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(155, 89, 182, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    backdrop-filter: blur(2px);
    mix-blend-mode: screen;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.7);
    transition: transform 0.1s ease;
    display: none;
}

.player-stats {
    position: fixed;
    top: 80px;
    right: 15px;
    background-color: rgba(15, 15, 27, 0.8);
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 90;
    width: 150px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.8;
}

.stat-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.stat-fill {
    height: 100%;
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 0;
    animation: pulse-stat 2s infinite;
}

.stat-fill.energy {
    width: 66%;
    background-color: var(--accent);
}

.stat-fill.exp {
    width: 33%;
    background-color: var(--secondary);
}

@keyframes pulse-stat {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Game notification */
.game-notification {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: rgba(15, 15, 27, 0.9);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 95;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(155, 89, 182, 0.3);
    transform: translateY(-100px);
    animation: slide-in 0.5s forwards 1s, slide-out 0.5s forwards 6s;
    backdrop-filter: blur(5px);
}

.notification-icon {
    font-size: 1.5rem;
    animation: pop 0.5s ease;
}

.notification-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.notification-text .highlight {
    color: var(--primary);
    font-weight: 700;
}

@keyframes slide-in {
    100% { transform: translateY(0); }
}

@keyframes slide-out {
    100% { transform: translateY(-100px); }
}

@keyframes pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Achievement popup */
.achievement {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(15, 15, 27, 0.9);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 95;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(243, 156, 18, 0.3);
    transform: translateX(200px);
    animation: slide-in-right 0.5s forwards 3s, slide-out-right 0.5s forwards 8s;
    backdrop-filter: blur(5px);
}

.achievement-icon {
    font-size: 2rem;
    animation: spin 1s ease 3s;
}

.achievement-content {
    display: flex;
    flex-direction: column;
}

.achievement-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
}

.achievement-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

@keyframes slide-in-right {
    100% { transform: translateX(0); }
}

@keyframes slide-out-right {
    100% { transform: translateX(200px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%231a1a2e"/><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.3"/><circle cx="30" cy="40" r="0.5" fill="%23ffffff" opacity="0.2"/><circle cx="70" cy="30" r="0.8" fill="%23ffffff" opacity="0.3"/><circle cx="90" cy="80" r="0.6" fill="%23ffffff" opacity="0.2"/><circle cx="50" cy="50" r="0.7" fill="%23ffffff" opacity="0.3"/><circle cx="20" cy="80" r="0.5" fill="%23ffffff" opacity="0.2"/><circle cx="60" cy="10" r="0.6" fill="%23ffffff" opacity="0.3"/><circle cx="80" cy="60" r="0.4" fill="%23ffffff" opacity="0.2"/></svg>');
    z-index: -1;
}

.game-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Exo 2', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-transform: uppercase;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
}

h2 span {
    color: var(--primary);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: var(--primary-light);
    transition: all 0.3s ease;
    font-weight: 500;
}

a:hover {
    color: var(--primary);
}

/* Header */
header {
    background-color: rgba(15, 15, 27, 0.95);
    backdrop-filter: blur(5px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(155, 89, 182, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Exo 2', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: white;
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 2rem;
}

nav a {
    font-weight: 600;
    padding: 0.5rem;
    color: var(--light);
    position: relative;
    font-family: 'Exo 2', sans-serif;
    letter-spacing: 1px;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover:after {
    width: 100%;
}

.header-cta-button {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    letter-spacing: 1px;
    font-family: 'Exo 2', sans-serif;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.header-cta-button:hover {
    background-color: transparent;
    color: var(--primary);
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 0 3rem;
    background: radial-gradient(circle at center, var(--dark) 0%, var(--darker) 70%);
    overflow: hidden;
}

.stardust-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.3"/><circle cx="30" cy="40" r="0.5" fill="%23ffffff" opacity="0.2"/><circle cx="70" cy="30" r="0.8" fill="%23ffffff" opacity="0.3"/><circle cx="90" cy="80" r="0.6" fill="%23ffffff" opacity="0.2"/><circle cx="50" cy="50" r="0.7" fill="%23ffffff" opacity="0.3"/><circle cx="20" cy="80" r="0.5" fill="%23ffffff" opacity="0.2"/><circle cx="60" cy="10" r="0.6" fill="%23ffffff" opacity="0.3"/><circle cx="80" cy="60" r="0.4" fill="%23ffffff" opacity="0.2"/></svg>');
    opacity: 0.5;
    z-index: 0;
    animation: twinkle 8s infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    z-index: 2;
    width: 100%;
    position: relative;
}

.glitch-container {
    position: relative;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.glitch-text {
    animation: glitch 2.5s infinite;
    color: white;
    position: relative;
    text-shadow: 0 0 5px rgba(155, 89, 182, 0.5);
    width: 100%;
    display: inline-block;
    word-break: break-word;
    line-height: 1.2;
}

.glitch-text:before,
.glitch-text:after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text:before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    animation: glitch-2 2s infinite;
    opacity: 0.7;
}

.glitch-text:after {
    left: -2px;
    text-shadow: 2px 0 #00fff9;
    animation: glitch-3 1.5s infinite;
    opacity: 0.7;
}

.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 1rem;
}

/* Soul progress bar */
.soul-progress {
    margin-top: 2rem;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.progress-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0.6rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.progress-bar {
    height: 40px;
    position: relative;
    width: 100%;
}

.progress-track {
    position: absolute;
    height: 4px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    top: 50%;
    transform: translateY(-50%);
}

.progress-marker {
    position: absolute;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.marker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin: 0 auto;
    transition: all 0.3s ease;
}

.marker-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(15, 15, 27, 0.9);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.progress-marker:hover .marker-tooltip {
    opacity: 1;
}

.progress-marker.active .marker-dot {
    background-color: var(--primary);
    border-color: var(--primary-light);
    box-shadow: 0 0 10px var(--primary);
}

.progress-marker.locked .marker-dot {
    background-color: #555;
    border-color: #777;
}

.path-choices {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 1.5rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.path-choice {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--light);
}

.path-choice:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.path-choice:after {
    content: '→';
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-light);
}

.path-choice:hover:before,
.path-choice.active:before {
    transform: scaleX(1);
}

.path-choice:hover:after {
    opacity: 1;
    transform: translateX(3px);
}

.path-choice:hover,
.path-choice.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.path-icon {
    font-size: 1.8rem;
}

.path-name {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.gem-rewards {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.gem {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    position: relative;
    transform: rotate(45deg);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gem:hover {
    opacity: 1;
    transform: rotate(45deg) scale(1.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.gem[data-color="purple"] {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    animation: float-gem 3s infinite ease-in-out;
}

.gem[data-color="blue"] {
    background: linear-gradient(135deg, #3498db, #2980b9);
    animation: float-gem 3s infinite ease-in-out 1s;
}

.gem[data-color="green"] {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    animation: float-gem 3s infinite ease-in-out 2s;
}

@keyframes float-gem {
    0% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(-10px); }
    100% { transform: rotate(45deg) translateY(0); }
}

.hero-buttons {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.4);
    font-family: 'Exo 2', sans-serif;
    border: 2px solid var(--primary);
    width: 100%;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-3px);
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(155, 89, 182, 0.5), 0 0 10px rgba(155, 89, 182, 0.3); }
    50% { box-shadow: 0 0 25px rgba(155, 89, 182, 0.8), 0 0 40px rgba(155, 89, 182, 0.4); }
    100% { box-shadow: 0 0 5px rgba(155, 89, 182, 0.5), 0 0 10px rgba(155, 89, 182, 0.3); }
}

.cta-button.pulse-effect {
    animation: pulse 2s infinite, pulse-glow 3s infinite alternate;
    position: relative;
    overflow: hidden;
}

.cta-button.pulse-effect:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(30deg);
    animation: shine 4s infinite;
}

.button-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

@keyframes ripple {
    0% {
        opacity: 1;
        width: 0;
        height: 0;
    }
    100% {
        opacity: 0;
        width: 300px;
        height: 300px;
    }
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    20% { transform: translateX(100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

.tg-logo {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.floating-souls {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.soul {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(155, 89, 182, 0.6) 0%, rgba(155, 89, 182, 0.1) 60%, rgba(155, 89, 182, 0) 70%);
    filter: blur(5px);
    box-shadow: 0 0 30px rgba(155, 89, 182, 0.6);
    opacity: 0.6;
    z-index: 0;
}

.soul-1 {
    top: 20%;
    left: 15%;
    animation: float 8s ease-in-out infinite;
    width: 120px;
    height: 120px;
}

.soul-2 {
    bottom: 15%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.soul-3 {
    top: 60%;
    left: 60%;
    animation: float 10s ease-in-out infinite;
    width: 80px;
    height: 80px;
}

.soul-aura {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(155, 89, 182, 0.2) 0%, rgba(155, 89, 182, 0.05) 50%, rgba(155, 89, 182, 0) 70%);
    filter: blur(10px);
    top: 40%;
    left: 25%;
    animation: aura-pulse 8s ease-in-out infinite alternate;
    opacity: 0.7;
    z-index: 0;
}

@keyframes aura-pulse {
    0% { 
        transform: scale(1); 
        background: radial-gradient(circle at center, rgba(155, 89, 182, 0.2) 0%, rgba(155, 89, 182, 0.05) 50%, rgba(155, 89, 182, 0) 70%);
    }
    50% { 
        transform: scale(1.2); 
        background: radial-gradient(circle at center, rgba(52, 152, 219, 0.2) 0%, rgba(52, 152, 219, 0.05) 50%, rgba(52, 152, 219, 0) 70%);
    }
    100% { 
        transform: scale(0.9); 
        background: radial-gradient(circle at center, rgba(46, 204, 113, 0.2) 0%, rgba(46, 204, 113, 0.05) 50%, rgba(46, 204, 113, 0) 70%);
    }
}

/* Soul power meter */
.soul-power-meter {
    position: absolute;
    bottom: 5rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    z-index: 5;
}

.power-orb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--primary) 0%, var(--primary-dark) 60%);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
    position: relative;
    z-index: 2;
    animation: power-pulse 4s ease-in-out infinite;
}

.power-pulses {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.power-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(155, 89, 182, 0.5);
    opacity: 0;
    animation: pulse-expand 3s ease-out infinite;
}

.pulse-1 {
    animation-delay: 0s;
}

.pulse-2 {
    animation-delay: 1s;
}

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

@keyframes power-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes pulse-expand {
    0% {
        width: 50px;
        height: 50px;
        opacity: 0.5;
    }
    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

.tg-logo {
    width: 20px;
    height: 20px;
}

/* We removed the telegram badge and integrated it into the button */

/* Trailer Section */
.trailer {
    padding: 5rem 0;
    background-color: var(--darker);
    position: relative;
    overflow: hidden;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    position: relative;
}

.video-placeholder {
    background-color: #16192e;
    aspect-ratio: 16/9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.message-container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

.message {
    background-color: #2c2f47;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.message p {
    margin: 0;
    font-size: 1.1rem;
}

.choices {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.choice {
    background-color: #3b3f63;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
}

.choice:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-button {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.play-overlay:hover .play-button {
    background-color: var(--primary);
    transform: scale(1.1);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-divider {
    position: relative;
    height: 4px;
    width: 100px;
    margin: 1.5rem auto;
    background: linear-gradient(to right, rgba(155, 89, 182, 0), var(--primary), rgba(155, 89, 182, 0));
}

.section-divider span {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: var(--dark);
    position: relative;
}

.features:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--darker), transparent);
}

.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.features-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(155, 89, 182, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(155, 89, 182, 0.5);
    background-color: rgba(255, 255, 255, 0.08);
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover:before {
    transform: scaleX(1);
}

.highlight-card {
    background-color: rgba(155, 89, 182, 0.15);
    border-color: rgba(155, 89, 182, 0.4);
}

.highlight-card:before {
    transform: scaleX(1);
}

.feature-icon-container {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.feature-icon-container.highlight {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

.feature-icon {
    font-size: 2rem;
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.worlds-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.world-badge {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.world-badge:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.worlds-btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.worlds-btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Interactive elements for feature cards */
.card-choices {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
}

.mini-choice {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    text-decoration: none;
    color: var(--light);
    margin-bottom: 0.4rem;
}

.mini-choice:hover {
    background-color: var(--primary);
    transform: translateX(5px);
    color: white;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

.soul-cycle {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: auto;
}

.cycle-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.cycle-dot.active {
    background-color: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.7);
}

.cycle-dot {
    position: relative;
}

.cycle-dot::after {
    content: attr(title);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background-color: rgba(15, 15, 27, 0.9);
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cycle-dot:hover::after {
    opacity: 1;
}

.reincarnate-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    margin-top: 1.2rem;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.reincarnate-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary-dark));
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

.relation-meter {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: auto;
}

.relation-fill {
    height: 100%;
    width: 75%;
    background: linear-gradient(to right, #e74c3c, #e74c3c 35%, #f39c12 75%, #2ecc71);
    border-radius: 4px;
    animation: pulse-fill 2s infinite;
}

.relation-label {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.relationship-btn {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.relationship-btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

@keyframes pulse-fill {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.typing-effect {
    margin-top: auto;
    height: 1.5rem;
    overflow: hidden;
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid var(--primary);
    white-space: nowrap;
    animation: typing 3.5s steps(30, end) 1 forwards, blink-caret 0.75s step-end 5;
    width: 0;
}

.try-ai-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease 3.6s forwards;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.try-ai-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    color: white;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {
    0% { width: 0 }
    50% { width: 100% }
    90% { width: 100% }
    100% { width: 0 }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary) }
}

.skill-levels {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.skill-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.skill-bar:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 3px;
}

.skill-bar.art:before {
    width: 65%;
    background-color: #e74c3c;
    animation: skill-grow 1.5s ease-out;
}

.skill-bar.science:before {
    width: 40%;
    background-color: #3498db;
    animation: skill-grow 1.5s ease-out 0.3s;
}

.skill-bar.social:before {
    width: 80%;
    background-color: #2ecc71;
    animation: skill-grow 1.5s ease-out 0.6s;
}

.skill-bar {
    position: relative;
}

.skill-bar:hover::after {
    content: attr(data-skill) " - " attr(data-skill-level);
    position: absolute;
    right: -5px;
    top: -25px;
    background-color: rgba(15, 15, 27, 0.9);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.skill-bar.art:hover::after {
    content: "Art - 65%";
}

.skill-bar.science:hover::after {
    content: "Science - 40%";
}

.skill-bar.social:hover::after {
    content: "Social - 80%";
}

.develop-skills-btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.develop-skills-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

@keyframes skill-grow {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Inventory System */
.inventory-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 1.5rem 0;
}

.item-slot {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.item-slot:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

.item-slot.empty {
    opacity: 0.5;
}

.item-slot.empty span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.item-slot::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(15, 15, 27, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.item-slot:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .item-slot::after {
        bottom: -25px;
        padding: 3px 6px;
        font-size: 0.65rem;
    }
    
    /* Fix for tooltip overflow issues on mobile */
    .inventory-preview {
        position: relative;
        padding-bottom: 25px; /* Space for tooltips */
    }
}

.inventory-btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.inventory-btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.world-icons {
    display: flex;
    justify-content: space-around;
    margin-top: auto;
    padding-top: 0.5rem;
}

.world-icons span {
    font-size: 1.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.world-icons span:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* Storylines Section */
.storylines {
    padding: 6rem 0;
    background-color: var(--darker);
    position: relative;
}

.storyline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.storyline-card {
    background-color: rgba(15, 15, 27, 0.7);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(155, 89, 182, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    height: 100%;
}

.storyline-card:hover {
    transform: translateY(-10px);
    border-color: rgba(155, 89, 182, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.storyline-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    height: 80px;
    width: 80px;
    line-height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.storyline-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-light);
    font-size: 1.4rem;
}

.storyline-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Removed storyline stats section for cleaner UI */

.storyline-cta {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.storyline-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

.premium-card {
    border: 1px solid rgba(155, 89, 182, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    background-color: rgba(25, 20, 35, 0.8);
}

.premium-card:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), transparent, var(--secondary));
    z-index: -1;
    border-radius: 14px;
    opacity: 0.5;
    animation: rotate 3s linear infinite;
}

.premium-card .storyline-icon {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

.premium-cta {
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.premium-cta:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--secondary-dark));
    transform: translateY(-3px) scale(1.05);
}

@keyframes rotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.premium-tag {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Premium Section */
.premium {
    padding: 6rem 0;
    background-color: var(--dark);
    position: relative;
    overflow: hidden;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(155, 89, 182, 0.2) 0%, rgba(155, 89, 182, 0.1) 40%, rgba(155, 89, 182, 0) 70%);
    z-index: 0;
    opacity: 0.6;
}

.premium-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-top: 3rem;
}

.premium-card {
    background-color: rgba(15, 15, 27, 0.8);
    border: 1px solid rgba(155, 89, 182, 0.3);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    max-width: 500px;
    backdrop-filter: blur(10px);
}

.premium-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.premium-icon {
    font-size: 2.5rem;
}

.premium-features {
    list-style: none;
    margin-bottom: 2rem;
}

.premium-features li {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.check {
    color: var(--success);
    margin-right: 1rem;
    font-weight: bold;
}

.premium-note {
    text-align: center;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-showcase {
    flex: 1;
    max-width: 400px;
}

.energy-meter {
    background-color: rgba(15, 15, 27, 0.8);
    border: 1px solid rgba(155, 89, 182, 0.3);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.energy-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-align: center;
}

.energy-bar {
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.energy-fill {
    height: 100%;
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
}

.energy-fill.standard {
    width: 66%;
    background-color: var(--secondary);
    z-index: 1;
}

.energy-fill.premium {
    width: 100%;
    background: linear-gradient(to right, var(--secondary) 66%, var(--primary) 66%);
    opacity: 0.5;
    z-index: 0;
}

.energy-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.standard-energy {
    color: var(--secondary);
}

.premium-energy {
    color: var(--primary);
}

/* Join Now Section */
.join-now {
    padding: 8rem 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--darker), #000);
    position: relative;
    overflow: hidden;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: floatParticle 10s linear infinite;
}

.join-now h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.8);
}

.join-now p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.glow-button {
    animation: glow 2s infinite;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

.player-count {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.player-icon {
    font-size: 1.2rem;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background-color: var(--darker);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(155, 89, 182, 0), rgba(155, 89, 182, 0.5), rgba(155, 89, 182, 0));
}

.footer-logo {
    font-family: 'Exo 2', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-tagline {
    font-size: 1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2rem;
}

/* Newsletter */
.newsletter {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(15, 15, 27, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(155, 89, 182, 0.3);
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(5px);
}

.newsletter h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.newsletter p {
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.7rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Prompt', sans-serif;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(155, 89, 182, 0.3);
}

.newsletter-form button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Prompt', sans-serif;
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.newsletter-message {
    margin-top: 1rem;
    color: var(--primary-light);
    font-weight: 500;
    display: none;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 90;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Mobile Responsive Layouts */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
    
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hide player stats UI on smaller screens */
@media (max-width: 900px) {
    .player-stats {
        display: none;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    .hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .premium-content {
        flex-direction: column;
        gap: 3rem;
        align-items: center;
    }
    
    .premium-card, .premium-showcase {
        width: 100%;
        max-width: 500px;
    }
    
    .storyline-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .features-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    header {
        padding: 0.8rem 0;
    }
    
    header .container {
        justify-content: space-between;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(15, 15, 27, 0.95);
        backdrop-filter: blur(10px);
        padding: 5rem 0;
        z-index: 98;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    nav.active {
        opacity: 1;
        pointer-events: all;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin: 0;
    }
    
    nav li {
        margin-left: 0;
    }
    
    nav a {
        font-size: 1.5rem;
    }
    
    .hero {
        padding-top: 6rem;
        min-height: auto;
        padding-bottom: 6rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .glitch-container {
        max-width: 100%;
    }
    
    .path-choices {
        grid-template-columns: repeat(2, 1fr);
        max-width: 350px;
    }
    
    .soul-progress {
        max-width: 400px;
    }
    
    .progress-marker .marker-tooltip {
        font-size: 0.6rem;
    }
    
    .gem-rewards {
        bottom: 1rem;
    }
    
    .soul-power-meter {
        bottom: 3rem;
        left: 1rem;
        transform: scale(0.8);
    }
    
    .soul-aura {
        width: 150px;
        height: 150px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    /* Hero fixes */
    
    .soul {
        opacity: 0.4;
    }
    
    .soul-1 {
        width: 80px;
        height: 80px;
        top: 15%;
        left: 10%;
    }
    
    .soul-2 {
        width: 100px;
        height: 100px;
        bottom: 10%;
        right: 5%;
    }
    
    .soul-3 {
        width: 60px;
        height: 60px;
        top: 50%;
        left: 70%;
    }
    
    .features-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Fix for gameplay cards on mobile */
    .feature-card {
        height: auto;
        min-height: 250px;
    }
    
    .inventory-preview {
        margin: 1rem 0;
        justify-content: center;
    }
    
    .item-slot {
        margin-bottom: 20px; /* Add space below item slots */
    }
    
    .inventory-preview::after {
        content: "";
        display: block;
        clear: both;
        height: 20px; /* Adds space after the inventory */
    }
    
    .card-choices {
        margin-top: 10px;
    }
    
    .relation-meter, .skill-levels {
        margin-top: 10px;
        margin-bottom: 15px;
    }
    
    .relation-fill {
        transition: width 0.5s ease;
    }
    
    /* Storyline cards fixes */
    .storyline-container {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .storyline-card {
        max-width: 100%;
        min-height: 280px;
        display: flex;
        flex-direction: column;
    }
    
    .storyline-card p {
        margin-bottom: 20px;
    }
    
    .storyline-cta {
        margin-top: auto;
    }
    
    .social-links, .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .message-container {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .video-placeholder {
        aspect-ratio: 16/10;
    }
    
    .message p {
        font-size: 1rem;
    }
    
    .choice {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Loading spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-spinner.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid rgba(155, 89, 182, 0.2);
    border-top-color: var(--primary);
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .header-cta-button {
        display: none;
    }
    
    .container {
        width: 92%;
        padding: 0 8px;
    }
    
    .feature-card {
        padding: 1.2rem;
    }
    
    .feature-icon-container {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
    
    .hero {
        min-height: auto;
        padding: 5rem 0 3rem;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .glitch-container {
        padding: 0 10px;
        margin-bottom: 1rem;
    }
    
    .glitch-text {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
        padding: 0 15px;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        padding: 0 10px;
        gap: 1rem;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.9rem 1rem;
    }
    
    .soul {
        opacity: 0.3;
        filter: blur(7px);
    }
    
    .soul-1 {
        width: 70px;
        height: 70px;
    }
    
    .soul-2 {
        width: 90px;
        height: 90px;
    }
    
    .soul-3 {
        width: 50px;
        height: 50px;
    }
    
    .telegram-badge {
        width: 100%;
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .feature-card, .premium-card, .energy-meter {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h3 {
        margin-bottom: 0.8rem;
    }
    
    .storyline-card {
        flex: 0 0 85%;
    }
    
    .storyline-image {
        height: 160px;
    }
    
    .premium-features li {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .premium-header h3 {
        font-size: 1.2rem;
    }
    
    .join-now {
        padding: 5rem 0;
    }
    
    .join-now h2 {
        font-size: 2rem;
    }
    
    .join-now p {
        font-size: 1.1rem;
    }
    
    .glow-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .player-count {
        margin-top: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .trailer {
        padding: 3rem 0;
    }
    
    .features, .storylines, .premium {
        padding: 4rem 0;
    }
}

/* Accessibility & Progressive Enhancement */
.no-js .soul {
    animation: none !important;
}

.no-js .typing-text {
    border-right: none;
    animation: none;
    width: auto;
}

.no-js .glitch-text {
    animation: none;
    text-shadow: none;
}

.no-js .glitch-text:before,
.no-js .glitch-text:after {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .soul, .soul-aura, .stardust-bg {
        animation: none !important;
    }
    
    .glitch-text, .cta-button {
        animation: none !important;
        text-shadow: 0 0 5px rgba(155, 89, 182, 0.5);
    }
    
    .glitch-text:before, .glitch-text:after {
        display: none;
    }
}

/* Keyboard focus styles */
a:focus-visible,
button:focus-visible,
.path-choice:focus-visible,
.mini-choice:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.5);
}

/* Mobile performance optimizations */
.mobile-device .glitch-text {
    animation: none;
    text-shadow: 0 0 5px rgba(155, 89, 182, 0.5);
}

.mobile-device .glitch-text:before,
.mobile-device .glitch-text:after {
    display: none;
}

.mobile-device .soul {
    animation: none !important;
    transform: none !important;
}

.mobile-device .typing-text {
    animation: typing 5s steps(30, end) 1 forwards, blink-caret 0.75s step-end 5;
    animation-fill-mode: forwards;
}

/* Small mobile fixes - Specifically targeting 390px width devices */
@media (max-width: 390px) {
    header {
        padding: 0.6rem 0;
    }
    
    .logo {
        font-size: 1.7rem;
    }
    
    h1 {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }
    
    .glitch-text:before, 
    .glitch-text:after {
        display: none; /* Disable glitch effect on small screens for better readability */
    }
    
    .hero {
        padding: 4.5rem 0 2.5rem;
    }
    
    .hero-content {
        max-width: 95%;
    }
    
    .lives-counter {
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
    }
    
    .glitch-container {
        padding: 0 5px;
    }
    
    .hero-tagline {
        font-size: 1rem;
        padding: 0 10px;
        margin-bottom: 1rem;
    }
    
    .path-choices {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        max-width: 250px;
        margin-bottom: 1rem;
    }
    
    .path-choice {
        padding: 0.7rem 0.3rem;
    }
    
    .path-icon {
        font-size: 1.3rem;
    }
    
    .path-name {
        font-size: 0.7rem;
    }
    
    .gem-rewards {
        bottom: 0.5rem;
        gap: 10px;
    }
    
    .gem {
        width: 15px;
        height: 15px;
    }
    
    .hero-buttons {
        padding: 0 5px;
        gap: 0.8rem;
        max-width: 220px;
    }
    
    .cta-button {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
    
    .tg-logo {
        width: 16px;
        height: 16px;
    }
    
    /* Adjust notification and achievement for small screens */
    .game-notification, .achievement {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .notification-icon, .achievement-icon {
        font-size: 1.2rem;
    }
    
    .notification-text {
        font-size: 0.8rem;
    }
    
    .achievement-title {
        font-size: 0.6rem;
    }
    
    .achievement-name {
        font-size: 0.9rem;
    }
    
    /* Soul progress for small screens */
    .soul-progress {
        max-width: 280px;
        margin-top: 1rem;
    }
    
    .progress-label {
        font-size: 0.7rem;
    }
    
    .marker-dot {
        width: 10px;
        height: 10px;
    }
    
    .marker-tooltip {
        display: none;
    }
    
    /* Soul power meter for small screens */
    .soul-power-meter {
        bottom: 1rem;
        left: 1rem;
        transform: scale(0.6);
    }
    
    .soul-aura {
        opacity: 0.5;
        width: 120px;
        height: 120px;
    }
    
    /* Soul sizing for tiny screens */

    /* Floating souls */
    .soul-1 {
        width: 60px;
        height: 60px;
        top: 10%;
        left: 5%;
    }
    
    .soul-2 {
        width: 70px;
        height: 70px;
        bottom: 5%;
        right: 5%;
    }
    
    .soul-3 {
        width: 40px;
        height: 40px;
        display: none; /* Hide one soul on very small screens */
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        font-size: 1.2rem;
    }
    
    /* Feature cards on extra small screens */
    .feature-card {
        padding: 1.2rem;
        min-height: 200px;
        margin-bottom: 20px;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    /* Fix for gameplay cards on small mobile */
    .inventory-preview {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 12px;
        max-width: 200px;
        margin: 15px auto;
    }
    
    .item-slot {
        width: 38px;
        height: 38px;
        margin-bottom: 0;
    }
    
    .item-slot::after {
        bottom: -25px;
        white-space: nowrap;
        max-width: 80px;
        font-size: 0.65rem;
        padding: 3px 6px;
    }
    
    /* Fix skill bars */
    .skill-levels {
        margin: 12px 0;
    }
    
    .skill-bar {
        margin-bottom: 8px;
        height: 5px;
    }
    
    /* Fix relation meter */
    .relation-meter {
        margin: 12px 0;
    }
    
    .relation-label {
        font-size: 0.7rem;
    }
    
    /* Fix for card buttons */
    .feature-card a[class$="-btn"] {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
        width: 100%;
        text-align: center;
    }
    
    /* Fix for mini choices */
    .mini-choice {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* Storyline card fixes */
    .storyline-card {
        flex: 0 0 100%;
        padding: 1.5rem;
        min-height: 260px;
    }
    
    .storyline-icon {
        font-size: 2.5rem;
        height: 60px;
        width: 60px;
        line-height: 60px;
        margin-bottom: 1rem;
    }
    
    .storyline-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .storyline-card p {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }
    
    .storyline-cta {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Make premium features smaller */
    .premium-features li {
        font-size: 0.85rem;
    }
    
    .premium-header h3 {
        font-size: 1.1rem;
    }
}