:root {
    --blue: #168cff;
    --blue-light: #38a7ff;
    --blue-dark: #0757b8;

    --background: #06070a;
    --sidebar: rgba(11, 14, 21, 0.96);
    --card: #0d0f17;
    --border: #1a2238;

    --text: #ffffff;
    --muted: #718096;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background: var(--background);
    color: var(--text);

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;

    overflow-x: hidden;
}

/* =========================================
   BACKGROUND
========================================= */

.animated-background {
    position: fixed;
    inset: 0;

    overflow: hidden;
    pointer-events: none;

    z-index: -1;
}

.glow {
    position: absolute;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    background: rgba(22, 140, 255, 0.07);

    filter: blur(90px);

    animation:
        floatingGlow 14s ease-in-out infinite alternate;
}

.glow-1 {
    top: -180px;
    left: 15%;
}

.glow-2 {
    right: -150px;
    bottom: -150px;

    animation-delay: -5s;
}

.glow-3 {
    top: 45%;
    left: 50%;

    animation-delay: -9s;
}

.particles span {
    position: absolute;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: var(--blue);

    box-shadow:
        0 0 10px rgba(22, 140, 255, 0.8);

    opacity: 0.35;

    animation:
        floatParticle linear infinite;
}

.particles span:nth-child(1) {
    left: 8%;
    animation-duration: 14s;
}

.particles span:nth-child(2) {
    left: 18%;
    animation-duration: 19s;
}

.particles span:nth-child(3) {
    left: 29%;
    animation-duration: 12s;
}

.particles span:nth-child(4) {
    left: 40%;
    animation-duration: 21s;
}

.particles span:nth-child(5) {
    left: 51%;
    animation-duration: 16s;
}

.particles span:nth-child(6) {
    left: 62%;
    animation-duration: 18s;
}

.particles span:nth-child(7) {
    left: 72%;
    animation-duration: 13s;
}

.particles span:nth-child(8) {
    left: 82%;
    animation-duration: 20s;
}

.particles span:nth-child(9) {
    left: 91%;
    animation-duration: 15s;
}

.particles span:nth-child(10) {
    left: 55%;
    animation-duration: 23s;
}

/* =========================================
   SIDEBAR
========================================= */

.sidebar {
    position: fixed;

    left: 0;
    top: 0;

    width: 245px;
    height: 100vh;

    padding: 25px 16px;

    background: var(--sidebar);

    border-right:
        1px solid var(--border);

    display: flex;
    flex-direction: column;

    z-index: 1000;

    backdrop-filter: blur(18px);
}

.logo {
    text-align: center;

    margin-bottom: 35px;
}

.logo h2 {
    margin: 0;

    color: var(--blue);

    font-size: 24px;
    font-weight: 900;

    letter-spacing: 3px;

    text-shadow:
        0 0 15px rgba(22, 140, 255, 0.4);
}

.logo span {
    display: block;

    margin-top: 4px;

    color: #56657a;

    font-size: 10px;
    letter-spacing: 2px;

    text-transform: uppercase;
}

.sidebar-title {
    margin:
        18px 12px 8px;

    color: #4d5b70;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;

    gap: 12px;

    width: 100%;

    padding: 12px 14px;
    margin: 4px 0;

    border: none;
    border-radius: 10px;

    background: transparent;

    color: #aeb9c9;

    text-decoration: none;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-item:hover {
    background:
        rgba(22, 140, 255, 0.10);

    color: white;

    transform:
        translateX(3px);
}

.nav-item.active {
    background:
        rgba(22, 140, 255, 0.16);

    color: var(--blue-light);

    box-shadow:
        inset 3px 0 0 var(--blue);
}

.nav-icon {
    width: 22px;
    min-width: 22px;

    text-align: center;

    font-size: 17px;
}

.sidebar-footer {
    margin-top: auto;

    padding: 14px;

    border-top:
        1px solid var(--border);

    color: #4f5d71;

    font-size: 11px;

    line-height: 1.5;
}

.sidebar-footer strong {
    color: #73849b;
}

/* =========================================
   SOUND CONTROL
========================================= */

.sound-control {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 12px;

    padding: 10px 12px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        rgba(255,255,255,0.02);

    color: #8997aa;

    font-size: 12px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.sound-control:hover {
    background:
        rgba(22,140,255,0.08);

    color: white;
}

#soundIcon {
    font-size: 16px;
}

/* =========================================
   MAIN
========================================= */

.main-content {
    margin-left: 245px;

    min-height: 100vh;
}

/* =========================================
   PAGES
========================================= */

.page {
    min-height: 100vh;

    padding: 55px;
}

.page-header {
    max-width: 1200px;

    margin:
        0 auto 35px;
}

.page-header h1 {
    margin: 0 0 8px;

    color: var(--blue-light);

    font-size: 40px;

    font-weight: 900;

    letter-spacing: 2px;
}

.page-header p {
    margin: 0;

    color: var(--muted);

    font-size: 15px;
}

/* =========================================
   HOME
========================================= */

.home-page {
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;
}

.home-wrapper {
    width: min(950px, 90%);

    animation:
        logoAppear 1.2s
        cubic-bezier(0.16, 1, 0.3, 1);
}

.home-logo {
    margin: 0;

    font-size:
        clamp(55px, 8vw, 105px);

    font-weight: 1000;

    letter-spacing: 10px;

    text-transform: uppercase;

    background:
        linear-gradient(
            135deg,
            #38a7ff,
            #168cff,
            #0757b8
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    filter:
        drop-shadow(
            0 0 25px
            rgba(22,140,255,0.35)
        );
}

.home-line {
    width: 100px;
    height: 2px;

    margin:
        25px auto;

    background: var(--blue);

    box-shadow:
        0 0 15px
        rgba(22,140,255,0.7);

    animation:
        linePulse 2.5s ease-in-out infinite;
}

.home-subtitle {
    color: #65758b;

    font-size: 14px;

    letter-spacing: 5px;

    text-transform: uppercase;
}

/* =========================================
   UPDATE LOG
========================================= */

.update-log {
    max-width: 650px;

    margin:
        45px auto 0;

    padding: 22px;

    text-align: left;

    background:
        rgba(13,15,23,0.82);

    border:
        1px solid var(--border);

    border-radius: 16px;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.35);

    backdrop-filter: blur(12px);
}

.update-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 15px;
}

