/**
 * Funquizo Games - Hub Stylesheet
 * Aligned with Funquizo's official light design system (docs/css-design-system-migration-plan.md).
 */

:root {
    --gh-bg: #f9f9ff;
    --gh-surface: #ffffff;
    --gh-card: #ffffff;
    --gh-card-hover: #faf5ff;
    --gh-border: #e2e8f0;
    --gh-border-subtle: #f1f5f9;
    --gh-border-hover: #c4b5fd;
    --gh-accent: #630ed4;
    --gh-accent-dark: #4c1d95;
    --gh-accent-light: #7c3aed;
    --gh-accent-bg: #faf5ff;
    --gh-accent-border: #ddd6fe;
    --gh-accent-glow: rgba(124, 58, 237, 0.22);
    --gh-play: #ec4899;
    --gh-play-dark: #db2777;
    --gh-play-glow: rgba(236, 72, 153, 0.25);
    --gh-gold: #f59e0b;
    --gh-gold-bg: #fffbeb;
    --gh-green: #059669;
    --gh-green-bg: #d1fae5;
    --gh-danger: #ef4444;
    --gh-text: #1e293b;
    --gh-text-muted: #64748b;
    --gh-text-subtle: #94a3b8;
    --gh-radius-sm: 8px;
    --gh-radius-control: 12px;
    --gh-radius-card: 16px;
    --gh-radius-hero: 16px;
    --gh-radius-cta: 12px;
    --gh-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --gh-font-heading: Outfit, Inter, system-ui, -apple-system, sans-serif;
    --gh-shadow-sm: 0 2px 4px rgba(30, 41, 59, 0.04);
    --gh-shadow-md: 0 8px 24px rgba(30, 41, 59, 0.08);
    --gh-shadow-hero: 0 2px 4px rgba(30, 41, 59, 0.04);
}

.gh-container,
.gh-container * {
    box-sizing: border-box;
}

body {
    background-color: var(--gh-bg);
    color: var(--gh-text);
}

/* Header */
.gh-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gh-border);
    padding: 0.85rem 1.25rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.gh-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gh-logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.gh-logo-badge {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px var(--gh-accent-glow);
}

.gh-logo-text {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--gh-text);
    letter-spacing: -0.02em;
}

.gh-logo-sub {
    font-size: 0.75rem;
    font-weight: 800;
    background: var(--gh-accent-bg);
    color: var(--gh-accent);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    margin-left: 0.4rem;
    border: 1px solid var(--gh-accent-border);
}

