/**
 * Game Hub Theme Styles
 * 
 * Ultra-light, modern styling for game directory single/archive pages.
 * Follows contract: theme = structure + UX, plugin = content + data
 *
 * Utilities:
 * - Spacing, typography, card layouts
 * - Hero, breadcrumb, facts boxes, FAQ accordion
 * - Mobile-first responsive
 * - A11y: focus states, reduced-motion
 * - No external frameworks (0 deps)
 */

/* ==========================================
   Variables & Defaults
   ========================================== */

:root {
    --sg-primary: #0066cc;
    --sg-primary-dark: #004499;
    --sg-gray-100: #f5f5f5;
    --sg-gray-200: #e8e8e8;
    --sg-gray-600: #666666;
    --sg-gray-800: #222222;
    --sg-border: 1px solid #ddd;
    --sg-spacing-xs: 0.5rem;
    --sg-spacing-sm: 1rem;
    --sg-spacing-md: 1.5rem;
    --sg-spacing-lg: 2rem;
    --sg-spacing-xl: 3rem;
    --sg-border-radius: 6px;
    --sg-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --sg-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --sg-transition: 0.2s ease;
}

/* ==========================================
   Hero Section (Game Title + Tagline)
   ========================================== */

.sg-hero {
    margin: var(--sg-spacing-lg) 0;
    padding: var(--sg-spacing-lg);
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f0f8 100%);
    border-radius: var(--sg-border-radius);
}

.sg-hero__title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--sg-gray-800);
    margin: 0 0 var(--sg-spacing-sm) 0;
}

.sg-hero__tagline {
    font-size: 1.1rem;
    color: var(--sg-gray-600);
    margin: 0;
}

@media (max-width: 768px) {
    .sg-hero {
        padding: var(--sg-spacing-md);
    }
    .sg-hero__title {
        font-size: 1.5rem;
    }
    .sg-hero__tagline {
        font-size: 1rem;
    }
}

/* ==========================================
   Key Facts / Metadata Box
   ========================================== */

.sg-key-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sg-spacing-md);
    margin: var(--sg-spacing-lg) 0;
}

.sg-fact {
    background: var(--sg-gray-100);
    padding: var(--sg-spacing-md);
    border-radius: var(--sg-border-radius);
    border-left: 4px solid var(--sg-primary);
}

.sg-fact__label {
    font-size: 0.85rem;
    color: var(--sg-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 var(--sg-spacing-xs) 0;
}

.sg-fact__value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sg-gray-800);
    margin: 0;
}

/* ==========================================
   Breadcrumb
   ========================================== */

.sg-breadcrumb {
    margin: 0 0 var(--sg-spacing-lg) 0;
    font-size: 0.9rem;
    color: var(--sg-gray-600);
}

.sg-breadcrumb__item {
    display: inline;
}

.sg-breadcrumb__item + .sg-breadcrumb__item::before {
    content: ' / ';
    margin: 0 var(--sg-spacing-xs);
    color: var(--sg-gray-400);
}

.sg-breadcrumb__link {
    color: var(--sg-primary);
    text-decoration: none;
}

.sg-breadcrumb__link:hover {
    text-decoration: underline;
}

/* ==========================================
   FAQ Accordion
   ========================================== */

.sg-faq {
    margin: var(--sg-spacing-xl) 0;
}

.sg-faq__title {
    font-size: 1.5rem;
    margin: 0 0 var(--sg-spacing-lg) 0;
    color: var(--sg-gray-800);
}

.sg-faq__item {
    margin-bottom: var(--sg-spacing-md);
    border: var(--sg-border);
    border-radius: var(--sg-border-radius);
    overflow: hidden;
}

.sg-faq__question {
    background: var(--sg-gray-100);
    padding: var(--sg-spacing-md);
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--sg-transition);
    position: relative;
}

/* Neutralize any external pseudo icons (e.g., theme accordions) to avoid double "+" */
.sg-faq__question::before {
    content: none !important;
}

