/* Valdibia Official Theme v1.4.1: decorative ornamental action buttons
 * Only elements explicitly marked .vr-ornate-button are affected.
 * Nine-slice of the supplied Valdibia gold/violet illustration; the middle
 * (containing "ENTER VALDIBIA") is deliberately NOT painted, leaving real
 * HTML text, working links, keyboard focus and real form submission.
 * Loaded after style.css, resp.css and Bazaar CSS to avoid altering other UI.
 */
html[data-vr-theme] body.vr-theme .vr-ornate-button {
    --vr-ornate-height: 46px;
    --vr-ornate-min-width: 108px;
    --vr-ornate-font-size: 12px;
    --vr-ornate-border-y: 13px;
    --vr-ornate-border-x: 23px;
    appearance: none;
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 8px;
    vertical-align: middle;
    min-height: 0;
    height: var(--vr-ornate-height);
    min-width: var(--vr-ornate-min-width);
    padding: 0 10px;
    border-style: solid;
    border-color: transparent;
    border-width: var(--vr-ornate-border-y) var(--vr-ornate-border-x);
    border-image-source: url('../img/valdibia-button-frame.png');
    border-image-slice: 118 280 128 280;
    border-image-width: var(--vr-ornate-border-y) var(--vr-ornate-border-x);
    border-image-repeat: stretch;
    border-image-outset: 0;
    border-radius: 0;
    background: radial-gradient(ellipse at 50% 15%, rgba(117, 26, 157, .38), transparent 75%),
                linear-gradient(180deg, #200035 0%, #0b0018 52%, #1a002d 100%);
    color: #ffdc85 !important;
    text-decoration: none !important;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: var(--vr-ornate-font-size);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .055em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px #10000f, 0 0 7px rgba(239, 174, 57, .30);
    box-shadow: none;
    filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .32));
    transition: transform .18s ease, filter .18s ease, color .18s ease;
    -webkit-tap-highlight-color: transparent;
}
html[data-vr-theme] body.vr-theme .vr-ornate-button:visited { color: #ffdc85 !important; }
html[data-vr-theme] body.vr-theme .vr-ornate-button:hover {
    color: #fff3c0 !important;
    transform: translateY(-1px);
    filter: brightness(1.13) drop-shadow(0 0 8px rgba(181, 39, 255, .42));
}
html[data-vr-theme] body.vr-theme .vr-ornate-button:active {
    transform: translateY(1px);
    filter: brightness(.92);
}
html[data-vr-theme] body.vr-theme .vr-ornate-button:focus-visible {
    outline: 2px solid #ffe9af;
    outline-offset: 3px;
}
html[data-vr-theme] body.vr-theme .vr-ornate-button:disabled,
html[data-vr-theme] body.vr-theme .vr-ornate-button[aria-disabled='true'] {
    opacity: .50;
    cursor: not-allowed;
    pointer-events: none;
}
/* Independent sizing keeps the existing menu, clock and live status intact. */
html[data-vr-theme] body.vr-theme .vr-header-actions .vr-ornate-button--header {
    --vr-ornate-height: 45px;
    --vr-ornate-min-width: 107px;
    --vr-ornate-font-size: 11px;
}
html[data-vr-theme] body.vr-theme .vr-header-actions .vr-ornate-button--play {
    --vr-ornate-min-width: 142px;
    --vr-ornate-font-size: 11px;
}
/* Auth-page form elements remain real submit button / navigation anchor. */
html[data-vr-theme] body.vr-theme .vr-login-card .vr-ornate-button--wide {
    --vr-ornate-height: 53px;
    --vr-ornate-font-size: 14px;
    --vr-ornate-border-y: 15px;
    --vr-ornate-border-x: 29px;
    width: 100%;
    margin-top: 0;
}
html[data-vr-theme] body.vr-theme .vr-login-card .vr-login-submit b {
    font-family: Georgia, serif;
    font-size: 17px;
    line-height: 1;
    font-weight: 700;
}
/* v1.4.3 expands the same ornamental system to core/other public-page buttons. */
@media (min-width: 901px) and (max-width: 1280px) {
    html[data-vr-theme] body.vr-theme .vr-header-actions .vr-ornate-button--header {
        --vr-ornate-height: 42px;
        --vr-ornate-min-width: 96px;
        --vr-ornate-font-size: 10px;
        --vr-ornate-border-y: 12px;
        --vr-ornate-border-x: 21px;
        padding: 0 7px;
    }
    html[data-vr-theme] body.vr-theme .vr-header-actions .vr-ornate-button--play {
        --vr-ornate-min-width: 125px;
    }
}
/* Preserve existing responsive rules: Login hidden <=900, Play Now hidden <=620.
 * The selectors below need matching specificity because this stylesheet is loaded last. */
@media (max-width: 900px) {
    html[data-vr-theme] body.vr-theme .vr-header-actions .vr-link-btn.vr-ornate-button { display: none; }
    html[data-vr-theme] body.vr-theme .vr-header-actions .vr-play-btn.vr-ornate-button {
        --vr-ornate-height: 40px;
        --vr-ornate-min-width: 118px;
        --vr-ornate-font-size: 10px;
        --vr-ornate-border-y: 11px;
        --vr-ornate-border-x: 20px;
        padding: 0 7px;
    }
}
@media (max-width: 620px) {
    html[data-vr-theme] body.vr-theme .vr-header-actions .vr-play-btn.vr-ornate-button { display: none; }
}
@media (max-width: 390px) {
    html[data-vr-theme] body.vr-theme .vr-login-card .vr-ornate-button--wide {
        --vr-ornate-font-size: 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html[data-vr-theme] body.vr-theme .vr-ornate-button { transition: none; }
}


/* ================================================================
   VALDIBIA 1.4.3 — SITE-WIDE ORNAMENTAL ACTIONS
   Uses SAME 9-slice PNG of v1.4.1. Never stretches the full image.
   Main navigation, status, social icon controls, social authentication,
   music player, language/theme toggles and dropdown triggers stay intact.
   Also protects icon-only controls and internal table action links.
   ================================================================ */
html[data-vr-theme] body.vr-theme .vr-ornate-button.vr-ornate-button--content {
    --vr-ornate-height: 46px;
    --vr-ornate-min-width: 128px;
    --vr-ornate-font-size: 11px;
    --vr-ornate-border-y: 13px;
    --vr-ornate-border-x: 24px;
    max-width: 100%;
    box-sizing: border-box;
    margin: 2px 0;
    vertical-align: middle;
    padding-inline: 9px !important;
    color: #ffdc85 !important;
    border: solid transparent !important;
    border-width: var(--vr-ornate-border-y) var(--vr-ornate-border-x) !important;
    border-image: url('../img/valdibia-button-frame.png') 118 280 128 280 / var(--vr-ornate-border-y) var(--vr-ornate-border-x) stretch !important;
    border-radius: 0 !important;
    background: radial-gradient(ellipse at 50% 15%, rgba(117,26,157,.38), transparent 75%),
                linear-gradient(180deg,#200035 0%,#0b0018 52%,#1a002d 100%) !important;
    box-shadow: none !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-weight: 800 !important;
    font-size: var(--vr-ornate-font-size) !important;
    letter-spacing: .045em;
    line-height: 1.1;
    text-decoration: none !important;
    white-space: nowrap;
    appearance: none;
}
html[data-vr-theme] body.vr-theme .vr-ornate-button.vr-ornate-button--content.vr-ornate-button--small {
    --vr-ornate-height: 40px;
    --vr-ornate-min-width: 98px;
    --vr-ornate-font-size: 10px;
    --vr-ornate-border-y: 11px;
    --vr-ornate-border-x: 22px;
    padding-inline: 7px !important;
}
html[data-vr-theme] body.vr-theme .vr-ornate-button.vr-ornate-button--content.vr-ornate-button--wide {
    --vr-ornate-min-width: 172px;
}
html[data-vr-theme] body.vr-theme .vr-content-card .vr-ornate-button.vr-ornate-button--content:visited,
html[data-vr-theme] body.vr-theme .vdb-bazaar .vr-ornate-button.vr-ornate-button--content:visited {
    color: #ffdc85 !important;
}
html[data-vr-theme] body.vr-theme .vr-ornate-button.vr-ornate-button--content:hover {
    color: #fff3c0 !important;
    transform: translateY(-1px);
    filter: brightness(1.13) drop-shadow(0 0 8px rgba(181,39,255,.42));
}
html[data-vr-theme] body.vr-theme .vr-ornate-button.vr-ornate-button--content:focus-visible {
    outline: 2px solid #ffe9af !important;
    outline-offset: 3px;
}
html[data-vr-theme] body.vr-theme .vr-ornate-button.vr-ornate-button--content:is(:disabled,[aria-disabled='true']) {
    opacity: .48;
    filter: grayscale(.4);
    cursor: not-allowed;
    pointer-events: none;
}
/* Full-width calls to action use the space their forms offer. */
html[data-vr-theme] body.vr-theme .vdb-bazaar .vdb-btn-buy.vr-ornate-button--content {
    width: 100% !important;
}
/* Don't shrink or stretch legacy inline icon/table controls. */
html[data-vr-theme] body.vr-theme .vdb-actions-cell button,
html[data-vr-theme] body.vr-theme .vdb-actions-cell a {
    font-family: inherit;
}
@media (max-width: 620px) {
    html[data-vr-theme] body.vr-theme .vr-ornate-button.vr-ornate-button--content {
        --vr-ornate-height: 43px;
        --vr-ornate-min-width: 116px;
        --vr-ornate-font-size: 10px;
        --vr-ornate-border-y: 12px;
        --vr-ornate-border-x: 22px;
    }
    html[data-vr-theme] body.vr-theme .vr-ornate-button.vr-ornate-button--content.vr-ornate-button--small {
        --vr-ornate-height: 39px;
        --vr-ornate-min-width: 90px;
        --vr-ornate-font-size: 9px;
        --vr-ornate-border-y: 11px;
        --vr-ornate-border-x: 20px;
    }
}


/* ================================================================
   VALDIBIA 1.4.4 — precise fixes over the VERIFIED v1.4.3 theme.
   All core 9-slice frames and existing functionality are preserved.
   ================================================================ */
/* News CTA text: child spans could inherit old black text/gradient. */
html[data-vr-theme] body.vr-theme :is(a, button).vr-ornate-button,
html[data-vr-theme] body.vr-theme :is(a, button).vr-ornate-button:link,
html[data-vr-theme] body.vr-theme :is(a, button).vr-ornate-button:visited,
html[data-vr-theme] body.vr-theme :is(a, button).vr-ornate-button:active,
html[data-vr-theme] body.vr-theme .vr-news-body a.vr-ornate-button,
html[data-vr-theme] body.vr-theme .vr-content-card a.vr-ornate-button {
    color: #ffdc85 !important;
    -webkit-text-fill-color: #ffdc85 !important;
}
html[data-vr-theme] body.vr-theme .vr-ornate-button :is(span, strong, b, em, small, i) {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    background: transparent !important;
    background-color: transparent !important;
    text-shadow: inherit !important;
}
html[data-vr-theme] body.vr-theme .vr-ornate-button:hover,
html[data-vr-theme] body.vr-theme .vr-content-card a.vr-ornate-button:hover {
    color: #fff3c0 !important;
    -webkit-text-fill-color: #fff3c0 !important;
}
/* Main download and account CTAs: prevent old backgrounds from winning.
   Keep the original 9-slice frame: do NOT scale the whole PNG. */
html[data-vr-theme] body.vr-theme .vr-content-card :is(a, button, input).vr-ornate-button.vr-ornate-button--content,
html[data-vr-theme] body.vr-theme .vr-news-body :is(a, button, input).vr-ornate-button.vr-ornate-button--content,
html[data-vr-theme] body.vr-theme .vr-page-stage :is(a, button, input).vr-ornate-button.vr-ornate-button--content {
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-style: solid !important;
    border-color: transparent !important;
    border-width: var(--vr-ornate-border-y) var(--vr-ornate-border-x) !important;
    border-image: url('../img/valdibia-button-frame.png') 118 280 128 280 / var(--vr-ornate-border-y) var(--vr-ornate-border-x) stretch !important;
    border-radius: 0 !important;
    background: radial-gradient(ellipse at 50% 15%, rgba(117, 26, 157, .38), transparent 75%),
                linear-gradient(180deg, #200035 0%, #0b0018 52%, #1a002d 100%) !important;
    color: #ffdc85 !important;
    -webkit-text-fill-color: #ffdc85 !important;
    text-decoration: none !important;
}
/* Spells selector from the live browser inspector: turn the dark label
   background (#0f121a) transparent in BOTH color modes. */
html[data-vr-theme] body.vr-theme .ts_Spells > label,
html[data-vr-theme] body.vr-theme .ts_Spells > label.white,
html[data-vr-theme] body.vr-theme .ts_Spells > label:hover,
html[data-vr-theme] body.vr-theme .ts_Spells > input:checked + label {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}



/* v1.4.5 - account manager left menu should stay as Valdibia navigation,
   not as compressed CTA buttons. If a cached class or old DOM keeps any
   ornamental class there, neutralize it and restore the sidebar look. */
html[data-vr-theme] body.vr-theme .vr-content-card #account-manage #one .vertical-menu a.vr-ornate-button,
html[data-vr-theme] body.vr-theme .vr-content-card #account-manage #one .vertical-menu a.vr-ornate-button.vr-ornate-button--content,
html[data-vr-theme] body.vr-theme .vr-content-card #account-manage #one .vertical-menu a.vr-ornate-button.vr-ornate-button--small,
html[data-vr-theme] body.vr-theme .vr-content-card #account-manage #one .vertical-menu a.vr-ornate-button.vr-ornate-button--wide {
    --vr-ornate-height: unset;
    --vr-ornate-min-width: unset;
    --vr-ornate-font-size: unset;
    --vr-ornate-border-y: unset;
    --vr-ornate-border-x: unset;
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    height: auto !important;
    padding: 12px !important;
    border: 0 !important;
    border-image: none !important;
    background: var(--vr-table-row-bg) !important;
    color: var(--vr-table-text) !important;
    -webkit-text-fill-color: currentColor !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
    text-align: left !important;
    text-shadow: none !important;
    white-space: normal !important;
    filter: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--vr-table-border) !important;
}
html[data-vr-theme] body.vr-theme .vr-content-card #account-manage #one .vertical-menu a.vr-ornate-button:last-child {
    border-bottom: 0 !important;
}
html[data-vr-theme] body.vr-theme .vr-content-card #account-manage #one .vertical-menu a.vr-ornate-button:hover,
html[data-vr-theme] body.vr-theme .vr-content-card #account-manage #one .vertical-menu a.vr-ornate-button:focus-visible {
    background: rgba(255,255,255,.055) !important;
    color: var(--vr-text) !important;
    -webkit-text-fill-color: currentColor !important;
    transform: none !important;
}
html[data-vr-theme='light'] body.vr-theme .vr-content-card #account-manage #one .vertical-menu a.vr-ornate-button:hover,
html[data-vr-theme='light'] body.vr-theme .vr-content-card #account-manage #one .vertical-menu a.vr-ornate-button:focus-visible {
    background: rgba(25,32,44,.055) !important;
    color: #171c24 !important;
}

/* Valdibia Official v1.4.16 — guest Play Now is not an anchor. */
html[data-vr-theme] body.vr-theme .vr-header-actions .vr-play-btn--locked,
html[data-vr-theme] body.vr-theme .vr-header-actions .vr-play-btn--locked:hover {
    opacity: .55;
    filter: grayscale(.25) brightness(.87);
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}