.gh-nav-links {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.gh-nav-link {
    color: var(--gh-text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    transition: color 0.15s ease;
}

.gh-nav-link:hover {
    color: var(--gh-accent);
}

.gh-btn-sm {
    background: #ffffff;
    border: 1px solid var(--gh-border);
    color: var(--gh-text);
    padding: 0.45rem 0.85rem;
    border-radius: var(--gh-radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.gh-btn-sm:hover {
    background: var(--gh-accent-bg);
    border-color: var(--gh-accent-border);
    color: var(--gh-accent);
}

/* Breadcrumbs - Funquizo standard left-aligned */
.breadcrumb-container,
.gh-breadcrumbs {
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-size: 0.85rem;
    text-align: left;
    width: 100%;
}

.gh-breadcrumbs a {
    color: var(--gh-text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.gh-breadcrumbs a:hover {
    color: var(--gh-accent);
}

.gh-breadcrumbs span.current,
.breadcrumb-item.active {
    color: var(--gh-text);
    font-weight: 700;
}

/* Override Funquizo base layout main.container (which is constrained to max-width: 1000px) */
main.container {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Main Container & Playable Container - matches /new .fq-next-shell */
.gh-container,
.gh-game-container {
    width: min(1280px, calc(100% - 48px));
    margin-inline: auto;
    padding: 0.5rem 0 3.5rem;
}

@media (max-width: 760px) {
    .gh-container,
    .gh-game-container {
        width: calc(100% - 14px);
    }
}

/* Hero Section */
.gh-hero {
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: var(--gh-radius-hero);
    background: #ffffff;
    border: 1px solid var(--gh-border);
    box-shadow: var(--gh-shadow-hero);
}

.gh-hero--with-image {
    text-align: left;
}

.gh-hero-layout {
    display: block;
}

.gh-hero-layout--split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}

.gh-hero-layout--image-missing {
    display: block;
}

.gh-hero-layout--image-missing .gh-hero-content {
    max-width: 72rem;
}

.gh-hero-content {
    min-width: 0;
}

.gh-hero--with-image .gh-hero-title {
    margin-bottom: 0.65rem;
}

.gh-hero--with-image .gh-hero-sub {
    margin-left: 0;
    margin-right: 0;
}

.gh-hero--with-image .gh-highlights {
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
}

.gh-hero--with-image .gh-hero-image {
    width: 100%;
    max-width: none;
    aspect-ratio: 4 / 3;
    margin: 0;
}

.gh-hero-image {
    display: block;
    width: min(100%, 900px);
    height: auto;
    aspect-ratio: 900 / 717;
    object-fit: cover;
    margin: 0 auto 1.25rem;
    border-radius: 18px;
    border: 1px solid var(--gh-border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.gh-reaction-preview {
    margin-top: 0.25rem;
}

.gh-reaction-preview-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid var(--gh-border);
}

.gh-reaction-preview-caption {
    margin-top: 0.75rem;
    color: var(--gh-text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: center;
}

.gh-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gh-accent-bg);
    border: 1px solid var(--gh-accent-border);
    color: var(--gh-accent);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 999px;
    margin-bottom: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gh-hero-title {
    font-family: var(--gh-font-heading);
    font-size: clamp(24px, 2.5vw, 34px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--gh-text);
}

.gh-hero-title .gradient-text {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gh-hero-sub {
    font-size: 14px;
    color: var(--gh-text-muted);
    max-width: 720px;
    margin: 0 auto 1.5rem;
    line-height: 1.55;
}

/* Feature Highlights Strip (Semantic Text, No Background Box, SEO & Search-Engine Readable) */
.gh-highlights {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 1.25rem auto 0;
    padding: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    list-style: none;
}

.gh-hl-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    padding: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gh-text-muted);
    box-shadow: none !important;
    cursor: text;
    user-select: text !important;
    -webkit-user-select: text !important;
}

/* Section Header */
.gh-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}

.gh-section-title {
    font-family: var(--gh-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--gh-text);
    margin: 0;
}

.gh-section-desc {
    font-size: 13px;
    color: var(--gh-text-muted);
}

/* Hero 2-Column Split (Hero Left 2fr, Leaderboard Right 1fr like /new) */
.gh-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

/* Sidebar Layout (Sidebar 1fr, Main 2fr) */
.gh-layout-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 24px;
}

.gh-layout-sidebar--full {
    grid-template-columns: minmax(0, 1fr);
}

.gh-main-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gh-main-col--compact-sections {
    gap: 0.75rem;
}

.gh-main-col--compact-sections > * {
    margin-bottom: 0;
}

.gh-main-col--compact-sections .gh-section-head {
    margin-bottom: 0;
}

.gh-main-col--compact-sections .gh-section-desc {
    margin: 0.2rem 0 0;
}

@media (max-width: 900px) {
    .gh-layout-sidebar {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 760px) {
    .gh-hero-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Standard Grids from /new */
.gh-grid,
.gh-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.gh-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.gh-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.gh-grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 760px) {
    .gh-grid,
    .gh-grid-4,
    .gh-grid-3 {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 16px;
    }
    .gh-grid-2 {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 16px;
    }
}

/* Cards */
.gh-card {
    background: #ffffff;
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--gh-shadow-sm);
}

.gh-card:hover {
    transform: translateY(-2px);
    border-color: var(--gh-border-hover);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

.gh-card--featured {
    background: #ffffff;
    border-color: #ddd6fe;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.04);
}

.gh-card--featured:hover {
    border-color: #c4b5fd;
    transform: translateY(-2px);
}

.gh-card--disabled {
    opacity: 0.65;
    cursor: default;
    background: #f8fafc;
}

.gh-card--disabled:hover {
    transform: none;
    border-color: var(--gh-border);
    box-shadow: var(--gh-shadow-sm);
    background: #f8fafc;
}

.gh-card-badge {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gh-card-badge--live {
    background: var(--gh-green-bg);
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.gh-card-badge--coming {
    background: var(--gh-gold-bg);
    border: 1px solid #fde68a;
    color: var(--gh-gold);
}

.gh-card-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.gh-card-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--gh-text);
    margin-bottom: 0.45rem;
    letter-spacing: -0.01em;
}

.gh-card-desc {
    font-size: 0.92rem;
    color: var(--gh-text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex: 1;
}

.gh-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.3rem;
}

.gh-tag {
    font-size: 0.75rem;
    font-weight: 700;
    background: #f1f5f9;
    border: 1px solid var(--gh-border);
    color: var(--gh-text-muted);
    padding: 0.25rem 0.6rem;
    border-radius: var(--gh-radius-sm);
}

/* Card CTA Buttons */
.gh-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.4rem;
    border-radius: var(--gh-radius-control);
    font-weight: 800;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.18s ease;
}

.gh-card-cta--primary {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff !important;
    box-shadow: 0 4px 16px var(--gh-accent-glow);
}

.gh-card-cta--primary:hover {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
    transform: translateY(-2px);
}

.gh-card-cta--secondary {
    background: #f1f5f9;
    border: 1px solid var(--gh-border);
    color: var(--gh-text);
}

.gh-card-cta--secondary:hover {
    background: #e2e8f0;
}

.gh-card-cta--disabled {
    background: #f1f5f9;
    border: 1px solid var(--gh-border);
    color: var(--gh-text-subtle);
    cursor: default;
}

/* Rules / How It Works Box */
.gh-info-card {
    background: #ffffff;
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius-card);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--gh-shadow-sm);
}

.gh-info-title {
    font-family: var(--gh-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--gh-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gh-rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 760px) {
    .gh-rules-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.gh-rule-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #f8fafc;
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius-control);
    padding: 1rem 1.15rem;
}

/* Leaderboard Sidebar Card (styled like fq-next-leader in /new) */
.gh-leader-card {
    background: #ffffff;
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius-card);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--gh-shadow-sm);
}

.gh-leader-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.gh-leader-card__title {
    font-family: var(--gh-font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--gh-text);
    margin: 0;
}

.gh-leader-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--gh-border);
    border-radius: 12px;
    background: #f8fafc;
}

.gh-leader-head {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 55px;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
    color: var(--gh-text-subtle);
    text-transform: uppercase;
}

.gh-leader-head span:last-child {
    text-align: right;
}

.gh-leader-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gh-leader-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 55px;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.gh-leader-item:hover {
    background: #f1f5f9;
}

.gh-leader-item.is-user-row {
    background: #ede9fe;
    font-weight: 800;
}