.sg-faq__question:hover {
    background: var(--sg-gray-200);
}

.sg-faq__question::after {
    content: '▼';
    font-size: 0.7em;
    color: var(--sg-primary);
    transition: transform var(--sg-transition);
}

.sg-faq__item.active .sg-faq__question::after {
    transform: rotate(-180deg);
}

.sg-faq__answer {
    display: none;
    padding: var(--sg-spacing-md);
    color: var(--sg-gray-800);
    line-height: 1.6;
}

.sg-faq__item.active .sg-faq__answer {
    display: block;
    background: #fafafa;
}

/* ==========================================
   Related/Similar Games
   ========================================== */

.sg-related {
    margin: var(--sg-spacing-xl) 0;
}

.sg-related__title {
    font-size: 1.5rem;
    margin: 0 0 var(--sg-spacing-lg) 0;
    color: var(--sg-gray-800);
}

.sg-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sg-spacing-lg);
}

.sg-related__card {
    background: white;
    border: var(--sg-border);
    border-radius: var(--sg-border-radius);
    overflow: hidden;
    transition: box-shadow var(--sg-transition), transform var(--sg-transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.sg-related__card:hover {
    box-shadow: var(--sg-shadow-md);
    transform: translateY(-4px);
}

.sg-related__card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--sg-gray-200);
}

.sg-related__card-body {
    padding: var(--sg-spacing-md);
    flex: 1;
}

.sg-related__card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 var(--sg-spacing-xs) 0;
    color: var(--sg-gray-800);
}

.sg-related__card-meta {
    font-size: 0.85rem;
    color: var(--sg-gray-600);
    margin: 0;
}

/* ==========================================
   Archive / Taxonomy Page Layout
   ========================================== */

.sg-archive {
    margin: var(--sg-spacing-lg) 0;
}

.sg-archive-head {
    margin-bottom: var(--sg-spacing-xl);
    padding-bottom: var(--sg-spacing-lg);
    border-bottom: var(--sg-border);
}

.sg-archive-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 var(--sg-spacing-md) 0;
    line-height: 1.2;
}

.sg-archive-subtitle {
    font-weight: 400;
    color: var(--sg-gray-600);
}

.sg-archive-desc {
    font-size: 1rem;
    color: var(--sg-gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   Card Grid (Game List)
   ========================================== */

.sg-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--sg-spacing-lg);
    margin-bottom: var(--sg-spacing-xl);
}

.sg-card {
    background: white;
    border: var(--sg-border);
    border-radius: var(--sg-border-radius);
    overflow: hidden;
    transition: box-shadow var(--sg-transition);
    display: flex;
    flex-direction: column;
}

.sg-card:hover {
    box-shadow: var(--sg-shadow-md);
}

.sg-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--sg-spacing-md);
    transition: background var(--sg-transition);
}

.sg-card-link:hover {
    background: var(--sg-gray-100);
}

.sg-card:focus-within {
    box-shadow: 0 0 0 2px var(--sg-primary);
}

.sg-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 var(--sg-spacing-sm) 0;
    line-height: 1.3;
    color: var(--sg-gray-800);
}

/* Card Media: Cover Image + Logo Overlay */
.sg-card-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--sg-gray-200);
    aspect-ratio: 16 / 9;
    margin-bottom: 12px;
}

