/* ============================================
   Dacnedu Game Portal - Core Styles
   Bright Sky Blue + Warm Orange + Fresh Mint Theme
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --dce-primary: #2563eb;
    --dce-primary-dark: #1d4ed8;
    --dce-primary-light: #60a5fa;
    --dce-primary-bg: #eff6ff;
    --dce-secondary: #f59e0b;
    --dce-secondary-dark: #d97706;
    --dce-secondary-light: #fbbf24;
    --dce-accent: #10b981;
    --dce-accent-dark: #059669;
    --dce-rose: #f43f5e;
    --dce-pink: #ec4899;
    --dce-violet: #8b5cf6;
    --dce-cyan: #06b6d4;
    --dce-bg: #f8fafc;
    --dce-bg-alt: #f1f5f9;
    --dce-card-bg: #ffffff;
    --dce-text: #0f172a;
    --dce-text-light: #475569;
    --dce-text-muted: #94a3b8;
    --dce-border: #e2e8f0;
    --dce-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --dce-shadow-hover: 0 10px 25px rgba(37, 99, 235, 0.12);
    --dce-radius: 14px;
    --dce-radius-sm: 10px;
    --dce-radius-lg: 18px;
    --dce-radius-xl: 22px;
    --dce-transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --dce-max-width: 1280px;
    --dce-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(--dce-text);
    background-color: var(--dce-bg);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--dce-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
   ============================================ */
.dce-container {
    width: 100%;
    max-width: var(--dce-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Header & Navigation - Bright White Design
   ============================================ */
.dce-header {
    width: 100%;
    background: var(--dce-card-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid var(--dce-border);
}

.dce-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--dce-header-height);
    max-width: var(--dce-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.dce-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.dce-nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.dce-nav-title {
    color: var(--dce-primary);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.dce-nav-title-accent {
    color: var(--dce-secondary);
}

.dce-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--dce-bg-alt);
    border-radius: var(--dce-radius-sm);
    transition: var(--dce-transition);
}

.dce-nav-toggle:hover {
    background: var(--dce-border);
}

.dce-nav-toggle-icon {
    width: 20px;
    height: 2px;
    background: var(--dce-text);
    position: relative;
    transition: var(--dce-transition);
}

.dce-nav-toggle-icon::before,
.dce-nav-toggle-icon::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--dce-text);
    left: 0;
    transition: var(--dce-transition);
}

.dce-nav-toggle-icon::before {
    top: -6px;
}

.dce-nav-toggle-icon::after {
    top: 6px;
}

.dce-nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.dce-nav-link {
    display: block;
    padding: 7px 14px;
    color: var(--dce-text-light);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--dce-radius-sm);
    transition: var(--dce-transition);
    white-space: nowrap;
}

.dce-nav-link:hover,
.dce-nav-link.is-active {
    background: var(--dce-primary-bg);
    color: var(--dce-primary);
}

/* ============================================
   Main Content Area
   ============================================ */
.dce-main {
    padding: 28px 0 64px;
    min-height: calc(100vh - var(--dce-header-height) - 220px);
}

.dce-section {
    margin-bottom: 40px;
}

.dce-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: linear-gradient(135deg, var(--dce-primary), var(--dce-primary-dark));
    border-radius: var(--dce-radius);
    margin-bottom: 18px;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.18);
}

.dce-section-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.dce-section-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--dce-transition);
    backdrop-filter: blur(4px);
}

.dce-section-more:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: translateX(2px);
}

/* ============================================
   Game Grid - 5 columns, 4:3 aspect ratio cards
   ============================================ */
.dce-game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.dce-game-grid--compact {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

/* Game Card */
.dce-game-card {
    background: var(--dce-card-bg);
    border-radius: var(--dce-radius);
    overflow: hidden;
    box-shadow: var(--dce-shadow);
    transition: var(--dce-transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--dce-border);
}

.dce-game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--dce-shadow-hover);
    border-color: var(--dce-primary-light);
}

