@font-face {
    font-family: 'Caribbean';
    src: url('../fonts/caribbean.ttf') format('truetype');
}

header {
    height: 100vh;
    background: 
        linear-gradient(rgba(10, 11, 26, 0.4), rgba(26, 26, 46, 0.5)),
        url('/static/img/covers/home.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fog-cloud {
    position: absolute;
    filter: blur(15px);
    opacity: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 40%),
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.25), transparent 35%),
        radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.35), transparent 45%),
        radial-gradient(circle at 20% 70%, rgba(255, 255, 255, 0.2), transparent 30%);
    z-index: 5;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5px);
    opacity: 0;
    transition: opacity 4s ease-in-out, transform 6s ease-in-out;
    pointer-events: none;
}

/* Firefly animations - random teleporting positions */
@keyframes firefly-1 {
    0% { transform: translate(0, 0); opacity: 0.6; }
    20% { transform: translate(40vw, -15vh); opacity: 1; }
    40% { transform: translate(-20vw, 25vh); opacity: 0.8; }
    60% { transform: translate(60vw, 10vh); opacity: 0.9; }
    80% { transform: translate(10vw, -30vh); opacity: 0.7; }
    100% { transform: translate(0, 0); opacity: 0.6; }
}

@keyframes firefly-2 {
    0% { transform: translate(0, 0); opacity: 0.5; }
    25% { transform: translate(-50vw, 20vh); opacity: 0.9; }
    50% { transform: translate(-80vw, -10vh); opacity: 1; }
    75% { transform: translate(-30vw, 35vh); opacity: 0.8; }
    100% { transform: translate(0, 0); opacity: 0.5; }
}

@keyframes firefly-3 {
    0% { transform: translate(0, 0); opacity: 0.7; }
    30% { transform: translate(-40vw, -20vh); opacity: 0.8; }
    60% { transform: translate(-70vw, -40vh); opacity: 1; }
    90% { transform: translate(-15vw, -25vh); opacity: 0.6; }
    100% { transform: translate(0, 0); opacity: 0.7; }
}

@keyframes firefly-4 {
    0% { transform: translate(0, 0); opacity: 0.4; }
    25% { transform: translate(-25vw, 45vh); opacity: 1; }
    50% { transform: translate(-55vw, 15vh); opacity: 0.8; }
    75% { transform: translate(-75vw, 55vh); opacity: 0.6; }
    100% { transform: translate(0, 0); opacity: 0.4; }
}

@keyframes firefly-5 {
    0% { transform: translate(0, 0); opacity: 0.8; }
    20% { transform: translate(-45vw, -5vh); opacity: 0.5; }
    40% { transform: translate(-85vw, 30vh); opacity: 1; }
    60% { transform: translate(-35vw, 40vh); opacity: 0.9; }
    80% { transform: translate(-65vw, 5vh); opacity: 0.7; }
    100% { transform: translate(0, 0); opacity: 0.8; }
}

.logo-container {
    margin-bottom: -20px;
    margin-top: -40px;
    z-index: 2;
    position: relative;
    transform: translateY(-50px) scale(0.8);
    opacity: 0;
    animation: logoFadeIn 1.5s ease-out 0.3s forwards;
}

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

.main-logo {
    max-width: 300px;
    width: 90%;
    height: auto;
    filter: 
        drop-shadow(0 15px 35px rgba(0, 0, 0, 0.6))
        drop-shadow(0 0 30px var(--gold-glow));
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 650px;
    font-style: italic;
    z-index: 2;
    position: relative;
}

.play-button-container {
    z-index: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transform: translateY(40px);
    opacity: 0;
    animation: playButtonFadeIn 1.3s ease-out 1.3s forwards;
}

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

