.vvg-game,
.vvg-games-hub,
.vvg-profile {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.vvg-game *,
.vvg-game *::before,
.vvg-game *::after,
.vvg-games-hub *,
.vvg-games-hub *::before,
.vvg-games-hub *::after,
.vvg-profile *,
.vvg-profile *::before,
.vvg-profile *::after {
    box-sizing: border-box;
}

.vvg-game--fallback {
    padding: 16px;
    border: 1px solid currentColor;
    border-radius: 8px;
}

.vvg-games-hub__grid,
.vvg-profile__games,
.vvg-profile__summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.vvg-game-card,
.vvg-profile-game,
.vvg-profile__stat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 12px;
    background: #fff;
}

.vvg-game-card__body {
    flex: 1 1 auto;
}

.vvg-game-card__title,
.vvg-profile-game__title {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.vvg-game-card__category,
.vvg-game-card__age,
.vvg-profile-game p {
    margin: 6px 0;
}

.vvg-game-card__launch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.vvg-game-card__unavailable {
    font-size: 0.9rem;
    opacity: 0.7;
}

.vvg-profile__summary {
    margin-bottom: 20px;
}

.vvg-profile__stat-label,
.vvg-profile__stat-value {
    display: block;
}

.vvg-profile__stat-value {
    margin-top: 4px;
    font-size: 1.4rem;
}

@media (min-width: 640px) {
    .vvg-games-hub__grid,
    .vvg-profile__games {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vvg-profile__summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .vvg-games-hub__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .vvg-game *,
    .vvg-game *::before,
    .vvg-game *::after,
    .vvg-games-hub *,
    .vvg-games-hub *::before,
    .vvg-games-hub *::after,
    .vvg-profile *,
    .vvg-profile *::before,
    .vvg-profile *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* Free Resources Hub */
.vvg-resource-hub {
    --vvg-resource-accent: #1769aa;
    --vvg-resource-accent-strong: #0f4f84;
    --vvg-resource-soft: #eef7ff;
    --vvg-resource-ink: #17324d;
    --vvg-resource-muted: #66788a;
    --vvg-resource-border: rgba(23, 50, 77, 0.12);
    --vvg-resource-shadow: 0 14px 36px rgba(23, 50, 77, 0.09);
    box-sizing: border-box;
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    margin-bottom: clamp(40px, 7vw, 92px);
    color: var(--vvg-resource-ink);
}

.vvg-resource-hub *,
.vvg-resource-hub *::before,
.vvg-resource-hub *::after {
    box-sizing: border-box;
}

.vvg-resource-hub__hero {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--vvg-resource-border);
    border-radius: 24px;
    background: linear-gradient(135deg, #f7fbff 0%, #eef7ff 52%, #f8f6ff 100%);
}

.vvg-resource-hub__hero::after {
    content: "";
    position: absolute;
    right: -56px;
    bottom: -88px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(23, 105, 170, 0.08);
    pointer-events: none;
}

.vvg-resource-hub__eyebrow {
    margin: 0 0 8px;
    color: var(--vvg-resource-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vvg-resource-hub__title {
    max-width: 760px;
    margin: 0;
    color: var(--vvg-resource-ink);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.04;
}

.vvg-resource-hub__intro {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--vvg-resource-muted);
    font-size: clamp(1rem, 2vw, 1.17rem);
    line-height: 1.65;
}

.vvg-resource-section {
    margin-top: clamp(34px, 6vw, 64px);
}

.vvg-resource-section__heading {
    margin-bottom: 18px;
}

.vvg-resource-section__heading h2 {
    margin: 0;
    color: var(--vvg-resource-ink);
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.vvg-resource-section__heading p {
    margin: 7px 0 0;
    color: var(--vvg-resource-muted);
}

.vvg-resource-featured-grid,
.vvg-resource-grid,
.vvg-resource-category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.vvg-resource-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--vvg-resource-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 50, 77, 0.05);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.vvg-resource-card:not([hidden]):hover {
    transform: translateY(-3px);
    border-color: rgba(23, 105, 170, 0.28);
    box-shadow: var(--vvg-resource-shadow);
}

.vvg-resource-card[hidden] {
    display: none !important;
}

.vvg-resource-card__visual {
    position: relative;
    display: grid;
    min-height: 168px;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, var(--vvg-resource-soft), #f8fbfd);
}

.vvg-resource-card__visual img {
    width: 100%;
    height: 100%;
    min-height: 168px;
    object-fit: cover;
}

.vvg-resource-card__visual img.vvg-resource-card__icon-image {
    width: clamp(132px, 38%, 210px);
    height: auto;
    min-height: 0;
    max-height: 210px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.vvg-resource-card--featured .vvg-resource-card__visual img.vvg-resource-card__icon-image {
    width: clamp(160px, 58%, 240px);
    max-height: 240px;
}

.vvg-resource-card__fallback-icon {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    color: var(--vvg-resource-accent);
}

.vvg-resource-card__fallback-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.vvg-resource-card__type,
.vvg-resource-card__badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    font-size: 0.78rem;
    font-weight: 750;
    box-shadow: 0 4px 14px rgba(23, 50, 77, 0.08);
}

.vvg-resource-card__type {
    left: 12px;
}

.vvg-resource-card__badge {
    right: 12px;
    color: var(--vvg-resource-accent-strong);
}

.vvg-resource-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 19px;
}

.vvg-resource-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.vvg-resource-card__categories span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--vvg-resource-soft);
    color: var(--vvg-resource-accent-strong);
    font-size: 0.75rem;
    font-weight: 700;
}

.vvg-resource-card__title {
    margin: 0;
    color: var(--vvg-resource-ink);
    font-size: 1.22rem;
    line-height: 1.28;
}

.vvg-resource-card__description {
    margin: 10px 0 0;
    color: var(--vvg-resource-muted);
    line-height: 1.55;
}

.vvg-resource-card__age {
    margin: 10px 0 0;
    color: var(--vvg-resource-muted);
    font-size: 0.88rem;
}

.vvg-resource-card__footer {
    margin-top: auto;
    padding-top: 18px;
}

.vvg-resource-card__action {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--vvg-resource-accent);
    color: #fff !important;
    font-weight: 750;
    text-decoration: none !important;
}

