/* ============================================
   TheZovio Game Portal - Core Styles
   Dark Gaming Theme - Cyan & Purple
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --zv-bg-deep: #060a14;
    --zv-bg-dark: #0c1120;
    --zv-bg-card: #131a2e;
    --zv-bg-card-hover: #1a2340;
    --zv-bg-elevated: #1e2745;
    --zv-surface: #252f4a;
    --zv-cyan: #00d4ff;
    --zv-cyan-dim: rgba(0, 212, 255, 0.15);
    --zv-purple: #7c3aed;
    --zv-purple-dim: rgba(124, 58, 237, 0.15);
    --zv-pink: #ec4899;
    --zv-green: #10b981;
    --zv-amber: #f59e0b;
    --zv-red: #ef4444;
    --zv-text: #e2e8f0;
    --zv-text-secondary: #94a3b8;
    --zv-text-muted: #64748b;
    --zv-border: rgba(255, 255, 255, 0.06);
    --zv-border-hover: rgba(0, 212, 255, 0.3);
    --zv-glow: 0 0 20px rgba(0, 212, 255, 0.15);
    --zv-glow-strong: 0 0 30px rgba(0, 212, 255, 0.25);
    --zv-radius: 12px;
    --zv-radius-sm: 8px;
    --zv-radius-lg: 16px;
    --zv-radius-xl: 20px;
    --zv-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --zv-max-width: 1280px;
    --zv-header-height: 64px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    color: var(--zv-text);
    background-color: var(--zv-bg-deep);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--zv-transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ============================================
   Site Container
   ============================================ */
.zv-container {
    width: 100%;
    max-width: var(--zv-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Header & Navigation - Dark Centered
   ============================================ */
.zv-header {
    width: 100%;
    background: var(--zv-bg-dark);
    border-bottom: 1px solid var(--zv-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.zv-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--zv-header-height);
    max-width: var(--zv-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.zv-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.zv-nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--zv-cyan-dim);
}

.zv-nav-title {
    color: var(--zv-text);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.zv-nav-title span {
    color: var(--zv-cyan);
}

.zv-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--zv-bg-card);
    border-radius: var(--zv-radius-sm);
    transition: var(--zv-transition);
}

.zv-nav-toggle:hover {
    background: var(--zv-surface);
}

.zv-nav-toggle-icon {
    width: 20px;
    height: 2px;
    background: var(--zv-text);
    position: relative;
    transition: var(--zv-transition);
}

.zv-nav-toggle-icon::before,
.zv-nav-toggle-icon::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--zv-text);
    left: 0;
    transition: var(--zv-transition);
}

.zv-nav-toggle-icon::before {
    top: -6px;
}

.zv-nav-toggle-icon::after {
    top: 6px;
}

.zv-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.zv-nav-link {
    display: block;
    padding: 8px 14px;
    color: var(--zv-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--zv-radius-sm);
    transition: var(--zv-transition);
    white-space: nowrap;
    position: relative;
}

.zv-nav-link:hover,
.zv-nav-link.is-active {
    color: var(--zv-cyan);
    background: var(--zv-cyan-dim);
}

/* ============================================
   Main Content Area
   ============================================ */
.zv-main {
    padding: 28px 0 60px;
    min-height: calc(100vh - var(--zv-header-height) - 200px);
}

.zv-section {
    margin-bottom: 40px;
}

.zv-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--zv-border);
}

.zv-section-title {
    color: var(--zv-text);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    position: relative;
}

.zv-section-title::after {
    content: "";
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--zv-cyan), var(--zv-purple));
    border-radius: 2px;
}

.zv-section-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--zv-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--zv-cyan-dim);
    transition: var(--zv-transition);
}

.zv-section-more:hover {
    background: rgba(0, 212, 255, 0.25);
}

/* ============================================
   Game Grid - 5 columns PC, 2 columns Mobile
   ============================================ */
