/* no1jl CSS Stylesheet */
/* All classes use pg87- prefix for namespace isolation */

/* CSS Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    background-color: #1C2833;
    color: #C9C9FF;
    min-height: 100vh;
    overflow-x: hidden;
}

body.pg87-loading {
    opacity: 0;
}

body.pg87-loaded {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.4rem;
    background: linear-gradient(135deg, #FFB347, #FFFFBA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.0rem;
    color: #FFFFBA;
}

h3 {
    font-size: 1.8rem;
    color: #FFB347;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #FFB347;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #FFFFBA;
}

/* Layout & Container */
.pg87-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

.pg87-section {
    padding: 4rem 0;
}

.pg87-grid {
    display: grid;
    gap: 1.5rem;
}

/* Header */
.pg87-header {
    background: rgba(28, 40, 51, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(136, 14, 79, 0.3);
}

.pg87-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.pg87-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFBA;
    text-decoration: none;
}

.pg87-logo-icon {
    width: 3.2rem;
    height: 3.2rem;
    background: linear-gradient(135deg, #880E4F, #FFB347);
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    color: #FFFFBA;
}

.pg87-nav-buttons {
    display: flex;
    gap: 1rem;
}

.pg87-btn {
    padding: 0.8rem 1.6rem;
    border-radius: 2.4rem;
    font-weight: 600;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pg87-btn-primary {
    background: linear-gradient(135deg, #880E4F, #FFB347);
    color: #FFFFBA;
    box-shadow: 0 4px 12px rgba(136, 14, 79, 0.4);
}

.pg87-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(136, 14, 79, 0.6);
}

.pg87-btn-secondary {
    background: rgba(201, 201, 255, 0.1);
    color: #C9C9FF;
    border: 1px solid rgba(201, 201, 255, 0.3);
}

.pg87-btn-secondary:hover {
    background: rgba(201, 201, 255, 0.2);
    border-color: rgba(201, 201, 255, 0.5);
}

.pg87-menu-toggle {
    display: none;
    background: rgba(201, 201, 255, 0.1);
    border: 1px solid rgba(201, 201, 255, 0.3);
    border-radius: 0.8rem;
    padding: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pg87-menu-toggle:hover {
    background: rgba(201, 201, 255, 0.2);
}

/* Mobile Menu */
.pg87-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 40, 51, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pg87-overlay.pg87-active {
    opacity: 1;
    visibility: visible;
}

.pg87-mobile-menu {
    position: fixed;
    top: 0;
    right: -32rem;
    width: 30rem;
    height: 100vh;
    background: rgba(28, 40, 51, 0.98);
    backdrop-filter: blur(10px);
    z-index: 10000;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(136, 14, 79, 0.3);
}

.pg87-mobile-menu.pg87-active {
    right: 0;
}

.pg87-mobile-menu-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(201, 201, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pg87-mobile-menu-close {
    background: rgba(201, 201, 255, 0.1);
    border: none;
    border-radius: 0.6rem;
    padding: 0.6rem;
    cursor: pointer;
    color: #C9C9FF;
    transition: background 0.2s ease;
}

.pg87-mobile-menu-close:hover {
    background: rgba(201, 201, 255, 0.2);
}

.pg87-mobile-menu-nav {
    padding: 1.5rem 0;
}

.pg87-mobile-menu-link {
    display: block;
    padding: 1.2rem 1.5rem;
    color: #C9C9FF;
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 1.4rem;
}

.pg87-mobile-menu-link:hover {
    background: rgba(201, 201, 255, 0.1);
}

/* Main Content */
main {
    margin-top: 8rem;
    min-height: calc(100vh - 8rem);
}

/* Carousel */
.pg87-carousel {
    position: relative;
    height: 24rem;
    border-radius: 1.2rem;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(136, 14, 79, 0.4);
}

.pg87-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.pg87-slide.pg87-active {
    opacity: 1;
}

.pg87-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg87-carousel-nav {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.pg87-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pg87-dot.pg87-active {
    background: #FFB347;
    transform: scale(1.2);
}

/* Game Categories */
.pg87-game-category {
    margin-bottom: 3rem;
}

.pg87-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.pg87-category-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #FFFFBA;
}

.pg87-category-icon {
    width: 3.2rem;
    height: 3.2rem;
    background: linear-gradient(135deg, #880E4F, #FFB347);
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #FFFFBA;
}

.pg87-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pg87-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: rgba(201, 201, 255, 0.05);
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pg87-game-item:hover {
    background: rgba(201, 201, 255, 0.1);
    transform: translateY(-2px);
}

.pg87-game-icon {
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 0.6rem;
    object-fit: cover;
}

.pg87-game-name {
    font-size: 1rem;
    font-weight: 500;
    color: #C9C9FF;
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Feature Modules */
.pg87-feature-module {
    background: rgba(201, 201, 255, 0.05);
    border-radius: 1.2rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(201, 201, 255, 0.1);
}

.pg87-feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pg87-feature-icon {
    width: 4.8rem;
    height: 4.8rem;
    background: linear-gradient(135deg, #880E4F, #FFB347);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #FFFFBA;
}

.pg87-feature-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #FFFFBA;
}

/* Partners Section */
.pg87-partners {
    padding: 3rem 0;
}

.pg87-partners-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFBA;
    margin-bottom: 2rem;
}

.pg87-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    place-items: center;
}

.pg87-partner-item {
    width: 100%;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 201, 255, 0.05);
    border-radius: 0.8rem;
    padding: 1rem;
    transition: all 0.2s ease;
}

.pg87-partner-item:hover {
    background: rgba(201, 201, 255, 0.1);
    transform: translateY(-2px);
}

.pg87-partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.2s ease;
}

.pg87-partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Bottom Navigation */
.pg87-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(28, 40, 51, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(201, 201, 255, 0.2);
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(136, 14, 79, 0.3);
}

.pg87-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.8rem 0;
}

.pg87-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 6rem;
    min-height: 6rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #C9C9FF;
    position: relative;
}