.update-log-header h3 {
    margin: 0;

    color: white;

    font-size: 16px;
}

.version {
    color: var(--blue-light);

    font-size: 11px;
    font-weight: 700;

    padding:
        5px 8px;

    border-radius: 6px;

    background:
        rgba(22,140,255,0.12);
}

.update-log ul {
    margin: 0;
    padding-left: 20px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.8;
}

/* =========================================
   SEARCH
========================================= */

.search-container {
    max-width: 1200px;

    margin:
        0 auto 30px;
}

.search-box {
    width: 100%;

    padding:
        15px 18px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    outline: none;

    background:
        rgba(13,15,23,0.9);

    color: white;

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.search-box:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 20px
        rgba(22,140,255,0.12);
}

.search-box::placeholder {
    color: #56657a;
}

/* =========================================
   GAME GRID
========================================= */

.game-grid {
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(240px, 1fr)
        );

    gap: 25px;
}

.game-card {
    min-height: 190px;

    padding: 20px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    background:
        linear-gradient(
            145deg,
            rgba(20,25,38,0.95),
            rgba(10,12,18,0.95)
        );

    border:
        1px solid var(--border);

    border-radius: 18px;

    box-shadow:
        0 10px 35px
        rgba(0,0,0,0.45);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.game-card:hover {
    transform:
        translateY(-7px);

    border-color:
        var(--blue);

    box-shadow:
        0 15px 35px
        rgba(22,140,255,0.18);
}

.game-icon {
    font-size: 42px;

    margin-bottom: auto;
}

.game-card h3 {
    margin:
        0 0 6px;

    color: white;

    font-size: 19px;
}

.game-card p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}

.play-button {
    margin-top: 15px;

    padding: 10px 15px;

    border: none;

    border-radius: 8px;

    background: var(--blue);

    color: white;

    font-family: inherit;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.play-button:hover {
    background:
        var(--blue-light);

    transform:
        scale(1.03);
}

/* =========================================
   INFO BOX
========================================= */

.info-box {
    max-width: 850px;

    margin:
        50px auto;

    padding: 40px;

    background:
        rgba(13,15,23,0.82);

    border:
        1px solid var(--border);

    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 15px 45px
        rgba(0,0,0,0.45);

    backdrop-filter: blur(10px);
}

.info-box .big-icon {
    font-size: 55px;

    margin-bottom: 15px;
}

.info-box h2 {
    margin: 0 0 10px;

    color: var(--blue-light);
}

.info-box p {
    color: var(--muted);

    line-height: 1.7;
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes floatingGlow {
    0% {
        transform:
            translate(0,0)
            scale(1);
    }

    50% {
        transform:
            translate(80px,-60px)
            scale(1.15);
    }

    100% {
        transform:
            translate(-50px,50px)
            scale(0.95);
    }
}

@keyframes floatParticle {
    0% {
        top: 110vh;
        opacity: 0;
    }

    15% {
        opacity: 0.4;
    }

    85% {
        opacity: 0.4;
    }

    100% {
        top: -10vh;
        opacity: 0;
    }
}

@keyframes logoAppear {
    0% {
        opacity: 0;

        transform:
            scale(0.85);

        filter:
            blur(10px);
    }

    100% {
        opacity: 1;

        transform:
            scale(1);

        filter:
            blur(0);
    }
}

@keyframes linePulse {
    0%,100% {
        opacity: 0.4;

        transform:
            scaleX(0.7);
    }

    50% {
        opacity: 1;

        transform:
            scaleX(1);
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .sidebar {
        width: 70px;

        padding:
            20px 8px;
    }

    .logo h2 {
        font-size: 0;
    }

    .logo h2::after {
        content: "P";

        font-size: 24px;
    }

    .logo span,
    .sidebar-title,
    .nav-item span:not(.nav-icon),
    .sidebar-footer {
        display: none;
    }

    .nav-item {
        justify-content: center;

        padding:
            13px 5px;
    }

    .main-content {
        margin-left: 70px;
    }

    .page {
        padding:
            30px 20px;
    }

    .home-logo {
        font-size: 45px;

        letter-spacing: 5px;
    }

    .home-subtitle {
        font-size: 10px;

        letter-spacing: 3px;
    }
}
.favorite-btn {
    background: rgba(30, 40, 60, 0.8);
    border: 1px solid rgba(80, 140, 255, 0.35);
    color: #8ab4ff;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 19px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    background: rgba(60, 100, 180, 0.25);
    border-color: #6ea8ff;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(70, 130, 255, 0.35);
    transform: translateY(-2px);
}

.favorite-btn.active {
    background: rgba(70, 120, 255, 0.2);
    border-color: #6ea8ff;
    color: #6ea8ff;
    box-shadow: 0 0 14px rgba(70, 130, 255, 0.3);
}
/* =========================================
   PLAY PULSE FAVORITE BUTTON
   ========================================= */

.favorite-button {
    width: 46px;
    height: 46px;

    padding: 0;

    border: 1px solid rgba(0, 210, 255, 0.35);
    border-radius: 13px;

    background: rgba(0, 102, 255, 0.12);

    color: #6b7894;

    font-size: 21px;
    line-height: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}


/* Hover */

.favorite-button:hover {
    transform: translateY(-2px);

    border-color: #00d2ff;

    background: rgba(0, 210, 255, 0.16);

    color: #00d2ff;

    box-shadow:
        0 6px 20px rgba(0, 210, 255, 0.18);
}


/* Press animation */

.favorite-button:active {
    transform: scale(0.82);
}


/* Favorited state */

.favorite-button.favorited {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #00d2ff,
            #0066ff
        );

    border-color: #00d2ff;

    box-shadow:
        0 0 18px rgba(0, 210, 255, 0.35);
}


/* Favorited hover */

.favorite-button.favorited:hover {
    transform: translateY(-2px) scale(1.05);

    box-shadow:
        0 0 25px rgba(0, 210, 255, 0.5);
}


/* Heart pop animation */

@keyframes favoritePop {

    0% {
        transform: scale(0.8);
    }

    45% {
        transform: scale(1.25);
    }

    70% {
        transform: scale(0.92);
    }

    100% {
        transform: scale(1);
    }

}


/* Add animation when favorited */

.favorite-button.favorited {
    animation: favoritePop 0.35s ease;
}
/* PLAY PULSE FAVORITE BUTTON - FINAL */

.game-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button.favorite-button {
    width: 44px !important;
    height: 44px !important;

    min-width: 44px !important;
    max-width: 44px !important;

    padding: 0 !important;
    margin: 0 !important;

    border-radius: 12px !important;
    border: 1px solid #00d2ff !important;

    background: rgba(0, 102, 255, 0.15) !important;

    color: #00d2ff !important;

    font-size: 20px !important;
    line-height: 44px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease !important;
}


/* Hover */

button.favorite-button:hover {
    transform: translateY(-2px) scale(1.05) !important;

    background: rgba(0, 210, 255, 0.2) !important;

    color: white !important;

    box-shadow:
        0 0 18px rgba(0, 210, 255, 0.4) !important;
}


/* Click */

button.favorite-button:active {
    transform: scale(0.78) !important;
}


/* Favorited */

button.favorite-button.favorited {
    background: linear-gradient(
        135deg,
        #00d2ff,
        #0066ff
    ) !important;

    color: white !important;

    border-color: #00d2ff !important;

    box-shadow:
        0 0 22px rgba(0, 210, 255, 0.5) !important;

    animation: favoriteButtonPop 0.35s ease;
}


/* Pop animation */

@keyframes favoriteButtonPop {

    0% {
        transform: scale(0.75);
    }

    40% {
        transform: scale(1.25);
    }

    70% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }

}
/* =========================================
   FAVORITE BUTTON
   ========================================= */

.game-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}