.gh-leader-item .gh-rank {
    font-size: 14px;
}

.gh-leader-item .gh-player {
    font-weight: 700;
    color: var(--gh-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gh-leader-item .gh-time {
    font-weight: 700;
    color: var(--gh-accent);
    text-align: right;
    font-size: 12px;
}

.gh-leader-personal {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1.5px solid #ddd6fe;
    border-radius: 10px;
    background: #faf5ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.gh-leader-personal-title {
    font-weight: 700;
    color: var(--gh-accent);
}

.gh-leader-personal-time {
    font-weight: 800;
    color: var(--gh-text);
}

.gh-leader-cta {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gh-leader-prompt {
    margin-top: 4px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid var(--gh-border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gh-leader-prompt-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--gh-text);
}

.gh-leader-prompt-sub {
    font-size: 12px;
    line-height: 1.4;
    color: var(--gh-text-muted);
    margin: 0;
}

.gh-leader-prompt-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.gh-leader-btn-register {
    background: var(--gh-accent);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.gh-leader-btn-register:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.gh-leader-link-login {
    font-size: 12px;
    font-weight: 700;
    color: var(--gh-accent) !important;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.gh-leader-link-login:hover {
    color: var(--gh-text) !important;
}

/* In-game CSS Mockup Preview Component */
.gh-mockup-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid var(--gh-border);
    border-radius: 16px;
    padding: 16px;
    max-width: 290px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.gh-mockup-target {
    width: 100%;
    border: 1.5px solid #ddd6fe;
    background: #ffffff;
    border-radius: 10px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.gh-mockup-target-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--gh-accent);
    text-transform: uppercase;
}

.gh-mockup-target-num {
    font-family: var(--gh-font-heading);
    font-size: 20px;
    font-weight: 900;
    color: var(--gh-accent);
    line-height: 1;
}

.gh-mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
}

.gh-mockup-tile {
    aspect-ratio: 1;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--gh-font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    user-select: none;
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.gh-mockup-tile.is-target {
    border-color: #c4b5fd;
    background: #faf5ff;
    color: var(--gh-accent);
    position: relative;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.2);
    animation: gh-target-pulse 2.4s ease-in-out infinite;
}

@keyframes gh-target-pulse {
    0%, 100% {
        transform: scale(1);
        border-color: #c4b5fd;
    }
    50% {
        transform: scale(1.04);
        border-color: var(--gh-accent);
        box-shadow: 0 0 18px rgba(124, 58, 237, 0.35);
    }
}

.gh-mockup-caption {
    font-size: 11px;
    color: var(--gh-text-muted);
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
}

.gh-color-shape-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    align-items: center;
    gap: 12px;
    padding: 24px 12px 12px;
}

.gh-color-shape-preview__item {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--preview-color, #2563eb);
}

.gh-color-shape-preview__item--outlier {
    background: #dc2626;
}

.gh-color-shape-preview__caption {
    margin: 0 0 12px;
    color: var(--gh-text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.gh-rule-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.gh-rule-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--gh-text);
    margin-bottom: 0.25rem;
    font-weight: 800;
}

.gh-rule-text p {
    font-size: 0.85rem;
    color: var(--gh-text-muted);
    line-height: 1.5;
}

/* Footer */
.gh-footer {
    border-top: 1px solid var(--gh-border);
    background: #ffffff;
    padding: 2.5rem 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gh-text-muted);
    margin-top: auto;
}

.gh-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.gh-footer-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.gh-footer-links a {
    color: var(--gh-text-muted);
    text-decoration: none;
    transition: color 0.15s;
    font-weight: 600;
}

.gh-footer-links a:hover {
    color: var(--gh-accent);
}

.gh-how-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 760px) {
    .gh-how-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .gh-hero {
        padding: 2rem 1rem;
        border-radius: var(--gh-radius-card);
    }
    .gh-grid {
        grid-template-columns: 1fr;
    }
    .gh-rules-grid {
        grid-template-columns: 1fr;
    }
    .gh-section-head {
        flex-direction: column;
        gap: 0.25rem;
    }
    .gh-hero-layout--split {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .gh-hero--with-image .gh-hero-image {
        max-width: 520px;
        justify-self: center;
    }
}

/* ==============================================================================
   Games Hub Modernization Component Styles
   ============================================================================== */

/* Hero Quick Stats Row */
.gh-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 540px;
    margin: 1.5rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

@media (max-width: 640px) {
    .gh-hero-stats {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

.gh-hero-stat-item {
    padding: 0.25rem 0.5rem;
}

.gh-hero-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gh-text-muted);
    margin-bottom: 0.25rem;
}

.gh-hero-stat-val {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--gh-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

@media (max-width: 640px) {
    .gh-hero-stat-val {
        justify-content: flex-start;
    }
}

.gh-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: gh-pulse 1.8s infinite;
}

@keyframes gh-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Category Filter Tabs (Segmented Control Nav) */
.gh-filter-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 5px;
    border-radius: 16px;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.gh-filter-bar::-webkit-scrollbar {
    display: none;
}

.gh-filter-pill {
    padding: 0.5rem 1.15rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    background: transparent;
    color: #475569;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.gh-filter-pill:hover {
    color: #0f172a;
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    transform: translateY(-1px);
}

.gh-filter-pill--active {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18) !important;
    transform: none !important;
}

/* 2-Column Hub Layout (8 cols vs 4 cols) */
.gh-layout-hub {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
}

@media (min-width: 992px) {
    .gh-layout-hub {
        grid-template-columns: 1fr 350px;
    }
}