.sg-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sg-card-logo {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
    padding: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Card Excerpt (Summary/Tagline) */
.sg-card-excerpt {
    margin-top: 6px;
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.45;
    min-height: 2.9em;
}

/* Key Facts List in Card */
.sg-card-facts {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.sg-card-facts li {
    font-size: 13px;
    line-height: 1.35;
    opacity: 0.9;
}

.sg-card-facts strong {
    font-weight: 600;
}

/* Play Now Button Area */
.sg-card-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.sg-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    background: var(--sg-primary);
    color: #fff;
    transition: opacity var(--sg-transition);
}

.sg-play-btn:hover {
    opacity: 0.92;
}

.sg-play-btn:focus-visible {
    outline: 2px solid var(--sg-primary-dark);
    outline-offset: 2px;
}

.sg-embed-badge {
    font-size: 12px;
    opacity: 0.8;
}

.sg-card-excerpt {
    font-size: 0.9rem;
    color: var(--sg-gray-600);
    margin: 0 0 var(--sg-spacing-md) 0;
    line-height: 1.5;
    flex: 1;
}

.sg-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: var(--sg-spacing-sm);
    border-top: 1px solid var(--sg-gray-200);
}

.sg-card-link-text {
    color: var(--sg-primary);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sg-card-arrow {
    transition: transform var(--sg-transition);
}

.sg-card-link:hover .sg-card-arrow {
    transform: translateX(3px);
}

.sg-no-games {
    grid-column: 1 / -1;
    padding: var(--sg-spacing-xl);
    text-align: center;
    color: var(--sg-gray-600);
    background: var(--sg-gray-100);
    border-radius: var(--sg-border-radius);
}

/* ==========================================
   Pagination
   ========================================== */

.sg-pagination {
    display: flex;
    justify-content: center;
    gap: var(--sg-spacing-sm);
    margin: var(--sg-spacing-xl) 0;
}

/* ==========================================
   Single: Details Table + Card Blocks
   ========================================== */

.sg-section-details {
    margin: var(--sg-spacing-lg) 0;
}

.sg-details-table-wrap {
    overflow-x: auto;
    border: var(--sg-border);
    border-radius: var(--sg-border-radius);
    background: #fff;
}

.sg-details-table {
    width: 100%;
    border-collapse: collapse;
}

.sg-details-table th,
.sg-details-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--sg-gray-200);
    vertical-align: top;
}

.sg-details-table th {
    width: 32%;
    font-weight: 600;
    color: var(--sg-gray-800);
    background: var(--sg-gray-100);
}

.sg-details-table a {
    color: var(--sg-primary);
    text-decoration: none;
}

.sg-details-table a:hover {
    text-decoration: underline;
}

.sg-details-table tr:last-child th,
.sg-details-table tr:last-child td {
    border-bottom: 0;
}

.sg-card-block {
    border: var(--sg-border);
    border-radius: var(--sg-border-radius);
    background: #fff;
    padding: var(--sg-spacing-md);
    margin: var(--sg-spacing-lg) 0;
}

.sg-card-block-body {
    color: var(--sg-gray-700);
}

.sg-import-json {
    background: #0f172a;
    color: #e2e8f0;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.45;
}

/* ==========================================
   Single: Breadcrumb
   ========================================== */

.sg-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--sg-gray-600);
    margin-bottom: 1rem;
}

.sg-breadcrumb a {
    color: var(--sg-primary);
    text-decoration: none;
}

.sg-breadcrumb a:hover {
    text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
    .sg-breadcrumb {
        color: #cbd5f5;
    }
}

/* ==========================================
   Single: Dark Theme Refinement
   ========================================== */

