:root {
    --personal-bg: #0f1115;
    --personal-hover: #171a21;
    --personal-accent: #ffffff;
    --personal-text-muted: #a0aabf;

    --business-bg: #0d76f2;
    /* Vibrant blue from logo */
    --business-bg-gradient: radial-gradient(circle at center, #2e8fff 0%, #0d76f2 100%);
    --business-hover: #0b5cd6;
    --business-accent: #ffffff;
    --business-highlight: #60a5fa;
    --business-text-muted: #b8cde6;

    --transition-speed: 0.8s;
    --showcase-hover-modifier: 1.5;
}

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

body {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

/* Standalone sub-site mode: allow the page to scroll naturally */
body:has(.detail-section.standalone) {
    overflow: auto;
    overflow-x: clip; /* prevent horizontal scroll from 3D carousel edges */
    height: auto;
    min-height: 100vh;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1.5px;
}

h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

/* Rounded font for Frozen Labs */
.split-right h1,
#business-detail h2,
.logo-rounded {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
}

p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

/* Split Container */
.split-container {
    display: flex;
    width: 100%;
    height: 100vh;
    transition: opacity 0.5s ease;
}

.hidden {
    display: none !important;
}

.split {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: width var(--transition-speed) cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    will-change: width;
    transform: translateZ(0);
    /* Force GPU compositing */
}

.split:focus {
    outline: none;
}

/* Left Side (Personal) */
.split-left {
    background-color: var(--personal-bg);
    color: var(--personal-accent);
}

.split-left p {
    color: var(--personal-text-muted);
}

.split-left::before,
#personal-detail::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 30px 30px;
    z-index: 1;
    pointer-events: none;
    transform: rotate(15deg);
    animation: halftoneDrift 90s linear infinite;
}

#personal-detail::before {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    animation: halftonePan 90s linear infinite;
}

@keyframes halftoneDrift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 300px 300px;
    }
}

@keyframes halftonePan {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 300px;
    }
}

/* Vignette overlay for personal side */
.split-left::after,
#personal-detail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--personal-bg) 110%);
    z-index: 1;
    pointer-events: none;
}

/* Right Side (Business) */
.split-right {
    background: var(--business-bg-gradient);
    color: var(--business-accent);
}

.split-right p {
    color: var(--business-text-muted);
}

.split-right::before,
#business-detail::before {
    content: '';
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background-image:
        url("Assets/Snowflake_Pattern.svg"),
        url("Assets/Snowflake_Pattern.svg");
    background-position: 0 0, 100px 100px;
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    animation: snowDrift 30s linear infinite;

    /* Interactive Parallax */
    transform: translate(calc(var(--mouse-x, 0) * -25px), calc(var(--mouse-y, 0) * -25px));
    will-change: transform;
}

.split-right::before {
    position: absolute;
}

#business-detail::before {
    position: fixed;
}

@keyframes snowDrift {
    0% {
        background-position: 0px 0px, 100px 100px;
    }

    100% {
        background-position: 200px 200px, 300px 300px;
    }
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    transition: transform var(--transition-speed) cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Buttons */
.btn {
    padding: 1rem 3.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    text-transform: uppercase;
    letter-spacing: 2px;
    will-change: transform, background-color, color;
}

.btn-personal {
    background-color: transparent;
    color: var(--personal-accent);
    border: 2px solid var(--personal-accent);
}

.btn-personal:hover {
    background-color: var(--personal-accent);
    color: var(--personal-bg);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-business {
    background-color: var(--business-accent);
    color: var(--business-bg);
}

.btn-business:hover {
    background-color: #f0f0f0;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Hover effects */
.split:hover,
.split:focus-within {
    width: 60%;
}

.split-container:has(.split-left:hover) .split-right,
.split-container:has(.split-left:focus-within) .split-right {
    width: 40%;
}

.split-container:has(.split-right:hover) .split-left,
.split-container:has(.split-right:focus-within) .split-left {
    width: 40%;
}

.split:hover .content,
.split:focus-within .content {
    transform: scale(1.05);
}

/* Expansion classes for JS */
.split.active {
    width: 100% !important;
    cursor: default;
}

.split.inactive {
    width: 0% !important;
    opacity: 0;
}

/* Detail Sections */
.detail-section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 120px 2rem 40px 2rem;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
}

.detail-section.visible {
    opacity: 1;
    pointer-events: all;
}

/* Standalone mode: full-page layout without absolute positioning */
.detail-section.standalone {
    position: relative;
    min-height: 100vh;
    pointer-events: all;
    opacity: 1;
}

#personal-detail {
    background-color: var(--personal-bg);
    color: var(--personal-accent);
}

#business-detail {
    background: var(--business-bg-gradient);
    color: var(--business-accent);
}

