/* ============================================
   Xsjuwi - Modern Dark Gaming Theme
   Domain: xsjuwi.com
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --xw-bg: #0F1117;
    --xw-bg-alt: #1A1D27;
    --xw-surface: #22263A;
    --xw-surface-hover: #2A2F45;
    --xw-text: #E8E8F0;
    --xw-text-light: #A0A0B8;
    --xw-text-muted: #6B6B80;
    --xw-primary: #6C5CE7;
    --xw-primary-dark: #5A4BD6;
    --xw-primary-glow: rgba(108, 92, 231, 0.25);
    --xw-accent: #00D2D3;
    --xw-accent-dark: #00B5B6;
    --xw-highlight: #FDCB6E;
    --xw-danger: #FF6B6B;
    --xw-success: #00B894;
    --xw-border: #2D3148;
    --xw-border-light: #3D4160;
    --xw-radius: 12px;
    --xw-radius-lg: 16px;
    --xw-radius-sm: 8px;
    --xw-radius-xs: 6px;
    --xw-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --xw-font-heading: 'Rajdhani', 'Inter', sans-serif;
    --xw-transition: 0.2s ease;
    --xw-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --xw-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --xw-nav-width: 240px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--xw-font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--xw-text);
    background-color: var(--xw-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--xw-accent);
    text-decoration: none;
    transition: color var(--xw-transition);
}

a:hover {
    color: var(--xw-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: var(--xw-font-body);
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* --- Layout: Sidebar + Main --- */
.xw-layout {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar Navigation --- */
.xw-sidebar {
    width: var(--xw-nav-width);
    background: var(--xw-bg-alt);
    border-right: 1px solid var(--xw-border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.xw-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px;
    border-bottom: 1px solid var(--xw-border);
    text-decoration: none;
    color: var(--xw-text);
}

.xw-sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.xw-sidebar-title {
    font-family: var(--xw-font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--xw-primary);
    letter-spacing: 1px;
}

.xw-sidebar-nav {
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.xw-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--xw-text-light);
    border-radius: var(--xw-radius-sm);
    transition: all var(--xw-transition);
    text-decoration: none;
}

.xw-sidebar-link:hover,
.xw-sidebar-link[data-active="true"] {
    background: var(--xw-surface);
    color: var(--xw-text);
}

.xw-sidebar-link[data-active="true"] {
    color: var(--xw-primary);
    background: var(--xw-primary-glow);
}

.xw-sidebar-link-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.xw-sidebar-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--xw-border);
    font-size: 12px;
    color: var(--xw-text-muted);
}

/* --- Main Content Area --- */
.xw-main {
    flex: 1;
    margin-left: var(--xw-nav-width);
    min-height: 100vh;
}

.xw-main-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 28px 60px;
}

/* --- Mobile Header Bar --- */
.xw-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--xw-bg-alt);
    border-bottom: 1px solid var(--xw-border);
    z-index: 1001;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.xw-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--xw-text);
}

.xw-mobile-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.xw-mobile-title {
    font-family: var(--xw-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--xw-primary);
}

.xw-mobile-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--xw-radius-xs);
    background: var(--xw-surface);
    border: 1px solid var(--xw-border);
    font-size: 18px;
    color: var(--xw-text-light);
}

/* --- Mobile Bottom Nav --- */
.xw-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--xw-bg-alt);
    border-top: 1px solid var(--xw-border);
    z-index: 1000;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
}

.xw-bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: var(--xw-text-muted);
    text-decoration: none;
    padding: 6px 8px;
    border-radius: var(--xw-radius-xs);
    transition: all var(--xw-transition);
}

.xw-bottom-nav-link:hover,
.xw-bottom-nav-link[data-active="true"] {
    color: var(--xw-primary);
}

.xw-bottom-nav-icon {
    font-size: 20px;
}

/* --- Container --- */
.xw-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

/* --- Utility --- */
.xw-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* --- Section Header --- */
.xw-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.xw-section-title {
    font-family: var(--xw-font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--xw-text);
    letter-spacing: 0.5px;
}

.xw-section-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--xw-accent);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid var(--xw-border);
    border-radius: 20px;
    transition: all var(--xw-transition);
}

.xw-section-more:hover {
    border-color: var(--xw-accent);
    background: rgba(0, 210, 211, 0.08);
    color: var(--xw-accent);
}