@media (prefers-color-scheme: dark) {
    .sg-single {
        color: #e5e7eb;
    }

    .sg-hero-card,
    .sg-section,
    .sg-card-block,
    .sg-details-table-wrap,
    .sg-fact-item {
        background: #0f172a;
        border-color: #1f2937;
    }

    .sg-hero-card {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(15, 23, 42, 0.6));
    }

    .sg-hero-media {
        background: #111827;
    }

    .sg-single-logo {
        background: #111827;
    }

    .sg-single-title,
    .sg-section h2 {
        color: #f9fafb;
    }

    .sg-single-tagline,
    .sg-section p,
    .sg-card-block-body,
    .sg-fact-label {
        color: #cbd5f5;
    }

    .sg-inline-meta,
    .sg-quick-tips li {
        color: #cbd5f5;
    }

    .sg-best-for {
        color: #f9fafb;
    }

    .sg-provider-chip {
        background: #111827;
        border-color: #1f2937;
        color: #e5e7eb;
    }

    .sg-provider-chip:hover {
        border-color: #3b82f6;
        color: #93c5fd;
    }

    .sg-chip {
        background: #111827;
        border-color: #1f2937;
        color: #e5e7eb;
    }

    .sg-primary-btn {
        background: #3b82f6;
    }

    .sg-primary-btn:hover {
        background: #2563eb;
        box-shadow: 0 10px 22px rgba(59, 130, 246, 0.35);
    }

    .sg-secondary-btn {
        background: #0b1220;
        color: #e5e7eb;
        border-color: #1f2937;
    }

    .sg-secondary-btn:hover {
        background: #111827;
        border-color: #334155;
    }

    .sg-fact-value {
        color: #e5e7eb;
    }

    .sg-details-table th,
    .sg-details-table td {
        border-bottom-color: #1f2937;
    }

    .sg-details-table th {
        background: #111827;
        color: #e5e7eb;
    }

    .sg-import-json {
        background: #0b1020;
        color: #e5e7eb;
        border: 1px solid #1f2937;
    }
}

.page-numbers {
    display: inline-flex;
    padding: var(--sg-spacing-xs) var(--sg-spacing-sm);
    border: var(--sg-border);
    border-radius: 3px;
    text-decoration: none;
    color: var(--sg-primary);
    font-weight: 500;
    transition: all var(--sg-transition);
}

.page-numbers:hover {
    background: var(--sg-primary);
    color: white;
}

.page-numbers.current {
    background: var(--sg-primary);
    color: white;
    border-color: var(--sg-primary);
}

/* ==========================================
   Archive Grid (Game List) - Legacy
   ========================================== */

.sg-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sg-spacing-lg);
}

.sg-archive__card {
    background: white;
    border: var(--sg-border);
    border-radius: var(--sg-border-radius);
    overflow: hidden;
    transition: box-shadow var(--sg-transition);
}

.sg-archive__card:hover {
    box-shadow: var(--sg-shadow-md);
}

.sg-archive__card-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--sg-gray-200);
}

.sg-archive__card-content {
    padding: var(--sg-spacing-md);
}

.sg-archive__card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 var(--sg-spacing-xs) 0;
}

.sg-archive__card-excerpt {
    font-size: 0.9rem;
    color: var(--sg-gray-600);
    margin: 0;
    line-height: 1.5;
}

.sg-archive__card-category {
    display: inline-block;
    background: var(--sg-gray-100);
    color: var(--sg-primary);
    padding: var(--sg-spacing-xs) var(--sg-spacing-sm);
    border-radius: 3px;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: var(--sg-spacing-sm);
}

/* ==========================================
   Trust Footer
   ========================================== */

.sg-trust-footer {
    background: var(--sg-gray-100);
    border-top: var(--sg-border);
    padding: var(--sg-spacing-lg);
    margin-top: var(--sg-spacing-xl);
}

.sg-trust-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sg-spacing-lg);
}

.sg-trust-footer__section h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 var(--sg-spacing-md) 0;
    color: var(--sg-gray-800);
}

.sg-trust-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sg-trust-footer__link {
    margin-bottom: var(--sg-spacing-sm);
}

.sg-trust-footer__link a {
    color: var(--sg-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.sg-trust-footer__link a:hover {
    text-decoration: underline;
}

/* ==========================================
   Accessibility & Responsive
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .sg-key-facts {
        grid-template-columns: 1fr;
    }

    .sg-related__grid {
        grid-template-columns: 1fr;
    }

    .sg-card-grid {
        grid-template-columns: 1fr;
    }

    .sg-archive {
        grid-template-columns: 1fr;
    }

    .sg-archive-title {
        font-size: 1.5rem;
    }
}

/* ==========================================
   Focus & Interactive States
   ========================================== */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--sg-primary);
    outline-offset: 2px;
}