.detail-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
}



.back-btn {
    position: absolute;
    top: 3rem;
    left: 3rem;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    color: inherit;
    border: 2px solid currentColor;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#personal-detail .back-btn:hover {
    background: var(--personal-accent);
    color: var(--personal-bg);
}

/* Navigation Common */
.business-nav,
.personal-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
}

.business-nav {
    background: linear-gradient(to bottom, rgba(13, 118, 242, 1) 0%, rgba(13, 118, 242, 0) 100%);
}

.personal-nav {
    background: linear-gradient(to bottom, rgba(15, 17, 21, 1) 0%, rgba(15, 17, 21, 0) 100%);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-rounded {
    font-size: 2rem;
    color: white;
    letter-spacing: -0.5px;
}

.back-btn-alt {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-btn-alt:hover {
    background: white;
    color: black;
}

#business-detail .back-btn-alt:hover {
    color: var(--business-bg);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 30;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

#personal-detail .hamburger span {
    background-color: var(--personal-accent);
}

#business-detail .hamburger span {
    background-color: var(--business-accent);
}

.hamburger.toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.toggle span:nth-child(2) {
    opacity: 0;
}

.hamburger.toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Business Links */
#business-detail .nav-links a {
    color: var(--business-text-muted);
}

#business-detail .nav-links a:hover,
#business-detail .nav-links a.active {
    color: var(--business-accent);
}

/* Personal Links */
#personal-detail .nav-links a {
    color: var(--personal-text-muted);
}

#personal-detail .nav-links a:hover,
#personal-detail .nav-links a.active {
    color: var(--personal-accent);
}

#dynamic-contact-info a {
    color: var(--personal-accent);
    text-decoration: none;
    transition: color 0.3s;
}

#dynamic-contact-info a:hover {
    color: var(--personal-text-muted);
    text-decoration: underline;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateX(var(--slide-dir, 40px));
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Seamless transitions for tab contents (animating the items directly prevents blur popping) */
.tab-pane.active h2,
.tab-pane.active h3,
.tab-pane.active p,
.tab-pane.active .info-card,
.tab-pane.active .cert-card,
.tab-pane.active .skill-tag,
.tab-pane.active .sub-nav-toggle,
.tab-pane.active .sub-nav-dropdown-wrapper,
.sub-tab-content.active .info-card,
.sub-tab-content.active .cert-card {
    animation: cardSlideIn 0.4s cubic-bezier(0.25, 1, 0.5, 1) both;
    opacity: 0;
}

/* Sub-Nav Toggle */
.sub-nav-toggle {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem auto 3rem auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 50px;
    max-width: 100%;
    flex-wrap: wrap;
    width: max-content;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.sub-nav-btn {
    background: transparent;
    border: none;
    color: var(--business-text-muted);
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.sub-nav-btn:hover {
    color: white;
}

.sub-nav-btn.active {
    background: var(--business-accent);
    color: var(--business-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Mobile Dropdown (hidden on desktop) */
.sub-nav-dropdown-wrapper {
    display: none;
    margin: 0.5rem auto 2.5rem auto;
    width: 100%;
    max-width: 340px;
    position: relative;
    z-index: 10;
}

.sub-nav-dropdown-select {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.4rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.25s ease, background 0.25s ease;
    user-select: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sub-nav-dropdown-select.open {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 14px 14px 0 0;
}

.sub-nav-dropdown-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sub-nav-dropdown-arrow {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.25s ease;
    line-height: 1;
}

.sub-nav-dropdown-select.open .sub-nav-dropdown-arrow {
    transform: rotate(180deg);
}

.sub-nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 25, 55, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-top: none;
    border-radius: 0 0 14px 14px;
    list-style: none;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.sub-nav-dropdown-select.open .sub-nav-dropdown-menu {
    max-height: 300px;
    opacity: 1;
    pointer-events: all;
}

.sub-nav-dropdown-item {
    padding: 0.85rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sub-nav-dropdown-item:first-child {
    border-top: none;
}

.sub-nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sub-nav-dropdown-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700;
}

.sub-tab-content {
    display: none;
    width: 100%;
}

.sub-tab-content.active {
    display: block;
}

/* Premium Dark Cards & Layouts */
.card-layout,
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
    /* ensure it's above background particles */
}

.info-card,
.cert-card {
    background: rgba(25, 28, 35, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    max-width: 700px;
}

.cert-card {
    flex: 1 1 calc(33.333% - 1.5rem);
    min-width: 250px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.info-card:hover,
.cert-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.03);
    background: rgba(35, 39, 48, 0.8);
}

.card-icon,
.cert-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.cert-icon {
    margin-bottom: 0.5rem;
}

.bio-text,
.exp-info p,
.cert-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--personal-text-muted);
    margin: 0;
}

#business-detail .bio-text,
#business-detail .exp-info p,
#business-detail .cert-info p {
    color: var(--business-text-muted);
}

.cert-info h3,
.exp-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--personal-accent);
}