.vvg-resource-card__action:hover,
.vvg-resource-card__action:focus-visible {
    background: var(--vvg-resource-accent-strong);
    color: #fff !important;
}

.vvg-resource-card__action:focus-visible,
.vvg-resource-category-card:focus-visible,
.vvg-resource-filter:focus-visible,
.vvg-resource-search input:focus-visible {
    outline: 3px solid rgba(23, 105, 170, 0.28);
    outline-offset: 3px;
}

.vvg-resource-card__unavailable {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--vvg-resource-muted);
    font-size: 0.9rem;
    font-weight: 650;
}

.vvg-resource-card--featured .vvg-resource-card__visual {
    min-height: 220px;
}

.vvg-resource-card--featured .vvg-resource-card__visual img {
    min-height: 220px;
}

.vvg-resource-category-card {
    display: flex;
    min-height: 112px;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--vvg-resource-border);
    border-radius: 16px;
    background: #fff;
    color: var(--vvg-resource-ink) !important;
    text-decoration: none !important;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.vvg-resource-category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(23, 105, 170, 0.26);
    box-shadow: 0 8px 22px rgba(23, 50, 77, 0.06);
}

.vvg-resource-category-card__icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 14px;
    background: var(--vvg-resource-soft);
    color: var(--vvg-resource-accent);
    font-size: 1.15rem;
    font-weight: 850;
}

.vvg-resource-category-card__content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 3px;
}