/* ==========================================
   Taxonomy Archive: Skill Game Category
   ========================================== */

.sg-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.sg-archive-head {
    margin-bottom: 3rem;
}

.sg-archive-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

.sg-archive-hero-media {
    width: 100%;
    aspect-ratio: 16 / 6;
    border-radius: 16px;
    overflow: hidden;
    background: var(--sg-gray-200);
}

.sg-archive-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sg-archive-hero-text {
    padding: 0;
}

.sg-archive-title {
    font-size: 2.25rem;
    line-height: 1.15;
    margin: 0 0 1rem 0;
    color: var(--sg-gray-800);
    font-weight: 700;
}

.sg-archive-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--sg-gray-600);
}

.sg-archive-desc p {
    margin: 0.5rem 0;
}

/* Card Grid */

.sg-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .sg-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .sg-card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.sg-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--sg-gray-200);
    transition: box-shadow 0.3s, transform 0.3s;
}

.sg-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.sg-card-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 0;
}

.sg-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--sg-gray-200);
    border-bottom: 1px solid var(--sg-gray-200);
    overflow: hidden;
}

.sg-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.sg-card:hover .sg-card-cover {
    transform: scale(1.05);
}

.sg-card-logo {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    object-fit: contain;
    padding: 2px;
}

/* Card Content */

.sg-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 1rem 0.5rem 1rem;
    line-height: 1.3;
}

.sg-card-excerpt {
    font-size: 0.95rem;
    color: var(--sg-gray-600);
    margin: 0 1rem;
    line-height: 1.5;
    flex: 1;
}

.sg-card-facts {
    list-style: none;
    margin: 0.5rem 1rem;
    padding: 0;
    display: grid;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.sg-card-facts li {
    color: var(--sg-gray-600);
}

.sg-card-facts strong {
    color: var(--sg-gray-800);
}

/* Card Footer & CTA */

.sg-card-footer {
    padding: 1rem;
    margin-top: auto;
    border-top: 1px solid var(--sg-gray-200);
    font-size: 0.9rem;
    color: var(--sg-primary);
    font-weight: 500;
}

.sg-card-link-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sg-card-arrow {
    transition: transform 0.3s;
}

.sg-card-link:hover .sg-card-arrow {
    transform: translateX(4px);
}

.sg-card-cta {
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.sg-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--sg-primary);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.sg-play-btn:hover {
    background: var(--sg-primary-dark);
}

.sg-embed-badge {
    display: inline-block;
    font-size: 0.75rem;
    background: var(--sg-gray-100);
    color: var(--sg-gray-600);
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Pagination */

.sg-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--sg-gray-200);
}

.page-numbers {
    padding: 8px 12px;
    border: 1px solid var(--sg-gray-200);
    border-radius: 4px;
    text-decoration: none;
    color: var(--sg-primary);
    font-weight: 500;
    transition: all 0.2s;
}

.page-numbers:hover {
    background: var(--sg-gray-100);
}

.page-numbers.current {
    background: var(--sg-primary);
    color: #fff;
    border-color: var(--sg-primary);
}

.sg-no-games {
    text-align: center;
    padding: 3rem;
    color: var(--sg-gray-600);
}

/* ==========================================
   Single: Skill Game Detail Page
   ========================================== */

.sg-single {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
}

/* Hero Card */

.sg-hero-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 115, 190, 0.08), rgba(30, 115, 190, 0.02));
    border: var(--sg-border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .sg-hero-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.sg-hero-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--sg-gray-200);
    border-radius: 16px;
    overflow: hidden;
}