#business-detail .cert-info h3,
#business-detail .exp-info h3 {
    color: var(--business-accent);
}

.cert-score {
    color: #4ade80 !important;
    /* Premium success green */
    font-weight: 600;
    margin-top: 0.8rem !important;
}

/* Specific Business Card Styles */
#business-detail .info-card,
#business-detail .cert-card {
    background: rgba(13, 30, 60, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#business-detail .info-card:hover,
#business-detail .cert-card:hover {
    background: rgba(18, 45, 90, 0.95);
    border-color: rgba(96, 165, 250, 0.5);
    /* business-highlight */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(96, 165, 250, 0.15);
}

/* Dynamic Roblox Game Card Styles */
.roblox-game-card {
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-banner {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.game-icon-overlay {
    position: absolute;
    bottom: -20px;
    left: 20px;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 2px solid var(--business-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    background-color: #111;
    background-size: cover;
}

.game-content {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.live-stats {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--business-accent);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Skills Badges */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.skill-tag {
    background: rgba(25, 28, 35, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--personal-accent);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    cursor: default;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .split-container {
        flex-direction: column;
    }

    .split {
        width: 100%;
        height: 50%;
        transition: height var(--transition-speed) cubic-bezier(0.25, 1, 0.5, 1);
    }

    .split:hover,
    .split:focus-within {
        width: 100%;
        height: 60%;
    }

    .split-container:has(.split-left:hover) .split-right,
    .split-container:has(.split-left:focus-within) .split-right {
        height: 40%;
        width: 100%;
    }

    .split-container:has(.split-right:hover) .split-left,
    .split-container:has(.split-right:focus-within) .split-left {
        height: 40%;
        width: 100%;
    }

    .split.active {
        height: 100% !important;
    }

    .split.inactive {
        height: 0% !important;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    p {
        font-size: 1.2rem;
    }

    /* Mobile Nav */
    .business-nav,
    .personal-nav {
        padding: 1rem 1.25rem;
    }

    .nav-left {
        gap: 0.75rem;
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }

    .logo-rounded {
        font-size: 1.3rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hamburger {
        display: flex;
        flex-shrink: 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        background: rgba(15, 17, 21, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem 0;
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 25;
        backdrop-filter: blur(15px);
    }

    #business-detail .nav-links {
        background: rgba(13, 30, 60, 0.98);
    }

    .nav-links.nav-active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* Hide pill switcher, show dropdown on mobile */
    .sub-nav-toggle {
        display: none !important;
    }

    .sub-nav-dropdown-wrapper {
        display: block;
    }

    /* Fix detail content padding on mobile */
    .detail-section {
        padding: 100px 1rem 40px 1rem;
    }

    .detail-content {
        max-width: 100%;
    }

    /* Prevent horizontal overflow */
    .card-layout,
    .card-grid {
        width: 100%;
    }

    .info-card,
    .cert-card {
        max-width: 100%;
        width: 100%;
    }

    /* Disable card hover lift on mobile (no hover intent) */
    .info-card:hover,
    .cert-card:hover {
        transform: none;
    }

    /* Fix animations: remove translateX on mobile to prevent jank */
    @keyframes cardSlideIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

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

/* Game Card Grid Formatting */
.roblox-game-card {
    flex: 1 1 calc(50% - 1.5rem);
    max-width: calc(50% - 0.75rem);
    /* Ensures exactly 2 per row on desktop */
}

@media (max-width: 900px) {
    .roblox-game-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* ── Page Transition Animations ── */
@keyframes pageSlideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pageSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pageSlideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(60px);
    }
}

@keyframes pageSlideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-60px);
    }
}

/* Applied by JS on the <body> */
body.page-enter-right #business-detail,
body.page-enter-right #personal-detail {
    animation: pageSlideInRight 0.55s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

body.page-enter-left #business-detail,
body.page-enter-left #personal-detail {
    animation: pageSlideInLeft 0.55s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

body.page-exit-right #business-detail,
body.page-exit-right #personal-detail {
    animation: pageSlideOutRight 0.4s ease forwards;
}

body.page-exit-left #business-detail,
body.page-exit-left #personal-detail {
    animation: pageSlideOutLeft 0.4s ease forwards;
}

/* ── Wave Blob ── */
.fl-wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 130px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.fl-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
}