.dce-game-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.dce-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.dce-game-card:hover .dce-game-thumb img {
    transform: scale(1.08);
}

.dce-game-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dce-tag-boys { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.dce-tag-girls { background: linear-gradient(135deg, #ec4899, #db2777); }
.dce-tag-puzzle { background: linear-gradient(135deg, #10b981, #059669); }
.dce-tag-sports { background: linear-gradient(135deg, #f97316, #ea580c); }
.dce-tag-strategy { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.dce-tag-casual { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.dce-tag-action { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.dce-tag-adventure { background: linear-gradient(135deg, #f59e0b, #d97706); }
.dce-tag-featured { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.dce-tag-trending { background: linear-gradient(135deg, #10b981, #06b6d4); }

.dce-game-mark {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.72);
    color: var(--dce-secondary-light);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 8px;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
}

.dce-game-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dce-game-name {
    color: var(--dce-text);
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.35;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.3em;
}

.dce-game-desc {
    color: var(--dce-text-light);
    font-size: 0.72rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Game Card - Cover variant */
.dce-game-card--cover .dce-game-body {
    display: none;
}

.dce-game-card--cover .dce-game-thumb {
    aspect-ratio: 4 / 3;
}

/* Game Card - Compact variant */
.dce-game-card--compact {
    border-radius: var(--dce-radius-sm);
}

.dce-game-card--compact .dce-game-thumb {
    aspect-ratio: 4 / 3;
}

.dce-game-card--compact .dce-game-name {
    font-size: 0.78rem;
    min-height: auto;
    -webkit-line-clamp: 1;
}

/* ============================================
   Channel Page Layout
   ============================================ */
.dce-channel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--dce-primary), var(--dce-accent));
    border-radius: var(--dce-radius-lg);
    margin-bottom: 24px;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.2);
}

.dce-channel-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.dce-channel-title {
    color: #ffffff;
    font-size: 1.28rem;
    font-weight: 800;
}

/* ============================================
   Game Detail Page
   ============================================ */
.dce-game-detail {
    padding: 24px 0;
    margin-bottom: 28px;
}

.dce-game-detail-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
    background: var(--dce-card-bg);
    border-radius: var(--dce-radius-lg);
    padding: 24px;
    box-shadow: var(--dce-shadow);
    margin-bottom: 22px;
    border: 1px solid var(--dce-border);
}

.dce-game-detail-cover {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    border-radius: var(--dce-radius);
    overflow: hidden;
    box-shadow: var(--dce-shadow);
}

.dce-game-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dce-game-detail-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dce-game-detail-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--dce-text);
    margin-bottom: 12px;
    line-height: 1.25;
}

.dce-game-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.dce-tag {
    display: inline-block;
    background: var(--dce-primary-bg);
    color: var(--dce-primary-dark);
    padding: 4px 12px;
    border-radius: 18px;
    font-size: 0.76rem;
    font-weight: 600;
}

.dce-tag--date {
    background: #ecfdf5;
    color: #047857;
}

.dce-game-detail-desc {
    color: var(--dce-text);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.dce-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 36px;
    background: linear-gradient(135deg, var(--dce-secondary), var(--dce-secondary-dark));
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 28px;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.3);
    transition: var(--dce-transition);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.dce-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

/* Game Detail Iframe */
.dce-game-iframe-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--dce-radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    margin-bottom: 22px;
}

.dce-game-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.dce-game-info-card {
    background: var(--dce-card-bg);
    border-radius: var(--dce-radius);
    padding: 20px;
    box-shadow: var(--dce-shadow);
    border: 1px solid var(--dce-border);
}

.dce-game-info-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--dce-radius-sm);
    overflow: hidden;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.dce-game-info-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dce-game-info-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--dce-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.dce-game-info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.dce-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--dce-bg-alt);
    color: var(--dce-text-light);
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 10px;
}

.dce-meta-tag--accent {
    background: #ecfdf5;
    color: #047857;
}

.dce-game-info-desc {
    color: var(--dce-text-light);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

.dce-play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--dce-secondary), var(--dce-secondary-dark));
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: var(--dce-radius);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
    transition: var(--dce-transition);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.dce-play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(245, 158, 11, 0.35);
}

.dce-play-button-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* Game Detail Content Sections */
.dce-game-section {
    background: var(--dce-card-bg);
    border-radius: var(--dce-radius);
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--dce-shadow);
    border: 1px solid var(--dce-border);
}

.dce-game-section-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--dce-text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--dce-border);
    position: relative;
}