/* --- Game Card --- */
.xw-game-card {
    display: flex;
    flex-direction: column;
    background: var(--xw-surface);
    border: 1px solid var(--xw-border);
    border-radius: var(--xw-radius);
    overflow: hidden;
    transition: all var(--xw-transition);
    text-decoration: none;
    color: inherit;
}

.xw-game-card:hover {
    transform: translateY(-4px);
    border-color: var(--xw-primary);
    box-shadow: 0 8px 32px var(--xw-primary-glow);
}

.xw-game-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.xw-game-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.xw-game-card:hover .xw-game-card-thumb img {
    transform: scale(1.08);
}

.xw-game-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--xw-primary);
    color: #fff;
    letter-spacing: 0.5px;
}

.xw-game-card-badge--accent {
    background: var(--xw-accent);
    color: var(--xw-bg);
}

.xw-game-card-body {
    padding: 10px 12px 12px;
}

.xw-game-card-name {
    font-family: var(--xw-font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--xw-text);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xw-game-card-meta {
    font-size: 12px;
    color: var(--xw-text-muted);
    margin-top: 3px;
}

/* --- Game Grid --- */
.xw-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 18px;
}

.xw-game-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

/* --- Buttons --- */
.xw-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--xw-font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--xw-radius-sm);
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--xw-transition);
}

.xw-btn-primary {
    background: var(--xw-primary);
    color: #fff;
}

.xw-btn-primary:hover {
    background: var(--xw-primary-dark);
    color: #fff;
    box-shadow: 0 4px 16px var(--xw-primary-glow);
}

.xw-btn-accent {
    background: var(--xw-accent);
    color: var(--xw-bg);
}

.xw-btn-accent:hover {
    background: var(--xw-accent-dark);
    color: var(--xw-bg);
}

.xw-btn-outline {
    background: transparent;
    color: var(--xw-text-light);
    border: 1px solid var(--xw-border);
}

.xw-btn-outline:hover {
    border-color: var(--xw-primary);
    color: var(--xw-primary);
}

/* --- Breadcrumb --- */
.xw-breadcrumb {
    font-size: 13px;
    color: var(--xw-text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.xw-breadcrumb a {
    color: var(--xw-text-light);
    text-decoration: none;
    transition: color var(--xw-transition);
}

.xw-breadcrumb a:hover {
    color: var(--xw-accent);
}

.xw-breadcrumb-sep {
    color: var(--xw-text-muted);
}

/* --- Game Detail Page --- */
.xw-detail-hero {
    display: flex;
    gap: 28px;
    margin-bottom: 28px;
}

.xw-detail-cover {
    width: 320px;
    flex-shrink: 0;
}

.xw-detail-cover img {
    width: 100%;
    border-radius: var(--xw-radius);
    border: 1px solid var(--xw-border);
}

.xw-detail-info {
    flex: 1;
}

.xw-detail-title {
    font-family: var(--xw-font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--xw-text);
    margin-bottom: 10px;
    line-height: 1.2;
}

.xw-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.xw-tag {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    background: var(--xw-surface);
    border: 1px solid var(--xw-border);
    border-radius: 20px;
    color: var(--xw-text-light);
}

.xw-tag--accent {
    border-color: var(--xw-accent);
    color: var(--xw-accent);
    background: rgba(0, 210, 211, 0.08);
}

.xw-detail-desc {
    font-size: 14px;
    line-height: 1.75;
    color: var(--xw-text-light);
    margin-bottom: 20px;
}

.xw-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--xw-font-heading);
    font-size: 18px;
    font-weight: 700;
    padding: 14px 36px;
    background: var(--xw-primary);
    color: #fff;
    border-radius: var(--xw-radius);
    text-decoration: none;
    transition: all var(--xw-transition);
    letter-spacing: 0.5px;
}

.xw-play-btn:hover {
    background: var(--xw-primary-dark);
    color: #fff;
    box-shadow: 0 6px 24px var(--xw-primary-glow);
    transform: translateY(-2px);
}

/* --- Detail Info Bar --- */
.xw-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    padding: 16px 20px;
    background: var(--xw-surface);
    border: 1px solid var(--xw-border);
    border-radius: var(--xw-radius);
}

.xw-info-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--xw-text-light);
}

.xw-info-chip strong {
    color: var(--xw-text);
    font-weight: 600;
}

.xw-info-chip-icon {
    font-size: 16px;
}

/* --- Content Blocks --- */
.xw-content-block {
    margin-bottom: 28px;
}