button.favorite-button {
    width: 42px !important;
    height: 42px !important;

    min-width: 42px !important;
    max-width: 42px !important;

    padding: 0 !important;
    margin: 0 !important;

    border-radius: 11px !important;

    border: 1px solid rgba(0, 210, 255, 0.55) !important;

    background: rgba(0, 102, 255, 0.12) !important;

    color: #00d2ff !important;

    font-size: 21px !important;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    line-height: 1 !important;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


button.favorite-button:hover {
    transform: translateY(-2px) scale(1.05) !important;

    background: rgba(0, 210, 255, 0.16) !important;

    border-color: #00d2ff !important;

    box-shadow:
        0 0 16px rgba(0, 210, 255, 0.3) !important;
}


button.favorite-button:active {
    transform: scale(0.82) !important;
}


button.favorite-button.favorited {
    color: white !important;

    background:
        linear-gradient(
            135deg,
            #00d2ff,
            #0066ff
        ) !important;

    border-color: #00d2ff !important;

    box-shadow:
        0 0 18px rgba(0, 210, 255, 0.45) !important;
}


.favorite-pop {
    animation: favoriteButtonPop 0.35s ease;
}


@keyframes favoriteButtonPop {

    0% {
        transform: scale(0.78);
    }

    40% {
        transform: scale(1.18);
    }

    70% {
        transform: scale(0.94);
    }

    100% {
        transform: scale(1);
    }

}
/* =========================================
   FINAL FAVORITE BUTTON FIX
   ========================================= */

.game-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}


/* Remove any old text/pseudo-elements */

.favorite-button::before,
.favorite-button::after {
    content: none !important;
    display: none !important;
}


/* Small square */

button.favorite-button {
    width: 42px !important;
    height: 42px !important;

    min-width: 42px !important;
    max-width: 42px !important;

    min-height: 42px !important;
    max-height: 42px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 1px solid #00d2ff !important;
    border-radius: 11px !important;

    background: rgba(0, 102, 255, 0.12) !important;

    color: #00d2ff !important;

    font-size: 21px !important;
    font-weight: normal !important;

    line-height: 1 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;

    cursor: pointer !important;

    box-sizing: border-box !important;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease !important;
}


/* Hover */

button.favorite-button:hover {
    transform: translateY(-2px) scale(1.05) !important;

    background: rgba(0, 210, 255, 0.18) !important;

    box-shadow:
        0 0 18px rgba(0, 210, 255, 0.35) !important;
}


/* Click */

button.favorite-button:active {
    transform: scale(0.82) !important;
}


/* Favorited */

button.favorite-button.favorited {
    background: linear-gradient(
        135deg,
        #00d2ff,
        #0066ff
    ) !important;

    color: white !important;

    border-color: #00d2ff !important;

    box-shadow:
        0 0 20px rgba(0, 210, 255, 0.45) !important;
}


/* Heart animation */

button.favorite-button.favorite-pop {
    animation: favoritePop 0.35s ease !important;
}


@keyframes favoritePop {

    0% {
        transform: scale(0.75);
    }

    40% {
        transform: scale(1.2);
    }

    70% {
        transform: scale(0.94);
    }

    100% {
        transform: scale(1);
    }

}
/* =========================================
   GAME ACTION BUTTON LAYOUT FIX
   ========================================= */

.game-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin-top: 18px !important;
}


/* Restore Play button */

.game-actions .play-button {
    width: auto !important;
    min-width: 68px !important;
    height: 42px !important;

    padding: 0 18px !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;

    box-sizing: border-box !important;
}


/* Keep Favorite perfectly aligned */

.game-actions .favorite-button {
    width: 42px !important;
    height: 42px !important;

    min-width: 42px !important;
    max-width: 42px !important;

    margin: 0 !important;
    padding: 0 !important;

    flex: 0 0 42px !important;

    align-self: center !important;

    transform: none;
}


/* Favorite hover */

.game-actions .favorite-button:hover {
    transform: translateY(-2px) scale(1.05) !important;
}


/* Favorite click */

.game-actions .favorite-button:active {
    transform: scale(0.82) !important;
}
/* =========================================
   ABOUT PAGE - DECORATIVE BUBBLES
   ========================================= */

.about-page {
    position: relative;
    z-index: 1;
}

.about-page::before,
.about-page::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(2px);
}

/* Large bubble */
.about-page::before {
    width: 260px;
    height: 260px;
    top: 80px;
    right: -90px;
    background: rgba(45, 120, 255, 0.08);
    box-shadow:
        0 0 70px rgba(45, 120, 255, 0.16),
        inset 0 0 35px rgba(80, 150, 255, 0.08);
    animation: aboutBubbleFloat 7s ease-in-out infinite;
}