.dce-game-section-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--dce-primary), var(--dce-accent));
    border-radius: 1px;
}

.dce-game-section-content {
    color: var(--dce-text);
    font-size: 0.92rem;
    line-height: 1.75;
}

.dce-game-section-content p {
    margin-bottom: 12px;
}

.dce-game-section-content ul,
.dce-game-section-content ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.dce-game-section-content li {
    margin-bottom: 6px;
    list-style: disc;
}

.dce-game-section-content ol li {
    list-style: decimal;
}

.dce-game-section-content strong {
    color: var(--dce-primary-dark);
}

/* ============================================
   Breadcrumb Navigation
   ============================================ */
.dce-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: var(--dce-card-bg);
    border-radius: var(--dce-radius-sm);
    border: 1px solid var(--dce-border);
    font-size: 0.82rem;
}

.dce-breadcrumb-link {
    color: var(--dce-primary);
    font-weight: 500;
    transition: var(--dce-transition);
}

.dce-breadcrumb-link:hover {
    color: var(--dce-primary-dark);
}

.dce-breadcrumb-sep {
    color: var(--dce-text-muted);
    font-size: 0.78rem;
}

.dce-breadcrumb-current {
    color: var(--dce-text-light);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 260px;
}

/* ============================================
   Detail Info Strip
   ============================================ */
.dce-detail-info-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.dce-detail-info-cell {
    background: var(--dce-card-bg);
    border-radius: var(--dce-radius-sm);
    padding: 14px 16px;
    text-align: center;
    border: 1px solid var(--dce-border);
    box-shadow: var(--dce-shadow);
}

.dce-detail-info-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--dce-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.dce-detail-info-value {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dce-text);
}

.dce-detail-info-free {
    color: var(--dce-accent);
}

/* ============================================
   Detail Highlights Cards
   ============================================ */
.dce-detail-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.dce-highlight-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--dce-primary-bg), #f0fdf4);
    border-radius: var(--dce-radius-sm);
    border: 1px solid var(--dce-border);
    transition: var(--dce-transition);
}

.dce-highlight-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--dce-shadow-hover);
    border-color: var(--dce-primary-light);
}

.dce-highlight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.dce-highlight-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dce-highlight-text strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dce-text);
}

.dce-highlight-text span {
    font-size: 0.72rem;
    color: var(--dce-text-light);
    line-height: 1.35;
}

/* ============================================
   Footer - Bright Clean Design
   ============================================ */
.dce-footer {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--dce-text-light);
    padding: 44px 0 24px;
    margin-top: 64px;
    border-top: 1px solid var(--dce-border);
}

.dce-footer-inner {
    max-width: var(--dce-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.dce-footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1.2fr;
    gap: 32px;
    margin-bottom: 32px;
}

.dce-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dce-footer-brand-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dce-primary);
    font-size: 1.25rem;
    font-weight: 800;
}

