/* ===== CSS Variables ===== */
:root {
    --primary-color: #ff6b6b;
    --primary-dark: #e63946;
    --primary: #ff6b6b;
    --primary-light: #ffb3b3;
    --secondary-color: #ffa502;
    --secondary: #ffa502;
    --accent-color: #48dbfb;
    --accent: #48dbfb;
    --dark-bg: #0f0f1a;
    --darker-bg: #1a1a2e;
    --sidebar-bg: #2a2342;
    --catnav-height: 52px;
    --navbar-height: 64px;
    --light-bg: #f0f2f5;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --bg-surface: #fff0ed;
    --bg-card: #ffffff;
    --bg-card-hover: #fff5f2;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --gradient-primary: linear-gradient(135deg, #ff6b6b, #e63946);
    --gradient-warm: linear-gradient(135deg, #ff6b6b 0%, #ffa502 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-2xl: 1.5rem;
    --error-color: #e74c3c;
    --success-color: #27ae60;
    --max-width: 1280px;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-bg);
    min-height: 100%;
    margin: 0;
    padding-top: var(--navbar-height);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Top Navigation Bar (Sticky) ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1002;
    box-shadow: 0 1px 0 rgba(255,255,255,0.06), var(--shadow-sm);
}

.nav-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-brand .logo-img {
    height: 36px;
    width: auto;
}

/* Sidebar toggle - hidden in new layout (no sidebar) */
.sidebar-toggle {
    display: none;
}

.nav-brand .logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 6px 8px 6px 20px;
    flex: 0 1 480px;
    transition: var(--transition);
}

.nav-search:focus-within {
    background: rgba(255,255,255,0.12);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,107,107,0.15);
}

.nav-search .search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    padding: 7px 0;
    width: 100%;
    font-size: 14px;
}

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

.nav-search .search-btn {
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    color: var(--white);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: var(--transition);
}

.nav-search .search-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

/* ===== Navbar Auth Buttons ===== */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-auth-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-auth-btn {
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-login {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.25);
}

.nav-login:hover {
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.08);
}

.nav-register {
    background: var(--gradient-primary);
    color: var(--white);
}

.nav-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}

.nav-user {
    position: relative;
    display: flex;
    align-items: center;
}

/* ===== Nav User Dropdown Trigger ===== */
.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 22px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-user-trigger:hover,
.nav-user-trigger[aria-expanded="true"] {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}

.nav-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.nav-user-name {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-arrow {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    transition: transform var(--transition);
    margin-left: -2px;
}

.nav-user-trigger[aria-expanded="true"] .nav-user-arrow {
    transform: rotate(180deg);
}

/* ===== Nav User Dropdown Menu ===== */
.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    padding: 8px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    text-align: left;
}

.nav-dropdown-item:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}

.nav-dropdown-logout:hover {
    color: var(--error-color);
    background: rgba(231,76,60,0.1);
}

.nav-dropdown-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.nav-btn {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 9px 22px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.35);
}

/* ===== Horizontal Category Navigation Bar (Sticky, multi-row wrap) ===== */
.catnav {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    min-height: var(--catnav-height);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1001;
    box-shadow: var(--shadow-sm);
}

.catnav-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.catnav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    z-index: auto;
}

.catnav-link:hover {
    color: var(--primary-color);
    background: rgba(255,107,107,0.06);
}

.catnav-link.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255,107,107,0.25);
}

.catnav-link .icon {
    font-size: 15px;
}

/* ===== Main Container Layout (Full-Width, No Sidebar) ===== */
.main-container {
    display: block;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
}

.main-container.sidebar-collapsed {
    /* No sidebar to collapse - kept for compatibility */
}

/* Sidebar - hidden in new layout */
.sidebar {
    display: none;
}

.sidebar-content,
.sidebar-section,
.sidebar-title,
.sidebar-menu,
.sidebar-link,
.sidebar-auth,
.sidebar-auth-btns,
.sidebar-auth-btn,
.btn-login,
.btn-register,
.sidebar-user,
.sidebar-user-avatar,
.sidebar-user-name,
.sidebar-logout-btn,
.sidebar-profile-link,
.sidebar-overlay,
.sidebar-collapsed,
.collapsible-section,
.collapse-header,
.collapse-arrow,
.collapse-body {
    display: none !important;
}

/* ===== Login Form Styles ===== */
.auth-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Auth Modal Overlay (used by nav auth button) */
#navAuthModal.auth-container {
    position: fixed;
    inset: 0;
    z-index: 9999;
    max-width: none;
    margin: 0;
    padding: 16px;
    min-height: 100vh;
    min-height: 100dvh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#navAuthModal.auth-container .auth-card {
    max-width: 420px;
    width: 100%;
    margin: auto;
}