/* Smaller bubble */
.about-page::after {
    width: 150px;
    height: 150px;
    bottom: 60px;
    left: -55px;
    background: rgba(60, 140, 255, 0.07);
    box-shadow:
        0 0 55px rgba(60, 140, 255, 0.14),
        inset 0 0 25px rgba(100, 170, 255, 0.07);
    animation: aboutBubbleFloatReverse 9s ease-in-out infinite;
}


@keyframes aboutBubbleFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-18px);
    }

}


@keyframes aboutBubbleFloatReverse {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(15px);
    }

}
.about-bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.about-bubbles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgba(70, 145, 255, 0.06);
    border: 1px solid rgba(100, 170, 255, 0.08);
    box-shadow: 0 0 35px rgba(60, 130, 255, 0.10);
    animation: aboutSmallBubble 8s ease-in-out infinite;
}

.about-bubbles span:nth-child(1) {
    width: 55px;
    height: 55px;
    top: 18%;
    left: 20%;
}

.about-bubbles span:nth-child(2) {
    width: 90px;
    height: 90px;
    top: 62%;
    right: 15%;
    animation-delay: -2s;
}

.about-bubbles span:nth-child(3) {
    width: 35px;
    height: 35px;
    top: 35%;
    right: 28%;
    animation-delay: -4s;
}

.about-bubbles span:nth-child(4) {
    width: 70px;
    height: 70px;
    bottom: 10%;
    left: 38%;
    animation-delay: -6s;
}

@keyframes aboutSmallBubble {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-14px) scale(1.04);
        opacity: 1;
    }

}
/* =========================================
   ABOUT PAGE BUBBLES
   ========================================= */

.about-bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.about-bubbles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgba(70, 145, 255, 0.06);
    border: 1px solid rgba(100, 170, 255, 0.08);
    box-shadow: 0 0 35px rgba(60, 130, 255, 0.10);
    animation: aboutSmallBubble 8s ease-in-out infinite;
}

.about-bubbles span:nth-child(1) {
    width: 55px;
    height: 55px;
    top: 18%;
    left: 20%;
}

.about-bubbles span:nth-child(2) {
    width: 90px;
    height: 90px;
    top: 62%;
    right: 15%;
    animation-delay: -2s;
}

.about-bubbles span:nth-child(3) {
    width: 35px;
    height: 35px;
    top: 35%;
    right: 28%;
    animation-delay: -4s;
}

.about-bubbles span:nth-child(4) {
    width: 70px;
    height: 70px;
    bottom: 10%;
    left: 38%;
    animation-delay: -6s;
}

@keyframes aboutSmallBubble {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-14px) scale(1.04);
        opacity: 1;
    }

}
/* =========================================
   PLAY PULSE SETTINGS
   ========================================= */

.settings-page {
    position: relative;
    z-index: 1;
}

.settings-section {
    position: relative;
    padding: 24px;
    margin-bottom: 20px;

    background: rgba(15, 25, 45, 0.72);
    border: 1px solid rgba(90, 140, 220, 0.16);
    border-radius: 18px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
}

.settings-section-title {
    margin-bottom: 18px;

    font-size: 15px;
    font-weight: 700;

    color: #8ebaff;
    letter-spacing: 0.4px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
    padding: 18px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.setting-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.setting-info {
    flex: 1;
}

.setting-info h3 {
    margin: 0 0 6px;

    font-size: 16px;
    color: #ffffff;
}

.setting-info p {
    margin: 0;

    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
}


/* =========================================
   THEME SELECT
   ========================================= */

.setting-select {
    min-width: 155px;

    padding: 10px 38px 10px 14px;

    color: #ffffff;
    background: rgba(20, 35, 60, 0.9);

    border: 1px solid rgba(90, 150, 255, 0.25);
    border-radius: 10px;

    outline: none;
    cursor: pointer;
}

.setting-select:focus {
    border-color: rgba(80, 150, 255, 0.65);
}


/* =========================================
   TOGGLE SWITCH
   ========================================= */

.toggle {
    position: relative;

    display: inline-block;

    width: 52px;
    height: 30px;

    flex-shrink: 0;
}

.toggle input {
    position: absolute;

    width: 0;
    height: 0;

    opacity: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;

    cursor: pointer;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 30px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.toggle-slider::before {
    content: "";

    position: absolute;

    width: 22px;
    height: 22px;

    left: 3px;
    top: 3px;

    background: #ffffff;

    border-radius: 50%;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);

    transition: transform 0.2s ease;
}

.toggle input:checked + .toggle-slider {
    background: #287cff;
    border-color: #4b91ff;

    box-shadow:
        0 0 14px rgba(40, 124, 255, 0.35);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(22px);
}


/* =========================================
   ACCOUNT
   ========================================= */

.account-box {
    padding: 16px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.account-name {
    margin-bottom: 5px;

    font-size: 15px;
    font-weight: 700;

    color: #ffffff;
}

.account-status {
    font-size: 12px;

    color: #72d69a;
}


/* =========================================
   SETTINGS FOOTER
   ========================================= */

.settings-footer {
    padding: 20px 0 10px;

    text-align: center;

    font-size: 12px;

    color: rgba(255, 255, 255, 0.35);
}
/* =========================================
   ABOUT PAGE CARDS
   ========================================= */

.about-card {
    position: relative;

    padding: 24px;
    margin-bottom: 20px;

    background: rgba(15, 25, 45, 0.72);

    border: 1px solid rgba(90, 140, 220, 0.16);
    border-radius: 18px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Slight hover effect */

.about-card:hover {
    transform: translateY(-2px);

    border-color:
        rgba(80, 150, 255, 0.28);

    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.22),
        0 0 20px rgba(50, 120, 255, 0.05);
}


/* Card headings */

.about-card h2 {
    margin-top: 0;
    margin-bottom: 12px;

    color: #ffffff;

    font-size: 19px;
}


/* Card text */

.about-card p {
    margin: 0;

    color: rgba(255, 255, 255, 0.65);

    line-height: 1.7;
}


/* Feature list */

.about-card .feature-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.about-card .feature-list li {
    padding: 11px 0;

    color: rgba(255, 255, 255, 0.7);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.05);
}

.about-card .feature-list li:last-child {
    border-bottom: none;
}


/* Version badge */

.version-box {
    display: inline-block;

    margin-top: 18px;
    padding: 8px 14px;

    color: #ffffff;

    background: rgba(40, 124, 255, 0.14);

    border: 1px solid rgba(70, 145, 255, 0.25);

    border-radius: 10px;

    font-size: 13px;
    font-weight: 600;
}


/* About footer */

.about-footer {
    padding: 10px 0 20px;

    text-align: center;

    color: rgba(255, 255, 255, 0.35);

    font-size: 12px;
}
/* =========================================
   ABOUT PAGE - FINAL CARD LAYER
   ========================================= */

.about-page {
    position: relative;
    z-index: 1;
}

.about-card {
    position: relative;
    z-index: 2;
}
/* =========================================
   HOME - GET STARTED
   ========================================= */

.home-wrapper {
    width: min(900px, 92%);
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding-top: 70px;
}


/* Get Started heading */

.home-start-section {
    width: 100%;
    margin-top: 42px;
}

.home-start-section h2 {
    margin: 0 0 18px;

    text-align: left;

    color: #ffffff;

    font-size: 22px;
    font-weight: 700;
}


/* Games / Popular buttons */

.home-start-buttons {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}


.home-start-button {
    min-height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    padding: 20px 24px;

    text-decoration: none;

    color: #ffffff;

    background: rgba(15, 25, 45, 0.72);

    border: 1px solid rgba(90, 140, 220, 0.16);

    border-radius: 18px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.home-start-button:hover {
    transform: translateY(-3px);

    border-color:
        rgba(80, 150, 255, 0.35);

    background:
        rgba(20, 35, 60, 0.82);

    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.24),
        0 0 25px rgba(50, 120, 255, 0.07);
}


.home-start-icon {
    font-size: 28px;
}


.home-start-content {
    display: flex;
    align-items: center;
}


.home-start-content strong {
    font-size: 18px;
    font-weight: 700;
}


/* =========================================
   HOME - UPDATE LOG BUTTON
   ========================================= */

.home-update-button {
    width: 100%;

    margin-top: 22px;

    padding: 19px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    cursor: pointer;

    color: #ffffff;

    background: rgba(15, 25, 45, 0.72);

    border: 1px solid rgba(90, 140, 220, 0.16);

    border-radius: 16px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.18);

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.home-update-button:hover {
    transform: translateY(-2px);

    border-color:
        rgba(80, 150, 255, 0.35);

    background:
        rgba(20, 35, 60, 0.82);

    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.22),
        0 0 20px rgba(50, 120, 255, 0.06);
}


