:root {
    --holo-text-color: #a7eaff;
    --holo-glow-color1: #71d9ff;
    --holo-glow-color2: #00F0FF;
    --holo-glow-color3: #00A3FF;
    --primary-bg-widget: #13141f;
    --accent-color-widget: #6c63ff;
    --accent-glow-widget: rgba(108, 99, 255, 0.3);
    --accent-gradient-widget: linear-gradient(135deg, var(--accent-color-widget) 0%, #b066ff 100%);
    --depth-transition-speed-widget: 0.15s; 
    --neu-shadow-dark: rgba(8, 8, 13, 0.85);
    --neu-shadow-light: rgba(29, 30, 42, 0.45);
}

.home-content-container {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 5rem;
    overflow-x: clip;
}

.parallax-bg-elements { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; 
}

.parallax-wrapper {
    position: absolute;
    will-change: transform;
    pointer-events: none; 
}

.parallax-img {
    display: block;
    pointer-events: auto; 
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.gamepad-anim {
    width: 12vw;
    max-width: 130px;
    min-width: 80px;
    height: auto;
    animation: floatAnimationElement 6s ease-in-out infinite;
    --initial-rotate: 22deg;
}

.play-anim {
    width: 10vw;
    max-width: 100px;
    min-width: 60px;
    height: auto;
    animation: floatAnimationElement 7s ease-in-out infinite 0.5s;
    --initial-rotate: -15deg;
}

@keyframes floatAnimationElement { 
    0% { transform: translateY(0px) rotate(var(--initial-rotate, 0deg)); }
    50% { transform: translateY(-15px) rotate(calc(var(--initial-rotate, 0deg) + 5deg)); }
    100% { transform: translateY(0px) rotate(var(--initial-rotate, 0deg)); }
}


.home-content-section {
    position: relative; /* Needed for absolute positioning of social links */
    z-index: 10; 
    padding: 4rem 1rem;
    margin-bottom: 12rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(19, 20, 31, 0.75) 0%, rgba(10, 10, 14, 0.85) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(108, 99, 255, 0.4); 
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.3), 
                0 0 35px rgba(108, 99, 255, 0.35), 
                0 0 60px rgba(108, 99, 255, 0.25), 
                inset 0 0 8px rgba(108, 99, 255, 0.1); 
}
#discover-anchor.home-content-section { 
    margin-top: 8rem; 
    padding-top: 6rem; 
}


.home-content-section:last-child { margin-bottom: 0; }

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    color: #fff;
}
.section-title .gradient-text {
    background: var(--accent-gradient-widget);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #cbd5e1;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3.5rem;
    text-align: center;
    line-height: 1.7;
}

/* START: Home Social Links Styling */
.home-social-links {
    position: absolute;
    top: 0; /* Align to the top of the parent section */
    right: 0; /* Align to the right of the parent section */
    transform: translate(-10%, -50%); /* X: 25% to push it slightly outside, Y: -50% to straddle vertically */
    display: flex;
    gap: 0.75rem; /* Space between icons */
    z-index: 20; /* Ensure it's above the section's content flow */
    padding: 0.25rem; /* Small padding if needed for visual balance */
}

.home-social-links a.neu-button {
    width: 44px; /* Larger than footer's w-8 (32px) */
    height: 44px; /* Larger than footer's h-8 (32px) */
    font-size: 1.35rem; /* Larger icon size */
    padding: 0; /* Override existing padding if any to center icon */
    /* neu-button provides flex, items-center, justify-center already */
    box-shadow: 3px 3px 8px var(--neu-shadow-dark), -3px -3px 8px var(--neu-shadow-light);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, opacity 0.4s ease-out;
    opacity: 0; /* Initial state for animation */
    transform: translateY(20px) scale(0.8); /* Initial state for animation */
}

.home-social-links a.neu-button.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.home-social-links a.neu-button:hover {
    transform: scale(1.15) !important; /* Ensure hover transform takes precedence */
    box-shadow: 5px 5px 12px var(--neu-shadow-dark), -5px -5px 12px var(--neu-shadow-light);
}
/* END: Home Social Links Styling */


.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.feature-card { 
    background: rgba(26, 27, 46, 0.65);
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    border-radius: 0.75rem; 
    border: 1px solid rgba(108, 99, 255, 0.25); 
    backdrop-filter: blur(8px); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    position: relative;
    overflow: visible;
    min-height: 260px;
}
.feature-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.25), 0 0 25px rgba(108, 99, 255, 0.25); 
}