#navAuthModal .auth-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    color: #666;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

#navAuthModal .auth-close:hover {
    background: rgba(0,0,0,0.15);
    color: #333;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    position: relative;
}

.auth-close {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    color: #666;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.auth-close:hover {
    background: rgba(0,0,0,0.15);
    color: #333;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: var(--font-size-base);
}

.auth-tab:hover {
    color: var(--primary-color);
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: all var(--transition);
    background: var(--bg-card);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group .error-text {
    color: var(--error-color);
    font-size: var(--font-size-xs);
    margin-top: 0.25rem;
    display: none;
}

.form-group.has-error input {
    border-color: var(--error-color);
}

.form-group.has-error .error-text {
    display: block;
}

.btn-auth {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-family);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-auth.loading {
    position: relative;
    color: transparent;
}

.btn-auth.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert-box {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: var(--font-size-sm);
    display: none;
}

.alert-box.show {
    display: block;
}

.alert-box.success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.alert-box.error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.password-toggle {
    position: relative;
}

.password-toggle input {
    padding-right: 2.5rem;
}

.password-toggle .toggle-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition);
}

.password-toggle .toggle-icon:hover {
    color: var(--text-primary);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.social-login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.social-login-divider span {
    padding: 0 1rem;
}

.social-login-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-social {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: var(--font-family);
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-social i {
    font-size: var(--font-size-lg);
}

.btn-facebook {
    border-color: #1877f2;
    color: #1877f2;
}

.btn-facebook:hover {
    background: #1877f2;
    color: white;
}

.btn-google {
    border-color: #ea4335;
    color: #ea4335;
}

.btn-google:hover {
    background: #ea4335;
    color: white;
}

.btn-twitter {
    border-color: #1da1f2;
    color: #1da1f2;
}

.btn-twitter:hover {
    background: #1da1f2;
    color: white;
}

.btn-steam {
    border-color: #171a21;
    color: #171a21;
}

.btn-steam:hover {
    background: #171a21;
    color: white;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .social-login-buttons {
        flex-direction: column;
    }
    
    .btn-social {
        min-width: 100%;
    }
}

/* ===== Main Content Area (Full-Width) ===== */
.main-content {
    padding: 28px 0;
    overflow-wrap: break-word;
}

/* ===== Hero Banner ===== */
.hero-section {
    background: var(--gradient-warm);
    color: var(--white);
    padding: 64px 48px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 48px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,165,2,0.15) 0%, transparent 40%);
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.hero-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-tagline {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 8px 22px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    letter-spacing: 0.03em;
    backdrop-filter: blur(4px);
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
    animation: fadeInDown 1s ease;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-typewriter {
    display: inline;
    white-space: nowrap;
}

.hero-cursor {
    display: none!important;
    font-weight: 100;
    animation: blink 0.8s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 18px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.9);
    animation: fadeInUp 1s ease;
    line-height: 1.6;
}

.hero-subdescription {
    font-size: 15px;
    margin-bottom: 32px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 16px 28px;
    border-radius: 16px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.12);
}

.hero-stats .stat-number {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}

.hero-stats .stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 32px;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.hero-actions .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border: none;
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hero-actions .btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.hero-actions .btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.3s backwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ===== Game List Section ===== */
.games-section {
    margin-bottom: 56px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding: 0 8px;
}

.section-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 18px;
    border-radius: 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-all:hover {
    background: rgba(255,107,107,0.08);
    color: var(--primary-dark);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ===== Game Card Styles (Redesigned) ===== */
.game-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--gray-200);
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(255,107,107,0.15), 0 4px 16px rgba(0,0,0,0.08);
    border-color: rgba(255,107,107,0.3);
}

.game-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: var(--gray-200);
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.08);
}

/* Overlay gradient at bottom of thumbnail */
.card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.game-card:hover .card-gradient {
    opacity: 1;
}

.game-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.tag {
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.tag.new {
    background: linear-gradient(135deg, #00b894, #00a381);
}

.tag.hot {
    background: linear-gradient(135deg, #e17055, #d63031);
}

.tag.original {
    background: var(--gradient-primary);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 28px rgba(255,107,107,0.45);
    letter-spacing: 0.5px;
    z-index: 3;
    pointer-events: none;
}

.game-card:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.game-card .play-btn:hover {
    transform: translate(-50%, -50%) scale(1.08) !important;
    box-shadow: 0 14px 36px rgba(255,107,107,0.6);
    background: var(--primary);
}

.game-info {
    padding: 20px;
}

.game-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.game-card:hover .game-title {
    color: var(--primary-dark);
}

.game-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    min-height: 40px;
}

.game-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.game-category {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255,107,107,0.08);
    border-radius: 8px;
    max-width: 65%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.3s ease;
}

.game-card:hover .game-category {
    background: rgba(255,107,107,0.14);
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.stars {
    color: #fbbf24;
    font-size: 14px;
}

.rating-count {
    font-size: 12px;
    color: var(--gray-600);
}

/* ===== Platform Features Section ===== */
.features-section {
    padding: 56px 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 56px;
    border: 1px solid var(--gray-200);
}

.features-section .section-title {
    text-align: center;
    margin-bottom: 44px;
    font-size: 28px;
    font-weight: 800;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.feature-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--gray-100);
    border-radius: var(--radius);
    box-shadow: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-200);
    background: var(--white);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== Footer Styles ===== */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 56px 0 24px;
    margin-top: 56px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 36px;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 16px;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--white);
    font-weight: 700;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 6px;
}