.home-update-left {
    display: flex;
    align-items: center;

    gap: 12px;
}


.home-update-icon {
    font-size: 20px;
}


.home-update-arrow {
    font-size: 24px;

    opacity: 0.65;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.home-update-button:hover .home-update-arrow {
    transform: translateX(5px);

    opacity: 1;
}


/* =========================================
   UPDATE LOG MODAL
   ========================================= */

.update-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


.update-modal.open {
    visibility: visible;
    opacity: 1;
}


.update-modal-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(3, 8, 18, 0.72);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}


/* Modal panel */

.update-modal-panel {
    position: relative;

    width: min(760px, 100%);
    max-height: 82vh;

    overflow-y: auto;

    padding: 30px;

    background:
        rgba(15, 25, 45, 0.92);

    border:
        1px solid rgba(100, 150, 230, 0.22);

    border-radius: 22px;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.45);

    transform:
        translateY(20px) scale(0.97);

    transition:
        transform 0.3s ease;
}


.update-modal.open .update-modal-panel {
    transform:
        translateY(0) scale(1);
}


/* =========================================
   MODAL CLOSE BUTTON
   ========================================= */

.update-modal-close {
    position: absolute;

    top: 18px;
    right: 18px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.06);

    color: #ffffff;

    cursor: pointer;

    font-size: 27px;

    transition:
        transform 0.25s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


.update-modal-close span {
    display: block;

    line-height: 1;

    transition:
        transform 0.3s ease;
}


.update-modal-close:hover {
    transform: scale(1.08);

    background:
        rgba(255, 255, 255, 0.11);

    border-color:
        rgba(100, 160, 255, 0.3);
}


.update-modal-close:hover span {
    transform: rotate(90deg);
}


/* =========================================
   MODAL HEADER
   ========================================= */

.update-modal-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding-right: 50px;

    margin-bottom: 28px;
}


.update-modal-label {
    font-size: 11px;

    letter-spacing: 2px;

    color:
        rgba(120, 175, 255, 0.75);
}


.update-modal-header h2 {
    margin: 6px 0 6px;

    color: #ffffff;

    font-size: 30px;
}


.update-modal-header p {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.55);
}


.update-modal-version {
    padding: 7px 11px;

    border-radius: 9px;

    background:
        rgba(60, 130, 255, 0.12);

    border:
        1px solid rgba(80, 150, 255, 0.2);

    color: #ffffff;

    font-size: 12px;
    font-weight: 600;
}


/* =========================================
   UPDATE ENTRY
   ========================================= */

.update-entry {
    padding: 22px;

    background:
        rgba(255, 255, 255, 0.035);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 16px;
}


.update-entry-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 15px;
}


.update-entry-header h3 {
    margin: 0;

    color: #ffffff;

    font-size: 18px;
}


.update-entry-header span {
    padding: 5px 9px;

    border-radius: 7px;

    background:
        rgba(70, 150, 255, 0.1);

    color:
        rgba(150, 200, 255, 0.8);

    font-size: 11px;
}


.update-entry ul {
    margin: 0;

    padding-left: 20px;
}


.update-entry li {
    margin: 9px 0;

    color:
        rgba(255, 255, 255, 0.67);

    line-height: 1.5;
}


/* =========================================
   MODAL FOOTER
   ========================================= */

.update-modal-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 22px;

    color:
        rgba(255, 255, 255, 0.35);

    font-size: 12px;
}


.update-modal-footer strong {
    color:
        rgba(255, 255, 255, 0.5);

    letter-spacing: 1px;
}


/* Prevent page scrolling while modal is open */