.zv-game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.zv-game-grid--compact {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

/* Game Card - Dark Portrait Style */
.zv-game-card {
    background: var(--zv-bg-card);
    border-radius: var(--zv-radius);
    overflow: hidden;
    transition: var(--zv-transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--zv-border);
    position: relative;
}

.zv-game-card:hover {
    transform: translateY(-4px);
    border-color: var(--zv-border-hover);
    box-shadow: var(--zv-glow);
}

.zv-game-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--zv-bg-dark);
}

.zv-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.zv-game-card:hover .zv-game-thumb img {
    transform: scale(1.08);
}

.zv-game-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zv-tag-boys { background: var(--zv-cyan); color: var(--zv-bg-deep); }
.zv-tag-girls { background: var(--zv-pink); }
.zv-tag-puzzle { background: var(--zv-green); color: var(--zv-bg-deep); }
.zv-tag-sports { background: var(--zv-red); }
.zv-tag-strategy { background: var(--zv-amber); color: var(--zv-bg-deep); }
.zv-tag-casual { background: var(--zv-purple); }
.zv-tag-best { background: linear-gradient(135deg, var(--zv-amber), var(--zv-red)); }
.zv-tag-beauty { background: linear-gradient(135deg, var(--zv-pink), var(--zv-purple)); }
.zv-tag-popular { background: linear-gradient(135deg, var(--zv-purple), var(--zv-cyan)); }

.zv-game-mark {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--zv-amber);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

/* Play overlay on hover */
.zv-game-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 10, 20, 0.9) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.zv-game-card:hover::after {
    opacity: 1;
}

.zv-game-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--zv-bg-card);
    position: relative;
    z-index: 3;
}

.zv-game-name {
    color: var(--zv-text);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.2em;
}

.zv-game-desc {
    color: var(--zv-text-muted);
    font-size: 0.7rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Game Card - Cover variant */
.zv-game-card--cover .zv-game-body {
    display: none;
}

.zv-game-card--cover .zv-game-thumb {
    aspect-ratio: 4 / 5;
}

/* Game Card - Compact variant */
.zv-game-card--compact {
    border-radius: var(--zv-radius-sm);
}

.zv-game-card--compact .zv-game-thumb {
    aspect-ratio: 3 / 4;
}

.zv-game-card--compact .zv-game-name {
    font-size: 0.75rem;
    min-height: auto;
    -webkit-line-clamp: 1;
}

/* ============================================
   Channel Page Layout
   ============================================ */
.zv-channel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: linear-gradient(135deg, var(--zv-purple) 0%, var(--zv-cyan) 100%);
    border-radius: var(--zv-radius-lg);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.zv-channel-header::before {
    content: "";
    position: absolute;
    right: -20px;
    top: -20px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.zv-channel-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    z-index: 1;
}

.zv-channel-title {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    z-index: 1;
}

/* ============================================
   Game Detail Page
   ============================================ */
.zv-game-detail {
    margin-bottom: 30px;
}

.zv-game-detail-main {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.zv-game-iframe-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--zv-radius);
    overflow: hidden;
    border: 1px solid var(--zv-border);
}

.zv-game-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.zv-game-info-card {
    background: var(--zv-bg-card);
    border-radius: var(--zv-radius);
    padding: 24px;
    border: 1px solid var(--zv-border);
}

.zv-game-info-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--zv-radius-sm);
    overflow: hidden;
    margin-bottom: 18px;
    background: var(--zv-bg-dark);
}

.zv-game-info-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zv-game-info-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--zv-text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.zv-game-info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.zv-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--zv-surface);
    color: var(--zv-text-secondary);
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 8px;
}

.zv-meta-tag--accent {
    background: var(--zv-cyan-dim);
    color: var(--zv-cyan);
}

.zv-game-info-desc {
    color: var(--zv-text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.zv-play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--zv-cyan), var(--zv-purple));
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--zv-radius);
    transition: var(--zv-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zv-play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.zv-play-button-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Game Detail Content Sections */
.zv-game-section {
    background: var(--zv-bg-card);
    border-radius: var(--zv-radius);
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid var(--zv-border);
}

.zv-game-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--zv-text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--zv-border);
    position: relative;
}