/* 2-Column Games Grid for Category Pages */
.gh-games-grid-2x2,
.gh-games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .gh-games-grid-2x2,
    .gh-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Modern Game Card */
.gh-game-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid var(--gh-border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.gh-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -4px rgba(147, 51, 234, 0.12), 0 6px 12px -4px rgba(147, 51, 234, 0.06);
    border-color: #c4b5fd;
}

.gh-game-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gh-game-card-image-link {
    display: block;
    width: 100%;
    margin-bottom: 0.9rem;
    border-radius: 16px;
    overflow: hidden;
}

.gh-game-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.gh-game-card-image-link--corner {
    width: 72px;
    height: 54px;
    flex: 0 0 72px;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
}

.gh-game-card-image--corner {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 8px;
}

.gh-game-card:hover .gh-game-card-image {
    transform: scale(1.03);
}

.gh-game-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.gh-game-card:hover .gh-game-icon-box {
    transform: scale(1.06);
}

.gh-game-icon-box--amber {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.gh-game-icon-box--purple {
    background: #faf5ff;
    border: 1px solid #ddd6fe;
}

.gh-game-icon-box--pink {
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
}

.gh-game-icon-box--cyan {
    background: #ecfeff;
    border: 1px solid #a5f3fc;
}

.gh-game-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.gh-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 11px;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.gh-tag-pill--amber {
    background: #fef3c7;
    color: #b45309;
}

.gh-tag-pill--purple {
    background: #f3e8ff;
    color: #7e22ce;
}

.gh-tag-pill--pink {
    background: #fce7f3;
    color: #be185d;
}

.gh-tag-pill--cyan {
    background: #cffafe;
    color: #0e7490;
}

.gh-tag-pill--emerald {
    background: #d1fae5;
    color: #047857;
}

.gh-tag-pill--slate {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}


.gh-tag-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--gh-text-muted);
    margin-top: 0.25rem;
}

.gh-game-card-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--gh-text);
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
    transition: color 0.15s ease;
}

.gh-game-card:hover .gh-game-card-title {
    color: var(--gh-accent);
}

.gh-game-card-desc {
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--gh-text-muted);
    margin: 0 0 1rem;
}

/* High Score Mini-Box */
.gh-game-highscore {
    margin-top: auto;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
}

.gh-game-highscore-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gh-game-highscore-label {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--gh-text-subtle);
    display: block;
    letter-spacing: 0.04em;
}

.gh-game-highscore-name {
    font-weight: 800;
    color: var(--gh-text);
    font-size: 0.82rem;
}

.gh-game-highscore-val {
    font-weight: 900;
    font-size: 0.88rem;
}

/* Dual Highscore Box (Record Holder + Personal Best) */
.gh-game-highscore--dual {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.65rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
}

.gh-game-hs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.gh-game-hs-row--pb {
    padding-top: 0.35rem;
    border-top: 1px dashed #e2e8f0;
}

.gh-game-hs-left {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex: 1;
}

.gh-game-hs-icon {
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
}

.gh-game-hs-label {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--gh-text-subtle);
    letter-spacing: 0.04em;
    line-height: 1.1;
    display: block;
}

.gh-game-hs-name {
    font-weight: 800;
    color: var(--gh-text);
    font-size: 0.82rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gh-game-hs-name--me {
    color: #15803d;
}

.gh-game-hs-val {
    font-weight: 900;
    font-size: 0.88rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
    text-align: right;
    white-space: nowrap;
}

.gh-game-hs-val--gold {
    color: #b45309;
}

.gh-game-hs-val--green {
    color: #15803d;
}

.gh-game-hs-val--live {
    color: #10b981;
    font-weight: 800;
}

.gh-game-hs-val--subtle {
    font-size: 0.8rem;
}

.gh-game-hs-val--muted {
    color: var(--gh-text-muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.gh-leader-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--gh-text-muted);
    font-size: 0.82rem;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
}

/* Card Action Button Row */
.gh-game-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.15rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
}

.gh-game-btn-play {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(126, 34, 206, 0.2);
    transition: all 0.2s ease;
}

.gh-game-btn-play:hover {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    box-shadow: 0 6px 16px rgba(126, 34, 206, 0.3);
    transform: translateY(-1px);
}

.gh-game-btn-trophy {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--gh-border);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--gh-text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gh-game-btn-trophy:hover {
    border-color: #ddd6fe;
    background: #faf5ff;
    color: var(--gh-accent);
    transform: scale(1.05);
}

/* Challenge Banner (Dela & Utmana) */
.gh-challenge-banner {
    border-radius: 24px;
    background: linear-gradient(95deg, #f59e0b 0%, #ea580c 45%, #ec4899 100%);
    padding: 1.5rem 1.75rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.18);
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .gh-challenge-banner {
        flex-direction: row;
        align-items: center;
    }
}

.gh-challenge-badge {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 0.4rem;
}

.gh-challenge-title {
    font-size: 1.25rem;
    font-weight: 900;
    margin: 0 0 0.25rem;
    line-height: 1.25;
}

.gh-challenge-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    max-width: 440px;
}

.gh-challenge-btn {
    white-space: nowrap;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    color: #0f172a;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    align-self: flex-start;
}

@media (min-width: 640px) {
    .gh-challenge-btn {
        align-self: auto;
    }
}

.gh-challenge-btn:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Sidebar Widgets */
.gh-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Multiplayer Widget */
.gh-multiplayer-widget {
    background: #1e113a;
    color: #ffffff;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(30, 17, 58, 0.22);
    position: relative;
    overflow: hidden;
}