.feature-icon-wrapper {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    pointer-events: none;
    transition: transform 0.3s ease-out;
}
.feature-card:hover .feature-icon-wrapper {
    transform: translateX(-50%) translateY(-10px) scale(1.10) rotate(3deg);
}
.feature-img-icon {
    width: 200px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0px 6px 12px rgba(0, 0, 0, 0.4));
}

.feature-title { 
    font-size: 1.25rem; 
    font-weight: 600; 
    color: #fff; 
    margin-bottom: 0.75rem; 
    text-align: center; 
    margin-top: 90px;
}
.feature-card p { color: #d1d5db; line-height: 1.6; text-align: center; font-size: 0.9rem; }


.multi-game-section .game-logos-container { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2rem; }
.game-logo-item { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; opacity: 0.8; transition: opacity 0.3s ease, transform 0.3s ease; color: #e5e7eb; font-size: 0.9rem; }
.game-logo-item:hover { opacity: 1; transform: scale(1.1); }
.game-logo-item img { height: clamp(50px, 6vw, 70px); width: auto; filter: drop-shadow(0 4px 15px rgba(0,0,0,0.5)); margin-bottom: 0.25rem; }
.game-logo-item.is-coming-soon { opacity: 0.5; }
.game-logo-item.is-coming-soon i { font-size: clamp(30px, 4vw, 40px); height: clamp(50px, 6vw, 70px); width: clamp(50px, 6vw, 70px); display: flex; align-items: center; justify-content: center; border: 2px dashed rgba(255,255,255,0.2); border-radius: 50%; color: rgba(255,255,255,0.3); margin-bottom: 0.25rem; }

.community-points-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 900px; margin: 2rem auto 0 auto; }
@media (min-width: 768px) { .community-points-grid { grid-template-columns: 1fr 1fr; } }
.community-point-card { background: rgba(10, 10, 14, 0.5); border: 1px solid rgba(108, 99, 255, 0.1); padding: 1.5rem; border-radius: 0.75rem; box-shadow: inset 0 0 20px rgba(108, 99, 255, 0.05); text-align: left; }
.community-point-card h4 { font-size: 1.1rem; font-weight: 600; color: var(--accent-color-widget); margin-bottom: 0.5rem; }
.community-point-card h4 i { margin-right: 0.5rem; opacity: 0.8; }
.community-point-card p { color: #d1d5db; font-size: 0.9rem; }

.decorative-terminal {
    font-family: 'Share Tech Mono', monospace;
    background: rgba(10, 10, 20, 0.85);
    border: 1px solid rgba(167, 234, 255, 0.5);
    border-radius: 5px;
    width: clamp(280px, 30vw, 400px);
    box-shadow: 0 0 25px rgba(0, 163, 255, 0.3), inset 0 0 10px rgba(0, 163, 255, 0.2);
    color: var(--holo-text-color);
    text-shadow: 0 0 3px var(--holo-text-color), 0 0 8px var(--holo-glow-color1), 0 0 15px var(--holo-glow-color2);
    text-align: left;
    opacity: 1;
    padding: 0.25rem;
}

.static-terminal-community {
    margin: 0 auto 3rem auto;
    z-index: 12; 
}
.terminal-header { background: rgba(0,0,0,0.3); padding: 5px 10px; font-size: 0.75rem; color: #ccc; border-bottom: 1px solid rgba(167, 234, 255, 0.3); }
.terminal-body { padding: 10px; font-size: 0.85rem; line-height: 1.4; }
.terminal-body p { margin: 0 0 0.3rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blinking-cursor { animation: blink 1s step-end infinite; display: inline-block; background-color: var(--holo-text-color); width: 8px; height: 1em; margin-left: 2px; vertical-align: text-bottom; box-shadow: 0 0 5px var(--holo-text-color); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.rewards-section {
    text-align: center;
    overflow: hidden; 
}
.rewards-grid-wrapper { position: relative; max-width: 900px; margin: 2rem auto 0 auto; }
.reward-section-jmkoins-image {
    width: clamp(180px, 30vw, 300px);
    height: auto;
    position: absolute;
    top: 50%;
    left: -8.6vw; 
    transform: translateY(-56%) rotate(-14deg); 
    z-index: 0;
    opacity: 0.6;
    filter: drop-shadow(0 10px 30px rgba(251, 191, 36, 0.4));
}
.rewards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; position: relative; z-index: 1; }
.reward-card { border-radius: 0.75rem; padding: 2rem; background: linear-gradient(145deg, rgba(26, 27, 46, 0.7), rgba(40, 41, 64, 0.6)); border: 1px solid rgba(108, 99, 255, 0.2); backdrop-filter: blur(10px); box-shadow: 0 0 30px rgba(108, 99, 255, 0.1); text-align: left; }
.reward-card h5 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; color: #fff; }
.reward-card p { color: #d1d5db; font-size: 0.9rem; }

.legal-section { text-align: center; }
.legal-tabs-container { max-width: 900px; margin-left: auto; margin-right: auto; border-radius: 0.5rem; background: rgba(19, 20, 31, 0.9); border: 1px solid rgba(108, 99, 255, 0.15); box-shadow: 0 5px 25px rgba(0,0,0,0.3); }
.legal-tabs-nav { display: flex; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.legal-tab-button { padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 500; color: #9ca3af; background: transparent; border: none; cursor: pointer; transition: color 0.2s, border-color 0.2s, box-shadow 0.3s, background-color 0.2s; border-bottom: 2px solid transparent; flex-grow: 1; text-align: center; }
.legal-tab-button:hover { color: #fff; background-color: rgba(255,255,255,0.05); }
.legal-tab-button.active { color: var(--accent-color-widget); border-bottom-color: var(--accent-color-widget); text-shadow: 0 0 8px var(--accent-glow-widget); background: linear-gradient(to top, rgba(108, 99, 255, 0.1) 0%, transparent 80%); }
.legal-tabs-content { padding: 1.5rem; min-height: 250px; max-height: 400px; overflow-y: auto; text-align: left; }
.legal-panel { display: none; animation: fadeInPanel 0.5s ease-out forwards; }
.legal-panel.active { display: block; }
@keyframes fadeInPanel { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.legal-panel .widget-cgv-display, .legal-panel .widget-privacy-policy-display, .legal-panel .widget-legal-mentions-display { padding: 0 !important; }
.legal-panel .widget-cgv-display h1, .legal-panel .widget-cgv-display h2, .legal-panel .widget-privacy-policy-display h1, .legal-panel .widget-privacy-policy-display h2, .legal-panel .widget-legal-mentions-display h1, .legal-panel .widget-legal-mentions-display h2 { text-align: left !important; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.legal-panel .widget-cgv-display h1:first-child, .legal-panel .widget-privacy-policy-display h1:first-child, .legal-panel .widget-legal-mentions-display h1:first-child { margin-top: 0 !important; }

.final-logo-section {
    padding-top: 15rem;
    padding-bottom: 15rem;
    text-align: center;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    z-index: 3; 
}

@keyframes floatAnimationLogoWidget {
    0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
    25% { transform: translate(5px, -5px) rotate(0.5deg); }
    50% { transform: translate(0px, -15px) rotate(0deg); }
    75% { transform: translate(-5px, -5px) rotate(-0.5deg); }
}

.final-logo-section .text-wrapper { 
    position: relative;
    z-index: 3; 
    display: inline-block; 
    animation: floatAnimationLogoWidget 7s ease-in-out infinite;
}

.final-logo-section .immersive-text { 
    font-family: 'Kanit', sans-serif;
    font-size: clamp(3rem, 9vw, 7.5rem);
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1;
    margin: 0;
    padding: 10px 0;
    position: relative;
    transform-style: preserve-3d;
    letter-spacing: -0.025em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.final-logo-section .immersive-text .site-domain-final {
    font-size: 0.4em;
    color: white;
    opacity: 0.6;
    vertical-align: baseline;
    margin-left: 0.05em;
    font-weight: 700;
}

.final-logo-section .immersive-text .title-part1, 
.final-logo-section .immersive-text .title-part2 { 
    display: inline; 
}

.final-logo-section .immersive-text .t-container, 
.final-logo-section .immersive-text .s-container { 
    position: relative; 
    display: inline-block; 
}

.final-logo-section .immersive-text .character-img-instance { 
    position: absolute;
    width: auto;
    pointer-events: none;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.4));
    z-index: 5; 
    display: none;
    object-fit: contain; 
    image-rendering: -webkit-optimize-contrast; 
    image-rendering: crisp-edges;
}

.final-logo-section .immersive-text .character-on-t {
    display: block !important; 
    max-width: 123px !important; 
    height: 218px !important; 
    bottom: 58px !important; 
    left: -90% !important; 
    transform: translateX(-48%) !important; 
}

.final-logo-section .immersive-text .character-on-s { 
    display: none !important;
}

.final-logo-section .immersive-text .char-replace { 
    display: inline-block; 
    vertical-align: baseline;
}
.final-logo-section .immersive-text .char-img { 
    height: 0.7em; 
    width: auto;
    display: inline-block;
    vertical-align: middle; 
    line-height: 0.7em; 
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.4));
    margin: 0 -0.02em; 
}

.final-cta-container { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 3rem; }

.final-cta-button {
    font-size: 1.125rem;
    padding: 0.85rem 2.25rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease; 
    min-width: 200px;
}

.final-cta-button.primary.neu-button.menu-button {
    background-color: var(--accent-color-widget) !important; 
    color: white;
    box-shadow: 8px 8px 24px var(--neu-shadow-dark), -8px -8px 24px var(--neu-shadow-light), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.final-cta-button.primary.neu-button.menu-button:hover {
    transform: translateY(-2px) scale(1.05) skewX(-5deg);
    box-shadow: 4px 4px 8px var(--neu-shadow-dark), -4px -4px 8px var(--neu-shadow-light);
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.4) 0%, rgba(176, 102, 255, 0.4) 100%) !important;
}

.final-cta-button.secondary.neu-button {
    background-color: rgba(255, 255, 255, 0.1) !important; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 8px 8px 24px var(--neu-shadow-dark), -8px -8px 24px var(--neu-shadow-light), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.final-cta-button.secondary.neu-button:hover {
    transform: translateY(-2px);
    box-shadow: 8px 8px 16px var(--neu-shadow-dark), 
                -8px -8px 16px var(--neu-shadow-light), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.15) !important; 
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1280px) {
    .final-logo-section .immersive-text .character-on-t { 
        bottom: 30px !important; 
        transform: translateX(-48%) scale(0.8) !important;
    }
}
@media (max-width: 1024px) {
    .home-content-section { margin-bottom: 10rem; }
    .final-logo-section .immersive-text .character-on-t { 
        bottom: 6px !important; 
        transform: translateX(-48%) scale(0.7) !important;
    }
}

@media (max-width: 768px) {
    #discover-anchor.home-content-section { margin-top: 4rem; padding-top: 3rem; }
    .home-content-section { padding: 3rem 1rem; margin-bottom: 8rem; }
    .rewards-grid, .community-points-grid { grid-template-columns: 1fr; }
    
    .gamepad-anim { width: 15vw; max-width: 80px; min-width: 50px;}
    .play-anim { width: 15vw; max-width: 80px; min-width: 50px;}
    .decorative-terminal.parallax-wrapper { width: clamp(200px, 50vw, 280px) !important; font-size: 0.9em; }

    .reward-section-jmkoins-image { width: clamp(149px, 58vw, 274px); opacity: 0.45; left: -13vw; } 
    .final-logo-section { padding-top: 10rem; padding-bottom: 10rem; }
    .legal-tabs-nav { flex-direction: column; }
    .legal-tab-button { border-bottom: 1px solid rgba(255,255,255,0.1) !important; border-right: none !important; }
    .legal-tab-button.active { border-bottom-color: var(--accent-color-widget) !important; border-left: 2px solid var(--accent-color-widget); border-right: none !important; }

    .final-logo-section .immersive-text { 
        font-size: clamp(2.8rem, 12vw, 7rem) !important; 
        line-height: 0.85 !important; 
    }
    .final-logo-section .immersive-text .title-part2 { 
        display: block !important; 
    }
    .final-logo-section .immersive-text .title-part2 span {
        display: inline-block !important; 
    } 
    .final-logo-section .immersive-text .character-on-t { 
        display: none !important; 
    } 
    .final-logo-section .immersive-text .character-on-s { 
        display: block !important;
        bottom: 50% !important; 
        left: -105% !important; 
    }
    .final-logo-section .immersive-text .site-domain-final {
        font-size: 0.35em !important; 
    }

    /* Responsive adjustments for social links */
    .home-social-links {
        gap: 0.5rem;
    }
    .home-social-links a.neu-button {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .final-logo-section .immersive-text .character-on-s { 
        height: 1.8em !important;
        bottom: 4% !important; 
    }
    #discover-anchor.home-content-section {
        padding-top: 4rem; /* Make more space for social icons if they overlap title too much */
    }
    .home-social-links {
        transform: translate(-40%, -50%); /* Pull further in */
        gap: 0.3rem;
    }
    .home-social-links a.neu-button {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
}