.zv-game-section-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--zv-cyan), var(--zv-purple));
}

.zv-game-section-content {
    color: var(--zv-text);
    font-size: 0.92rem;
    line-height: 1.8;
}

.zv-game-section-content p {
    margin-bottom: 12px;
}

.zv-game-section-content ul,
.zv-game-section-content ol {
    padding-left: 22px;
    margin-bottom: 12px;
}

.zv-game-section-content li {
    margin-bottom: 6px;
    list-style: disc;
}

.zv-game-section-content ol li {
    list-style: decimal;
}

.zv-game-section-content strong {
    color: var(--zv-cyan);
}

/* ============================================
   Footer
   ============================================ */
.zv-footer {
    background: var(--zv-bg-dark);
    color: var(--zv-text-secondary);
    padding: 48px 0 24px;
    margin-top: 60px;
    border-top: 1px solid var(--zv-border);
}

.zv-footer-inner {
    max-width: var(--zv-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.zv-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

.zv-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.zv-footer-brand-name {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--zv-text);
    font-size: 1.3rem;
    font-weight: 800;
}

.zv-footer-brand-name img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 2px solid var(--zv-cyan-dim);
}

.zv-footer-brand-desc {
    color: var(--zv-text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.zv-footer-col-title {
    color: var(--zv-text);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zv-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zv-footer-links a {
    color: var(--zv-text-muted);
    font-size: 0.82rem;
    transition: var(--zv-transition);
}

.zv-footer-links a:hover {
    color: var(--zv-cyan);
    padding-left: 4px;
}

.zv-footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--zv-border);
    color: var(--zv-text-muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

.zv-footer-bottom a {
    color: var(--zv-text-secondary);
}

.zv-footer-bottom a:hover {
    color: var(--zv-cyan);
}

/* ============================================
   404 Error Page
   ============================================ */
.zv-error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    min-height: 60vh;
}

.zv-error-code {
    font-size: 7rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--zv-cyan), var(--zv-purple), var(--zv-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.zv-error-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--zv-text);
    margin-bottom: 12px;
}

.zv-error-desc {
    color: var(--zv-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
    max-width: 480px;
}

.zv-error-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--zv-cyan), var(--zv-purple));
    color: #ffffff;
    font-weight: 600;
    border-radius: 28px;
    transition: var(--zv-transition);
    font-size: 0.92rem;
}

.zv-error-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

/* ============================================
   Article/Page Content (Legal, FAQ, etc.)
   ============================================ */
.zv-article {
    max-width: 840px;
    margin: 0 auto;
    background: var(--zv-bg-card);
    border-radius: var(--zv-radius);
    padding: 36px;
    border: 1px solid var(--zv-border);
}

.zv-article h1 {
    font-size: 1.7rem;
    color: var(--zv-text);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--zv-border);
    font-weight: 800;
}

.zv-article h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--zv-cyan), var(--zv-purple));
    margin-top: -2px;
    border-radius: 2px;
}

.zv-article h2 {
    font-size: 1.2rem;
    color: var(--zv-text);
    margin: 28px 0 12px;
    padding-left: 14px;
    border-left: 3px solid var(--zv-cyan);
    font-weight: 700;
}

.zv-article h3 {
    font-size: 1.05rem;
    color: var(--zv-text);
    margin: 20px 0 10px;
    font-weight: 600;
}

.zv-article p {
    color: var(--zv-text-secondary);
    font-size: 0.92rem;
    line-height: 1.85;
    margin-bottom: 14px;
}

.zv-article ul,
.zv-article ol {
    padding-left: 24px;
    margin-bottom: 14px;
}

.zv-article li {
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 6px;
    list-style: disc;
    color: var(--zv-text-secondary);
}

.zv-article ol li {
    list-style: decimal;
}

.zv-article a {
    color: var(--zv-cyan);
    text-decoration: underline;
}