.xw-content-block-title {
    font-family: var(--xw-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--xw-text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.xw-content-block-title .xw-icon {
    color: var(--xw-accent);
}

/* --- Feature Grid --- */
.xw-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.xw-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--xw-surface);
    border: 1px solid var(--xw-border);
    border-radius: var(--xw-radius);
    transition: border-color var(--xw-transition);
}

.xw-feature-item:hover {
    border-color: var(--xw-border-light);
}

.xw-feature-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--xw-bg-alt);
    border-radius: var(--xw-radius-sm);
}

.xw-feature-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--xw-text);
}

.xw-feature-text p {
    font-size: 13px;
    color: var(--xw-text-muted);
    line-height: 1.55;
    margin: 0;
}

/* --- Content Cards (How to Play, Tips) --- */
.xw-content-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.xw-content-card {
    background: var(--xw-surface);
    border: 1px solid var(--xw-border);
    border-radius: var(--xw-radius);
    padding: 20px;
}

.xw-content-card h3 {
    font-family: var(--xw-font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--xw-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.xw-content-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--xw-text-light);
    margin: 0;
}

/* --- Controls List --- */
.xw-controls-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.xw-control-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--xw-surface);
    border: 1px solid var(--xw-border);
    border-radius: var(--xw-radius-sm);
}

.xw-control-key {
    font-family: var(--xw-font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--xw-accent);
}

.xw-control-action {
    font-size: 13px;
    color: var(--xw-text-light);
}

/* --- Related Section --- */
.xw-related-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--xw-border);
}

.xw-related-title {
    font-family: var(--xw-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--xw-text);
    margin-bottom: 16px;
}

/* --- Legal / Content Pages --- */
.xw-legal-page {
    max-width: 800px;
    margin: 0 auto;
}

.xw-legal-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 36px 24px;
    background: var(--xw-surface);
    border: 1px solid var(--xw-border);
    border-radius: var(--xw-radius-lg);
}

.xw-legal-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.xw-legal-title {
    font-family: var(--xw-font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--xw-text);
    margin-bottom: 8px;
}

.xw-legal-updated {
    font-size: 14px;
    color: var(--xw-text-muted);
}

.xw-legal-body {
    background: var(--xw-surface);
    border: 1px solid var(--xw-border);
    border-radius: var(--xw-radius-lg);
    padding: 32px;
    margin-bottom: 40px;
}

.xw-legal-body h2 {
    font-family: var(--xw-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--xw-accent);
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--xw-border);
}

.xw-legal-body h2:first-child {
    margin-top: 0;
}

.xw-legal-body p {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--xw-text-light);
}

.xw-legal-body ul {
    margin: 10px 0 16px 20px;
}

.xw-legal-body li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--xw-text-light);
}

.xw-legal-body li::marker {
    color: var(--xw-primary);
}

.xw-legal-body a {
    color: var(--xw-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.xw-legal-body a:hover {
    color: var(--xw-primary);
}

/* --- FAQ --- */
.xw-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- Privacy Policy New UI --- */
.xw-privacy-wrap {
    display: flex;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.xw-privacy-toc {
    position: sticky;
    top: 28px;
    align-self: flex-start;
    width: 240px;
    flex-shrink: 0;
    background: var(--xw-surface);
    border: 1px solid var(--xw-border);
    border-radius: var(--xw-radius-lg);
    padding: 20px 16px;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
}

.xw-privacy-toc-title {
    font-family: var(--xw-font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--xw-text);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--xw-border);
}

.xw-privacy-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.xw-privacy-toc-list li {
    margin-bottom: 2px;
}

.xw-privacy-toc-list a {
    display: block;
    padding: 7px 10px;
    font-size: 13px;
    color: var(--xw-text-light);
    text-decoration: none;
    border-radius: var(--xw-radius-xs);
    transition: all var(--xw-transition);
    line-height: 1.4;
}

.xw-privacy-toc-list a:hover,
.xw-privacy-toc-list a.xw-toc-active {
    background: var(--xw-primary-glow);
    color: var(--xw-primary);
}

.xw-privacy-content {
    flex: 1;
    min-width: 0;
}

.xw-privacy-hero {
    background: linear-gradient(135deg, var(--xw-primary) 0%, #4834d4 100%);
    border-radius: var(--xw-radius-lg);
    padding: 36px 32px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.xw-privacy-hero::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.xw-privacy-hero h1 {
    font-family: var(--xw-font-heading);
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.xw-privacy-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.xw-privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
}

.xw-privacy-summary {
    background: var(--xw-surface);
    border: 1px solid var(--xw-border);
    border-left: 4px solid var(--xw-accent);
    border-radius: var(--xw-radius);
    padding: 20px 24px;
    margin-bottom: 28px;
}

.xw-privacy-summary h3 {
    font-family: var(--xw-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--xw-accent);
    margin-bottom: 10px;
}

.xw-privacy-summary p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--xw-text-light);
    margin-bottom: 0;
}

.xw-privacy-section {
    background: var(--xw-surface);
    border: 1px solid var(--xw-border);
    border-radius: var(--xw-radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    transition: border-color var(--xw-transition);
}

.xw-privacy-section:hover {
    border-color: var(--xw-primary);
}

.xw-privacy-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.xw-privacy-section-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--xw-primary-glow);
    color: var(--xw-primary);
    font-family: var(--xw-font-heading);
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--xw-radius);
    flex-shrink: 0;
}

