.rvg-theme.rvg-theme {
    --rvg-ink: var(--rvg-theme-ink, var(--wp--preset--color--contrast, #17202a));
    --rvg-paper: var(--rvg-theme-paper, var(--wp--preset--color--base, #fff));
    --rvg-card: var(--rvg-paper);
    --rvg-muted: color-mix(in srgb, var(--rvg-ink) 72%, var(--rvg-paper));
    --rvg-line: color-mix(in srgb, var(--rvg-ink) 18%, var(--rvg-paper));
    --rvg-purple: var(--wp--preset--color--primary, var(--rvg-theme-accent, #4b2ed1));
    --rvg-purple-dark: var(--rvg-purple);
    --rvg-accent: var(--rvg-purple);
    --rvg-page-ink: var(--rvg-ink);
    --rvg-page-paper: var(--rvg-paper);
    --rvg-page-muted: var(--rvg-muted);
    --rvg-page-line: var(--rvg-line);
    --rvg-page-primary: var(--rvg-purple);
    color: var(--rvg-ink);
    font-family: inherit;
    line-height: inherit;
    min-width: 0;
}

.rvg-theme :is(button, input, select, textarea) { font-family: inherit; }
.rvg-theme :is(button, a, input, select):focus-visible { outline: 3px solid var(--rvg-purple); outline-offset: 3px; }
.rvg-theme :is(.rvg-filters, .rvg-card, .rvg-connection, .rvg-empty, .rvg-game-page__details-panel, .rvg-game-page__toc) { background: var(--rvg-paper); color: var(--rvg-ink); }
.rvg-theme :is(.rvg-filters input, .rvg-filters select) { background: var(--rvg-paper); color: var(--rvg-ink); border-color: var(--rvg-line); }
.rvg-theme :is(.rvg-card h3, .rvg-card__provider, .rvg-game-page__details-panel h2) { color: var(--rvg-ink); }
.rvg-theme .rvg-card { border: 1px solid var(--rvg-line); border-radius: 1rem; box-shadow: none; transition: border-color .2s, transform .2s; }
.rvg-theme .rvg-card:hover { border-color: var(--rvg-purple); transform: translateY(-3px); }
.rvg-theme .rvg-card__art { aspect-ratio: 4 / 3; border-radius: .85rem; overflow: hidden; }
.rvg-theme .rvg-card__art img { width: 100%; height: 100%; object-fit: cover; }
.rvg-theme .rvg-card__body { padding: 1rem; min-height: 0; }
.rvg-theme.rvg-catalogue--compact .rvg-card__body { padding: .65rem; }
.rvg-theme.rvg-catalogue--compact .rvg-card__art { aspect-ratio: 16 / 9; }
.rvg-theme.rvg-catalogue--poster .rvg-card__art { aspect-ratio: 3 / 4; }
.rvg-theme .rvg-card h3 { font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.25; letter-spacing: normal; }
.rvg-theme .rvg-card__provider { font-size: .75rem; letter-spacing: .025em; }
.rvg-theme .rvg-filters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.rvg-theme .rvg-grid { list-style: none; margin-inline: 0; padding: 0; }
.rvg-theme .rvg-catalogue__header { grid-template-columns: minmax(0, 1fr); }
.rvg-theme .rvg-catalogue__header h2 { font-size: clamp(1.7rem, 3vw, 3rem); letter-spacing: -.03em; line-height: 1.12; max-width: none; }
.rvg-theme .rvg-connection { justify-self: start; white-space: normal; }
.rvg-theme .rvg-connection span { background: var(--rvg-muted); border-color: var(--rvg-line); }
.rvg-theme.rvg-game-page, .rvg-theme .rvg-free-games-page__shell {
    max-width: var(--wp--style--global--wide-size, var(--wp--style--global--content-size, 80rem));
    margin-inline: auto;
    width: 100%;
}
.rvg-theme.rvg-free-games-page { background: var(--rvg-paper); padding: clamp(1rem, 3vw, 3rem); }
.rvg-cf-page--single { background: transparent; padding: clamp(1rem, 3vw, 3rem) 0; }
.rvg-theme .rvg-game-page__hero { background: color-mix(in srgb, var(--rvg-purple) 5%, var(--rvg-paper)); }
.rvg-theme :is(.rvg-eyebrow, .rvg-game-page__crumbs a, .rvg-game-page__back) { color: var(--rvg-ink); }
.rvg-theme .rvg-game-page__copy h1 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.08; letter-spacing: -.035em; }
.rvg-theme .rvg-game-page__details-panel { align-self: start; padding: clamp(1rem, 2vw, 1.75rem); border: 1px solid var(--rvg-line); border-radius: 1rem; }
.rvg-theme .rvg-game-page__details-panel h2 { font-size: 1.4em; letter-spacing: normal; }
.rvg-theme .rvg-game-page__details-panel dl div { gap: 1rem; font-size: clamp(.85rem, 1vw, .95rem); }
.rvg-theme .rvg-game-page__details-panel dd { overflow-wrap: anywhere; }
.rvg-theme.rvg-details--below .rvg-game-page__experience, .rvg-theme.rvg-details--hidden .rvg-game-page__experience { grid-template-columns: minmax(0, 1fr); }
.rvg-theme.rvg-details--below .rvg-game-page__details-panel dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 0 2rem; }
.rvg-theme.rvg-player--dark { --rvg-default-player-bg: #10131f; --rvg-default-player-text: #fff; }
.rvg-theme .rvg-game-stage {
    background: var(--rvg-player-bg, var(--rvg-default-player-bg, var(--rvg-paper)));
    color: var(--rvg-player-text, var(--rvg-default-player-text, var(--rvg-ink)));
    border: 1px solid var(--rvg-line);
    container-type: inline-size;
}
.rvg-theme :is(.rvg-game-stage__viewport, .rvg-game-stage__placeholder) { background: transparent; color: inherit; }
.rvg-theme .rvg-game-stage__viewport { min-height: 24rem; aspect-ratio: 16 / 10; border-color: var(--rvg-line); }
.rvg-theme .rvg-game-stage__placeholder { position: relative; min-height: 100%; height: 100%; overflow: auto; }
.rvg-theme .rvg-game-stage__placeholder[hidden] { display: none; }
.rvg-theme .rvg-game-stage :is(h1, h2, h3, .rvg-eyebrow, p, small, .rvg-game-stage__status > span, .rvg-game-stage__controls > button) { color: inherit; }
.rvg-theme .rvg-game-stage :is(.rvg-game-stage__intro > p:not(.rvg-eyebrow), .rvg-game-stage__status small, .rvg-game-stage__controls > p) { opacity: .8; }
.rvg-theme .rvg-game-stage__preview { background: transparent; border-color: var(--rvg-line); }
.rvg-theme.rvg-theme :is(.rvg-game-stage__launch, .rvg-launch-button) {
    appearance: none;
    background: var(--rvg-button-bg, #4b2ed1) !important;
    color: var(--rvg-button-text, #fff) !important;
    -webkit-text-fill-color: var(--rvg-button-text, #fff) !important;
    border: 2px solid var(--rvg-button-bg, #4b2ed1);
    border-radius: .7rem;
    animation: none;
    transition: box-shadow .15s ease;
    filter: none;
    text-shadow: none;
    text-decoration: none;
    mix-blend-mode: normal;
    font-family: inherit;
    line-height: 1.3;
}
.rvg-theme.rvg-theme :is(.rvg-game-stage__launch, .rvg-launch-button) > span {
    background: transparent !important;
    color: var(--rvg-button-text, #fff) !important;
    -webkit-text-fill-color: var(--rvg-button-text, #fff) !important;
    opacity: 1;
}
.rvg-theme.rvg-theme :is(.rvg-game-stage__launch, .rvg-launch-button):not(:disabled) { opacity: 1; }
.rvg-theme.rvg-theme :is(.rvg-game-stage__launch, .rvg-launch-button):is(:hover, :focus-visible) {
    filter: none;
    box-shadow: inset 0 0 0 2px var(--rvg-button-text, #fff);
}
.rvg-theme.rvg-theme :is(.rvg-game-stage__launch, .rvg-launch-button):focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.rvg-theme .rvg-game-stage__controls > button { background: transparent; border-color: currentColor; }
.rvg-theme .rvg-game-stage__controls > button:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.rvg-theme.rvg-theme .rvg-game-stage__controls > button {
    background: var(--rvg-player-bg, var(--rvg-default-player-bg, var(--rvg-paper))) !important;
    color: var(--rvg-player-text, var(--rvg-default-player-text, var(--rvg-ink))) !important;
    -webkit-text-fill-color: currentColor !important;
    border-color: currentColor;
    filter: none;
    text-shadow: none;
    transition: box-shadow .15s ease;
    opacity: 1;
}
.rvg-theme.rvg-theme .rvg-game-stage__controls > button > span {
    background: transparent !important;
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
    opacity: 1;
}
.rvg-theme.rvg-theme .rvg-game-stage__controls > button:is(:hover, :focus-visible) { box-shadow: inset 0 0 0 1px currentColor; }
.rvg-theme.rvg-player--no-art .rvg-game-stage__preview { display: none; }
.rvg-theme.rvg-player--no-art .rvg-game-stage__placeholder { grid-template-columns: minmax(0, 1fr); }
.rvg-theme .rvg-game-stage__promotion { background: transparent; border-color: var(--rvg-line); }
.rvg-theme .rvg-game-stage__promotion :is(span, strong, small, .rvg-game-stage__promotion-terms-link) { color: inherit; }
.rvg-theme .rvg-game-stage__promotion-action { animation: none; }

@container (max-width: 42rem) {
    .rvg-theme .rvg-game-stage__placeholder { grid-template-columns: minmax(0, 1fr); }
    .rvg-theme .rvg-game-stage__preview { max-height: 12rem; justify-self: center; width: min(100%, 16rem); }
    .rvg-theme .rvg-game-stage__viewport { aspect-ratio: auto; min-height: 32rem; }
    .rvg-theme .rvg-game-stage__topline { flex-wrap: wrap; }
}
@container (max-width: 38rem) {
    .rvg-theme.rvg-catalogue .rvg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
}
@media (max-width: 60rem) {
    .rvg-theme .rvg-game-page__experience { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
    .rvg-theme.rvg-catalogue { padding: 1rem; }
    .rvg-theme .rvg-game-page__hero { grid-template-columns: minmax(0, 1fr); }
    .rvg-theme .rvg-card__body { padding: .7rem; }
    .rvg-theme .rvg-game-stage__launch { width: 100%; }
    .rvg-theme .rvg-related .rvg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
    .rvg-theme .rvg-card { transition: none; }
    .rvg-theme .rvg-card:hover { transform: none; }
}

.rvg-game-stage__viewport .rvg-launch-brand {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 2;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    padding: 1.5rem;
    background: radial-gradient(ellipse at center, #261347 0%, #100d1d 70%);
    color: #d5cee5;
    font: 500 1rem/1.5 system-ui, sans-serif;
    text-align: center;
}
.rvg-game-stage__viewport.is-loading .rvg-launch-brand { display: flex; }
.rvg-launch-brand img { display: block; width: min(80%, 32rem); height: auto; }
.rvg-launch-brand__progress { width: min(60%, 18rem); height: .25rem; border-radius: 1rem; background: #332444; overflow: hidden; }
.rvg-launch-brand__progress::after { content: ''; display: block; width: 40%; height: 100%; background: #7b47ff; border-radius: inherit; animation: rvg-brand-progress 1.3s ease-in-out infinite alternate; }
@keyframes rvg-brand-progress { from { transform: translateX(-20%); } to { transform: translateX(170%); } }
@media (prefers-reduced-motion: reduce) { .rvg-launch-brand__progress::after { animation: none; width: 100%; } }

.rvg-theme .rvg-unavailable-notice {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(1rem, 3vw, 2.5rem);
    background: #171020;
    color: #fff;
    text-align: center;
}
.rvg-theme .rvg-unavailable-notice[hidden],
.rvg-theme .rvg-unavailable-notice [hidden] { display: none; }
.rvg-theme .rvg-unavailable-notice__backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    filter: blur(12px) brightness(.3);
    transform: scale(1.08);
    pointer-events: none;
}
.rvg-theme .rvg-unavailable-notice__content { display: grid; justify-items: center; gap: clamp(1rem, 2vw, 1.5rem); max-width: 100%; max-height: 100%; overflow: auto; padding: .3rem; box-sizing: border-box; margin: auto; }
.rvg-theme .rvg-unavailable-notice__art { display: block; width: clamp(6rem, 15vw, 12rem); max-height: 24vh; height: auto; object-fit: contain; border-radius: .75rem; box-shadow: 0 .75rem 2rem #0006; }
.rvg-theme .rvg-unavailable-notice h2 { margin: 0; color: #fff; font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-weight: 750; line-height: 1.2; text-wrap: balance; }
.rvg-theme .rvg-unavailable-notice__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.rvg-theme .rvg-unavailable-notice__actions :is(a, button) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .8rem 1.35rem; border: 1px solid transparent; border-radius: .6rem; background: #f6e956; color: #171020; -webkit-text-fill-color: #171020; font-weight: 750; font-size: 1rem; line-height: 1.4; font-family: inherit; text-decoration: none; cursor: pointer; }
.rvg-theme .rvg-unavailable-notice__actions button { background: #171020; color: #fff; -webkit-text-fill-color: #fff; border-color: #ffffff80; }
.rvg-theme .rvg-unavailable-notice__actions :is(a, button):hover { filter: brightness(.92); }
.rvg-theme .rvg-unavailable-notice__actions :is(a, button):focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@media (max-height: 450px) { .rvg-theme .rvg-unavailable-notice__art { max-height: 18vh; } }

.rvg-theme .rvg-subscription-notice {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 2vw, 1.75rem);
    padding: clamp(1.5rem, 4vw, 3.5rem);
    overflow: auto;
    background: radial-gradient(ellipse at top, #2b184c 0%, #100d1d 75%);
    color: #fff;
    text-align: center;
    font: 400 1rem/1.5 system-ui, sans-serif;
}
.rvg-theme .rvg-subscription-notice[hidden] { display: none; }
.rvg-theme .rvg-subscription-notice img { display: block; width: min(85%, 32rem); height: auto; flex-shrink: 0; margin: 0 0 .5rem; }
.rvg-theme .rvg-subscription-notice h2 { color: #fff; font: 750 clamp(1.75rem, 3vw, 3rem)/1.15 system-ui, sans-serif; letter-spacing: -.03em; margin: 0; }
.rvg-theme .rvg-subscription-notice p { color: #e5e0ef; font: inherit; font-size: clamp(1rem, 1.5vw, 1.25rem); margin: 0; max-width: 38rem; }
.rvg-theme .rvg-subscription-notice .rvg-subscription-notice__help { color: #bfb5d2; font-size: 1rem; max-width: 32rem; }
.rvg-theme .rvg-subscription-notice a { display: inline-flex; align-items: center; gap: .75rem; padding: .8rem 1.4rem; border: 1px solid #fff; border-radius: 999px; background: #fff; color: #171020; font: 650 1rem/1.4 system-ui, sans-serif; text-decoration: none; }
.rvg-theme .rvg-subscription-notice a:hover { background: #ece3ff; color: #171020; }
.rvg-theme .rvg-subscription-notice a:focus-visible { outline: 3px solid #e9df51; outline-offset: 5px; }
@media (max-height: 450px) { .rvg-theme .rvg-subscription-notice { justify-content: safe center; gap: .75rem; padding: 1rem; } }

/* Reading navigation follows the chosen theme colours instead of the dark player. */
.rvg-theme .rvg-game-page__toc {
    background: transparent; color: var(--rvg-ink); border: 0; border-radius: 0;
    box-shadow: none; padding: 0; top: calc(var(--wp-admin--admin-bar--height, 0px) + 5.5rem);
}
.rvg-theme .rvg-game-page__toc > .rvg-eyebrow { display: none; }
.rvg-theme .rvg-game-page__toc h2 {
    color: var(--rvg-ink); font-size: .875rem; font-weight: 600; letter-spacing: .04em;
    line-height: 1.4; text-transform: uppercase; margin: 0 0 .75rem; padding: .5rem 0 .75rem;
    border-bottom: 1px solid var(--rvg-line);
}
.rvg-theme .rvg-game-page__toc ol { gap: 0; margin: 0; padding: 0; }
.rvg-theme .rvg-game-page__toc a {
    display: block; padding: .55rem .75rem; color: var(--rvg-muted); border-inline-start: 2px solid var(--rvg-line);
    font-size: .875rem; line-height: 1.5; text-decoration: none;
}
.rvg-theme .rvg-game-page__toc a:hover, .rvg-theme .rvg-game-page__toc a:focus-visible { color: var(--rvg-purple); border-color: currentColor; }
.rvg-theme .rvg-game-page__review :is(h2, h3)[id] { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 5.5rem); }