.pg87-nav-item:hover {
    color: #FFB347;
}

.pg87-nav-item.pg87-active {
    color: #FFB347;
}

.pg87-nav-item.pg87-active::before {
    content: '';
    position: absolute;
    top: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.4rem;
    height: 0.4rem;
    background: #FFB347;
    border-radius: 50%;
}

.pg87-nav-icon {
    font-size: 2.4rem;
    transition: transform 0.2s ease;
}

.pg87-nav-item:hover .pg87-nav-icon {
    transform: translateY(-2px);
}

.pg87-nav-text {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Footer */
.pg87-footer {
    background: rgba(136, 14, 79, 0.2);
    padding: 3rem 0 8rem 0;
    margin-top: 4rem;
}

.pg87-footer-content {
    text-align: center;
}

.pg87-footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.pg87-footer-link {
    color: #C9C9FF;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.pg87-footer-link:hover {
    color: #FFB347;
}

.pg87-footer-copyright {
    color: rgba(201, 201, 255, 0.7);
    font-size: 1.1rem;
}

/* Utility Classes */
.pg87-text-center {
    text-align: center;
}

.pg87-mt-2 {
    margin-top: 2rem;
}

.pg87-mb-2 {
    margin-bottom: 2rem;
}

.pg87-highlight {
    color: #FFB347;
    font-weight: 600;
}

.pg87-gradient-text {
    background: linear-gradient(135deg, #FFB347, #FFFFBA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Notification */
.pg87-notification {
    position: fixed;
    top: 10rem;
    right: 1.5rem;
    background: rgba(136, 14, 79, 0.95);
    color: #FFFFBA;
    padding: 1.2rem 1.6rem;
    border-radius: 0.8rem;
    font-size: 1.3rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(136, 14, 79, 0.4);
    z-index: 10001;
    opacity: 0;
    transform: translateY(-2rem);
    transition: all 0.3s ease;
}

.pg87-notification.pg87-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pg87-nav-buttons {
        display: none;
    }

    .pg87-menu-toggle {
        display: block;
    }

    .pg87-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .pg87-game-icon {
        width: 4rem;
        height: 4rem;
    }

    .pg87-game-name {
        font-size: 0.9rem;
    }

    .pg87-partners-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }

    .pg87-partner-item {
        height: 4rem;
    }

    main {
        padding-bottom: 8rem;
    }
}

@media (min-width: 769px) {
    .pg87-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 0;
    }

    .pg87-footer {
        padding-bottom: 3rem;
    }
}

/* Loading Animation */
@keyframes pg87-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pg87-loading {
    animation: pg87-pulse 1.5s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 0.8rem;
}

::-webkit-scrollbar-track {
    background: rgba(201, 201, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #880E4F, #FFB347);
    border-radius: 0.4rem;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFB347, #880E4F);
}

/* Selection */
::selection {
    background: rgba(255, 179, 71, 0.3);
    color: #FFFFBA;
}