.zv-article a:hover {
    color: var(--zv-purple);
}

.zv-article strong {
    color: var(--zv-text);
}

.zv-article .zv-article-date {
    color: var(--zv-text-muted);
    font-size: 0.82rem;
    margin-bottom: 20px;
}

.zv-article .zv-contact-email {
    display: inline-block;
    background: var(--zv-cyan-dim);
    color: var(--zv-cyan);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    margin: 6px 0 14px;
    border: 1px dashed rgba(0, 212, 255, 0.3);
    font-size: 0.9rem;
}

/* FAQ Accordion */
.zv-faq-item {
    border: 1px solid var(--zv-border);
    border-radius: var(--zv-radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
    transition: var(--zv-transition);
    background: var(--zv-bg-card);
}

.zv-faq-item:hover {
    border-color: var(--zv-border-hover);
}

.zv-faq-question {
    width: 100%;
    padding: 16px 20px;
    background: var(--zv-bg-elevated);
    color: var(--zv-text);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--zv-transition);
}

.zv-faq-question:hover {
    background: var(--zv-surface);
}

.zv-faq-question::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--zv-cyan);
    transition: transform 0.3s;
    font-weight: 300;
}

.zv-faq-item.is-open .zv-faq-question::after {
    transform: rotate(45deg);
}

.zv-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.zv-faq-item.is-open .zv-faq-answer {
    max-height: 600px;
}

.zv-faq-answer-inner {
    padding: 18px 20px;
    color: var(--zv-text-secondary);
    font-size: 0.88rem;
    line-height: 1.8;
    background: var(--zv-bg-card);
}

/* ============================================
   Back to Top
   ============================================ */
.zv-back-top {
    position: fixed;
    right: 24px;
    bottom: 80px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 50;
}

.zv-back-top.is-visible {
    display: flex;
}

.zv-back-btn {
    width: 44px;
    height: 44px;
    background: var(--zv-bg-card);
    border: 1px solid var(--zv-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--zv-transition);
}

.zv-back-btn:hover {
    background: var(--zv-cyan-dim);
    border-color: var(--zv-border-hover);
    transform: translateY(-2px);
}