.social-links {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.social-links a {
    font-size: 22px;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.15);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.footer-bottom a {
    color: var(--primary-color);
}

/* ===== Animation Effects ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */

/* Tablet Devices */
@media (max-width: 1024px) {
    .nav-search {
        flex: 0 1 280px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .contact-grid {
        gap: 25px;
    }

    .hero-section {
        padding: 48px 32px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-stats {
        gap: 24px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    body {
        padding-top: var(--navbar-height);
    }

    .main-container {
        padding: 0 12px;
    }

    .main-content {
        padding: 20px 0;
    }

    .nav-container {
        padding: 0 16px;
        gap: 10px;
    }

    .nav-brand .logo {
        font-size: 18px;
    }

    .nav-search {
        display: none;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .nav-auth-btn {
        padding: 5px 12px;
        font-size: 11px;
    }

    .nav-user-name {
        display: none;
    }

    .catnav-inner {
        padding: 8px 12px;
        gap: 4px;
    }

    .catnav-link {
        padding: 6px 14px;
        font-size: 12px;
    }

    /* ===== Auth Modal Overlay (Mobile) ===== */
    .auth-container {
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(4px);
        max-width: none;
        margin: 0;
        padding: 16px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .auth-card {
        max-width: 420px;
        width: 100%;
        margin: auto;
    }

    .auth-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-section {
        padding: 36px 20px;
        border-radius: var(--radius);
        margin-bottom: 32px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-stats {
        gap: 12px;
    }

    .hero-stats .stat-item {
        padding: 12px 18px;
    }

    .hero-stats .stat-number {
        font-size: 22px;
    }

    .hero-stats .stat-label {
        font-size: 11px;
    }

    .hero-actions .btn {
        padding: 12px 22px;
        font-size: 14px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .game-thumbnail {
        height: 160px;
    }

    .game-info {
        padding: 14px;
    }

    .game-title {
        font-size: 14px;
    }

    .game-desc {
        font-size: 12px;
        min-height: 36px;
        margin-bottom: 10px;
    }

    .game-category {
        font-size: 10px;
        padding: 3px 8px;
    }

    .play-btn {
        opacity: 1;
        padding: 10px 22px;
        font-size: 13px;
        transform: translate(-50%, -50%) scale(1);
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .features-section {
        padding: 32px 16px;
    }

    .feature-card {
        padding: 24px 14px;
    }

    .feature-icon {
        font-size: 36px;
    }

    .feature-card h3 {
        font-size: 15px;
    }

    .footer {
        padding: 40px 0 18px;
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 16px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-header {
        margin-bottom: 16px;
        padding: 0 4px;
    }

    .games-section {
        margin-bottom: 40px;
    }

    .features-section {
        margin-bottom: 40px;
    }

    /* Contact Page Tablet */
    .contact-section {
        margin-bottom: 35px;
    }

    .contact-grid {
        gap: 20px;
    }

    .contact-hero {
        padding: 28px 20px;
        margin-bottom: 30px;
        border-radius: var(--radius);
    }

    .contact-hero-content h1 {
        font-size: 26px;
    }

    .contact-hero-content p {
        font-size: 13px;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 20px;
        border-radius: var(--radius);
    }

    .contact-form-container .section-title,
    .contact-info-container .section-title {
        font-size: 19px;
        margin-bottom: 18px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form .form-group {
        margin-bottom: 15px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 10px 14px;
        font-size: 13px;
    }

    .contact-form textarea {
        min-height: 100px;
    }

    .contact-intro {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .info-cards {
        gap: 12px;
        margin-bottom: 22px;
    }

    .info-card {
        padding: 14px;
        gap: 12px;
    }

    .info-card:hover {
        transform: none;
    }

    .info-icon {
        font-size: 24px;
        width: 38px;
        height: 38px;
    }

    .info-content h4 {
        font-size: 14px;
    }

    .info-content p {
        font-size: 12px;
    }

    .contact-social h3 {
        font-size: 14px;
    }

    .social-icons {
        gap: 12px;
    }

    .social-icon {
        font-size: 20px;
        width: 40px;
        height: 40px;
    }

    .social-icon:hover {
        transform: none;
    }

    .faq-section {
        margin-bottom: 35px;
    }

    .faq-section .section-title {
        margin-bottom: 22px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .faq-card {
        padding: 18px;
    }

    .faq-card:hover {
        transform: none;
    }

    .faq-card h4 {
        font-size: 14px;
    }

    .faq-card p {
        font-size: 12px;
    }

    .submit-btn {
        font-size: 15px;
        padding: 13px 24px;
    }

    .submit-btn:hover {
        transform: none;
    }

    .toast-notification {
        left: 15px;
        right: 15px;
        min-width: auto;
        max-width: none;
    }

    /* ===== Detail Page Tablet ===== */
    .detail-hero-grid {
        grid-template-columns: 1fr;
    }

    .detail-img {
        min-height: 250px;
    }

    .detail-body-grid {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .page-hero {
        padding: 28px 18px;
        margin-bottom: 30px;
        border-radius: var(--radius);
    }

    .page-hero-content h1 {
        font-size: 24px;
    }

    .page-hero-content p {
        font-size: 13px;
    }

    .policy-container {
        padding: 20px 15px;
        border-radius: var(--radius);
    }

    .policy-block h2 {
        font-size: 18px;
    }

    .policy-block ul li {
        font-size: 13px;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .detail-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .detail-actions {
        flex-direction: column;
        gap: 10px;
    }

    .detail-actions .play-now-btn,
    .detail-actions .save-btn,
    .detail-actions .share-btn {
        width: 100%;
        text-align: center;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .about-section.alt-bg {
        padding: 22px 15px;
    }

    .timeline {
        padding-left: 25px;
    }

    .about-cta {
        padding: 30px 18px;
    }

    .detail-info {
        padding: 20px 15px;
    }

    .detail-header h1 {
        font-size: 20px;
    }

    .detail-body-grid {
        gap: 20px;
    }

    .detail-block {
        padding: 20px 15px;
    }

    .container {
        padding: 0;
    }

    .page {
        padding: 18px 15px;
        margin-bottom: 20px;
        border-radius: var(--radius);
    }
}

/* Small Screen Phones */
@media (max-width: 480px) {
    .main-container {
        padding: 0 8px;
    }

    .main-content {
        padding: 14px 0;
    }

    .hero-section {
        padding: 28px 14px;
        margin-bottom: 28px;
        border-radius: var(--radius-sm);
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-stats {
        gap: 8px;
    }

    .hero-stats .stat-item {
        padding: 10px 14px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hero-actions .btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .game-thumbnail {
        height: 120px;
    }

    .game-info {
        padding: 12px;
    }

    .game-title {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 4px;
    }

    .game-desc {
        font-size: 11px;
        min-height: 32px;
        margin-bottom: 8px;
    }

    .game-category {
        font-size: 9px;
        padding: 2px 7px;
    }

    .game-tags .tag {
        font-size: 9px;
        padding: 2px 8px;
    }

    .play-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .features-section {
        padding: 28px 14px;
        margin-bottom: 28px;
    }

    .feature-card {
        padding: 18px 12px;
    }

    .feature-icon {
        font-size: 30px;
    }

    .feature-card h3 {
        font-size: 14px;
    }

    .feature-card p {
        font-size: 12px;
    }

    .games-section {
        margin-bottom: 32px;
    }

    .footer {
        padding: 32px 0 14px;
        margin-top: 32px;
    }

    .footer-content {
        gap: 24px;
        padding: 0 12px;
    }

    .section-title {
        font-size: 18px;
    }

    .section-header {
        margin-bottom: 14px;
        padding: 0 2px;
    }

    .nav-brand .logo {
        font-size: 16px;
    }

    .nav-link {
        display: none;
    }



    .nav-btn {
        padding: 5px 12px;
        font-size: 11px;
    }

    .catnav-link {
        padding: 5px 12px;
        font-size: 11px;
    }

    /* Contact Page Phone */
    .contact-section {
        margin-bottom: 28px;
    }

    .contact-grid {
        gap: 18px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-hero {
        padding: 25px 15px;
        margin-bottom: 25px;
        border-radius: var(--radius-sm);
    }

    .contact-hero-content h1 {
        font-size: 22px;
    }

    .contact-hero-content p {
        font-size: 12px;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 16px 12px;
        border-radius: var(--radius-sm);
    }

    .contact-form-container .section-title,
    .contact-info-container .section-title {
        font-size: 17px;
        margin-bottom: 14px;
    }

    .contact-form .form-group {
        margin-bottom: 14px;
    }

    .contact-form label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    .contact-form textarea {
        min-height: 90px;
    }

    .contact-form select {
        background-position: right 12px center;
        padding-right: 32px;
    }

    .contact-intro {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .info-cards {
        gap: 10px;
        margin-bottom: 18px;
    }

    .info-card {
        padding: 12px;
        gap: 10px;
    }

    .info-icon {
        font-size: 22px;
        width: 36px;
        height: 36px;
    }

    .info-content h4 {
        font-size: 13px;
    }

    .info-content p {
        font-size: 11px;
    }

    .contact-social {
        padding-top: 14px;
    }

    .contact-social h3 {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .social-icons {
        gap: 8px;
    }

    .social-icon {
        font-size: 18px;
        width: 36px;
        height: 36px;
    }

    .social-icon:hover {
        transform: none;
    }

    .faq-section {
        margin-bottom: 28px;
    }

    .faq-section .section-title {
        margin-bottom: 18px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .faq-card {
        padding: 15px;
    }

    .faq-card h4 {
        font-size: 13px;
    }

    .faq-card p {
        font-size: 11px;
    }

    .submit-btn {
        font-size: 14px;
        padding: 12px 18px;
    }

    .submit-btn:hover {
        transform: none;
    }

    .game-card:hover {
        transform: none;
    }

    .feature-card:hover {
        transform: none;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 22px 14px;
        margin-bottom: 25px;
        border-radius: var(--radius-sm);
    }

    .page-hero-content h1 {
        font-size: 20px;
    }

    .page-hero-content p {
        font-size: 12px;
    }

    .policy-container {
        padding: 16px 12px;
        border-radius: var(--radius-sm);
    }

    .policy-block h2 {
        font-size: 16px;
    }

    .policy-block p,
    .policy-block ul li {
        font-size: 12px;
    }

    .about-section.alt-bg {
        padding: 18px 12px;
        margin-bottom: 25px;
    }

    .detail-info {
        padding: 16px 12px;
    }

    .detail-block {
        padding: 16px 12px;
    }

    .detail-header h1 {
        font-size: 18px;
    }

    .detail-desc {
        font-size: 12px;
    }

    .mission-card {
        padding: 20px 15px;
    }

    .mission-icon {
        font-size: 36px;
    }

    .mission-card h3 {
        font-size: 16px;
    }

    .page {
        padding: 14px 10px;
        margin-bottom: 16px;
        border-radius: var(--radius-sm);
    }
}

/* ===== Sidebar (all removed in new layout) ===== */

/* ===== Contact Page Styles ===== */

/* Contact Hero */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--darker-bg) 100%);
    color: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-hero-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.contact-hero-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Grid Layout */
.contact-section {
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    gap: 30px;
    align-items: start;
}

/* Contact Form */
.contact-form-container {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form-container .section-title {
    margin-bottom: 25px;
    font-size: 24px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--gray-100);
    transition: var(--transition);
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-600);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.submit-btn {
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Contact Info Container */
.contact-info-container {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-info-container .section-title {
    margin-bottom: 15px;
    font-size: 24px;
}

.contact-intro {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.info-card:hover {
    background: #fff0ed;
    transform: translateX(5px);
}

.info-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.info-content h4 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Social */
.contact-social {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-300);
}

.contact-social h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ========== Game Detail Iframe ========== */
.iframe_detail {
    border: none;
}

/* Desktop: two-column contact layout */
@media (min-width: 1025px) {
    .contact-grid {
        gap: 40px;
    }

    .iframe_detail {
        height: 800px!important;
    }
}

/* FAQ Section */
.faq-section {
    margin-bottom: 50px;
}

.faq-section .section-title {
    text-align: center;
    margin-bottom: 30px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.faq-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.faq-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.faq-card h4 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.faq-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Form validation styles */
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: #e17055;
}

.contact-form input:valid:not(:placeholder-shown),
.contact-form textarea:valid:not(:placeholder-shown) {
    border-color: #00b894;
}

/* ===== Shared Page Hero Styles (Privacy, Terms, Disclaimer, About, Detail) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--darker-bg) 100%);
    color: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.about-hero-bg {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa502 100%);
}

.page-hero-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-hero-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Policy Content Styles (Privacy, Terms, Disclaimer) ===== */
.policy-content {
    margin-bottom: 50px;
}

.policy-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.policy-date {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-300);
}

.policy-block {
    margin-bottom: 30px;
}

.policy-block:last-child {
    margin-bottom: 0;
}

.policy-block h2 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.policy-block h3 {
    font-size: 17px;
    color: var(--text-primary);
    margin: 18px 0 10px;
}

.policy-block p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.policy-block ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 12px;
}

.policy-block ul li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
}

.policy-block a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ===== About Page Styles ===== */
.about-section {
    margin-bottom: 50px;
}

.about-section.alt-bg {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 50px;
}

.about-section .section-title {
    text-align: center;
    margin-bottom: 15px;
}

.section-center {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 15px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text h2 {
    font-size: 26px;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.about-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.mission-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.mission-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.mission-card h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.mission-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.value-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.value-card h3 {
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.team-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-avatar {
    font-size: 56px;
    margin-bottom: 12px;
}

.team-card h3 {
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.team-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-year {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--darker-bg) 100%);
    color: var(--white);
    text-align: center;
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.about-cta h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.about-cta p {
    font-size: 16px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.85);
}

.about-cta .cta-button {
    background: var(--secondary-color);
    color: var(--white);
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    transition: var(--transition);
}

.about-cta .cta-button:hover {
    background: #00b894;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== Detail Page Styles ===== */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--gray-600);
}

.breadcrumb .current {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---- Game Player Wrapper ---- */
.game-player-wrapper {
    --ctrl-bg: #1a1a2e;
    --ctrl-text: #ccc;
    --ctrl-text-hover: #fff;
    --ctrl-accent: #e74c3c;
    --ctrl-accent-hover: #c0392b;
    --ctrl-fav: #ff6b6b;
    --ctrl-divider: rgba(255, 255, 255, 0.12);
    --ctrl-radius: 6px;
    --ctrl-gap: 4px;
    --ctrl-font-size: 13px;

    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

/* ---- Iframe Area ---- */
.detail-hero-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.detail-hero-img iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .detail-hero-img {
        aspect-ratio: 4 / 3;
    }

    .iframe_detail {
        height: 500px;
     
    }
}
/* ---- Controls Bar ---- */
.game-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: var(--ctrl-bg);
}

.game-controls-left,
.game-controls-right {
    display: flex;
    align-items: center;
    gap: var(--ctrl-gap);
}

/* ---- Control Buttons ---- */
.game-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border: none;
    border-radius: var(--ctrl-radius);
    background: transparent;
    color: var(--ctrl-text);
    font-size: var(--ctrl-font-size);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.game-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ctrl-text-hover);
}

/* accent buttons */
.like-btn:hover {
    color: #2ecc71;
}
.dislike-btn:hover {
    color: var(--ctrl-accent);
}
.fav-btn:hover {
    color: var(--ctrl-fav);
}
.fullscreen-btn:hover {
    color: #3498db;
}

/* ---- Count Badge ---- */
.ctrl-count {
    font-weight: 600;
    font-size: var(--ctrl-font-size);
}

/* ---- Divider ---- */
.game-ctrl-divider {
    width: 1px;
    height: 22px;
    background: var(--ctrl-divider);
    margin: 0 6px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .game-controls-bar {
        padding: 8px 10px;
        gap: 4px;
    }
    .game-ctrl-btn {
        padding: 6px 9px;
        font-size: 12px;
    }
    .game-ctrl-divider {
        margin: 0 3px;
    }
}
    
/* Detail Hero */
.detail-hero {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 40px;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.detail-thumbnail {
    padding: 0;
}

.detail-img {
    position: relative;
    height: 100%;
    min-height: 350px;
}

.detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 6px;
}

.detail-info {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-info h1 {
    font-size: 30px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.detail-category {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(108,92,231,0.1);
    padding: 5px 14px;
    border-radius: 20px;
}

.detail-rating {
    font-size: 14px;
    color: var(--text-secondary);
}

.rate-num {
    font-weight: bold;
    color: var(--text-primary);
}

.detail-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 22px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.play-now-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.play-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.save-btn,
.share-btn {
    padding: 12px 20px;
    background: var(--gray-100);
    color: var(--text-primary);
    border: 2px solid var(--gray-300);
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.save-btn:hover,
.share-btn:hover {
    background: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.detail-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.d-stat {
    text-align: center;
}

.d-stat-num {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.d-stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Detail Body */
.detail-body {
    margin-bottom: 50px;
}

.detail-body-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-block {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.detail-block h2 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

.how-to-play {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
}

.key-icon {
    display: inline-block;
    background: var(--darker-bg);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    min-width: 90px;
    text-align: center;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--gray-200);
}

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

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00b894;
    font-weight: bold;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.screenshot-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-200);
}

.screenshot-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: var(--transition);
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

/* Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.review-card {
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-avatar {
    font-size: 32px;
}

.review-header strong {
    font-size: 14px;
    color: var(--text-primary);
}

.review-stars {
    font-size: 12px;
    margin-top: 2px;
}

.review-date {
    margin-left: auto;
    font-size: 12px;
    color: var(--gray-600);
}

.review-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Detail Sidebar */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 6px 0;
    border-bottom: 1px solid var(--gray-100);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li strong {
    color: var(--text-primary);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cloud-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gray-100);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 12px;
    transition: var(--transition);
}

.cloud-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    cursor: pointer;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.related-item:hover {
    background: var(--gray-100);
}

.related-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.related-item strong {
    font-size: 13px;
    color: var(--text-primary);
    display: block;
}

.rel-stars {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ===== Responsive styles for new pages ===== */
@media (max-width: 1024px) {
    .detail-hero-grid {
        grid-template-columns: 1fr;
    }

    .detail-img {
        min-height: 250px;
    }

    .detail-body-grid {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 28px 18px;
        margin-bottom: 30px;
        border-radius: var(--radius-md);
    }

    .page-hero-content h1 {
        font-size: 24px;
    }

    .page-hero-content p {
        font-size: 13px;
    }

    .policy-container {
        padding: 20px 15px;
        border-radius: var(--radius-md);
    }

    .policy-block h2 {
        font-size: 18px;
    }

    .policy-block ul li {
        font-size: 13px;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .detail-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .detail-actions {
        flex-direction: column;
        gap: 10px;
    }

    .detail-actions .play-now-btn,
    .detail-actions .save-btn,
    .detail-actions .share-btn {
        width: 100%;
        text-align: center;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .about-section.alt-bg {
        padding: 22px 15px;
    }

    .timeline {
        padding-left: 25px;
    }

    .about-cta {
        padding: 30px 18px;
    }

    .detail-info {
        padding: 20px 15px;
    }

    .detail-header h1 {
        font-size: 20px;
    }

    .detail-body-grid {
        gap: 20px;
    }

    .detail-block {
        padding: 20px 15px;
    }

    .container {
        padding: 0;
    }

    .page {
        padding: 18px 15px;
        margin-bottom: 20px;
        border-radius: var(--radius-md);
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 22px 14px;
        margin-bottom: 25px;
        border-radius: var(--radius-sm);
    }

    .page-hero-content h1 {
        font-size: 20px;
    }

    .page-hero-content p {
        font-size: 12px;
    }

    .policy-container {
        padding: 16px 12px;
        border-radius: var(--radius-sm);
    }

    .policy-block h2 {
        font-size: 16px;
    }

    .policy-block p,
    .policy-block ul li {
        font-size: 12px;
    }

    .about-section.alt-bg {
        padding: 18px 12px;
        margin-bottom: 25px;
    }

    .detail-info {
        padding: 16px 12px;
    }

    .detail-block {
        padding: 16px 12px;
    }

    .detail-header h1 {
        font-size: 18px;
    }

    .detail-desc {
        font-size: 12px;
    }

    .mission-card {
        padding: 20px 15px;
    }

    .mission-icon {
        font-size: 36px;
    }

    .mission-card h3 {
        font-size: 16px;
    }

    .page {
        padding: 14px 10px;
        margin-bottom: 16px;
        border-radius: var(--radius-sm);
    }
}

/* ===== Detail Page Content Container ===== */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.page {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

/* ===== Detail Similar Games Card ===== */
.new-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.new-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.new-card > a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.new-card-img {
    position: relative;
    overflow: hidden;
    height: 160px;
    background: var(--gray-200);
}

.new-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.new-card:hover .new-card-img img {
    transform: scale(1.05);
}

.new-card-body {
    padding: 14px;
}

.new-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.new-card-title a {
    color: inherit;
    text-decoration: none;
}

.new-card-title a:hover {
    color: var(--primary);
}

.new-card-meta {
    margin-bottom: 8px;
}

.new-card-genre {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.new-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-game {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.03em;
}

.btn-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    color: #fff;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.empty-state-icon {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.empty-state-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.empty-state-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.empty-state-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.empty-state-btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--gray-300);
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.empty-state-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== Tags Page Styles ===== */
.tags-hero .page-hero-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.tag-group {
    margin-bottom: 45px;
}

.tag-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tag-group-header .group-icon {
    font-size: 28px;
}

.tag-group-header h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin: 0;
}

.tag-group-header .group-count {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--gray-200);
    padding: 3px 12px;
    border-radius: 20px;
}

/* Tag Cloud Grid */
.tag-cloud-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.tag-cloud-item:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 107, 0.05);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.tag-cloud-item .tag-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tag-cloud-item .tag-count {
    font-size: 11px;
    color: var(--text-secondary);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 2px;
}

/* Tag dot colors */
.tag-dot.genre { background: #ff6b6b; }
.tag-dot.status { background: #e17055; }
.tag-dot.feature { background: #00b894; }
.tag-dot.platform { background: #fdcb6e; }
.tag-dot.theme { background: #48dbfb; }

/* Tag sizes variation */
.tag-cloud-item.size-lg {
    padding: 14px 26px;
    font-size: 17px;
    font-weight: 700;
    border-width: 3px;
}
.tag-cloud-item.size-md {
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
}
.tag-cloud-item.size-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ===== Global Scrollbar Styles ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* ===== Pagination Styles ===== */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-item {
    display: inline-block;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.pagination-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 107, 107, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.pagination-item.active .pagination-link {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-color: var(--primary-color);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    cursor: default;
}

.pagination-item.active .pagination-link:hover {
    transform: none;
}

.pagination-link.prev,
.pagination-link.next {
    font-size: 18px;
    font-weight: 700;
    padding: 0 14px;
}

.pagination-link.prev:hover,
.pagination-link.next:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination-link.disabled {
    color: var(--gray-600);
    background: var(--gray-100);
    border-color: var(--gray-200);
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-link.disabled:hover {
    transform: none;
    background: var(--gray-100);
    color: var(--gray-600);
    border-color: var(--gray-200);
    box-shadow: none;
}

@media (max-width: 768px) {
    .pagination-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 8px;
    }

    .pagination-list {
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .pagination-link {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 6px;
    }

    .pagination-list {
        gap: 3px;
    }
}


.text-ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 限制行数 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Toast Notification ===== */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 300px;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  z-index: 10000;
  overflow: hidden;
  animation: toastSlideIn 0.3s ease;
}

.toast-notification.hide {
  animation: toastSlideOut 0.3s ease forwards;
}

.toast-success {
  border-left: 4px solid #27ae60;
}

.toast-error {
  border-left: 4px solid #e74c3c;
}

.toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
}

.toast-success .toast-header {
  color: #27ae60;
  background: rgba(39,174,96,0.08);
}

.toast-error .toast-header {
  color: #e74c3c;
  background: rgba(231,76,60,0.08);
}

.toast-header .close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  line-height: 1;
  padding: 0 4px;
  transition: opacity 0.2s;
}

.toast-header .close-btn:hover {
  opacity: 1;
}

.toast-body {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(100px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(100px); }
}

@media (max-width: 480px) {
  .toast-notification {
    left: 20px;
    right: 20px;
    min-width: auto;
    max-width: none;
  }
}

/* ===== Contact Submit Button Loading State ===== */
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ===== Profile Page Styles ===== */
.profile-hero-bg {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  margin: 0 auto 16px;
  border: 3px solid rgba(255,255,255,0.3);
}

.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  align-items: start;
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.profile-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
}

.profile-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-info-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-50);
}

.profile-info-list li:last-child {
  border-bottom: none;
}

.profile-info-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.profile-info-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.profile-badge-free {
  background: rgba(108,92,231,0.1);
  color: #6c5ce7;
}

.profile-badge-premium {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: var(--white);
}

.profile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.profile-nav-link:hover {
  background: var(--gray-50);
  color: var(--primary-color);
}

.profile-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.profile-game-card {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.profile-game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.profile-game-thumb {
  width: 100%;
  height: 100px;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.profile-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-game-info {
  padding: 10px 12px;
}

.profile-game-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-game-cat {
  font-size: 11px;
  color: var(--text-muted);
}

.profile-empty {
  text-align: center;
  padding: 40px 20px;
}

.profile-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.profile-empty p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.profile-empty-link {
  display: inline-block;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.profile-empty-link:hover {
  text-decoration: underline;
}

.profile-activity-list {
  display: flex;
  flex-direction: column;
}

.profile-activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-50);
}

.profile-activity-item:last-child {
  border-bottom: none;
}

.profile-activity-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.profile-activity-icon.activity-play {
  background: rgba(39,174,96,0.1);
  color: #27ae60;
}

.profile-activity-icon.activity-fav {
  background: rgba(241,196,15,0.1);
  color: #f39c12;
}

.profile-activity-icon.activity-login {
  background: rgba(108,92,231,0.1);
  color: #6c5ce7;
}

.profile-activity-text {
  flex: 1;
}

.profile-activity-text p {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
}

.profile-activity-text span {
  font-size: 12px;
  color: var(--text-muted);
}

.profile-actions {
  display: flex;
  gap: 12px;
}

.profile-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 25px;
  border: 1px solid rgba(231,76,60,0.3);
  background: var(--white);
  color: #e74c3c;
  cursor: pointer;
  transition: var(--transition);
}

.profile-action-btn:hover {
  background: #e74c3c;
  color: var(--white);
  border-color: #e74c3c;
}

.profile-action-icon {
  font-size: 16px;
}

/* Profile Page Responsive */
@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-avatar {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }

  .profile-card {
    padding: 20px;
  }

  .profile-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .profile-avatar {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .profile-card {
    padding: 16px;
  }

  .profile-info-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .profile-info-value {
    text-align: left;
  }
}