.play-button {
    display: inline-block;
    transition: all 0.4s ease;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.play-button img {
    height: 90px;
    width: auto;
    transition: all 0.4s ease;
}

.play-button:hover {
    transform: translateY(-5px) scale(1.05);
    filter: 
        drop-shadow(0 15px 40px rgba(0, 0, 0, 0.7))
        drop-shadow(0 0 25px var(--gold-glow));
}

.play-button:hover img {
    filter: brightness(1.1);
}

.legend-text {
    font-family: 'Caribbean', cursive;
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--text-primary);
    text-align: left;
    position: relative;
    z-index: 2;
    margin: -1rem 0 1.5rem 0;
    letter-spacing: clamp(2px, 0.5vw, 4px);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    transform: translateY(30px);
    opacity: 0;
    animation: legendTextFadeIn 1.2s ease-out 0.8s forwards;
}

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

.legend-highlight {
    position: relative;
    display: inline-block;
}

.legend-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    right: -10px;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0.8;
    z-index: -1;
    clip-path: polygon(
        0% 15%,
        8% 5%, 16% 12%, 24% 8%, 32% 15%, 40% 10%, 48% 18%, 56% 12%, 64% 20%, 72% 15%, 80% 22%, 88% 18%, 96% 25%,
        100% 30%, 100% 85%,
        96% 95%, 88% 88%, 80% 92%, 72% 88%, 64% 95%, 56% 90%, 48% 98%, 40% 92%, 32% 98%, 24% 90%, 16% 95%, 8% 88%,
        0% 85%
    );
    animation: legend-wave 8s ease-in-out infinite;
}

@keyframes legend-wave {
    0%, 100% {
        clip-path: polygon(
            0% 15%,
            8% 5%, 16% 12%, 24% 8%, 32% 15%, 40% 10%, 48% 18%, 56% 12%, 64% 20%, 72% 15%, 80% 22%, 88% 18%, 96% 25%,
            100% 30%, 100% 85%,
            96% 95%, 88% 88%, 80% 92%, 72% 88%, 64% 95%, 56% 90%, 48% 98%, 40% 92%, 32% 98%, 24% 90%, 16% 95%, 8% 88%,
            0% 85%
        );
        opacity: 0.8;
    }
    50% {
        clip-path: polygon(
            0% 20%,
            8% 12%, 16% 8%, 24% 15%, 32% 10%, 40% 18%, 48% 12%, 56% 20%, 64% 15%, 72% 22%, 80% 18%, 88% 25%, 96% 20%,
            100% 25%, 100% 90%,
            96% 88%, 88% 95%, 80% 88%, 72% 95%, 64% 88%, 56% 95%, 48% 88%, 40% 95%, 32% 88%, 24% 95%, 16% 88%, 8% 95%,
            0% 88%
        );
        opacity: 0.6;
    }
}

.available-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    position: relative;
    z-index: 2;
    transform: translateY(-0.5rem);
}

.available-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--pirate-gold);
    margin-bottom: 0.2rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.platform-logos {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.platform-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.platform-logo:hover {
    color: var(--pirate-gold);
    transform: translateY(-2px);
}

.platform-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.liquid-section {
    background: transparent;
    backdrop-filter: blur(30px);
    border: 2px solid var(--glass-border);
    margin: 3rem 2rem;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 25px 60px var(--shadow-deep),
        inset 0 1px 0 rgba(212, 175, 55, 0.1),
        inset 0 -1px 0 rgba(139, 115, 85, 0.2);
}

.liquid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><defs><filter id="paper"><feTurbulence baseFrequency="0.04" numOctaves="5" result="noise"/><feDiffuseLighting in="noise" lighting-color="white" surfaceScale="2"><feDistantLight azimuth="45" elevation="60"/></feDiffuseLighting></filter></defs><rect width="300" height="300" filter="url(%23paper)" opacity="0.03"/></svg>');
    background-size: 300px 300px;
    opacity: 0.4;
    pointer-events: none;
}