.fl-wave--back {
    fill: rgba(255, 255, 255, 0.09);
    animation: waveScroll 16s linear infinite;
}

.fl-wave--mid {
    fill: rgba(255, 255, 255, 0.14);
    animation: waveScroll 11s linear infinite reverse;
}

.fl-wave--front {
    fill: rgba(255, 255, 255, 0.22);
    animation: waveScroll 7s linear infinite;
}

@keyframes waveScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ── Frozen Labs Page Hero ── */
.fl-page-hero {
    align-self: stretch;
    /* override align-items:center on parent */
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: -120px -2rem 3rem -2rem;
    /* bleed to edges, compensate for detail-section padding */
    padding: 160px 4rem 140px 4rem;
    /* 160 top = nav height + breathing room */
}

.fl-page-hero-body {
    position: relative;
    z-index: 2;
    text-align: left;
}

/* Brand row */
.fl-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.fl-brand-icon {
    width: 4.3rem;
    height: 4.3rem;
    fill: currentColor;
    color: white;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
    animation: fl-icon-pulse 3s ease-in-out infinite;
    flex-shrink: 0;
}

/* Card tilt glare and 3D depth */
.info-card,
.cert-card {
    transition: transform 0.15s ease-out, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    transform-style: preserve-3d;
}

.info-card::after,
.cert-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.info-card:hover::after,
.cert-card:hover::after {
    opacity: 1;
}

/* Push card content forward for depth parallax */
.info-card>*,
.cert-card>* {
    transform: translateZ(20px);
}

@keyframes fl-icon-pulse {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.65));
        transform: scale(1.07);
    }
}

/* Stats row */
.fl-stats-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Nunito', sans-serif;
}

.fl-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: fl-dot-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes fl-dot-pulse {

    0%,
    100% {
        box-shadow: 0 0 6px #4ade80;
        opacity: 1;
    }

    50% {
        box-shadow: 0 0 16px #4ade80;
        opacity: 0.7;
    }
}

.fl-stat-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fl-stat-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
}

/* Mobile hero adjustments */
@media (max-width: 900px) {
    .fl-page-hero {
        padding: 140px 1.5rem 110px 1.5rem;
        margin: -100px -1rem 2rem -1rem;
        min-height: 45vh;
    }

    .fl-brand-icon {
        font-size: 2.6rem;
    }

    .fl-wave-container {
        height: 80px;
    }

    .fl-stats-row {
        font-size: 0.88rem;
        flex-wrap: wrap;
        gap: 0.3rem;
    }
}

/* ── Hero Landing Page ── */
body.fl-hero-body {
    overflow: hidden;
    height: 100vh;
}

.fl-landing {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--business-bg-gradient);
    color: var(--business-accent);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fl-landing::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background-image: url("Assets/Snowflake_Pattern.svg"), url("Assets/Snowflake_Pattern.svg");
    background-position: 0 0, 100px 100px;
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.15;
    z-index: 0;
    animation: snowDrift 30s linear infinite;
}

.fl-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 4rem;
    max-width: 860px;
}

.fl-hero-tagline {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--business-text-muted);
    margin-bottom: 2rem;
}

.fl-cta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.fl-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.fl-cta-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.fl-cta-btn--primary {
    background: white;
    color: var(--business-bg);
    border-color: white;
}

.fl-cta-btn--primary:hover {
    background: #f0f4ff;
    color: var(--business-bg);
}

.fl-cta-icon {
    font-size: 1.1rem;
}

.fl-landing .fl-wave-container {
    position: absolute;
    height: 160px;
    z-index: 1;
}

/* Showcase and Split Front-Page Layout */
.fl-landing-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    z-index: 2;
    position: relative;
    gap: 2.5rem;
    box-sizing: border-box;
}

.fl-hero-content {
    flex: 1 1 320px;
    /* allow shrinking, but not below 320px */
    min-width: 0;
    max-width: 650px;
    padding: 0;
}

.fl-showcase-container {
    flex: 1 1 400px;
    /* allow shrinking proportionally */
    min-width: 0;
    max-width: calc(460px * var(--showcase-hover-modifier, 1.5) + 20px);
    display: flex;
    justify-content: center;
    perspective: 1000px;
    transition: max-width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    /* relative parent for grid toggle & inline grid container */
}