.zv-back-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* ============================================
   Responsive - Tablet (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .zv-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .zv-game-detail-main {
        grid-template-columns: 1fr;
    }

    .zv-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

/* ============================================
   Responsive - Mobile (max-width: 640px)
   ============================================ */
@media (max-width: 640px) {
    :root {
        --zv-header-height: 56px;
    }

    .zv-container {
        padding: 0 14px;
    }

    .zv-navbar {
        padding: 0 14px;
    }

    .zv-nav-title {
        font-size: 1.2rem;
    }

    .zv-nav-logo {
        width: 34px;
        height: 34px;
    }

    .zv-nav-toggle {
        display: flex;
    }

    .zv-nav-menu {
        display: none;
        position: absolute;
        top: var(--zv-header-height);
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--zv-bg-dark);
        border-bottom: 1px solid var(--zv-border);
        padding: 8px 0;
    }

    .zv-nav-menu.is-open {
        display: flex;
    }

    .zv-nav-link {
        color: var(--zv-text-secondary);
        padding: 12px 20px;
        border-radius: 0;
        font-size: 0.92rem;
    }

    .zv-nav-link:hover,
    .zv-nav-link.is-active {
        background: var(--zv-cyan-dim);
        color: var(--zv-cyan);
    }

    .zv-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .zv-game-grid--compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .zv-game-body {
        padding: 8px 10px 10px;
    }

    .zv-game-name {
        font-size: 0.74rem;
        min-height: 2em;
    }

    .zv-game-desc {
        display: none;
    }

    .zv-game-tag {
        font-size: 0.58rem;
        padding: 2px 6px;
    }

    .zv-section-header {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .zv-section-title {
        font-size: 1.05rem;
    }

    .zv-section-more {
        font-size: 0.72rem;
        padding: 4px 10px;
    }

    .zv-game-detail-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 0;
        gap: 0;
    }

    .zv-game-detail-cover {
        max-width: 100%;
        border-radius: var(--zv-radius) var(--zv-radius) 0 0;
        aspect-ratio: 16 / 10;
    }

    .zv-game-detail-cover img {
        border-radius: 0;
    }

    .zv-game-detail-meta {
        align-items: flex-start;
        text-align: left;
        padding: 14px 16px 18px;
    }

    .zv-game-detail-title {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .zv-game-detail-tags {
        justify-content: flex-start;
        margin-bottom: 10px;
    }

    .zv-game-detail-desc {
        font-size: 0.85rem;
        line-height: 1.65;
        margin-bottom: 14px;
    }

    .zv-play-btn {
        width: 100%;
        max-width: none;
        padding: 12px 28px;
        font-size: 0.92rem;
    }

    .zv-article {
        padding: 18px;
    }

    .zv-article h1 {
        font-size: 1.3rem;
    }

    .zv-article h2 {
        font-size: 1.05rem;
    }

    .zv-article h3 {
        font-size: 0.95rem;
        margin: 16px 0 8px;
    }

    .zv-article p {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    .zv-article li {
        font-size: 0.85rem;
    }

    .zv-game-detail-desc,
    .zv-article p,
    .zv-article li {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }

    .zv-section {
        margin-bottom: 28px;
    }

    .zv-game-detail {
        margin-bottom: 20px;
    }

    .zv-footer {
        border-radius: 0;
    }

    .zv-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .zv-error-code {
        font-size: 4.5rem;
    }

    .zv-error-title {
        font-size: 1.15rem;
    }

    .zv-back-top {
        right: 14px;
        bottom: 70px;
    }

    .zv-back-btn {
        width: 40px;
        height: 40px;
    }

    .zv-back-btn img {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   Game Detail Page (mobile-first overrides)
   ============================================ */
.zv-game-detail {
    padding: 24px 0;
}

.zv-game-detail-main {
    display: grid;
    gap: 28px;
    background: var(--zv-bg-card);
    border-radius: var(--zv-radius);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--zv-border);
}

.zv-game-detail-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--zv-radius);
    overflow: hidden;
}

.zv-game-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zv-game-detail-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.zv-game-detail-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--zv-text);
    margin-bottom: 14px;
    line-height: 1.25;
}

.zv-game-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.zv-tag {
    display: inline-block;
    background: var(--zv-cyan-dim);
    color: var(--zv-cyan);
    padding: 4px 12px;
    border-radius: 18px;
    font-size: 0.75rem;
    font-weight: 600;
}

.zv-tag--date {
    background: rgba(16, 185, 129, 0.15);
    color: var(--zv-green);
}

.zv-game-detail-desc {
    color: var(--zv-text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.zv-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--zv-cyan), var(--zv-purple));
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 28px;
    transition: var(--zv-transition);
    width: fit-content;
}

.zv-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

/* ============================================
   Game Iframe (play page)
   ============================================ */
.zv-iframe-wrap {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #000;
}

.zv-iframe-back {
    position: fixed;
    top: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    background: rgba(12, 17, 32, 0.8);
    border: 1px solid var(--zv-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: var(--zv-transition);
}

.zv-iframe-back:hover {
    background: var(--zv-cyan-dim);
    border-color: var(--zv-border-hover);
}

.zv-iframe-back img {
    width: 22px;
    height: 22px;
}

.zv-game-iframe {
    display: block;
    width: 100%;
    height: 100vh;
    border: 0;
    overflow: hidden;
}

/* ============================================
   Animations
   ============================================ */
@keyframes zv-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zv-fade-in {
    animation: zv-fade-in 0.4s ease-out;
}

/* ============================================
   Utility Classes
   ============================================ */
.zv-text-center {
    text-align: center;
}

.zv-mt-2 {
    margin-top: 16px;
}

.zv-mb-2 {
    margin-bottom: 16px;
}