.gh-multiplayer-widget::before {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.gh-multiplayer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.gh-multiplayer-badge {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.95);
}

.gh-multiplayer-online {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 11px;
    font-weight: 700;
    color: #34d399;
}

.gh-multiplayer-title {
    font-size: 1.45rem;
    font-weight: 900;
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
}

.gh-multiplayer-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin: 0 0 1.25rem;
}

.gh-multiplayer-btn-host {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem;
    border-radius: 12px;
    background: #059669;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.gh-multiplayer-btn-host:hover {
    background: #10b981;
    transform: translateY(-1px);
}

.gh-multiplayer-btn-join {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 1.25rem;
}

.gh-multiplayer-btn-join:hover {
    background: rgba(255, 255, 255, 0.16);
}

.gh-multiplayer-modes-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.gh-multiplayer-modes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}

.gh-multiplayer-mode-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
    font-size: 0.75rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Weekly Leaderboard Widget */
.gh-weekly-leaderboard {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid var(--gh-border);
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.gh-weekly-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1rem;
}

.gh-weekly-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.gh-weekly-title {
    font-size: 1rem;
    font-weight: 900;
    color: var(--gh-text);
    margin: 0;
}

.gh-weekly-sub {
    font-size: 11px;
    color: var(--gh-text-muted);
    margin: 0.2rem 0 0;
}

.gh-weekly-round-badge {
    font-size: 10px;
    font-weight: 800;
    color: var(--gh-accent);
    background: var(--gh-accent-bg);
    border: 1px solid var(--gh-accent-border);
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.gh-weekly-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gh-weekly-item,
.gh-weekly-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.8rem;
    border-radius: 14px;
    font-size: 0.8rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    gap: 0.65rem;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.gh-weekly-item--rank1,
.gh-weekly-row--rank1 {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.gh-weekly-item--standard {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.gh-weekly-item-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 10px 14px;
    color: inherit;
    text-decoration: none;
}

.gh-weekly-row--me {
    background: #f0fdf4 !important;
    border: 1px solid #86efac !important;
}

.gh-weekly-row--me-pink {
    background: #fdf2f8 !important;
    border: 1px solid #f472b6 !important;
}

.gh-weekly-item-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.gh-weekly-item-left > div {
    min-width: 0;
    overflow: hidden;
}

.gh-weekly-rank,
.gh-weekly-medal {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--gh-text-subtle);
}

.gh-weekly-rank-num {
    font-weight: 800;
    color: var(--gh-text-subtle);
    width: 24px;
    text-align: center;
    font-size: 0.82rem;
}

.gh-weekly-user {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
    gap: 1px;
}

.gh-weekly-name-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.25;
}

/* User name: styled identical to SpeedyEyes in highscore box */
.gh-weekly-name,
.gh-weekly-user-name {
    font-weight: 800;
    color: var(--gh-text);
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.25;
}