body.modal-open {
    overflow: hidden;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    .home-wrapper {
        padding-top: 40px;
    }


    .home-start-buttons {
        grid-template-columns: 1fr;
    }


    .home-start-button {
        min-height: 80px;
    }


    .update-modal {
        padding: 15px;
    }


    .update-modal-panel {
        padding: 24px 20px;
    }


    .update-modal-header {
        flex-direction: column;
    }


    .update-modal-version {
        align-self: flex-start;
    }

}
/* =========================================
   PLAY PULSE HOME - FINAL OVERRIDE
   ========================================= */

.home-page {
    min-height: 100vh;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    text-align: center;
}


.home-wrapper {
    width: min(900px, 92%);
    margin: 0 auto;

    padding-top: 90px;
    padding-bottom: 60px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Get Started */

.home-start-section {
    width: 100%;
    margin-top: 45px;
}


.home-start-section h2 {
    margin: 0 0 18px;

    text-align: left;

    color: #ffffff;

    font-size: 22px;
    font-weight: 700;
}


/* Games + Popular */

.home-start-buttons {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}


.home-start-button {
    min-height: 92px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 20px;

    text-decoration: none;

    color: #ffffff;

    background:
        rgba(15, 25, 45, 0.72);

    border:
        1px solid rgba(90, 140, 220, 0.16);

    border-radius: 18px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.home-start-button:hover {
    transform: translateY(-4px);

    background:
        rgba(20, 35, 60, 0.84);

    border-color:
        rgba(80, 150, 255, 0.38);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.24),
        0 0 25px rgba(50, 120, 255, 0.08);
}


.home-start-icon {
    font-size: 27px;
}


.home-start-content {
    display: block;
}


.home-start-content strong {
    display: block;

    font-size: 18px;
    font-weight: 700;
}


/* =========================================
   UPDATE LOG BUTTON
   ========================================= */

.home-update-button {
    width: 100%;

    margin-top: 22px;

    min-height: 62px;

    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    cursor: pointer;

    color: #ffffff;

    background:
        rgba(15, 25, 45, 0.72);

    border:
        1px solid rgba(90, 140, 220, 0.16);

    border-radius: 16px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.18);

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.home-update-button:hover {
    transform: translateY(-3px);

    background:
        rgba(20, 35, 60, 0.84);

    border-color:
        rgba(80, 150, 255, 0.38);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.22),
        0 0 22px rgba(50, 120, 255, 0.07);
}


.home-update-left {
    display: flex;
    align-items: center;

    gap: 12px;
}


.home-update-icon {
    font-size: 20px;
}