/* Rope border decoration */
.rope-divider {
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="20"><path d="M0,10 Q10,5 20,10 T40,10 T60,10 T80,10 T100,10" stroke="%238b7355" stroke-width="3" fill="none"/><path d="M0,10 Q10,15 20,10 T40,10 T60,10 T80,10 T100,10" stroke="%236b5a45" stroke-width="2" fill="none"/></svg>');
    background-repeat: repeat-x;
    background-size: 100px 20px;
    margin: 2rem 0;
    opacity: 0.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 3rem;
    position: relative;
    z-index: 2;
}

.section-content {
    padding: 3rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, 
        rgb(109, 199, 218) 0%,
        rgba(95, 185, 205, 0.95) 15%,
        rgba(80, 160, 180, 0.9) 25%,
        rgba(65, 135, 155, 0.85) 35%,
        rgba(50, 110, 130, 0.8) 45%,
        rgba(35, 85, 105, 0.85) 55%,
        rgba(25, 65, 85, 0.9) 65%,
        rgba(20, 50, 70, 0.93) 75%,
        rgba(18, 35, 55, 0.96) 85%,
        #111c25 100%
    );
}

.glass-content {
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><filter id="rough"><feTurbulence baseFrequency="0.02" numOctaves="3" result="noise" seed="2"/><feDiffuseLighting in="noise" lighting-color="white" surfaceScale="1"><feDistantLight azimuth="45" elevation="60"/></feDiffuseLighting></filter><rect width="400" height="400" filter="url(%23rough)" opacity="0.02"/></svg>'),
        linear-gradient(135deg, rgba(244, 232, 208, 0.02) 0%, transparent 60%),
        rgba(26, 26, 46, 0.3);
    background-size: 400px 400px, 100% 100%, 100% 100%;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 1px 0 rgba(212, 175, 55, 0.05),
        inset 0 -1px 0 rgba(139, 115, 85, 0.1);
}

.glass-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.05), 
        transparent
    );
    animation: glass-shine 4s infinite;
}

@keyframes glass-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.section-title {
    font-family: 'Crimson Text', serif;
    font-size: 4.5rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 6rem;
    margin-top: 2rem;
    position: relative;
    line-height: 0.9;
    text-shadow: 
        3px 3px 6px var(--shadow-deep),
        0 0 30px rgba(212, 175, 55, 0.2);
    letter-spacing: 3px;
    font-weight: 700;
}

/* Wave decoration */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -75px;
    left: 0;
    right: 0;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 80"><path d="M0,40 Q50,30 100,40 T200,40 T300,40 T400,40" stroke="%23d4af37" stroke-width="1.5" fill="none" opacity="0.4"/><path d="M0,50 Q40,40 80,50 T160,50 T240,50 T320,50 T400,50" stroke="%23d4af37" stroke-width="1" fill="none" opacity="0.3"/><path d="M0,30 Q60,20 120,30 T240,30 T360,30" stroke="%23d4af37" stroke-width="1" fill="none" opacity="0.2"/></svg>');
    background-size: 400px 80px;
    background-position: 0 center;
    background-repeat: repeat-x;
    animation: wave-flow 10s linear infinite;
    mask: linear-gradient(90deg, 
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(90deg, 
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

/* Ship's wheel - separate element so only it rotates */
.section-title::before {
    content: '';
    position: absolute;
    bottom: -85px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g transform="translate(50,50)"><circle r="18" fill="none" stroke="%23d4af37" stroke-width="2"/><circle r="8" fill="none" stroke="%23d4af37" stroke-width="2"/><circle r="3" fill="%23d4af37"/><path d="M0,-18 L0,-35 M18,0 L35,0 M0,18 L0,35 M-18,0 L-35,0 M12.7,-12.7 L24.7,-24.7 M12.7,12.7 L24.7,24.7 M-12.7,12.7 L-24.7,24.7 M-12.7,-12.7 L-24.7,-24.7" stroke="%23d4af37" stroke-width="3" stroke-linecap="round"/><rect x="-4" y="-22" width="8" height="8" fill="%23d4af37" opacity="0.6"/><rect x="-4" y="14" width="8" height="8" fill="%23d4af37" opacity="0.6"/><rect x="14" y="-4" width="8" height="8" fill="%23d4af37" opacity="0.6"/><rect x="-22" y="-4" width="8" height="8" fill="%23d4af37" opacity="0.6"/></g></svg>');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    animation: wheel-turn 20s linear infinite;
    z-index: 3;
}

@keyframes wheel-turn {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

.news-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2.5rem !important;
    margin: 8rem 0 3rem 0 !important;
    justify-content: center !important;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
}

.news-crystal {
    border: 3px solid var(--pirate-gold);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(212, 175, 55, 0.2);
    background-size: cover;
    background-position: center;
    opacity: 1;
    transform: translateY(0) rotateY(0deg) scale(1);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.news-crystal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.news-crystal .news-title,
.news-crystal .news-date,
.news-crystal .news-summary,
.news-crystal .news-read-btn {
    position: relative;
    z-index: 2;
}

.news-read-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--bright-gold) 0%, var(--pirate-gold) 100%);
    color: var(--dark-wood);
    border: 2px solid var(--bright-gold);
    border-radius: 15px;
    padding: 0.6rem 1rem;
    font-family: 'Crimson Text', serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(212, 175, 55, 0.2);
    margin-top: 1rem;
    width: fit-content;
}