.xw-privacy-section-header h2 {
    font-family: var(--xw-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--xw-text);
    margin: 0;
    padding: 0;
    border: none;
}

.xw-privacy-section p {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--xw-text-light);
}

.xw-privacy-section p:last-child {
    margin-bottom: 0;
}

.xw-privacy-section ul {
    margin: 10px 0 16px 20px;
}

.xw-privacy-section li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--xw-text-light);
}

.xw-privacy-section li::marker {
    color: var(--xw-primary);
}

.xw-privacy-section a {
    color: var(--xw-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.xw-privacy-section a:hover {
    color: var(--xw-primary);
}

.xw-privacy-section h3 {
    font-family: var(--xw-font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--xw-text);
    margin: 18px 0 10px;
}

.xw-privacy-contact-card {
    background: linear-gradient(135deg, var(--xw-surface) 0%, rgba(108,92,231,0.08) 100%);
    border: 1px solid var(--xw-border);
    border-radius: var(--xw-radius-lg);
    padding: 28px;
    margin-bottom: 28px;
    text-align: center;
}

.xw-privacy-contact-card h3 {
    font-family: var(--xw-font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--xw-text);
    margin-bottom: 8px;
}

.xw-privacy-contact-card p {
    font-size: 14px;
    color: var(--xw-text-light);
    margin-bottom: 16px;
}

.xw-privacy-contact-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--xw-primary);
    color: #fff;
    border-radius: var(--xw-radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--xw-transition);
}

.xw-privacy-contact-card a:hover {
    background: #5b4bd5;
    transform: translateY(-1px);
}

@media (max-width: 1024px) {
    .xw-privacy-toc {
        display: none;
    }
    .xw-privacy-wrap {
        gap: 0;
    }
}

@media (max-width: 768px) {
    .xw-privacy-hero {
        padding: 24px 20px;
    }
    .xw-privacy-hero h1 {
        font-size: 24px;
    }
    .xw-privacy-section {
        padding: 20px 16px;
    }
    .xw-privacy-section-header h2 {
        font-size: 17px;
    }
}

.xw-faq-item {
    background: var(--xw-surface);
    border: 1px solid var(--xw-border);
    border-radius: var(--xw-radius);
    overflow: hidden;
    transition: border-color var(--xw-transition);
}

.xw-faq-item:hover {
    border-color: var(--xw-border-light);
}

.xw-faq-question {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    font-family: var(--xw-font-body);
    font-weight: 600;
    font-size: 15px;
    color: var(--xw-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background var(--xw-transition);
}

.xw-faq-question:hover {
    background: var(--xw-surface-hover);
}

.xw-faq-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--xw-accent);
}

.xw-faq-item.xw-faq-open .xw-faq-arrow {
    transform: rotate(180deg);
}

.xw-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 20px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--xw-text-light);
}

.xw-faq-item.xw-faq-open .xw-faq-answer {
    max-height: 600px;
    padding: 0 20px 18px;
}

/* --- Footer --- */
.xw-footer {
    background: var(--xw-bg-alt);
    border-top: 1px solid var(--xw-border);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.xw-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

.xw-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 28px;
}

.xw-footer-brand-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--xw-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--xw-primary);
    margin-bottom: 10px;
}

.xw-footer-brand-name img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.xw-footer-brand-desc {
    font-size: 13px;
    color: var(--xw-text-muted);
    line-height: 1.7;
}

.xw-footer-col-title {
    font-family: var(--xw-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--xw-text);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--xw-border);
}

.xw-footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.xw-footer-links a {
    font-size: 13px;
    color: var(--xw-text-muted);
    text-decoration: none;
    transition: color var(--xw-transition);
}