/* 3D Showcase Carousel Wrapper */
.fl-showcase-carousel-3d {
    position: relative;
    width: 100%;
    height: 520px;
    /* height to accommodate center card and top/bottom previews */
    transform-style: preserve-3d;
    /* Keep gorgeous 3D perspective layering */
    perspective: 5000px;
    /* Perspective must be on the direct parent of 3D-transformed children */
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
    will-change: transform, opacity;
}


/* Showcase Card Specifics */
.fl-showcase-card {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 46 / 44;
    /* nearly 1:1 square ratio in idle state */
    background: rgba(13, 30, 60, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(96, 165, 250, 0.1) !important;
    position: absolute !important;
    top: 50%;
    left: 50%;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition:
        max-width 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        aspect-ratio 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        left 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        top 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        width 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        height 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        background 0.4s ease;
}

/* 3D Carousel Position States */
.fl-showcase-card.card-active {
    transform: translate(-50%, -50%) translateZ(0) rotateX(0deg);
    opacity: 1;
    z-index: 10 !important;
    /* prioritize active card stacking layer */
    pointer-events: auto;
}

.fl-showcase-card.card-prev {
    transform: translate(-50%, -50%) translateY(-220px) translateZ(-200px) rotateX(48deg) scale(0.65);
    opacity: 0.45;
    z-index: 1 !important;
    pointer-events: auto !important;
    /* Allow clicking on background cards */
    cursor: pointer;
}

.fl-showcase-card.card-next {
    transform: translate(-50%, -50%) translateY(220px) translateZ(-200px) rotateX(-48deg) scale(0.65);
    opacity: 0.45;
    z-index: 1 !important;
    pointer-events: auto !important;
    /* Allow clicking on background cards */
    cursor: pointer;
}

.fl-showcase-card.card-hidden {
    transform: translate(-50%, -50%) translateZ(-300px) scale(0.6);
    opacity: 0;
    z-index: 0 !important;
    pointer-events: none;
}

.fl-showcase-card.card-active:hover {
    background: rgba(10, 15, 30, 0.95) !important;
    border-color: rgba(96, 165, 250, 0.6) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(96, 165, 250, 0.25) !important;
    max-width: calc(460px * var(--showcase-hover-modifier, 1.5));
    aspect-ratio: 16 / 9;
    /* forces a perfect 16:9 ratio aspect container */
    transform: translate(-50%, -50%) translateZ(80px) rotateX(0deg);
    z-index: 20 !important;
    /* highest layer during active focus */
}


/* Carousel Hover states: hide prev/next cards completely only when the active card itself is hovered (only in carousel mode) */
.fl-showcase-container:not(.grid-mode-active) .fl-showcase-carousel-3d:has(.fl-showcase-card.card-active:hover) .fl-showcase-card.card-prev,
.fl-showcase-container:not(.grid-mode-active) .fl-showcase-carousel-3d:has(.fl-showcase-card.card-active:hover) .fl-showcase-card.card-next {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: none !important;
}

/* Make banner absolute and transition its height */
.fl-showcase-card .game-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    z-index: 1;
    transition: height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.fl-showcase-card .game-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13, 30, 60, 0) 50%, rgba(13, 30, 60, 0.88) 100%);
    opacity: 1;
    transition: background 0.5s ease;
    z-index: 1;
    /* sit below the icon overlay */
}

/* Icon overlay transitions */
.fl-showcase-card .game-icon-overlay {
    z-index: 2;
    /* sit above the banner's ::after fade overlay */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.fl-showcase-card.card-active:hover .game-icon-overlay {
    bottom: 24px;
    left: 24px;
    opacity: 1;
    transform: scale(1);
}

/* Content block is positioned absolutely to allow smooth child coordinates movement */
.fl-showcase-card .game-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    padding: 0 !important;
    background: transparent !important;
    box-sizing: border-box;
}