.news-read-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--pirate-gold) 0%, var(--bright-gold) 100%);
    color: var(--dark-wood);
    text-decoration: none;
}

.news-crystal.animate {
    /* Animation removed */
}

/* Sparkle effects removed */
.news-crystal::before {
    display: none;
}

.news-crystal:hover,
.news-crystal.animate:hover {
    transform: translateY(-15px) scale(1.05) !important;
    border-color: var(--bright-gold) !important;
    box-shadow: 
        0 35px 80px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(212, 175, 55, 0.6),
        inset 0 0 80px rgba(212, 175, 55, 0.2) !important;
    opacity: 1 !important;
    filter: blur(0px) brightness(1.1) !important;
}

.news-crystal:hover::after,
.news-crystal:hover::before {
    opacity: 1;
    filter: drop-shadow(0 0 10px var(--pirate-gold));
}

.news-title {
    font-family: 'Crimson Text', serif;
    font-size: 1.8rem;
    color: var(--bright-gold);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.95),
        0 0 15px rgba(212, 175, 55, 0.4);
    position: relative;
    z-index: 2;
    font-weight: 700;
}

.news-date {
    color: var(--pirate-gold);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 2;
}

.news-summary {
    color: var(--text-primary);
    line-height: 1.7;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.95),
        0 0 8px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
    font-size: 1rem;
}

.hero-immersive {
    background: 
        linear-gradient(rgba(17, 28, 37, 0.7), rgba(26, 35, 50, 0.5)),
        url('/static/img/covers/combat.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-immersive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: 
        linear-gradient(180deg, #111c25 0%, var(--midnight-purple) 100%);
    clip-path: polygon(
        0% 0%,
        8% 20%,
        16% 15%,
        24% 25%,
        32% 20%,
        40% 30%,
        48% 25%,
        56% 35%,
        64% 30%,
        72% 40%,
        80% 35%,
        88% 45%,
        96% 40%,
        100% 50%,
        100% 0%
    );
    border-bottom: 3px solid var(--rope-border);
}

.hero-immersive::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: 
        linear-gradient(0deg, var(--dark-depth) 0%, var(--midnight-purple) 100%);
    clip-path: polygon(
        0% 100%,
        8% 80%,
        16% 85%,
        24% 75%,
        32% 80%,
        40% 70%,
        48% 75%,
        56% 65%,
        64% 70%,
        72% 60%,
        80% 65%,
        88% 55%,
        96% 60%,
        100% 50%,
        100% 100%
    );
    border-top: 3px solid var(--rope-border);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-family: 'Caribbean', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-primary);
    margin-bottom: 2rem;
    letter-spacing: clamp(2px, 0.5vw, 4px);
    text-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(212, 175, 55, 0.3);
    transform: translateY(-30px);
    opacity: 0;
    animation: heroTitleFadeIn 1.2s ease-out 0.5s forwards;
}

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

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-primary);
    line-height: 1.8;
    text-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 0, 0, 0.6);
    font-weight: 400;
    transform: translateY(30px);
    opacity: 0;
    animation: heroSubtitleFadeIn 1.2s ease-out 0.8s forwards;
}

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