.sg-hero-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sg-hero-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sg-single-title-area {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.sg-single-logo {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 14px;
    background: #fff;
    padding: 4px;
    object-fit: contain;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.sg-single-title-text {
    flex: 1;
}

.sg-single-title {
    font-size: 2.15rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.5rem 0;
    color: var(--sg-gray-800);
}

.sg-single-tagline {
    font-size: 1.05rem;
    color: var(--sg-gray-600);
    margin: 0;
    line-height: 1.5;
}

.sg-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sg-chip {
    background: #fff;
    border: 1px solid var(--sg-gray-200);
    color: var(--sg-gray-700);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.sg-hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sg-primary-btn,
.sg-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.sg-primary-btn {
    background: var(--sg-primary);
    color: #fff;
}

.sg-primary-btn:hover {
    background: var(--sg-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(30, 115, 190, 0.25);
}

.sg-secondary-btn {
    background: var(--sg-gray-100);
    color: var(--sg-gray-800);
    border: 2px solid var(--sg-gray-200);
}

.sg-secondary-btn:hover {
    border-color: var(--sg-gray-600);
    background: var(--sg-gray-200);
}

/* Facts Section */

.sg-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 640px) {
    .sg-facts {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.sg-fact-item {
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--sg-gray-200);
    border-radius: 12px;
}

.sg-fact-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sg-gray-600);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.sg-fact-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sg-gray-800);
}

/* Content Sections */

.sg-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sg-section {
    background: #fff;
    padding: 1.75rem;
    border-radius: 16px;
    border: var(--sg-border);
    line-height: 1.6;
}

.sg-section h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: var(--sg-gray-800);
}

.sg-inline-meta {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--sg-gray-600);
}

.sg-inline-meta a {
    color: var(--sg-primary);
    text-decoration: none;
}

.sg-inline-meta a:hover {
    text-decoration: underline;
}

.sg-quick-tips {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.5rem;
}

.sg-best-for {
    margin: 1rem 0 0;
    font-weight: 600;
    color: var(--sg-gray-800);
}

.sg-provider-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sg-provider-chip {
    background: #fff;
    border: 1px solid var(--sg-gray-200);
    color: var(--sg-gray-800);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.9rem;
    text-decoration: none;
}

.sg-provider-chip:hover {
    border-color: var(--sg-primary);
    color: var(--sg-primary);
}

/* ==========================================
   Pluto Splash Fullscreen Button
   ========================================== */

.pluto-splash-game.sg-has-fullscreen {
    position: relative;
}

.sg-fullscreen-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.sg-fullscreen-btn:hover {
    background: rgba(30, 64, 175, 0.9);
}

/* Embed fullscreen button */
.sg-embed-container.sg-has-embed-fullscreen {
    position: relative;
}

.sg-embed-fullscreen-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.sg-embed-fullscreen-btn:hover {
    background: rgba(30, 64, 175, 0.9);
}

.sg-section p {
    margin: 0.5rem 0;
}

.sg-section p:first-of-type {
    margin-top: 0;
}

.sg-section p:last-of-type {
    margin-bottom: 0;
}

/* Archive category tags */
.sg-archive-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 18px 0;
}
.sg-archive-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #eef3f7;
    border: 1px solid #e0e6ee;
    color: #111827;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.sg-archive-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Embed Container */

.sg-embed-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

.sg-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

/* Debug Styles (admin-only) */

.sg-debug {
    margin-bottom: 1rem;
    border: 1px dashed #e74c3c !important;
    padding: 0.75rem !important;
    border-radius: 4px;
    background: #fef5f5 !important;
}

.sg-debug summary {
    cursor: pointer;
    font-size: 0.8rem;
    color: #c0392b;
    font-weight: 600;
}

.sg-debug pre {
    white-space: pre-wrap;
    font-size: 0.75rem;
    margin: 0.5rem 0 0 0;
    color: #7f8c8d;
    word-break: break-word;
}

/* ==========================================
   Print Styles
   ========================================== */

@media print {
    .sg-faq__question::after,
    .sg-related,
    .sg-trust-footer,
    .sg-single-cta,
    .sg-card-cta,
    .sg-pagination {
        display: none;
    }
}