.xw-footer-links a:hover {
    color: var(--xw-accent);
}

.xw-footer-bottom {
    border-top: 1px solid var(--xw-border);
    padding-top: 18px;
    text-align: center;
}

.xw-footer-bottom p {
    font-size: 12px;
    color: var(--xw-text-muted);
    line-height: 1.7;
    margin-bottom: 4px;
}

.xw-footer-bottom a {
    color: var(--xw-accent);
}

/* --- 404 Page --- */
.xw-404-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 40px 20px;
    text-align: center;
}

.xw-404-code {
    font-family: var(--xw-font-heading);
    font-size: 100px;
    font-weight: 700;
    color: var(--xw-primary);
    line-height: 1;
    margin-bottom: 12px;
    text-shadow: 0 0 40px var(--xw-primary-glow);
}

.xw-404-msg {
    font-size: 20px;
    color: var(--xw-text-light);
    margin-bottom: 28px;
}

.xw-404-actions {
    display: flex;
    gap: 12px;
}

/* --- Back to Top --- */
.xw-back-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all var(--xw-transition);
}

.xw-back-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.xw-back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--xw-surface);
    border: 1px solid var(--xw-border);
    border-radius: var(--xw-radius-sm);
    font-size: 16px;
    color: var(--xw-text-light);
    text-decoration: none;
    transition: all var(--xw-transition);
}

.xw-back-btn:hover {
    background: var(--xw-primary);
    color: #fff;
    border-color: var(--xw-primary);
}

/* --- Tag Cloud --- */
.xw-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.xw-tag-item {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    background: var(--xw-surface);
    border: 1px solid var(--xw-border);
    border-radius: 20px;
    color: var(--xw-text-light);
    text-decoration: none;
    transition: all var(--xw-transition);
}

.xw-tag-item:hover {
    border-color: var(--xw-primary);
    color: var(--xw-primary);
    background: var(--xw-primary-glow);
}

.xw-tag-count {
    display: inline-block;
    font-size: 10px;
    background: var(--xw-primary);
    color: #fff;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 4px;
    vertical-align: middle;
}

/* --- Channel Banner --- */
.xw-channel-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--xw-surface);
    border: 1px solid var(--xw-border);
    border-radius: var(--xw-radius-lg);
    padding: 24px 28px;
    margin-bottom: 28px;
}

.xw-channel-icon {
    font-size: 42px;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--xw-bg-alt);
    border: 1px solid var(--xw-border);
    border-radius: var(--xw-radius);
    flex-shrink: 0;
}

.xw-channel-info {
    flex: 1;
}

.xw-channel-name {
    font-family: var(--xw-font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--xw-text);
    margin-bottom: 4px;
}

.xw-channel-desc {
    font-size: 14px;
    color: var(--xw-text-muted);
    line-height: 1.6;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--xw-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--xw-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--xw-border-light);
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
    .xw-sidebar {
        transform: translateX(-100%);
    }

    .xw-sidebar.xw-sidebar--open {
        transform: translateX(0);
    }

    .xw-mobile-header {
        display: flex;
    }

    .xw-main {
        margin-left: 0;
        padding-top: 56px;
    }

    .xw-main-inner {
        padding: 20px 16px 80px;
    }

    .xw-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .xw-detail-hero {
        flex-direction: column;
    }

    .xw-detail-cover {
        width: 100%;
        max-width: 400px;
    }

    .xw-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
        gap: 14px;
    }

    .xw-content-cards {
        grid-template-columns: 1fr;
    }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
    .xw-bottom-nav {
        display: flex;
    }

    .xw-main-inner {
        padding-bottom: 80px;
    }

    .xw-section-title {
        font-size: 20px;
    }

    .xw-channel-banner {
        padding: 18px;
        gap: 14px;
    }

    .xw-channel-icon {
        width: 52px;
        height: 52px;
        font-size: 32px;
    }

    .xw-channel-name {
        font-size: 22px;
    }

    .xw-detail-title {
        font-size: 24px;
    }

    .xw-legal-title {
        font-size: 24px;
    }

    .xw-legal-body {
        padding: 20px;
    }

    .xw-footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .xw-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .xw-feature-grid {
        grid-template-columns: 1fr;
    }

    .xw-404-code {
        font-size: 72px;
    }

    .xw-404-msg {
        font-size: 17px;
    }
}

@media (max-width: 380px) {
    .xw-container,
    .xw-main-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .xw-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .xw-game-card-name {
        font-size: 13px;
    }

    .xw-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}