@keyframes pirate-reveal {
    0% {
        opacity: 0;
        transform: translateY(80px) rotateY(-15deg) scale(0.8);
        filter: blur(10px);
        box-shadow: 
            0 0 0 rgba(0, 0, 0, 0),
            0 0 0 rgba(212, 175, 55, 0);
    }
    25% {
        opacity: 0.3;
        transform: translateY(40px) rotateY(-8deg) scale(0.9);
        filter: blur(5px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(10px) rotateY(-3deg) scale(0.95);
        filter: blur(2px);
        box-shadow: 
            0 5px 15px rgba(0, 0, 0, 0.5),
            0 0 10px rgba(212, 175, 55, 0.1);
    }
    75% {
        opacity: 0.9;
        transform: translateY(-5px) rotateY(2deg) scale(1.05);
        filter: blur(0px);
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.6),
            0 0 15px rgba(212, 175, 55, 0.15);
    }
    85% {
        transform: translateY(-8px) rotateY(1deg) scale(1.08);
        box-shadow: 
            0 12px 35px rgba(0, 0, 0, 0.7),
            0 0 25px rgba(212, 175, 55, 0.25);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateY(0deg) scale(1);
        filter: blur(0px);
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.7),
            0 0 20px rgba(212, 175, 55, 0.2),
            inset 0 0 40px rgba(0, 0, 0, 0.3);
    }
}

@keyframes wave-flow {
    0% { background-position: 0 center; }
    100% { background-position: 400px center; }
}

/* Mobile responsive styles */
/* Staggered animation delays removed */
.news-crystal.animate:nth-child(1) {
    /* Animation removed */
}

.news-crystal.animate:nth-child(2) {
    /* Animation removed */
}

.news-crystal.animate:nth-child(3) {
    /* Animation removed */
}

@keyframes corner-sparkle {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
        filter: drop-shadow(0 0 0 transparent);
    }
    60% {
        opacity: 0.4;
        transform: scale(0.7) rotate(-10deg);
        filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
    }
    100% {
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 0 transparent);
    }
}

@keyframes sparkle-glow {
    0%, 100% {
        opacity: 0.6;
        filter: drop-shadow(0 0 0 transparent);
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 10px var(--pirate-gold));
    }
}

@media (max-width: 768px) {
    .main-logo {
        width: 45vw;
        max-width: 180px;
        height: auto;
        margin-bottom: 30px;
        margin-top: 50px;
    }
    
    /* Extra margin when banner is present */
    body:has(.notification.banner) .main-logo {
        margin-top: 80px;
    }
    
    /* More padding below platforms */
    .available-section {
        margin-bottom: 4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .play-button-container {
        flex-direction: column;
        gap: 1.5rem;
    }
}
    
    .liquid-section {
        margin: 2rem 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.depth-card {
    background: 
        linear-gradient(135deg, rgba(244, 232, 208, 0.03) 0%, transparent 70%),
        rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(25px);
    border: 2px solid var(--glass-border);
    border-radius: 18px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(212, 175, 55, 0.05),
        inset 0 -1px 0 rgba(139, 115, 85, 0.1);
}