:root {
    --pg34-primary: #FF6347;
    --pg34-secondary: #FF9500;
    --pg34-dark: #2D2D2D;
    --pg34-accent: #00E5FF;
    --pg34-light: #E0F2F1;
    --pg34-white: #FFFFFF;
    --pg34-gray: #F5F5F5;
    --pg34-text: #333333;
    --pg34-text-light: #666666;
    --pg34-border: #E0E0E0;
    --pg34-shadow: rgba(0, 0, 0, 0.1);
    --pg34-success: #4CAF50;
    --pg34-warning: #FFC107;
    --pg34-error: #F44336;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--pg34-text);
    background-color: var(--pg34-white);
    overflow-x: hidden;
}

/* Mobile-first responsive design */
.pg34-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 769px) {
    .pg34-container {
        max-width: 1200px;
        padding: 0 20px;
    }
}

/* Header Styles */
.pg34-header {
    background: linear-gradient(135deg, var(--pg34-primary) 0%, var(--pg34-secondary) 100%);
    color: var(--pg34-white);
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--pg34-shadow);
}

.pg34-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pg34-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--pg34-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg34-logo i {
    font-size: 28px;
    color: var(--pg34-accent);
}

.pg34-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pg34-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.pg34-btn-primary {
    background: var(--pg34-accent);
    color: var(--pg34-dark);
}

.pg34-btn-primary:hover {
    background: #00BCD4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
}

.pg34-btn-secondary {
    background: var(--pg34-white);
    color: var(--pg34-primary);
    border: 2px solid var(--pg34-white);
}

.pg34-btn-secondary:hover {
    background: transparent;
    color: var(--pg34-white);
}

.pg34-menu-toggle {
    background: none;
    border: none;
    color: var(--pg34-white);
    font-size: 24px;
    cursor: pointer;
    display: none;
    padding: 8px;
}

@media (max-width: 768px) {
    .pg34-menu-toggle {
        display: block;
    }
}

/* Main Content */
.pg34-main {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
}

@media (max-width: 768px) {
    .pg34-main {
        padding-bottom: 80px;
    }
}

/* Carousel Styles */
.pg34-carousel {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 16px;
    margin: 20px 0;
    box-shadow: 0 4px 20px var(--pg34-shadow);
}

.pg34-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background: linear-gradient(135deg, var(--pg34-primary) 0%, var(--pg34-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pg34-white);
    text-align: center;
    padding: 20px;
}

.pg34-slide.active {
    opacity: 1;
}

.pg34-slide-content h2 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 700;
}

.pg34-slide-content p {
    font-size: 16px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.pg34-slide-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pg34-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg34-dot.active {
    background: var(--pg34-white);
    transform: scale(1.2);
}

/* Game Sections */
.pg34-section {
    margin: 32px 0;
}

.pg34-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pg34-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pg34-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg34-section-title i {
    color: var(--pg34-primary);
}

.pg34-view-all {
    color: var(--pg34-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.pg34-view-all:hover {
    color: var(--pg34-secondary);
}

/* Game Grid */
.pg34-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 481px) {
    .pg34-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) {
    .pg34-games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pg34-game-card {
    background: var(--pg34-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--pg34-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.pg34-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--pg34-shadow);
}

.pg34-game-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--pg34-gray) 0%, var(--pg34-light) 100%);
}

.pg34-game-info {
    padding: 12px;
    text-align: center;
}

.pg34-game-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--pg34-text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg34-game-type {
    font-size: 12px;
    color: var(--pg34-text-light);
    text-transform: capitalize;
}

/* Content Modules */
.pg34-content-module {
    background: var(--pg34-white);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 2px 12px var(--pg34-shadow);
}

.pg34-module-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pg34-text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg34-module-title i {
    color: var(--pg34-primary);
}

.pg34-module-content {
    color: var(--pg34-text-light);
    line-height: 1.7;
}

.pg34-module-content p {
    margin-bottom: 12px;
}

.pg34-module-content ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.pg34-module-content li {
    margin-bottom: 6px;
}

.pg34-highlight-box {
    background: linear-gradient(135deg, var(--pg34-light) 0%, var(--pg34-accent) 100%);
    padding: 16px;
    border-radius: 12px;
    margin: 16px 0;
    border-left: 4px solid var(--pg34-primary);
}

/* Mobile Bottom Navigation */
.pg34-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--pg34-white);
    border-top: 1px solid var(--pg34-border);
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px var(--pg34-shadow);
}

@media (min-width: 769px) {
    .pg34-bottom-nav {
        display: none;
    }
}

.pg34-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.pg34-bottom-nav button {
    background: none;
    border: none;
    padding: 8px;
    min-width: 60px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--pg34-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    font-size: 10px;
    text-align: center;
}

.pg34-bottom-nav button:hover,
.pg34-bottom-nav button.active {
    color: var(--pg34-primary);
    background: var(--pg34-light);
    transform: translateY(-2px);
}

.pg34-bottom-nav button i {
    font-size: 24px;
    margin-bottom: 4px;
}

/* Mobile Menu */
.pg34-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--pg34-white);
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px var(--pg34-shadow);
    overflow-y: auto;
}

.pg34-mobile-menu.active {
    right: 0;
}

.pg34-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pg34-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

.pg34-menu-header {
    background: linear-gradient(135deg, var(--pg34-primary) 0%, var(--pg34-secondary) 100%);
    color: var(--pg34-white);
    padding: 24px 20px;
    text-align: center;
}

.pg34-menu-nav {
    padding: 20px 0;
}

.pg34-menu-nav a {
    display: block;
    padding: 16px 20px;
    color: var(--pg34-text);
    text-decoration: none;
    border-bottom: 1px solid var(--pg34-border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pg34-menu-nav a:hover {
    background: var(--pg34-light);
    color: var(--pg34-primary);
    padding-left: 24px;
}

/* Footer */
.pg34-footer {
    background: var(--pg34-dark);
    color: var(--pg34-white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.pg34-footer-content {
    display: grid;
    gap: 32px;
}

@media (min-width: 769px) {
    .pg34-footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pg34-footer-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--pg34-accent);
}

.pg34-footer-section p,
.pg34-footer-section a {
    color: var(--pg34-white);
    opacity: 0.8;
    text-decoration: none;
    line-height: 1.6;
}

.pg34-footer-section a:hover {
    opacity: 1;
    color: var(--pg34-accent);
}

.pg34-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    font-size: 14px;
}

/* Responsive Utilities */
.pg34-text-center {
    text-align: center;
}

.pg34-text-primary {
    color: var(--pg34-primary);
}

.pg34-text-accent {
    color: var(--pg34-accent);
}

.pg34-mb-16 {
    margin-bottom: 16px;
}

.pg34-mb-24 {
    margin-bottom: 24px;
}

/* Animations */
@keyframes pg34-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pg34-fade-in {
    animation: pg34-fadeIn 0.6s ease-out;
}

/* Loading States */
.pg34-loading {
    position: relative;
    overflow: hidden;
}

.pg34-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}