.home-update-arrow {
    font-size: 24px;

    opacity: 0.65;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.home-update-button:hover .home-update-arrow {
    transform: translateX(6px);

    opacity: 1;
}


/* =========================================
   MOBILE HOME
   ========================================= */

@media (max-width: 700px) {

    .home-wrapper {
        width: 92%;

        padding-top: 50px;
    }

    .home-start-buttons {
        grid-template-columns: 1fr;
    }

    .home-start-button {
        min-height: 78px;
    }

}
/* =========================================
   PLAY PULSE HOME - COMPACT FINAL DESIGN
   ========================================= */

.home-page {
    min-height: 100vh;

    display: flex;
    align-items: flex-start;
    justify-content: center;
}


.home-wrapper {
    width: min(760px, 90%);

    margin: 0 auto;

    padding-top: 80px;
    padding-bottom: 50px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =========================================
   GET STARTED
   ========================================= */

.home-start-section {
    width: 100%;

    margin-top: 38px;

    text-align: center;
}


.home-start-section h2 {
    margin: 0 0 18px;

    color: #4da3ff;

    font-size: 24px;
    font-weight: 700;

    text-align: center;

    text-shadow:
        0 0 18px rgba(77, 163, 255, 0.25);
}


/* =========================================
   GAMES + POPULAR
   ========================================= */

.home-start-buttons {
    width: 100%;

    display: flex;
    justify-content: center;

    gap: 14px;
}


.home-start-button {
    width: 220px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 0 18px;

    box-sizing: border-box;

    text-decoration: none;

    color: #ffffff;

    background:
        rgba(15, 25, 45, 0.72);

    border:
        1px solid rgba(77, 163, 255, 0.22);

    border-radius: 14px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.16);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.home-start-button:hover {
    transform: translateY(-3px);

    background:
        rgba(25, 50, 85, 0.82);

    border-color:
        rgba(77, 163, 255, 0.5);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(77, 163, 255, 0.08);
}


.home-start-icon {
    font-size: 22px;
}


.home-start-content {
    display: flex;
    align-items: center;
}


.home-start-content strong {
    font-size: 16px;
    font-weight: 700;
}


/* =========================================
   UPDATE LOG
   ========================================= */

.home-update-button {
    width: 100%;

    height: 56px;

    margin-top: 18px;

    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    cursor: pointer;

    color: #ffffff;

    background:
        rgba(15, 25, 45, 0.72);

    border:
        1px solid rgba(77, 163, 255, 0.18);

    border-radius: 14px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.16);

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.home-update-button:hover {
    transform: translateY(-2px);

    background:
        rgba(25, 50, 85, 0.82);

    border-color:
        rgba(77, 163, 255, 0.42);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.2);
}


.home-update-left {
    display: flex;
    align-items: center;

    gap: 10px;
}


.home-update-icon {
    font-size: 18px;
}


.home-update-arrow {
    font-size: 21px;

    opacity: 0.65;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.home-update-button:hover .home-update-arrow {
    transform: translateX(5px);

    opacity: 1;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .home-start-buttons {
        flex-direction: column;
        align-items: center;
    }

    .home-start-button {
        width: min(300px, 100%);
    }

}
/* =========================================
   PLAY PULSE HOME — FINAL VISUAL OVERRIDE
   ========================================= */

.home-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.home-wrapper {
    width: min(720px, 90%);
    padding-top: 75px;
}


/* GET STARTED */

.home-start-section {
    width: 100%;
    margin-top: 42px;
    text-align: center;
}

.home-start-section h2 {
    margin: 0 0 18px;

    color: #4da3ff;

    font-size: 22px;
    font-weight: 700;

    text-align: center;

    text-shadow:
        0 0 14px rgba(77, 163, 255, 0.25);
}


/* BUTTON ROW */

.home-start-buttons {
    width: 100%;

    display: flex;
    justify-content: center;

    gap: 14px;
}


/* GAMES / POPULAR */

.home-start-button {
    width: 190px;
    height: 58px;

    flex: 0 0 190px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 0;

    box-sizing: border-box;

    background:
        rgba(15, 35, 65, 0.72);

    border:
        1px solid rgba(77, 163, 255, 0.28);

    border-radius: 13px;

    color: #ffffff;

    text-decoration: none;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 7px 22px rgba(0, 0, 0, 0.16);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.home-start-button:hover {
    transform: translateY(-3px);

    background:
        rgba(25, 65, 110, 0.82);

    border-color:
        rgba(77, 163, 255, 0.55);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.2),
        0 0 18px rgba(77, 163, 255, 0.1);
}


.home-start-icon {
    font-size: 20px;
}


.home-start-content {
    display: flex;
    align-items: center;
}


.home-start-content strong {
    font-size: 15px;
    font-weight: 700;
}


/* UPDATE LOG */

.home-update-button {
    width: 100%;
    height: 52px;

    margin-top: 18px;

    padding: 0 18px;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background:
        rgba(15, 35, 65, 0.72);

    border:
        1px solid rgba(77, 163, 255, 0.22);

    border-radius: 13px;

    color: #ffffff;

    cursor: pointer;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 7px 22px rgba(0, 0, 0, 0.16);

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.home-update-button:hover {
    transform: translateY(-2px);

    background:
        rgba(25, 65, 110, 0.82);

    border-color:
        rgba(77, 163, 255, 0.5);
}


.home-update-left {
    display: flex;
    align-items: center;
    gap: 9px;
}


.home-update-icon {
    font-size: 17px;
}


.home-update-arrow {
    font-size: 20px;
    opacity: 0.65;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.home-update-button:hover .home-update-arrow {
    transform: translateX(5px);
    opacity: 1;
}


/* MOBILE */

@media (max-width: 600px) {

    .home-start-buttons {
        flex-direction: column;
        align-items: center;
    }

    .home-start-button {
        width: 220px;
        flex-basis: 58px;
    }

}
/* =========================================
   PLAY PULSE GAME SEARCH
   ========================================= */

.game-search {
    position: relative;

    width: min(700px, 100%);

    margin: 0 auto 30px;

    display: flex;
    align-items: center;
}


.game-search-icon {
    position: absolute;

    left: 18px;

    font-size: 17px;

    opacity: 0.65;

    pointer-events: none;
}


.game-search input {
    width: 100%;
    height: 52px;

    box-sizing: border-box;

    padding:
        0 48px 0 48px;

    border:
        1px solid rgba(77, 163, 255, 0.2);

    border-radius: 14px;

    outline: none;

    background:
        rgba(15, 35, 65, 0.72);

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.14);

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.game-search input::placeholder {
    color:
        rgba(255, 255, 255, 0.45);
}


.game-search input:focus {
    border-color:
        rgba(77, 163, 255, 0.55);

    background:
        rgba(20, 45, 80, 0.8);

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.18),
        0 0 20px rgba(77, 163, 255, 0.08);
}


.game-search-clear {
    position: absolute;

    right: 12px;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.07);

    color: #ffffff;

    cursor: pointer;

    font-size: 20px;
    line-height: 1;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.game-search-clear:hover {
    background:
        rgba(255, 255, 255, 0.14);

    transform: scale(1.08);
}


/* =========================================
   NO SEARCH RESULTS
   ========================================= */

.no-games-found {
    width: min(500px, 90%);

    margin: 45px auto;

    padding: 35px 25px;

    box-sizing: border-box;

    text-align: center;

    background:
        rgba(15, 35, 65, 0.62);

    border:
        1px solid rgba(77, 163, 255, 0.16);

    border-radius: 18px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.no-games-icon {
    margin-bottom: 10px;

    font-size: 30px;

    opacity: 0.7;
}


.no-games-found h2 {
    margin: 0 0 7px;

    color: #ffffff;

    font-size: 19px;
}


.no-games-found p {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.5);

    font-size: 13px;
}


/* =========================================
   SEARCH RESPONSIVE
   ========================================= */

@media (max-width: 600px) {

    .game-search {
        width: 100%;

        margin-bottom: 24px;
    }

}
/* =========================================
   PLAY PULSE — SEARCH BAR FINAL DESIGN
   ========================================= */

.game-search {
    position: relative;

    width: min(620px, 90%);

    margin: 28px auto 42px;

    display: flex;
    align-items: center;
}


.game-search-icon {
    position: absolute;

    left: 17px;

    font-size: 15px;

    opacity: 0.55;

    pointer-events: none;

    z-index: 2;
}


.game-search input {
    width: 100%;
    height: 46px;

    box-sizing: border-box;

    padding: 0 44px 0 44px;

    outline: none;

    border: 1px solid rgba(77, 163, 255, 0.20);

    border-radius: 13px;

    background:
        rgba(15, 35, 65, 0.58);

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.14);

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.game-search input::placeholder {
    color:
        rgba(255, 255, 255, 0.42);
}


.game-search input:focus {
    border-color:
        rgba(77, 163, 255, 0.48);

    background:
        rgba(18, 43, 75, 0.70);

    box-shadow:
        0 7px 25px rgba(0, 0, 0, 0.17),
        0 0 18px rgba(77, 163, 255, 0.07);
}


.game-search-clear {
    position: absolute;

    right: 10px;

    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.06);

    color:
        rgba(255, 255, 255, 0.75);

    cursor: pointer;

    font-size: 18px;
    line-height: 1;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.game-search-clear:hover {
    background:
        rgba(77, 163, 255, 0.18);

    transform: scale(1.08);
}


/* Extra breathing room before the game cards */

.game-grid {
    margin-top: 8px;
}


/* No-results card */

.no-games-found {
    width: min(460px, 90%);

    margin: 30px auto;

    padding: 28px 22px;

    text-align: center;

    background:
        rgba(15, 35, 65, 0.58);

    border:
        1px solid rgba(77, 163, 255, 0.15);

    border-radius: 16px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.no-games-icon {
    font-size: 27px;

    margin-bottom: 8px;

    opacity: 0.65;
}


.no-games-found h2 {
    margin: 0 0 6px;

    font-size: 18px;

    color: #ffffff;
}


.no-games-found p {
    margin: 0;

    font-size: 13px;

    color:
        rgba(255, 255, 255, 0.48);
}
/* =========================================
   PLAY PULSE — GAME SEARCH
   ========================================= */

.game-search {
    position: relative;

    width: min(620px, 90%);

    /* Move it toward the left side */
    margin: 28px 0 42px 0;

    display: flex;
    align-items: center;
}


/* MAGNIFYING GLASS */

.game-search-icon {
    position: absolute;

    left: 16px;

    top: 50%;

    transform: translateY(-50%);

    font-size: 17px;

    opacity: 0.65;

    pointer-events: none;

    z-index: 2;
}


/* INPUT */

.game-search input {
    width: 100%;
    height: 46px;

    box-sizing: border-box;

    padding: 0 44px 0 46px;

    outline: none;

    border:
        1px solid rgba(77, 163, 255, 0.20);

    border-radius: 13px;

    background:
        rgba(15, 35, 65, 0.58);

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.14);

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.game-search input::placeholder {
    color:
        rgba(255, 255, 255, 0.42);
}


.game-search input:focus {
    border-color:
        rgba(77, 163, 255, 0.48);

    background:
        rgba(18, 43, 75, 0.70);

    box-shadow:
        0 7px 25px rgba(0, 0, 0, 0.17),
        0 0 18px rgba(77, 163, 255, 0.07);
}


/* CLEAR BUTTON */

.game-search-clear {
    position: absolute;

    right: 10px;

    top: 50%;

    transform: translateY(-50%);

    width: 27px;
    height: 27px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.06);

    color:
        rgba(255, 255, 255, 0.75);

    cursor: pointer;

    font-size: 18px;

    line-height: 1;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


/* Only visible when JavaScript removes [hidden] */

.game-search-clear[hidden] {
    display: none;
}


.game-search-clear:hover {
    background:
        rgba(77, 163, 255, 0.18);

    transform:
        translateY(-50%) scale(1.08);
}
/* =========================================
   PLAY PULSE — FINAL GAMES SEARCH DESIGN
   ========================================= */

.game-search {
    position: relative;

    width: min(620px, 100%);

    /* LEFT ALIGNED */
    margin: 28px 0 44px 0;

    display: flex;
    align-items: center;
}


/* MAGNIFYING GLASS */

.game-search-icon {
    position: absolute;

    left: 16px;
    top: 50%;

    transform: translateY(-50%);

    width: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;

    opacity: 0.65;

    pointer-events: none;

    z-index: 3;
}


/* SEARCH FIELD */

.game-search input {
    width: 100%;
    height: 46px;

    box-sizing: border-box;

    padding: 0 46px 0 45px;

    border: 1px solid rgba(77, 163, 255, 0.22);

    border-radius: 13px;

    outline: none;

    background: rgba(15, 35, 65, 0.60);

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 7px 22px rgba(0, 0, 0, 0.14);

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.game-search input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}


.game-search input:focus {
    border-color: rgba(77, 163, 255, 0.55);

    background: rgba(18, 43, 75, 0.72);

    box-shadow:
        0 7px 25px rgba(0, 0, 0, 0.17),
        0 0 18px rgba(77, 163, 255, 0.08);
}


/* =========================================
   CLEAR BUTTON
   ========================================= */

.game-search-clear {
    position: absolute;

    right: 10px;
    top: 50%;

    width: 27px;
    height: 27px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);

    color: rgba(255, 255, 255, 0.75);

    cursor: pointer;

    font-family: inherit;
    font-size: 18px;
    line-height: 1;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


/* FORCE X TO BE COMPLETELY HIDDEN */

.game-search-clear[hidden] {
    display: none !important;
}


.game-search-clear:hover {
    background: rgba(77, 163, 255, 0.18);

    transform:
        translateY(-50%) scale(1.08);
}


/* =========================================
   GAME GRID SPACING
   ========================================= */

.game-grid {
    margin-top: 0;
}


/* =========================================
   NO RESULTS
   ========================================= */

.no-games-found {
    width: min(460px, 90%);

    margin: 42px auto;

    padding: 30px 24px;

    box-sizing: border-box;

    text-align: center;

    background: rgba(15, 35, 65, 0.58);

    border:
        1px solid rgba(77, 163, 255, 0.16);

    border-radius: 17px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12);
}


.no-games-found[hidden] {
    display: none !important;
}


.no-games-icon {
    margin-bottom: 9px;

    font-size: 28px;

    opacity: 0.65;
}


.no-games-found h2 {
    margin: 0 0 7px;

    color: #ffffff;

    font-size: 18px;
}


.no-games-found p {
    margin: 0;

    color: rgba(255, 255, 255, 0.48);

    font-size: 13px;
}
/* =========================================
   SEARCH — HIDDEN CARD FIX
   ========================================= */

/* JavaScript uses the hidden attribute.
   This makes sure existing game-card CSS
   cannot override it. */

.game-card[hidden] {
    display: none !important;
}


/* Same protection for the no-results message */

.no-games-found[hidden] {
    display: none !important;
}
/* =========================================
   PLAY PULSE GAME CARD IMAGES
   ========================================= */

.game-card {
    position: relative;
    overflow: hidden;
}

/* Game image layer */
.game-card-image {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 145px;

    object-fit: cover;

    opacity: 0.48;

    z-index: 0;

    transition:
        opacity 0.3s ease,
        transform 0.35s ease;
}

/* Fade the image into the card */
.game-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 180px;

    background: linear-gradient(
        to bottom,
        rgba(10, 20, 40, 0.05),
        rgba(10, 20, 40, 0.55),
        rgba(10, 20, 40, 1)
    );

    z-index: 1;

    pointer-events: none;
}

/* Keep the actual card content above the image */
.game-card > * {
    position: relative;
    z-index: 2;
}

/* Remove the old emoji icon space */
.game-card .game-icon {
    position: relative;
    z-index: 2;

    min-height: 115px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0;
}

/* Slight hover effect */
.game-card:hover .game-card-image {
    opacity: 0.58;
    transform: scale(1.04);
}