.gh-weekly-pro,
.gh-weekly-pro-badge {
    font-size: 9px;
    font-weight: 900;
    background: #fef08a;
    color: #854d0e;
    padding: 1px 4px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

/* Game name: distinctly lighter, smaller and muted compared to user name */
.gh-weekly-game,
.gh-weekly-user-sub {
    font-size: 0.72rem;
    color: var(--gh-text-muted);
    font-weight: 500;
    line-height: 1.2;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gh-weekly-score-col,
.gh-weekly-item-right {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.gh-weekly-score {
    font-weight: 900;
    color: var(--gh-text);
    font-size: 0.85rem;
    line-height: 1.2;
}

.gh-weekly-tag {
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.gh-weekly-tag--record {
    color: #059669;
}

.gh-weekly-tag--behind {
    color: var(--gh-text-muted);
}

.gh-weekly-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.gh-weekly-footer-link {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--gh-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.15s ease;
}

.gh-weekly-footer-link:hover {
    gap: 0.45rem;
}

.gh-weekly-cta {
    display: block;
    margin-top: 1.15rem;
    padding-top: 0.5rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--gh-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

.gh-weekly-cta:hover {
    color: var(--gh-accent-hover);
    text-decoration: underline;
}

/* Visste du att? Fact Box */
.gh-fact-box {
    background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 100%);
    border: 1px solid #f3e8ff;
    border-radius: 20px;
    padding: 1.25rem;
}

.gh-fact-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 900;
    font-size: 0.85rem;
    color: #6b21a8;
    margin-bottom: 0.4rem;
}

.gh-fact-text {
    font-size: 0.78rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

.gh-fact-account-text {
    margin-top: 0.65rem;
}

.gh-fact-account-text strong {
    color: #334155;
}

/* ==============================================================================
   Category Hub Specific Styles (Odd One Out, Memory, etc.)
   ============================================================================== */

/* Card Status Badges (Top Right) */
.gh-card-status-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.gh-card-status-badge--live {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.gh-card-status-badge--popular {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.gh-card-status-badge--new {
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #fbcfe8;
}

.gh-card-status-badge--coming {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Card Meta Tags Sub-row */
.gh-card-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.gh-meta-pill {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Idea Banner */
.gh-idea-banner {
    background: #ffffff;
    border: 1px solid var(--gh-border);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

@media (min-width: 640px) {
    .gh-idea-banner {
        flex-direction: row;
        align-items: center;
    }
}

.gh-idea-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.gh-idea-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.gh-idea-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gh-text);
    margin: 0 0 0.15rem;
}

.gh-idea-sub {
    font-size: 0.8rem;
    color: var(--gh-text-muted);
    margin: 0;
}

.gh-idea-btn {
    white-space: nowrap;
    padding: 0.65rem 1.1rem;
    background: #ffffff;
    color: var(--gh-accent);
    border: 1.5px solid #ddd6fe;
    font-weight: 800;
    font-size: 0.78rem;
    font-family: inherit;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gh-idea-btn:hover {
    background: #faf5ff;
    border-color: var(--gh-accent);
    transform: translateY(-1px);
}

/* Sidebar Live Duel Widget */
.gh-sidebar-duel {
    background: #1e113a;
    color: #ffffff;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(30, 17, 58, 0.22);
    position: relative;
    overflow: hidden;
}

.gh-duel-badge {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.gh-duel-title {
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0 0 0.45rem;
    letter-spacing: -0.02em;
}

.gh-duel-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin: 0 0 1.25rem;
}

.gh-duel-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem;
    border-radius: 12px;
    background: #059669;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    transition: all 0.2s ease;
    text-decoration: none;
}

.gh-duel-btn:hover {
    background: #10b981;
    transform: translateY(-1px);
}

.gh-sidebar-duel--indigo {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border: 1px solid #4338ca;
}

.gh-duel-badge--indigo {
    background: rgba(129, 140, 248, 0.25);
    color: #c7d2fe;
}

.gh-duel-btn--purple {
    background: #9333ea;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.gh-duel-btn--purple:hover {
    background: #a855f7;
    color: #ffffff;
}

.gh-duel-btn--emerald {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.gh-duel-btn--emerald:hover {
    background: #10b981;
    color: #ffffff;
}

.gh-duel-btn--indigo {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.gh-duel-btn--indigo:hover {
    background: #6366f1;
    color: #ffffff;
}

.gh-duel-stack {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.gh-leader-game-subtitle {
    font-size: 11px;
    color: var(--gh-text-subtle);
    font-weight: 700;
}

.gh-info-card--spaced {
    margin-top: 2rem;
}

.gh-section-head--category {
    margin-bottom: 1.25rem;
}

.gh-section-title-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}

.gh-section-title--no-margin {
    margin: 0;
}

.gh-game-icon-box--link {
    text-decoration: none;
}

.gh-game-card-title-link {
    text-decoration: none;
    color: inherit;
}

.gh-card--disabled-dim {
    opacity: 0.85;
}

.gh-game-card-title--muted {
    color: var(--gh-text-muted);
}

.gh-game-icon--status {
    font-size: 1.1rem;
}

.gh-card-cta--full {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: block;
    box-sizing: border-box;
}

.gh-duel-subtext {
    font-size: 10px;
    color: #94a3b8;
    text-align: center;
    margin: 0.65rem 0 0;
}

/* Leaderboard Widget Tabs */
.gh-leader-tabs {
    display: flex;
    gap: 0.35rem;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.gh-leader-tab {
    flex: 1;
    text-align: center;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--gh-text-muted);
    transition: all 0.15s ease;
}

.gh-leader-tab--active {
    background: #ffffff;
    color: var(--gh-text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Rules Grid 4 Columns */
.gh-rules-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.gh-rules-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .gh-rules-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .gh-rules-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .gh-rules-grid-4 {
        grid-template-columns: 1fr;
    }

    .gh-rules-grid-3 {
        grid-template-columns: 1fr;
    }
}

.gh-rule-card {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 1.25rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.gh-rule-card-icon {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.gh-rule-card-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--gh-text);
    margin: 0;
}

.gh-rule-card-desc {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--gh-text-muted);
    margin: 0;
}

/* Code Hunt Visual Teaser Card Styles */
.gh-game-card--visual {
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gh-code-hunt-visual {
    width: 100%;
    padding: 1.4rem 1.25rem 1.25rem;
    box-sizing: border-box;
    background: radial-gradient(circle at 85% 15%, rgba(236, 72, 153, 0.08), transparent 40%), linear-gradient(135deg, #fff7fc, #f5f3ff);
    border-bottom: 1px solid #ede9fe;
    text-align: center;
    position: relative;
}

.gh-code-hunt-visual__lock {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin: 0 auto 0.65rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #fdf2f8, #ede9fe);
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
    transition: transform 0.2s ease;
}

.gh-game-card:hover .gh-code-hunt-visual__lock {
    transform: scale(1.08);
}

.gh-code-hunt-visual__progress {
    height: 6px;
    margin: 0 auto 0.75rem;
    max-width: 170px;
    overflow: hidden;
    border-radius: 99px;
    background: #e2e8f0;
}

.gh-code-hunt-visual__progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
}

.gh-code-hunt-visual__sublabel {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9333ea;
    margin-bottom: 0.35rem;
}

.gh-code-hunt-visual__clue {
    display: block;
    margin-bottom: 0.6rem;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    font-family: var(--gh-font-heading);
    line-height: 1.2;
}

.gh-code-hunt-visual__answer-field {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 180px);
    height: 42px;
    margin: 0 auto;
    box-sizing: border-box;
    border: 2px solid #c4b5fd;
    border-radius: 14px;
    background: #ffffff;
    color: #1e293b;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.06);
}

.gh-code-hunt-visual__answer-field span {
    display: inline-block;
    overflow: hidden;
    width: 0;
    white-space: nowrap;
    animation: gh-code-type 4s steps(6, end) infinite;
}

.gh-code-hunt-visual__answer-field i {
    width: 2px;
    height: 20px;
    margin-left: 2px;
    background: #ec4899;
    animation: gh-code-caret 0.7s step-end infinite;
}

.gh-code-hunt-visual--locked {
    background: #f8fafc;
    border-bottom-color: #f1f5f9;
}

.gh-code-hunt-visual--locked .gh-code-hunt-visual__lock {
    background: #f1f5f9;
    box-shadow: none;
    filter: grayscale(0.5);
}

.gh-code-hunt-visual--locked .gh-code-hunt-visual__sublabel {
    color: #94a3b8;
}

.gh-code-hunt-visual--locked .gh-code-hunt-visual__clue {
    color: #94a3b8;
}

.gh-code-hunt-visual--locked .gh-code-hunt-visual__answer-field {
    border-color: #e2e8f0;
    color: #cbd5e1;
    letter-spacing: 0.25em;
    box-shadow: none;
}

.gh-code-hunt-visual--locked .gh-code-hunt-visual__answer-field span {
    width: auto;
    animation: none;
}

.gh-code-hunt-visual--locked .gh-code-hunt-visual__answer-field i {
    display: none;
}

.gh-game-card-body {
    padding: 1.35rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

@keyframes gh-code-type {
    0%, 15% { width: 0; }
    45%, 75% { width: 5.5em; }
    90%, 100% { width: 0; }
}

@keyframes gh-code-caret {
    50% { opacity: 0; }
}

/* ==========================================================================
   COMPACT MAIN GAMES HUB (/games/) DESIGN
   High-density cards (65-75% height) + 3-column desktop layout + section shelves.
   Does NOT affect category pages (Odd One Out, Memory, 1 vs 1).
   ========================================================================== */

/* Responsive Hub Layout Adjustment */
@media (min-width: 1200px) {
    .gh-layout-hub {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 1.75rem;
    }
}

/* Section Shelf */
.gh-hub-section {
    margin-bottom: 2.25rem;
}

.gh-hub-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1.5px solid #f1f5f9;
}

.gh-hub-section__title-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.gh-hub-section__title {
    font-size: 1.18rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.015em;
}

.gh-hub-section__badge {
    font-size: 10px;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.gh-hub-section__view-all {
    font-size: 0.82rem;
    font-weight: 800;
    color: #4f46e5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.15s ease;
}

.gh-hub-section__view-all:hover {
    color: #4338ca;
    text-decoration: underline;
}

/* 3-Column Compact Grid on Wide Desktop, 2 on Tablet/Laptop */
.gh-compact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.95rem;
}

@media (min-width: 640px) {
    .gh-compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .gh-compact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* The Swedish and English home hubs feature six compact games: three per row
   on phones and one single row on desktop. */
.gh-compact-grid--six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (min-width: 900px) {
    .gh-compact-grid--six {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

/* Compact Game Card */
.gh-compact-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--gh-border, #e2e8f0);
    padding: 0.95rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
    position: relative;
}

.gh-compact-card--featured-six {
    padding: 0.65rem;
    border-radius: 14px;
    min-width: 0;
}

.gh-compact-card--featured-six .gh-compact-card-head {
    display: block;
}

.gh-compact-card--featured-six .gh-compact-card-image-link,
.gh-compact-card--featured-six .gh-compact-card-image,
.gh-compact-card--featured-six .gh-compact-icon {
    width: 100%;
    height: 64px;
    flex: none;
    object-fit: cover;
    border-radius: 10px;
}

.gh-compact-card--featured-six .gh-compact-title {
    font-size: 0.95rem;
    line-height: 1.15;
    margin: 0.55rem 0 0.7rem;
}

.gh-compact-card--featured-six .gh-compact-badge {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    font-size: 0.58rem;
    padding: 0.18rem 0.35rem;
}

.gh-compact-card--featured-six .gh-compact-btn-play {
    width: 100%;
    min-height: 2rem;
    padding: 0.35rem 0.25rem;
    font-size: 0.72rem;
    white-space: nowrap;
}

.gh-compact-card--featured-six .gh-compact-link-info {
    display: none;
}

.gh-compact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -3px rgba(124, 58, 237, 0.12), 0 3px 8px -2px rgba(124, 58, 237, 0.05);
    border-color: #c4b5fd;
}

.gh-compact-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.gh-compact-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.gh-compact-card-image-link {
    display: block;
    width: 64px;
    height: 46px;
    flex: 0 0 64px;
    overflow: hidden;
    border-radius: 7px;
}

.gh-compact-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: transform 0.2s ease;
}

.gh-compact-card:hover .gh-compact-card-image {
    transform: scale(1.04);
}

.gh-compact-card:hover .gh-compact-icon {
    transform: scale(1.05);
}

.gh-compact-badge {
    font-size: 10px;
    font-weight: 850;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.gh-compact-badge--live {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.gh-compact-badge--popular {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.gh-compact-badge--new {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.gh-compact-badge--soon {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.gh-compact-title {
    font-size: 1.05rem;
    font-weight: 850;
    color: var(--gh-text, #0f172a);
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.gh-compact-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.gh-compact-card:hover .gh-compact-title a {
    color: var(--gh-accent, #7c3aed);
}

.gh-compact-desc {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--gh-text-muted, #64748b);
    margin: 0 0 0.65rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.1em;
}

/* Compact Results & Progression Panel */
.gh-compact-hs {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 0.45rem 0.65rem;
    margin-bottom: 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.gh-compact-hs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    line-height: 1.2;
}

.gh-compact-hs-row--pb {
    padding-top: 0.25rem;
    border-top: 1px dashed #e2e8f0;
}

.gh-compact-hs-lbl {
    font-size: 9.5px;
    font-weight: 800;
    color: var(--gh-text-subtle, #64748b);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.gh-compact-hs-val {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--gh-text, #0f172a);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gh-compact-hs-val--record {
    color: #b45309;
}

.gh-compact-hs-val--pb {
    color: #15803d;
}

.gh-compact-hs-val--muted {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.74rem;
}

.gh-compact-hs-user {
    font-weight: 600;
    color: #64748b;
    font-size: 0.72rem;
    margin-left: 0.2rem;
}

/* Compact Secondary Info & Leaderboard Link */
.gh-compact-link-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 0.74rem;
    font-weight: 750;
    color: var(--gh-text-muted, #64748b);
    text-decoration: none;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    transition: all 0.15s ease;
}

.gh-compact-link-info:hover {
    color: var(--gh-accent, #7c3aed);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gh-compact-link-info--placeholder {
    visibility: hidden;
    user-select: none;
    pointer-events: none;
}

/* Compact Play Action */
.gh-compact-btn-play {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.48rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 850;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.18s ease;
    box-sizing: border-box;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.gh-compact-btn-play:hover {
    background: #4f46e5;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.gh-compact-btn-play--soon {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: default;
    box-shadow: none;
}

.gh-compact-btn-play--soon:hover {
    background: #f1f5f9;
    color: #94a3b8;
    transform: none;
    box-shadow: none;
}


/* =============================================
   GAME LANDING PAGE — Shared template classes
   ============================================= */

/* Hero CTA area */
.gh-hero-cta-wrap {
    margin-top: 1.5rem;
}

.gh-hero-cta-btn {
    font-size: 1.1rem;
    font-weight: 800;
    padding: 1rem 2.2rem;
    display: inline-flex;
    width: auto;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
}

.gh-hero-cta-btn--green {
    background: rgb(5, 150, 105);
    box-shadow: 0 4px 18px rgba(5, 150, 105, 0.35);
}

.gh-hero-cta-sub {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 0.6rem;
    margin-bottom: 0;
}

/* Info paragraphs inside cards */
.gh-info-para {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--gh-text-muted);
    margin-bottom: 0.8rem;
}

.gh-info-para:last-child {
    margin-bottom: 0;
}

/* Gradient info cards */
.gh-info-card--gradient-purple {
    background: linear-gradient(135deg, #faf5ff 0%, #f0fdf4 100%);
    border-color: #ddd6fe;
    margin-bottom: 0;
}

.gh-info-card--gradient-green {
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
    border-color: #a7f3d0;
}

/* Bottom CTA block */
.gh-bottom-cta {
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-bottom: 3rem;
}

.gh-bottom-cta--purple {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
    border-color: #eadcff;
}

.gh-bottom-cta--green {
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
    border-color: #a7f3d0;
}

.gh-bottom-cta__title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gh-text);
    margin-bottom: 0.5rem;
}

.gh-bottom-cta__sub {
    font-size: 0.98rem;
    color: var(--gh-text-muted);
    margin-bottom: 1.5rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.gh-bottom-cta__btn {
    font-size: 1.15rem;
    font-weight: 800;
    padding: 1.1rem 2.5rem;
    display: inline-block;
    text-decoration: none;
}

/* Leaderboard sidebar: colored pills */
.gh-leader-pill--amber {
    background: #fffbeb;
    border-color: #fde68a;
    color: #d97706;
    margin-bottom: 0;
}

.gh-leader-pill--green {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
    margin-bottom: 0;
}

/* Leaderboard: all-time label */
.gh-leader-all-time {
    color: var(--gh-text-subtle);
    font-size: 11px;
    font-weight: 700;
}

/* Leaderboard: logged-in notice */
.gh-leader-logged-in {
    color: var(--gh-text-muted);
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    display: block;
    margin-top: 4px;
}

/* Empty leaderboard state */
.gh-leader-empty {
    padding: 1.5rem 0;
    text-align: center;
    color: var(--gh-text-subtle);
    font-size: 0.9rem;
}

.gh-leader-empty__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.gh-leader-empty__text {
    font-size: 0.9rem;
    color: var(--gh-text-muted);
    margin: 0;
}

/* Scoring sidebar (Serve It!) */
.gh-scoring-sidebar {
    font-size: 0.9rem;
    color: var(--gh-text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.gh-scoring-sidebar ul {
    padding-left: 1.2rem;
    margin: 0;
}

.gh-scoring-sidebar li {
    margin-bottom: 0.6rem;
}

.gh-scoring-sidebar li:last-child {
    margin-bottom: 0;
}

/* Info title: large */
.gh-info-title--lg {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 0.9rem;
}

/* PB Showcase heading */
.gh-pb-showcase__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gh-text);
    margin-bottom: 0.75rem;
}

/* CTA button: green variant for leader sidebar */
.gh-leader-btn-register--green {
    background: rgb(5, 150, 105);
    display: block;
    text-align: center;
    text-decoration: none;
}

.gh-leader-btn-register--green:hover {
    background: #047857;
}

/* Grid alignment helpers */
.gh-grid-2--stretch {
    margin-bottom: 24px;
    align-items: stretch;
}

.gh-grid-3--spaced {
    margin-bottom: 24px;
}

/* Info card helpers */
.gh-info-card--mb0 {
    margin-bottom: 0;
}

.gh-info-card--col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Card: plain white with padding */
.gh-card--preview {
    align-items: center;
    justify-content: flex-start;
    background: #ffffff;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gh-game-preview-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    margin: 0.5rem 0;
}