.vvg-resource-category-card__content > span,
.vvg-resource-category-card__content small {
    color: var(--vvg-resource-muted);
}

.vvg-resource-category-card__content small {
    font-size: 0.78rem;
}

.vvg-resource-category-card__arrow {
    color: var(--vvg-resource-accent);
    font-size: 1.35rem;
}

.vvg-resource-section__heading--browse {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vvg-resource-search {
    position: relative;
    display: block;
    width: 100%;
    max-width: 360px;
}

.vvg-resource-search__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--vvg-resource-muted);
    pointer-events: none;
}

.vvg-resource-search input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px 10px 40px;
    border: 1px solid var(--vvg-resource-border);
    border-radius: 12px;
    background: #fff;
    color: var(--vvg-resource-ink);
    font: inherit;
}

.vvg-resource-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    overflow-x: auto;
    padding: 2px 2px 7px;
    scrollbar-width: thin;
}

.vvg-resource-filter {
    min-height: 40px;
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid var(--vvg-resource-border);
    border-radius: 999px;
    background: #fff;
    color: var(--vvg-resource-ink);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 650;
}

.vvg-resource-filter.is-active {
    border-color: var(--vvg-resource-accent);
    background: var(--vvg-resource-accent);
    color: #fff;
}

.vvg-resource-hub__coming-soon,
.vvg-resource-hub__empty,
.vvg-resource-filter-empty {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 26px;
    padding: 18px 20px;
    border: 1px dashed rgba(23, 105, 170, 0.28);
    border-radius: 14px;
    background: rgba(238, 247, 255, 0.55);
    color: var(--vvg-resource-muted);
}

.vvg-resource-hub__coming-soon strong,
.vvg-resource-hub__empty strong {
    color: var(--vvg-resource-ink);
}

@media (min-width: 640px) {
    .vvg-resource-featured-grid,
    .vvg-resource-grid,
    .vvg-resource-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vvg-resource-section__heading--browse {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .vvg-resource-search {
        flex: 0 1 340px;
    }
}

@media (min-width: 960px) {
    .vvg-resource-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vvg-resource-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vvg-resource-featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vvg-resource-hub--single .vvg-resource-featured-grid {
        grid-template-columns: minmax(0, 760px);
    }

    .vvg-resource-hub--single .vvg-resource-card--featured {
        display: grid;
        grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
    }

    .vvg-resource-hub--single .vvg-resource-card--featured .vvg-resource-card__visual,
    .vvg-resource-hub--single .vvg-resource-card--featured .vvg-resource-card__visual img {
        min-height: 100%;
    }

    .vvg-resource-hub--single .vvg-resource-card--featured .vvg-resource-card__visual img.vvg-resource-card__icon-image {
        width: min(72%, 250px);
        height: auto;
        min-height: 0;
        max-height: 250px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vvg-resource-hub *,
    .vvg-resource-hub *::before,
    .vvg-resource-hub *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

.vvg-resource-hub .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Core-managed virtual game page */
.vvg-virtual-game {
    box-sizing: border-box;
    width: 100%;
}

.vvg-virtual-game *,
.vvg-virtual-game *::before,
.vvg-virtual-game *::after {
    box-sizing: border-box;
}

.vvg-virtual-game__inner {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding: clamp(20px, 4vw, 48px) 16px clamp(48px, 7vw, 88px);
}


.vvg-virtual-game__page-intro {
    width: 100%;
    max-width: none;
    margin: 0 0 clamp(24px, 4vw, 42px);
}

.vvg-virtual-game__page-title {
    margin: 0;
    color: #17324d;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.12;
    text-wrap: balance;
}

.vvg-virtual-game__page-description {
    width: 100%;
    max-width: none;
    margin: 14px 0 0;
    color: #66788a;
    font-size: clamp(1rem, 1.8vw, 1.12rem);
    line-height: 1.65;
}

.vvg-virtual-game__content {
    width: 100%;
}