.dce-footer-brand-name img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.dce-footer-brand-desc {
    color: var(--dce-text-muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

.dce-footer-col-title {
    color: var(--dce-text);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.dce-footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dce-footer-links a {
    color: var(--dce-text-light);
    font-size: 0.82rem;
    transition: var(--dce-transition);
}

.dce-footer-links a:hover {
    color: var(--dce-primary);
    padding-left: 4px;
}

.dce-footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--dce-border);
    color: var(--dce-text-muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

.dce-footer-bottom a {
    color: var(--dce-text-light);
}

.dce-footer-bottom a:hover {
    color: var(--dce-primary);
}

/* ============================================
   404 Error Page
   ============================================ */
.dce-error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 72px 20px;
    min-height: 55vh;
}

.dce-error-code {
    font-size: 6.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--dce-primary), var(--dce-secondary), var(--dce-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 14px;
}

.dce-error-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dce-text);
    margin-bottom: 10px;
}

.dce-error-desc {
    color: var(--dce-text-light);
    font-size: 0.92rem;
    margin-bottom: 26px;
    max-width: 460px;
}

.dce-error-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--dce-primary), var(--dce-primary-dark));
    color: #ffffff;
    font-weight: 600;
    border-radius: 28px;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.25);
    transition: var(--dce-transition);
    font-size: 0.9rem;
}

.dce-error-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(37, 99, 235, 0.35);
}

/* ============================================
   Article/Page Content (Legal, FAQ, etc.)
   ============================================ */
.dce-article {
    max-width: 820px;
    margin: 0 auto;
    background: var(--dce-card-bg);
    border-radius: var(--dce-radius-lg);
    padding: 36px;
    box-shadow: var(--dce-shadow);
    border: 1px solid var(--dce-border);
}

.dce-article h1 {
    font-size: 1.65rem;
    color: var(--dce-text);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--dce-primary);
    font-weight: 800;
}

.dce-article h2 {
    font-size: 1.15rem;
    color: var(--dce-text);
    margin: 24px 0 10px;
    padding-left: 12px;
    border-left: 4px solid var(--dce-primary);
    font-weight: 700;
}

.dce-article h3 {
    font-size: 1rem;
    color: var(--dce-text);
    margin: 18px 0 8px;
    font-weight: 600;
}