/* Showcase Title */
.fl-showcase-card .showcase-title {
    position: absolute;
    top: 190px;
    left: 24px;
    right: 24px;
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--business-accent);
    text-align: left;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.fl-showcase-card.card-active:hover .showcase-title {
    top: 24px;
    left: 24px;
    right: 24px;
    text-align: left;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Description fades out and shifts up */
.fl-showcase-card .showcase-desc {
    position: absolute;
    top: 235px;
    left: 24px;
    right: 24px;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--business-text-muted);
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.fl-showcase-card.card-active:hover .showcase-desc {
    opacity: 0;
    transform: translateY(-15px);
    pointer-events: none;
}

/* Stats shift to top right under the title */
.fl-showcase-card .showcase-stats {
    position: absolute;
    bottom: 95px;
    left: 24px;
    right: 24px;
    border-top: none !important;
    padding-top: 0 !important;
    margin: 0 !important;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.fl-showcase-card.card-active:hover .showcase-stats {
    bottom: auto;
    top: 64px;
    /* positioned directly below the title */
    left: 24px;
    right: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

/* Play button container stays bottom-aligned */
.fl-showcase-card .showcase-play-btn {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.fl-showcase-card.card-active:hover .showcase-play-btn {
    left: 104px;
    /* leaves 16px gap to the right of the 64px icon */
    bottom: 24px;
    right: 24px;
}

.fl-showcase-card.card-active:hover .game-banner {
    height: 100%;
}

.fl-showcase-card.card-active:hover .game-banner::after {
    background:
        radial-gradient(circle at top left, rgba(10, 15, 30, 0.9) 0%, rgba(10, 15, 30, 0) 65%),
        linear-gradient(to bottom, rgba(10, 15, 30, 0.1) 0%, rgba(10, 15, 30, 0.85) 100%);
}

.fl-showcase-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(96, 165, 250, 0.85);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 10;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.fl-showcase-skeleton {
    width: 100%;
    max-width: 460px;
    height: 400px;
    background: rgba(13, 30, 60, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--business-text-muted);
}

/* Fading states for slide cycle transition */
.fl-showcase-fade-out {
    opacity: 0;
    transform: translateY(15px) rotateX(-5deg);
}

.fl-showcase-fade-in {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

@media (max-width: 1024px) {
    .fl-landing-main {
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        padding: 6rem 1.5rem 4rem 1.5rem;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    body.fl-hero-body {
        overflow-y: auto;
        height: auto;
    }

    .fl-hero-content {
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .fl-brand {
        justify-content: center;
    }

    .fl-cta-grid {
        justify-content: center;
    }

    .fl-showcase-container {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .fl-hero-content {
        padding: 0;
        max-width: 100%;
    }

    .fl-cta-btn {
        font-size: 0.82rem;
        padding: 0.75rem 1.3rem;
    }

    .fl-landing .fl-wave-container {
        height: 100px;
    }
}

@media (max-width: 640px) {
    .fl-showcase-carousel-3d {
        height: 440px;
    }

    .fl-showcase-card.card-prev {
        transform: translate(-50%, -50%) translateY(-170px) translateZ(-150px) rotateX(20deg) scale(0.65);
    }

    .fl-showcase-card.card-next {
        transform: translate(-50%, -50%) translateY(170px) translateZ(-150px) rotateX(-20deg) scale(0.65);
    }

    .fl-showcase-carousel-3d:has(.fl-showcase-card.card-active:hover) .fl-showcase-card.card-prev,
    .fl-showcase-carousel-3d:has(.fl-showcase-card.card-active:hover) .fl-showcase-card.card-next {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: none !important;
    }

    .fl-showcase-card .showcase-title {
        top: 170px;
        font-size: 1.25rem;
    }

    .fl-showcase-card.card-active:hover .showcase-title {
        top: 16px;
        font-size: 1.1rem;
        left: 16px;
        text-align: left;
    }

    .fl-showcase-card .showcase-desc {
        top: 210px;
        font-size: 0.85rem;
    }

    .fl-showcase-card .showcase-stats {
        bottom: 80px;
    }

    .fl-showcase-card.card-active:hover .showcase-stats {
        top: 42px;
        /* positioned directly below the title on mobile */
        left: 16px;
    }

    .fl-showcase-card.card-active:hover .game-icon-overlay {
        bottom: 16px;
        left: 16px;
        width: 44px;
        height: 44px;
    }

    .fl-showcase-card .showcase-play-btn {
        bottom: 16px;
    }

    .fl-showcase-card.card-active:hover .showcase-play-btn {
        left: 72px;
        bottom: 16px;
    }

    .fl-showcase-card .showcase-play-btn .btn {
        padding: 0.6rem !important;
        font-size: 0.8rem !important;
    }
}

/* Grid Toggle Button - Centered on Y axis, right edge of showcase section */
.fl-showcase-grid-toggle {
    position: absolute;
    right: 0px;
    /* Offset outside the main container to float on the right edge */
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 150;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fl-showcase-grid-toggle:hover {
    background: var(--business-accent);
    border-color: var(--business-accent);
    transform: translateY(-50%) scale(1.08) rotate(90deg);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
}

.fl-showcase-grid-toggle .icon-grid {
    display: block;
}

.fl-showcase-grid-toggle .icon-close {
    display: none;
}

/* Hide grid toggle button when active card is hovered to prevent overlay clashing (only in carousel mode) */
.fl-showcase-container:not(.grid-mode-active) .fl-showcase-carousel-3d:has(.fl-showcase-card.card-active:hover)~.fl-showcase-grid-toggle {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Toggle icon swap in grid mode */
.fl-showcase-container.grid-mode-active .fl-showcase-grid-toggle .icon-grid {
    display: none !important;
}

.fl-showcase-container.grid-mode-active .fl-showcase-grid-toggle .icon-close {
    display: block !important;
}

/* Inline Scrollable List Overrides */
.fl-showcase-container.grid-mode-active .fl-showcase-carousel-3d {
    transform-style: flat !important;
    perspective: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Premium scrollbar for the vertical list view */
.fl-showcase-container.grid-mode-active .fl-showcase-carousel-3d::-webkit-scrollbar {
    width: 6px;
}

.fl-showcase-container.grid-mode-active .fl-showcase-carousel-3d::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.fl-showcase-container.grid-mode-active .fl-showcase-carousel-3d::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.fl-showcase-container.grid-mode-active .fl-showcase-carousel-3d::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.4);
}

/* Base override for list mode cards */
.fl-showcase-container.grid-mode-active .fl-showcase-card {
    position: absolute !important;
    transform: translate(-50%, -50%) translate3d(var(--grid-x, 0px), var(--grid-y, 0px), 0px) scale(1) rotateX(0deg) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    aspect-ratio: auto !important;
    /* override the carousel square aspect ratio */
    max-width: 100% !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    background: rgba(10, 20, 45, 0.65) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    overflow: hidden !important;
}

/* Hover lift effect for list cards */
.fl-showcase-container.grid-mode-active .fl-showcase-card:hover {
    transform: translate(-50%, -50%) translate3d(var(--grid-x, 0px), var(--grid-y, 0px), 0px) scale(1.03) rotateX(0deg) !important;
    border-color: var(--business-accent) !important;
    box-shadow: 0 15px 35px rgba(96, 165, 250, 0.25) !important;
    z-index: 50 !important;
}

/* Left Side: Game banner image */
.fl-showcase-container.grid-mode-active .fl-showcase-card .game-banner {
    position: relative !important;
    inset: auto !important;
    width: 38% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    display: block !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* Hide tags & banner bottom-shadow overlay in list mode to keep banner crisp */
.fl-showcase-container.grid-mode-active .fl-showcase-card .fl-showcase-tag,
.fl-showcase-container.grid-mode-active .fl-showcase-card .game-banner::after {
    display: none !important;
}

/* Game Icon position in the banner */
.fl-showcase-container.grid-mode-active .fl-showcase-card .game-icon-overlay {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background-size: cover !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
}

/* Right Side: Game metadata details content */
.fl-showcase-container.grid-mode-active .fl-showcase-card .game-content {
    position: relative !important;
    inset: auto !important;
    width: 62% !important;
    height: 100% !important;
    padding: 14px 16px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    background: transparent !important;
}

/* Game Title text inside list mode content */
.fl-showcase-container.grid-mode-active .fl-showcase-card .showcase-title {
    position: static !important;
    font-size: 1.05rem !important;
    color: #fff !important;
    font-weight: 700 !important;
    margin: 0 0 3px 0 !important;
    line-height: 1.2 !important;
    transform: none !important;
    text-shadow: none !important;
}

/* Game Description inside list mode content */
.fl-showcase-container.grid-mode-active .fl-showcase-card .showcase-desc {
    position: static !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.74rem !important;
    color: var(--business-text-muted) !important;
    margin: 0 0 6px 0 !important;
    opacity: 1 !important;
    transform: none !important;
    line-height: 1.35 !important;
}

/* Live Stats block */
.fl-showcase-container.grid-mode-active .fl-showcase-card .showcase-stats {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    opacity: 1 !important;
    transform: none !important;
    margin: 0 0 6px 0 !important;
}

.fl-showcase-container.grid-mode-active .fl-showcase-card .showcase-stats .stat-item {
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    color: var(--business-text-muted) !important;
}

/* Play Roblox Button wrapper */
.fl-showcase-container.grid-mode-active .fl-showcase-card .showcase-play-btn {
    position: static !important;
    width: 100% !important;
    opacity: 1 !important;
    transform: none !important;
}

.fl-showcase-container.grid-mode-active .fl-showcase-card .showcase-play-btn .btn {
    padding: 0.35rem 0.8rem !important;
    font-size: 0.72rem !important;
    border-radius: 6px !important;
}

/* Adjustments for responsive sizes in grid mode */
@media (max-width: 1200px) {
    .fl-showcase-grid-toggle {
        right: 16px;
    }

    .fl-landing-main {
        padding: 0 2rem;
        gap: 2rem;
    }
}

/* Stack vertically when the window is too narrow for side-by-side */
@media (max-width: 1050px) {
    .fl-landing-main {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem 2rem 0;
        gap: 2.5rem;
        overflow: visible;
    }

    .fl-hero-content {
        max-width: 100%;
        text-align: center;
    }

    .fl-cta-grid {
        justify-content: center;
    }

    .fl-showcase-container {
        max-width: min(calc(460px * var(--showcase-hover-modifier, 1.5) + 20px), 100%);
        width: 100%;
    }
}

@media (max-width: 640px) {
    .fl-showcase-grid-toggle {
        right: 12px;
        width: 38px;
        height: 38px;
    }

    /* On mobile viewports, fallback to vertical stack card format to ensure visibility */
    .fl-showcase-container.grid-mode-active .fl-showcase-card {
        flex-direction: column !important;
    }

    .fl-showcase-container.grid-mode-active .fl-showcase-card .game-banner {
        width: 100% !important;
        height: 100px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    .fl-showcase-container.grid-mode-active .fl-showcase-card .game-content {
        width: 100% !important;
        height: 145px !important;
        padding: 8px 12px !important;
    }

    .fl-showcase-container.grid-mode-active .fl-showcase-card .showcase-title {
        font-size: 0.9rem !important;
    }

    .fl-showcase-container.grid-mode-active .fl-showcase-card .showcase-desc {
        -webkit-line-clamp: 1 !important;
        font-size: 0.7rem !important;
        margin-bottom: 4px !important;
    }

    .fl-showcase-container.grid-mode-active .fl-showcase-card .showcase-stats {
        margin-bottom: 4px !important;
    }

    .fl-showcase-container.grid-mode-active .fl-showcase-card .showcase-stats .stat-item {
        font-size: 0.65rem !important;
    }

    .fl-showcase-container.grid-mode-active .fl-showcase-card .showcase-play-btn .btn {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.65rem !important;
    }
}

/* ── Mobile Showcase: Horizontal Snap-Scroll Carousel ── */
.fl-showcase-mobile-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 0;
}

.fl-showcase-mobile-track {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    padding: 8px 16px 8px;
    /* Ensure first/last card can center */
    scroll-padding-inline: 16px;
}

.fl-showcase-mobile-track::-webkit-scrollbar {
    display: none;
}

.fl-showcase-mobile-card {
    flex: 0 0 82vw;
    max-width: 360px;
    scroll-snap-align: center;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(10, 20, 45, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.fl-showcase-mobile-card:active {
    transform: scale(0.98);
}

.fl-showcase-mobile-banner {
    position: relative;
    width: 100%;
    height: 175px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.fl-showcase-mobile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 20, 45, 0) 40%, rgba(10, 20, 45, 0.85) 100%);
}

.fl-showcase-mobile-icon {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.fl-showcase-mobile-content {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.fl-showcase-mobile-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.fl-showcase-mobile-desc {
    margin: 0;
    font-size: 0.78rem;
    color: var(--business-text-muted, rgba(180, 200, 240, 0.7));
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fl-showcase-mobile-stats {
    display: flex;
    gap: 14px;
    font-size: 0.75rem;
    color: var(--business-text-muted, rgba(180, 200, 240, 0.7));
}

.fl-showcase-mobile-stats strong {
    color: #fff;
}

.fl-showcase-mobile-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.fl-showcase-mobile-playbtn {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    border-radius: 8px;
    font-weight: 600;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.fl-showcase-mobile-playbtn:active {
    opacity: 0.85;
    transform: scale(0.97);
}

/* Dot indicators */
.fl-showcase-mobile-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.fl-showcase-mobile-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
}

.fl-showcase-mobile-dot.active {
    background: var(--business-accent, #60a5fa);
    width: 22px;
    border-radius: 4px;
    transform: none;
}

/* Hide the featured showcase section entirely on mobile */
@media (max-width: 768px) {
    .fl-showcase-container {
        display: none !important;
    }
}