.dce-article p {
    color: var(--dce-text);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.dce-article ul,
.dce-article ol {
    padding-left: 22px;
    margin-bottom: 12px;
}

.dce-article li {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 5px;
    list-style: disc;
}

.dce-article ol li {
    list-style: decimal;
}

.dce-article a {
    color: var(--dce-primary);
    text-decoration: underline;
}

.dce-article a:hover {
    color: var(--dce-primary-dark);
}

.dce-article strong {
    color: var(--dce-text);
}

.dce-article .dce-article-date {
    color: var(--dce-text-light);
    font-size: 0.8rem;
    margin-bottom: 18px;
}

.dce-article .dce-contact-email {
    display: inline-block;
    background: var(--dce-primary-bg);
    color: var(--dce-primary-dark);
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 600;
    margin: 5px 0 12px;
    border: 1px dashed var(--dce-primary-light);
    font-size: 0.88rem;
}

/* FAQ Accordion */
.dce-faq-item {
    border: 1px solid var(--dce-border);
    border-radius: var(--dce-radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
    transition: var(--dce-transition);
}

.dce-faq-item:hover {
    border-color: var(--dce-primary-light);
}

.dce-faq-question {
    width: 100%;
    padding: 13px 18px;
    background: var(--dce-primary-bg);
    color: var(--dce-text);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--dce-transition);
}

.dce-faq-question:hover {
    background: #dbeafe;
}

.dce-faq-question::after {
    content: "+";
    font-size: 1.2rem;
    color: var(--dce-primary);
    transition: transform 0.28s;
    font-weight: 300;
}

.dce-faq-item.is-open .dce-faq-question::after {
    transform: rotate(45deg);
}

.dce-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.dce-faq-item.is-open .dce-faq-answer {
    max-height: 600px;
}

.dce-faq-answer-inner {
    padding: 16px 18px;
    color: var(--dce-text);
    font-size: 0.88rem;
    line-height: 1.75;
    background: var(--dce-card-bg);
}

/* ============================================
   Back to Top
   ============================================ */
.dce-back-top {
    position: fixed;
    right: 20px;
    bottom: 72px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 50;
}

.dce-back-top.is-visible {
    display: flex;
}

.dce-back-btn {
    width: 42px;
    height: 42px;
    background: var(--dce-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
    transition: var(--dce-transition);
}

.dce-back-btn:hover {
    background: var(--dce-primary-dark);
    transform: translateY(-2px);
}

.dce-back-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* ============================================
   Responsive - Tablet (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .dce-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .dce-game-detail-main {
        grid-template-columns: 1fr;
    }

    .dce-game-detail-cover {
        max-width: 100%;
        margin: 0 auto;
    }

    .dce-detail-info-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .dce-detail-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .dce-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

/* ============================================
   Responsive - Mobile (max-width: 640px)
   ============================================ */
@media (max-width: 640px) {
    :root {
        --dce-header-height: 56px;
    }

    .dce-container {
        padding: 0 14px;
    }

    .dce-navbar {
        padding: 0 14px;
    }

    .dce-nav-title {
        font-size: 1.15rem;
    }

    .dce-nav-logo {
        width: 34px;
        height: 34px;
    }

    .dce-nav-toggle {
        display: flex;
    }

    .dce-nav-menu {
        display: none;
        position: absolute;
        top: var(--dce-header-height);
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--dce-card-bg);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
        padding: 6px 0;
        border-bottom: 1px solid var(--dce-border);
    }

    .dce-nav-menu.is-open {
        display: flex;
    }

    .dce-nav-link {
        color: var(--dce-text-light);
        padding: 12px 20px;
        border-radius: 0;
        font-size: 0.9rem;
    }

    .dce-nav-link:hover,
    .dce-nav-link.is-active {
        background: var(--dce-primary-bg);
        color: var(--dce-primary);
    }

    .dce-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .dce-game-grid--compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .dce-game-body {
        padding: 8px 10px 10px;
    }

    .dce-game-name {
        font-size: 0.76rem;
        min-height: 2em;
    }

    .dce-game-desc {
        display: none;
    }

    .dce-game-tag {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .dce-section-header {
        padding: 12px 16px;
    }

    .dce-section-title {
        font-size: 0.96rem;
    }

    .dce-section-more {
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    .dce-game-detail-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 0;
        gap: 0;
    }

    .dce-game-detail-cover {
        max-width: 100%;
        border-radius: var(--dce-radius-lg) var(--dce-radius-lg) 0 0;
        aspect-ratio: 16 / 10;
    }

    .dce-game-detail-cover img {
        border-radius: 0;
    }

    .dce-game-detail-meta {
        align-items: flex-start;
        text-align: left;
        padding: 14px 16px 18px;
    }

    .dce-game-detail-title {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .dce-game-detail-tags {
        justify-content: flex-start;
        margin-bottom: 10px;
    }

    .dce-game-detail-desc {
        font-size: 0.84rem;
        line-height: 1.65;
        margin-bottom: 14px;
    }

    .dce-play-btn {
        width: 100%;
        max-width: none;
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .dce-article {
        padding: 18px;
    }

    .dce-article h1 {
        font-size: 1.25rem;
    }

    .dce-article h2 {
        font-size: 1.04rem;
    }

    .dce-article h3 {
        font-size: 0.94rem;
        margin: 14px 0 6px;
    }

    .dce-article p {
        font-size: 0.84rem;
        line-height: 1.7;
    }

    .dce-article li {
        font-size: 0.84rem;
    }

    .dce-detail-info-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .dce-detail-info-cell {
        padding: 10px 12px;
    }

    .dce-detail-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .dce-highlight-card {
        padding: 10px 12px;
        gap: 8px;
    }

    .dce-highlight-icon {
        font-size: 1.2rem;
    }

    .dce-highlight-text strong {
        font-size: 0.76rem;
    }

    .dce-highlight-text span {
        font-size: 0.68rem;
    }

    .dce-breadcrumb {
        padding: 8px 12px;
        font-size: 0.76rem;
        margin-bottom: 12px;
    }

    .dce-breadcrumb-current {
        max-width: 160px;
    }

    .dce-game-detail-desc,
    .dce-article p,
    .dce-article li {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }

    .dce-section {
        margin-bottom: 24px;
    }

    .dce-game-detail {
        margin-bottom: 18px;
    }

    .dce-footer {
        border-radius: 0;
    }

    .dce-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .dce-error-code {
        font-size: 4rem;
    }

    .dce-error-title {
        font-size: 1.1rem;
    }

    .dce-back-top {
        right: 12px;
        bottom: 64px;
    }

    .dce-back-btn {
        width: 38px;
        height: 38px;
    }

    .dce-back-btn img {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   Game Iframe (play page) - Fullscreen
   ============================================ */
.dce-iframe-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    margin: 0;
    padding: 0;
}

.dce-iframe-wrap iframe,
.dce-iframe-wrap .game {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    overflow: hidden;
}

.dce-iframe-back {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: var(--dce-transition);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dce-iframe-back:hover {
    background: var(--dce-primary);
    transform: scale(1.08);
}

.dce-iframe-back img {
    width: 20px;
    height: 20px;
}

.dce-game-iframe {
    display: block;
    width: 100%;
    height: 100vh;
    border: 0;
    overflow: hidden;
}

/* ============================================
   Animations
   ============================================ */
@keyframes dce-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dce-fade-in {
    animation: dce-fade-in 0.35s ease-out;
}

/* ============================================
   Game Detail - Ratings Component
   ============================================ */
.dce-detail-ratings {
    background: var(--dce-card-bg, #ffffff);
    border-radius: var(--dce-radius-lg, 12px);
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.dce-detail-subtitle {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dce-text, #1a1a2e);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--dce-border, #e5e7eb);
}

.dce-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.dce-rating-row + .dce-rating-row {
    border-top: 1px solid var(--dce-border, #f3f4f6);
}

.dce-rating-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dce-text-secondary, #4b5563);
    min-width: 80px;
}

.dce-rating-stars {
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: #f59e0b;
    flex: 1;
}

.dce-rating-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dce-primary, #2563eb);
    min-width: 36px;
    text-align: right;
}

/* ============================================
   Game Detail - Tag Cloud
   ============================================ */
.dce-detail-tags-cloud {
    background: var(--dce-card-bg, #ffffff);
    border-radius: var(--dce-radius-lg, 12px);
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.dce-tags-cloud-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dce-tags-cloud-list .dce-tag {
    display: inline-block;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: var(--dce-primary, #2563eb);
    border-radius: 20px;
    border: 1px solid #bfdbfe;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dce-tags-cloud-list .dce-tag:hover {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

@media (max-width: 640px) {
    .dce-detail-ratings,
    .dce-detail-tags-cloud {
        padding: 16px 18px;
    }

    .dce-rating-label {
        min-width: 64px;
        font-size: 0.84rem;
    }

    .dce-rating-stars {
        font-size: 1rem;
    }
}

/* ============================================
   Homepage Text Content Blocks
   ============================================ */
.dce-text-block {
    background: var(--dce-card-bg, #ffffff);
    border-radius: var(--dce-radius-lg, 12px);
    padding: 28px 30px;
    margin: 24px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    line-height: 1.75;
    color: var(--dce-text-secondary, #4b5563);
}

.dce-text-block-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dce-text, #1a1a2e);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--dce-border, #e5e7eb);
}

.dce-text-block p {
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.dce-text-block ol {
    padding-left: 20px;
    margin-bottom: 14px;
}

.dce-text-block ol li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .dce-text-block {
        padding: 20px 18px;
        margin: 18px 0;
    }

    .dce-text-block-title {
        font-size: 1.1rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.dce-text-center {
    text-align: center;
}

.dce-mt-2 {
    margin-top: 14px;
}

.dce-mb-2 {
    margin-bottom: 14px;
}
